Posts

Showing posts from May, 2010

javascript - Scrolling to a specific div using window.onload without adding to the web address -

javascript - Scrolling to a specific div using window.onload without adding to the web address - i creating page 5 divs. using next javascript code smoothly move between them horizontaly : $(function () { $('ul.nav a').bind('click', function (event) { var $anchor = $(this); $('html, body').stop().animate({ scrollleft: $($anchor.attr('href')).offset().left }, 1500,'easeinoutexpo'); event.preventdefault(); }); }); the divs this: <div class="section white" id="section5"> <h2>technologies</h2> <p> text </p> <ul class="nav"> <li><a href="#section1">1</a></li> <li><a href="#section2">2</a></li> <li><a href="#section3">3...

javascript - Is there any node.js tutorials for implementing restapi and auth using ONLY core modules? -

javascript - Is there any node.js tutorials for implementing restapi and auth using ONLY core modules? - i have task implement simple web server rest interface , user authorization without using third-party frameworks 99% tutorials can find start using restify/express/something else. , it's hard available in core modules , functionality utilize implement what's been reqested (never used node.js before). upd: heres did if helps someone: https://github.com/danilaml/simplerestserver this pretty good. simple walk through. i'm doing same thing assignment. https://gist.github.com/shimondoodkin/6213581. have post , 404 'use strict'; var http = require('http'); var server = http.createserver(function(req, res) { if (req.url === '/hello') { res.writehead(200, { 'content-type': 'application/json' }); if (req.method === "post") { console.log('post'); var body = ''; ...

ruby on rails - rhc setup - command not found -

ruby on rails - rhc setup - command not found - i working on macbook air, os x 10.10 (yosemite) after installing ruby 4.1.6 , git 1.9.3 (apple git-50) openshift client tools rhc-1.30.2.gem i got message: if first time installing rhc tools, please run 'rhc setup' but, when run rhc setup (according the openshift documentation) back: class="lang-none prettyprint-override"> olivers-macbook-air-4:~ oliverhowells$ rhc setup -bash: $: command not found i want set ssh key, long error, not sure how launch openshift wizard , move forward. here link documentation looking @ openshift: https://developers.openshift.com/en/managing-remote-connection.html do have ideas how proceed? i had issue after installing using rbenv. fixed running rbenv rehash command line. ruby-on-rails ruby git command-line openshift

TCPDF integration Codeigniter constructor only use default parameters -

TCPDF integration Codeigniter constructor only use default parameters - i integrate library. created class pdf: require_once dirname(__file__) . '/tcpdf/tcpdf.php'; class pdf extends tcpdf { public function __construct($params) { parent::__construct(); } } but when phone call constructor other parameters, constructor utilize default params. $this->load->library('pdf'); $pdf = new pdf('l', 'mm', array(216, 330), true, 'utf-8', false); but if alter class pdf tcpdf works fine. $this->load->library('pdf'); $pdf = new tcpdf('l', 'mm', array(216, 330), true, 'utf-8', false); the problem want alter header , create new class extends tcpdf new header information. , cant phone call constructor of class (pdf class) custom params. you must of course of study pass parameters parent class. , note tcpdf expects long list of separate parameters, not array. 1 way ...

solve equation in Matlab -

solve equation in Matlab - i trying solve equation: 1000^x = 0.5* 512^x + 0.5* 1728^x wonder why next code not work. syms x eqn = (power(1000,x) == 0.5* power(512,x) + 0.5* power(1728,x)); solve(eqn, x) matlab gives me x=0 solution, however, expecting 1/3 one. there way can constrain answer. matlab equation

javascript - Is there a way to implement drag & drop in a phonegap angular js project? -

javascript - Is there a way to implement drag & drop in a phonegap angular js project? - i have tried one: https://github.com/codef0rmer/angular-dragdrop touchpunch (http://touchpunch.furf.com/). on browser working fine when deploy app android device receive next error: $ui.mouse not defined are there other alternatives implement drag & drop combination ? touchpunch requires jquery ui plugin. verify if included jquery ui in page. javascript android jquery angularjs cordova

SQL Oracle 10g List all database tables and the columns -

SQL Oracle 10g List all database tables and the columns - i've got oracle 10g database few hundred tables , want create list of table name, columns has , comments columns. normal table this: http://i.imgur.com/khwffov.jpg i want list of column_name , comments each table. tried getting metadata using: select table_name, column_name, comments user_tab_columns ; but errors out since i'm mixing metadata , not. i'm confused on how want. thanks i want list of column_name , comments each table. query user_col_comments , user_tab_columns , select table_name , column_name , comments . make join on owner , table_name , column_name . sql oracle

python - numpy.savetxt() outputs very large files -

python - numpy.savetxt() outputs very large files - i using numpy.savetxt() write numpy array csv file, file generated large. example, if create zeros array: import numpy test = numpy.zeros((10000,10000), dtype=numpy.float32) numpy.savetxt('c:/datatest.csv',test,delimiter=',') i expect file around 10,000*10,000*4 bytes (400 mb) large. (this test.nbytes returns). however, file 2.3 gb large. there reason big file size? looked through numpy documentation, there doesn't seem way specify variable type when writing file. tried other file types/delimiters, same results. the size of native datatype differs size of string representation of datatype. numpy.savetxt has fmt argument defaults '%.18e' , formats each of zeros 0.000000000000000000e+00 . 24 characters per item plus 1 delimiter. to smaller file can alter format (beware of losing important digits) or utilize numpy.save save in binary or numpy.savez save compressed archive. ...

oracle - Java.sql.SQLException: ORA-00604 -

oracle - Java.sql.SQLException: ORA-00604 - i developed website using jsp , servlet gives exception java.sql.sqlexception: ora-00604.after restarting server working fine. below code public class logincheck extends httpservlet { private static final long serialversionuid = 1l; /** * @see httpservlet#httpservlet() */ public logincheck() { super(); // todo auto-generated constructor stub } /** * @see httpservlet#doget(httpservletrequest request, httpservletresponse response) */ protected void doget(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception { // todo auto-generated method stub } /** * @see httpservlet#dopost(httpservletrequest request, httpservletresponse response) */ protected void dopost(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception { // todo auto-generated method stub ar...

encryption - Encrypt the datas in postgresql -

encryption - Encrypt the datas in postgresql - i beginner in postgresql. right now, using postgresql 9.3 version installed in windows server 2008 os. planing encrypt info in user table. have go through of web sites related that, did not clear thought , encrypt function not working. getting error while execute query. select encrypt('123456789012345','1234','aes');. error message : error: function encrypt(unknown, unknown, unknown) not exist . can help me solve issue. regards, ram you need to create extension pgcrypto; first. however, encrypting things doesn't create them somehow "secure". please don't assume encrypting info accomplish security goal(s) you're trying achieve. see: storing encrypted info in postgres http://dba.stackexchange.com/q/24370/7788 http://dba.stackexchange.com/q/59154/7788 ... , many others. postgresql encryption pgcrypto

database - FoxPro 5.0a taking forever to load on Windows 7 -

database - FoxPro 5.0a taking forever to load on Windows 7 - i'm assisting company using old software , want off old server , on more recent workstation. here setup: windows 2000 server (domain controller) foxpro 5.0a shared folder (no database, folder data) how launch inventory system: pc users double click lucky.exe shortcut mapped server share in \lucky folder. requirement run map driver letter e: server\lucky folder. when exe launched custom foxpro inventory scheme loads immediately. in office uses same method of opening , can run @ same time. info seems stored in folder called \lucky\lu_ in current environment inventory scheme works fine. note: if seek browse lu_ folder takes quite bit of time display files. don't know if it's because there 1gb of info in \lu_ folder. however, fear of hard drives failing rid of windows 2000 server , have inventory run on newer machine. bought windows 7 pro workstation. copied \lucky folder , tried run...

c++ - Linked list not working for input -

c++ - Linked list not working for input - i'm writing code takes integers input user , creates linked list , prints out list. however, when come in values 1,2,3,4,5, output 5 5 5 5 5 please tell me wrong here. the code follows: include"iostream" using namespace std; struct node { int number; node* next; }; int main() { node* head; head = null; int i,n,x; cin>>n; cout<<endl; for(i=0;i<n;i++) { cin>>x; //insert(x); node* temp; temp = new node; temp->number = x; temp->next = null; head = temp; } //print(); node* temp; temp = head; while(temp != null) { for(int j=0; j<n; j++) cout<<temp->number<<" "; temp = temp->next; } } remember when setting head pointer, should when list empty (i.e when head == null ). should after create new node know set he...

How to get week number from a date in php? -

How to get week number from a date in php? - i have question ask, please help me find solution: i have start date 6 aug 2014. , have assigned week numbers(week 1 , week 2) each week starting date 6 aug 2014 below: 6 aug 2014 - 9 aug 2014 : week1 10 aug - 16 aug 2014: week2 17 aug 2014 - 23 aug 2014 : week 1 and on... now want find week(whether week1 or week 2 ) date greater start date lets eg 1 oct 2014 how it? you can utilize "w" parameter in date function iso week of year , utilize mod operator week 1 or week 2 $myweek = ((date("w") - date("w", $start_date)) % 2) + 1; php date

windows - Find top 10 processes with wmic command -

windows - Find top 10 processes with wmic command - i know can 'wmic process list brief' display list of processes. there way view top 10 processes using memory? @echo off setlocal enabledelayedexpansion (for /f "skip=1 tokens=1,2" %%a in ('wmic process name^,workingsetsize') ( set "size= %%b" echo !size:~-10! %%a )) > wmic.txt set i=0 /f "skip=1 delims=" %%a in ('sort /r wmic.txt') ( echo %%a set /a i+=1 if !i! equ 10 goto :end ) :end del wmic.txt output example: 96931840 iexplore.exe 82161664 explorer.exe 42319872 svchost.exe 33656832 svchost.exe 31469568 dwm.exe 26943488 iexplore.exe 25690112 searchindexer.exe 18550784 svchost.exe 17002496 taskhostex.exe 16343040 svchost.exe windows batch-file command-prompt wmic taskmanager

scripting - Invoking two commands at the same time powershell -

scripting - Invoking two commands at the same time powershell - i invoke 2 commands @ same time when entering parameters illustration if execute code put: abcdef folder1 folder2 and create 2 folders on desktop. the code below illustration want know right syntax doing it. function abcdef { param($folder1, $folder2) $s = $executioncontext.invokecommand.newscriptblock("mkdir c:\'documents , settings'\x\desktop\$folder1") $s1 = $executioncontext.invokecommand.newscriptblock("mkdir c:\'documents , settings'\x\desktop\$folder2") invoke-command -computername $computerremote -scriptblock $s,$s1 -credential $cred } function abcdef { param( [parameter(mandatory=$true,position=0,valuefrompipeline=$true)] [validatenotnullorempty] [string[]] $computername, [parameter(mandatory=$true,position=1)] [validatenotnullorempty()] [string[]] $folders, [parameter(mandatory=$true,position=2)] [validatenotnullorempty()] [pscredent...

sql server - SQL Ranking based on weighted avg -

sql server - SQL Ranking based on weighted avg - i have 2 datasets trying rank based on weighted average. table 1 has aggregate sum need compare table 2 weighted avg, provide ranking based on weighted average table 2. table 1 main table needs ranking table 2 based of weighted averages provided. problem 2 tables not have identifier aggregates amounts can used find ranking table 2 based on file date table 1. basically, need loop via table2 , find weighted avg match table 1, assign ranking provided on table2. here illustration of dataset. **table 1** categories file date weighted avg brand 01/31/2014 89.4 brand 02/29/2014 50.1 brand 03/31/2014 76.5 brand 04/30/2014 75.2 brand 05/31/2014 49.2 brand 06/30/2014 50.2 brand 07/31/2014 76.2 brand 08/31/2014 90.1 brand b 01/31/2014 89.2 brand b 02/29/2014 50.2 ...

Kotlin generics -

Kotlin generics - how possible enforce generic type method in kotlin? know instance can following: var somevar: mutableset<out sometype> = hashsetof() how can same method? fun <t> dosomething() { } i'd enforce t of type x or sub-type of it. thanks. after googling around, right reply be: fun <t : x> dosomething() { } generics kotlin

objective c - Uploading image to server on IOS device -

objective c - Uploading image to server on IOS device - i using nsmutableurlrequest send image server. able read request.body.image on server side when seek opening picture, unable (i opening uploading amazon s3 server , making public). here obj c code: - (bool)sendprolilepic: (uiimage*)image { //we need email , password request nsstring *password = [self.keychainitem objectforkey:(__bridge id)(ksecvaluedata)]; nsstring *email= [self.keychainitem objectforkey:(__bridge id)(ksecattraccount)]; // create request. nsmutableurlrequest *request = [nsmutableurlrequest requestwithurl:[nsurl urlwithstring:@"http://localhost:3000/set_profilepic"]]; // specify post request request.httpmethod = @"post"; // how set header fields [request setvalue:@"application/x-www-form-urlencoded; charset=utf-8" forhttpheaderfield:@"content-type"]; //make mutable info store info nsmutabledata *requestbodydata = [ns...

java - LWJGL Controllers in IntelliJ -

java - LWJGL Controllers in IntelliJ - every time seek build basic illustration programme using lwjgl controllers, crashes. here's code: package com.czipperz.blogspot.tests.controllers; import org.lwjgl.lwjglexception; import org.lwjgl.input.controller; import org.lwjgl.input.controllers; /** * created chris on 10/23/2014. */ public class main { //left joystick x , y private float x, y, //right joystick x , y. commas? rx, ry; //this controller object must org.lwjgl.input.controller not net.java.games.input.controller private controller c; private boolean start; public static final int button_a = 1, button_b = 2, button_x = 3, button_y = 4, button_left_bumper = 5, button_right_bumper = 6, button_select = 7, button_start = 8, //when press joysticks (click) button_left_joystick = 9, button_right_joystick = 10; public static void main(string[] args) { new main(); } public main(...

r - Extracting values from nc files in a for loop -

r - Extracting values from nc files in a for loop - i have 4 netcdf files in folder , want extract values these files. str of file is: [1] "file c:1.dbl.nc has 2 dimensions:" [1] "lat size: 1" [1] "lon size: 1" [1] "------------------------" [1] "file c:\\users\\data.nc has 3 variables:" [1] "short so[lon,lat] [1] "short il[lon,lat] [1] short fg[lon,lat] my loop is: a<-list.files("c:\\users\\data", "*.nc", full.names = true) for(i in 1:length(a)){ f <- open.ncdf(a[i]) = get.var.ncdf(nc=f,varid="so",verbose=true) b <- get.var.ncdf(nc=f,varid="il") c <- get.var.ncdf(nc=f,varid="fg") write.table(t(rbind(a,b,c)),file="output-all.txt")} there no errors there 1 line of results in output text file: "a" "b" "c" "1" 500 200 30...

java - JPanel being repainted when resizing JFrame although its not obscured or resized -

java - JPanel being repainted when resizing JFrame although its not obscured or resized - i testing game im writing when discovered 1 of jpanels within jsplitpane beingness repainted when jframe beingness resized though area not beingness obscured nor resized. although logic, (more specifically, counters) should never set within paintcomponent method, raise potentially serious problems. has encountered/noticed behaviour? i've read 1 way of preventing repaints utilize repaintmanager.markcompletlyclean(jcomponent). suggestions/workarounds other repaintmanager? bug? see below: import java.awt.*; import javax.swing.*; class test { public static void main(string args[]) { swingutilities.invokelater(new runnable() { public void run() { jframe jframe = new jframe(); jframe.setlocation(100,100); jframe.setdefaultcloseoperation(jframe.exit_on_close); jpan...

bit shift - objective-c sscanf from NSData -

bit shift - objective-c sscanf from NSData - i have btle device sending me bytes, of need compose 32 bit signed int, shift around, interpret. i'm using xcode 6.1. the problem i'm having in converting bytes int32_t using sscanf works , doesn't. i'm not obj-c expert, not sure if right way @ all, using strtol wasn't working. the entire function below: - (double) parsemv2: (nsdata*) info { nsdata* sliceddata = [data subdatawithrange:nsmakerange(2, 4)]; const char *bytes = [sliceddata bytes]; int32_t value; double mv = 0; int sscanf_result = sscanf(bytes, "%4x", &value); if (1 == sscanf_result) { value <<= 3; // discard 3 important bits not part of value brings sign bit important bit position. value >>= 8; // discard 5 to the lowest degree important bits below noise levels. mv = ((double)value)*2048.0/16777216.0; // convert mv } else { nslog(@"💋💋💋 sscanf failed read bytes %4x (result ...

Problems building and using mssql.so php extension, AMPPS server on MAC OSX -

Problems building and using mssql.so php extension, AMPPS server on MAC OSX - i think need know how specify build architecture when building .php extensions on osx. architectures should seek first, , how specify them? the details: i having problem building working mssql.so php extension server. i have been using ampps server on mac serve php based websites, accessing mysql databases. now need connect mssql database. ampps php installation not include mssql extension when seek utilize mssql_connect() next error. call undefined function `mssql_connect()` in /applications/ampps/www/test.php i think need add together mssql.so php/lib/extensions/ext folder , add together extension=mssql.so to php.ini file. to build mssql.so have found couple of online tutorials both utilize freetds: http://lkrms.org/php-with-freetds-on-os-x-mavericks/#comment-82521 http://blog.benjaminwalters.net/?p=10 i used home brew install autoconf: brew instal autoconf ...

javascript - Font is not applied on image -

javascript - Font is not applied on image - i trying convert svg png using d3.js , html5 . when image displayed, custom font applied on it, when save image png, font not applied on image. below code css @font-face { font-family: "calligraffitti"; font-style: normal; font-weight: 400; src: local("calligraffitti"), local("calligraffitti-regular"), url("http://fonts.gstatic.com/s/calligraffitti/v7/vlvn2y-z65rvu1r7lwdvykizaudcntpcwupsair0ie8.woff") format("woff"); } js $('.savepng').click(function() { savesvgaspng(document.getelementbyid("treet"), "tree2.png", 3); out.savesvgaspng = function(el, name, scalefactor) { out.svgasdatauri(el, scalefactor, function(uri) { var image = new image(); image.src = uri; image.onload = function() { var canvas = document.createelement('canvas'); canvas.width = image.width; canvas.heig...

how to set default location for uploading files or selecting files in window 8 -

how to set default location for uploading files or selecting files in window 8 - hello every , in advance. how can set default location choosing file dialog box , uploading file dialog box single directory in window 8. i want search in c:/somefolder every time when chose or upload file not happen if select desktop next time makes desktop default location. think window 8 chose recent location default location don't want , want restrict same folder if upload file desktop or else. you can seek this: fileopenpicker folderpicker = new fileopenpicker(); folderpicker.viewmode = pickerviewmode.thumbnail; folderpicker.suggestedstartlocation = pickerlocationid.pictureslibrary; you can list of locations in pickerlocationid here window location default

android - adding a RelativeLayout to a LinearLayout dynamically -

android - adding a RelativeLayout to a LinearLayout dynamically - i trying relativelayout created dynamically (with views added dynamically it) , add together dynamic created linearlayout. follows code: protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); log.d("tag", "on create"); linearlayout mainlo = (linearlayout) findviewbyid(r.id.linearlayout); log.d("tag", "linear layout created"); setcontentview(r.layout.activity_main); log.d("tag", "content set"); rello = new relativelayout(this); relativelayout.layoutparams lpmatchparent = new relativelayout.layoutparams( relativelayout.layoutparams.match_parent, relativelayout.layoutparams.wrap_content); lpmatchparent.addrule(relativelayout.align_parent_top); rello.setbackgroundcolor(0xbbbbbbbb); rello.setid(10); log.d("tag", "rello created"); ...

xmpp - OpenFire Server Audio and Video chat -

xmpp - OpenFire Server Audio and Video chat - i want create desktop application can audio, video phone call , text chat. started work using openfire server. after implementing text chat, couldn't find help sound , video chat desktop using openfire server. can help me regarding sound , video chat in openfire or other server provides api audio, video , text chat? xmpp openfire

c# - System.Data.Entity.Infrastructure.DbUpdateException -

c# - System.Data.Entity.Infrastructure.DbUpdateException - i created database first entity info model under wpf project. added datagrid , binded model. i've been trying add together crud capability. all until added button , tied click event save updated data. 1 time clicked on i'd next runtime error. system.data.entity.infrastructure.dbupdateexception: error occurred while updating entries. see inner exception details. so checked inner exception , got following: system.data.entity.core.updateexception: error occurred while updating entries. see inner exception details. ---> system.notsupportedexception: modifications tables primary key column has property 'storegeneratedpattern' set 'computed' not supported. utilize 'identity' pattern instead. key column: 'symbol_and_benchmarkid'. table: 'benchmarkmodel.store.weights'. where storegeneratepattern can prepare this? its located in .edmx file. search storegener...

JSF, Richfaces throwing exception & not rendering on Tomcat EE -

JSF, Richfaces throwing exception & not rendering on Tomcat EE - i not able see jsf components. shows runtime exception: severe: error rendering view[/account/login.xhtml] java.lang.reflect.undeclaredthrowableexception @ com.sun.proxy.$proxy84.markresourcerendered(unknown source) @ org.richfaces.resource.resourcefactoryimpl.createmappedresource(resourcefactoryimpl.java:366) @ org.richfaces.resource.resourcefactoryimpl.createresource(resourcefactoryimpl.java:343) @ org.richfaces.resource.resourcehandlerimpl.createresource(resourcehandlerimpl.java:270) @ org.richfaces.resource.resourcehandlerimpl.createresource(resourcehandlerimpl.java:280) @ com.sun.faces.renderkit.html_basic.scriptrenderer.encodeend(scriptrenderer.java:98) @ javax.faces.component.uicomponentbase.encodeend(uicomponentbase.java:879) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1670) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1666) ...

iphone - What does 8badf00d mean? -

iphone - What does 8badf00d mean? - sometimes iphone application crashes weird crashlog, reads exception code 0x8badf00d. stacktraces show random snapshots of app execution, nil suspicious. happens , i'm not able find out how reproduce it. know more kind of exception , exception code? here excerpt crashlogs: exception type: 00000020 exception codes: 0x8badf00d highlighted thread: 0 application specific information: failed deactivate thread 0: ... < nil suspicious here > ... unknown thread crashed unknown flavor: 5, state_count: 1 0x8badf00d error code watchdog raises when application takes long launch or terminate. see apple's crash reporting iphone os applications document iphone crash

javascript - if element offset top is at 10% of viewport -

javascript - if element offset top is at 10% of viewport - i execute function , observe when element.offset().top @ more or less 10% of viewport(window) when scroll. how can proceed? i have @ moment. $(window).on('scroll', function() { var wst = $(this).scrolltop(); var wh = $(this).height(); var elpos = wrapper.offset().top; if (wst >= elpos) { console.log('snoop doggy dog'); } }); thanks help. note: it's element position top needs @ 10% of window. not 10% of document. thanks. i have written different implementation help accomplish task. explain rest in snippet comments. $(window).on('scroll', function() { /* onscroll */ /* calculate if scroll position > 10% */ if($(document).scrolltop() > (0.1 * $(document).height())) { console.log('scroll passed 10%'); } else { /* less 10% */ } }); demo didn't got question quiet deleted. javascript jqu...

Highcharts version 3 type definitions for typescript -

Highcharts version 3 type definitions for typescript - is there type definition file highcharts version 3? at moment can find definition: https://github.com/borisyankov/definitelytyped/tree/master/highcharts which version 2.3.3. or if has list of differences maybe help create 1 :) or if has list of differences maybe help create 1 your best bet changelog : http://www.highcharts.com/documentation/changelog massive. might want stick current version , update find differences highcharts typescript definitelytyped

PHP displaying array element names -

PHP displaying array element names - i pass $data["results"] array controller view , want echo names of array elements equals 1. for example, if {$first ==1, $second == 0, $third == 0} want display "first". could please check code below , help me find mistake. foreach($results $row){ $first= $row->first; $second= $row->second; $third= $row->third; if ($first == 1) {$digits['first'] = $first;} if ($second == 1) {$digits['second'] = $second;} if ($third == 1) {$digits['third'] = $third;} print_r($digits); // displays 'array ( [first] => 1 )' instead of 'first' } update: i generate html tables through loop , display them tcpdf. updated code below displays 'first' if {$first ==1, $second == 0, $third == 0} first table. for ...

Disabling interrupt with the ARM GIC (global interrupt controller) -

Disabling interrupt with the ARM GIC (global interrupt controller) - i have specific requirement nee disable device interrupt specific period without affecting other interrupts(code running on arm processor). arm document pointed gic registers (related enable, disable , clear interrupts) of arm banked registers, there 1 per cpu interface. banked registers accessible designated cpu , controls cpu's ppi , sgi interrupts only. what mean? if disable specific interrupt writing gic register, disabled on core or on cores? there 2 register sets gic; banked per cpu set , distribution (also distributor) scheme global gic. link above, irqenset0 per-cpu register banked (again) , handles ppi , sgi interrupts cpu. irqenset1 list of global interrupts , these maybe disable. distribution (also distributor) can target interrupts cpu. arm has many different names these registers , different versions of gic. concepts same of them. there set of registers not banked per-cpu , the...

java - Problems with JRI -

java - Problems with JRI - i trying run illustration of jri , beingness unsuccessful, here link example. http://blog.comsysto.com/2013/07/10/java-r-integration-with-jri-for-on-demand-predictions/ import org.rosuda.jri.rengine; import org.rosuda.jri.rexp; public class hellorworld { rengine rengine; // initialized in constructor or autowired public void hellorworld() { rengine.eval(string.format("greeting <- '%s'", "hello r world")); rexp result = rengine.eval("greeting"); system.out.println("greeting r: "+result.asstring()); } } this error console gives me. exception in thread "main" java.lang.nullpointerexception @ org.roulette.games.hellorworld.hellorworld(hellorworld.java:10) @ org.roulette.games.hellorworld.main(hellorworld.java:17) as far know have external jri 2014-10-19 jar attached project correctly. have r 3.1.2 installed , have rjava 0.9-6 bundle installed. ...

What does it mean $: in Ruby -

What does it mean $: in Ruby - i reading next tutorial. it talked including files in ruby file require : require(string) => true or false ruby tries load library named string, returning true if successful. if filename not resolve absolute path, searched in directories listed in $: . if file has extension ".rb", loaded source file; if extension ".so", ".o", or ".dll", or whatever default shared library extension on current platform, ruby loads shared library ruby extension. otherwise, ruby tries adding ".rb", ".so", , on name. name of loaded feature added array in $: . i want know $: in ruby , $: means. the variable $: 1 of execution environment variables, array of places search loaded files. the initial value value of arguments passed via -i command-line option, followed installation-defined standard library location. see pre-defined variables, $load_path alias. ...

objective c - PyObjC - NSTableView with checkboxes mapping to Python throws class is not key value coding-compliant -

objective c - PyObjC - NSTableView with checkboxes mapping to Python throws class is not key value coding-compliant - i building mac application using pyobjc. in interface builder have nstableview. columns filled nstextfieldcells , nsbuttoncells. i fill info using array controller filled through python list of dicts. instead of "python dicts" have tried nsmutabledictionary. keys representing nstextfieldcells filled strings , nsbuttoncells booleans. latter have tried: 1/0, "yes"/"no", , nsnumber.numberwithbool_ . the stream of info python gui works without problem. my problem is, whenever click on checkbox throws me: (from bound object <nstablecolumn: 0x1067a52f0> identifier: (null)): [<__nsdictionaryi 0x10a604ed0> setvalue:forundefinedkey:]: class not key value coding-compliant key checkb. how can states of checkboxes python code? objective-c nstableview nsarraycontroller key-value-coding pyobjc

magento how to check which delivery option is selected -

magento how to check which delivery option is selected - i want display additional features when client selects appropriate shipping rate - illustration if select flat rate want set php or jquery flag $flat_rate = true; how that? you can add together code in app/design/frontend/[theme]/default/template/checkout/onepage/shipping_method/available.phtml <script> jquery(document).ready(function(){ jquery('[name="shipping_method"]').click(function(){ /*write code here, clicked button of shipping method checked or not*/ }); }); </script> magento

node.js - Microsoft Azure Continuous Integration - NodeJs Solution with Grunt "Compile" step -

node.js - Microsoft Azure Continuous Integration - NodeJs Solution with Grunt "Compile" step - some precursor question. i might bit verbose details, i'd ensure i'm not leaving out might causing problem. (i'll append finish error log @ end of question. don't expect go buck wild it. i'll seek summarize much can) i scaffold-ed angularjs project using yeoman.using the yo angular command. i created deploy.cmd & .deployment files pushed git repository on bitbucket. (only commited root folder files, , test & app folders) from there, linked azure via website quick setup. my build separated 2 parts installing grunt , bower (globally) during deployment, , installing grunt packages during npm bundle installation then i'll need effort run grunt build post_deployment_action package.json (prod dependencies) "dependencies": { "grunt": "^0.4.1", "grunt-autoprefixer": "^0....