Posts

Showing posts from September, 2012

.net - YouTube data api v3 - Browser based uploading -

with old gdata api upload directly youtube using form post without having upload file server , post on. this easy in javascript, shown here: https://developers.google.com/youtube/v3/code_samples/javascript however, i'm acquiring access token using .net client library , storing refresh token in db can't use javascript version. is supported in api v3? struggling find it.

android - How to use CircleImageView with Volley's NetworkImageView? -

i need circle images rectangular/square images taken network. in application images volley's networkimageview. found fantastic library https://github.com/hdodenhof/circleimageview don't understand how can use networkimageview. can me? check class public class circulairenetworkimageview extends networkimageview { private int borderwidth; private int canvassize; private bitmap image; private paint paint; private paint paintborder; public circulairenetworkimageview(final context context) { this(context, null); } public circulairenetworkimageview(context context, attributeset attrs) { this(context, attrs, r.attr.actionbuttonstyle); } public circulairenetworkimageview(context context, attributeset attrs, int defstyle) { super(context, attrs, defstyle); paint = new paint(); paint.setantialias(true); paintborder = new paint(); paintborder.setantialias(true); }

What's the height of the Android Toolbar? -

what height of android toolbar introduced in lollipop? it's quite simple question haven't found answer here except actionbar ; has different height. the toolbar (if not extended) has height of: 56dp (default) 48dp (landscape) 64dp (sw600dp; i.e. tablet) the toolbar higher pre-lollipop actionbar ; 48dp default, 40dp in landscape , 56dp in sw600dp. and retrieve height of toolbar in xml, use ?android:attr/actionbarsize or if you're using appcompat library this ?attr/actionbarsize

c++ - How do I identify the last variable argument? -

this question has answer here: count number of parameters in c variable argument method call 3 answers so in function want take variable number of char pointers. void myfunction(char *_name, ...); only, when iterate through arguments code breaks because i'm not sure how stop on last argument pass , not keep going. void myclass::myfunction(char *_name, ...) { char *a; std::vector<char*> names; va_list variablepathlist; va_start (variablepathlist, _name); = _name; bool exitloop = false; while(!exitloop) { names.emplace_back(a); = va_arg(variablepathlist, char *); //what must set "exitloop = true" @ right time? } va_end (variablepathlist); } say pass 2 char pointers myfunction, code breaks on third loop when va_arg calling on unreadable memory. without telling myfunctio

r - hcpc and hclust functions give different results for mixed classification -

i started hierarchical classification on mixed datas using "hclust". however, results not contain details variables importance each cluster. that's why did classification using "hcpc" give these details. my question following : why results of 2 hierarchical classifications different ? (for example, in first classification, there 881 individuals in first cluster, there 679 individuals in first cluster second classification) dtf.year <- read.table(file="studies/dtf.year.txt", sep="\t", header=t) #hclust library(ade4) year.afdm <- dudi.mix(dtf.year,scannf=f,nf=2) dist.year <- dist(year.afdm$li[,1:2],method="euclidian") dist.year <- dist.year^2 year.tree <- hclust(dist.year,method="ward.d") #i tried ward.d2 year.clusters <- cutree(year.tree, k=3) table(year.clusters) > 1 2 3 881 225 535 #hcpc library(factominer) year.afdm <- famd(dtf.year, ncp=2) year.tree2 <- hcpc(year.afdm , meth

java - uploading files using spring boot and angularjs not working -

i want upload files using spring boot annd angular js. here's form: <!doctype html> <html> <head> <meta charset="iso-8859-1"> <title>insert title here</title> </head> <body ng-app="mycat" ng-controller="catcontroller > <form id="main-contact-form" class="contact-form" name="contact-form" method="post" enctype="multipart/form-data" > <div class="col-sm-5 col-sm-offset-1"> <div class="form-group"> <label>name *</label> <input type="text" name="name" class="form-control" required="required" ng-model="rap.name"> </div> <!-- <div class="form-group"> --> <!--

python - Use celery priority queue with broadcast tasks -

i want implement tasks priority in celery workers. can create different queues high priority tasks , low priority tasks. need send broadcast tasks workers broadcast queue , not working. here tasks.py file: from celery import celery kombu.common import broadcast, queue, exchange app = celery('tasks') app.conf.update( celery_result_backend='amqp', celery_accept_content=['json'], celery_task_serializer='json', celery_result_serializer='json', broker_url='amqp://', celery_queues=(queue('default', exchange('default'), routing_key='default'), queue('low_priority', exchange('low_priority'), routing_key='low_priority'), broadcast('broadcast_tasks'), ), celery_routes={'tasks.broadcast': {'qu

javascript - jQuery prop impacts performance in IE 11 -

i have implemented filter in javascript ie11, , other browsers. when key pressed matching options on listbox activated according text. , rest hidden. code far: function onkeyup(event) { searchkeypress(this, 'actions_options') } function searchkeypress(input, listboxid) { var value = $(input).val(); if (value != "") { if (isie()) { $("#" + listboxid + " option").prop('disabled', true); $("#" + listboxid + " option:contains(" + value + ")").prop('disabled', false); } else { $("#" + listboxid + " option").hide(); $("#" + listboxid + " option:contains(" + value + ")").show(); } } else { if (isie()) { $("#" + listboxid + " option").prop('disabled', false); } else { $("#" + listboxid + &quo

django - How to get all possible filter options for a particular model across relationships? -

i'm trying expose flexible query interface powerusers of django application , need find every way filter given model in respect model hierarchy embedded in. i have nested set of models this: from django.db import models class city(models.model): name = models.charfield(max_length=15) class team(models.model): location = models.foreignkey(city) name = models.charfield(max_length=15) class employee(models.model): teams = models.manytomanyfield(team) location = models.foreignkey(city) class task(models.model): assignee = models.foreignkey(employee) with querysets can construct complex query, example finding tasks assigned employees munich: tasks = task.objects.filter(assignee__location="munich") or more complex, going through m2m: tasks = task.objects.filter(assignee__teams__location__="munich") i want guide users through process of constructing meaningful complex query , display choices have filter model task by, cam

stack overflow - ServletException java.lang.StackOverflowError thrown sometimes with multiple doGet() calls - Weblogic 10 -

we have application running on weblogic 10 server. while navigating application, randomly users getting following exception trace. code based on servlet/jsp framework. codes going controler.java, basisservlet.java , corresponding servlet. have not been able identify particular flow causing error. random. in local system never able replicate same. in other posts saw "/*" can cause stack overflow issues, confusing me why occurring sometimes. input regarding issue appreciated. <[weblogic.servle t.internal.webappservletcontext@375e95f - appname: 'ebasis', name: '/', context- path: ''] root cause of servletexception. java.lang.stackoverflowerror @ weblogic.utils.stringutils.getstring(stringutils.java:556) @ weblogic.utils.http.bytestostring.newstring(bytestostring.java:14) @ weblogic.ut

HTML form autofill right value -

i've got html form: <form> <input name="name" type="text" class="feedback-input" placeholder="naam" /> <input name="crebonummer" type="number" pattern="\d*" class="feedback-input" placeholder="crebonummer" /> <input type="text" name="opleiding en niveau" class="feedback-input" id="autocomplete" placeholder="opleiding en niveau"> <input type="radio" id="radio1" name="radios" class="feedback-input border-left" value="all" checked=""> <label for="radio1" class="fl border-left">leerweg bbl</label> <input type="radio" id="radio2" name="radios" class="feedback-input border-right" value="false"> <la

excel vba - VBA Code to set the file path dynamically -

i have vba code read xml below strtargetfile = "c:\users\xxxxxx\desktop\xxxxxx\xxxx\xml\details.xml" set wb = workbooks.openxml(filename:=strtargetfile, loadoption:=xlxmlloadimporttolist) is there way remove hardcoding ?? if have xml folder in same folder workbook folder try this: sparentfolder = left(thisworkbook.path, instrrev(thisworkbook.path, "\") - 1) strtargetfile = sparentfolder & "\xml\details.xml" set wb = workbooks.openxml(filename:=strtargetfile,loadoption:=xlxmlloadimporttolist)

perl - Reading UTF8 files with File::Slurp -

i try read html file perl module file::slurp : binmode stdout, ':utf8'; $htmlcontent = read_file($file, {binmode => ':utf8'}); but when print $htmlcontent variable, characters not understood, due french accents or special characters. for example : "plus d'actualit\u00e9s" should "plus d'actualités" i checked encoding of file , it's ok! html document, utf-8 unicode text, long lines, crlf, lf line terminators is there problem module? thanks \u00e9 not utf-8 character, javascript represent of unicode character. need decode content of file encode::javascript::ucs example.

javascript - Photo filter - pixelate (mozaik), rotate 45deg and take color of these squares? -

Image
need algorithm : original: after effect: and after effect want take color of every square ( save x,y,rgb); first idea resize image. if need 32x32 image resize normal image 64x64 , take every second pixel. , every second row move x+1. any better ideas? me important colors info. dont' need image, colors. edit: i found code : http://www.exorithm.com/algorithm/view/pixelate . so think. first rotate image 45deg, procces code, save color of each square, procces data colors matrix transform. possible rotate pixels data 45 deg? p.s. i'm doing in javascript, jq etc.

Regex not matching in C# -

Image
i have following string: string error = "<messages><message severity=\"2\" number=\"16\" text=\"the record case locked user\" /></messages>"; i want match between text=\" , following \ i'm using following expression var regex = new regex(@"text=\\""(.*?)\\"); expresso tells me regex correct. regexr tells me regex correct. but c# disagrees. i've tried groups[] , match.value. \x22 instead of " thought might escape problem. /text=\""(.*?)\/g all, no avail. what missing? use xelement , have xml fragment: var error = "<messages><message severity=\"2\" number=\"16\" text=\"the record case locked user\" /></messages>"; var xe = xelement.parse(error); var res = xe.elements("message") .where(p => p.hasattributes && p.attributes("text") != nul

python - installing Anaconda on windows -

currently have python 2.7 installed, , decided install anaconda (same version). questions are: what safest way it? uninstall python 2.7 first? can move packages installed on old python version manually (without reinstalling them again)? should change in path variable afterwards? i'm working pycharm. there way change automatically interpreter of existing projects? my motivation: i'm in charge of ~50 students (python noobies) in university course. since i'm having difficulties supporting installation of each , every 1 of them, thought moving anaconda can me save time , future problems. since of them started working on projects, want transition clean possible. thanks! anaconda installs separate python, there no need old one. anaconda installer sets path variable automatically. as packages, best bet if there package need doesn't come anaconda install conda, or using pip if isn't available conda. i don't know pycharm if search stackoverf

python - Add elements to inlineformset_factory using the shell -

i need add elements of invoice details using shell inlineformset_factory, models are: class invoicedetail(createupdatemixin): client = models.foreignkey('client.client', verbose_name=_('factura a'), blank=true, null=true, default=none) date = models.datefield() tax = models.floatfield() concept = models.foreignkey(conceptdetail, null=true, blank=true, verbose_name=_('clave concepto')) custom_concept = models.charfield(max_length=150, null=true, blank=true, verbose_name=_('concepto')) amount = models.integerfield(verbose_name=_('cantidad')) fee = models.floatfield(verbose_name=_('honorarios')) duty = models.floatfield(verbose_name=_('gastos')) invoice = models.foreignkey(invoice, null=true, blank=true, related_name='detail_concepts') class invoice(createupdatemixin): invoice = models.charfield(max_length=15, verbose_name=_('número de factura')) # details show whe

css - min/max width/height with multiple values -

i want limit width of <div> no more 50% , and no more 200px . which means, when 50% less 200px , should have same behavior max-width: 50% , otherwise behavior becomes max-width: 200px . how can define css? (without min function, have not been supported yet) <div class="some_element">text here</div> <style> .some_element { background: red; float: left; width: auto; max-width: 200px; max-width: 50%; /* override previous one, want both of them work */ } </style> you cannot set max-width both 200px , 50%. put element in element max-width of 400px: <div id="parent"> <div id="child">text here</div> </div> #parent { background-color: red; max-width: 400px; } #child { background-color: green; max-width: 50%; }

java - In MyBatis, is there any solution for not adding jdbcType when setting null parameters? -

i'm using mybatis-3.2.8.jar , jdk 1.6.0_45. the source table called emp : > empno ename job mgr hiredate sal comm deptno shortcut > > 7499 allen salesman 7698 1981/02/20 00:00:00 1600 300 30 null and sql this: insert emp (empno, ename, job, mgr, hiredate, sal, comm, deptno, shortcut) values (#{empno},#{ename},#{job},#{mgr},#{hiredate},#{sal},#{comm},#{deptno},#{shortcut}); i'm using sql row row. select 1 row insert, again , again. or think table has 1 row. then i'm facing error: org.apache.ibatis.exceptions.persistenceexception: #### error updating database. cause: org.apache.ibatis.type.typeexception: error setting null parameter #7 jdbctype other . try setting different jdbctype parameter or different jdbctypefornull configuration property. cause: com.ibm.db2.jcc.am.sqlsyntaxerrorexception: db2 sql error: sqlcode=-104, sqlstate=42601, sqlerrmc=insert tb_ods_emp2(empno,ename,job,mgr;begin-of-stateme

How to connect android device via bluetooth with matlab 'Instrument Control'-Toolbox? -

Image
i want connect android device on bluetooth matlab exchanging data between matlab , own android app. can't connect via 'instrument control'-toolbox android devices. why? first scaned available devices , tried connect (with "connect"-button) android. i searched , says: instrument control toolbox supports bluetooth serial port profile (spp) supported profiles only spp support so read technical spez. devices , can't find support needed spp bluetooth profile. samsung galaxy young 2 (sm-g 130hn): bluetooth®-profile: hsp, opp, sap, a2dp, pbap, hfp, avrcp, di, hid, hogp, pan, map tech spez. galaxy young samsung galaxy s advance: bluetooth profiles: gap, ssp, sdap, hsp, hfp, a2dp, sap, opp, pbat, map, avrcp, hid tech spez. galaxy s htc 1 m7: common profiles: hsp [headset], hfp [hands-free], a2dp [stereo audio], avrcp [media control], hid [peripherals] tech spez. htc 1 m7 but in android documentation says: the common type of b

Mysql : display one field or another conditionally -

i have 2 tables : table_in_french - french_value table_translated_value - french_value - spanish_value i need browse table_in_french , display linked spanish value if exists or french value if there no translation available. i have tried : select (case when (t1.french_value = t2.french_value) spanish_value else t1.french_value end) label table_in_french t1, table_translated_value t2; but getting many duplicates values. thanks in advance try query: select (case when (t1.french_value = t2.french_value) spanish_value else t1.french_value end) label table_in_french t1 right join table_translated_value t2 on t1.french_value = t2.french_value;

javascript - For slower connection user i want replace video tag with an image tag -

i have placed video in webpage video large in size, load low internet speed connection user. for high internet speed users, video played , low internet speed users, image displayed instead of video(video not played low internet speed user) guys can u please me out of this guys possible r not....! you can use poster attribute in video tag in meanwhile video getting downloaded. <video controls poster="/images/w3html5.gif"> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> browser not support video tag. </video> else if want replace video image change video tag img tag :)

python - Apply function n-times, using output of last as input of next -

for example, when traversing multiple levels hierarchy using dirname typically this. grandparent = os.path.dirname(__file__) grandparent = os.path.dirname(grandparent) or, in case of more levels. grandparent = = os.path.dirname(__file__) x in xrange(5): grandparent = os.path.dirname(grandparent) but wonder if there's less verbose method of doing this? such as grandparent = y(5, os.path.dirname, __file__) where y mysterious function i'm looking for. and if not, such function called? what defining such higher order function yourself: def repeat (f, x, n) : in range(n): x = f(x) return x with f function wish call, x first input in sequence, , n number of times wish call this. you can call instance with: >>> repeat(lambda x: x**2,2,3) 256 >>> repeat(os.path.dirname,'/home/kommusoft/testfolder/sqldump', 2) '/home/kommusoft' if plan walk root of directory, using large number of repetitio

postgresql - SELECT ALL column_names in postgesql -

i'm using postgresql , want create query display column_names in specific table . schema: codes table name: watch_list here column_names in table : watch_list_id, watch_name, watch_description i tried found in web: select * information_schema.columns table_schema = 'codes' , table_name = 'watch_list' it output not wanted. should be: watch_list_id, watch_name, watch_description how this? select table_name information_schema.tables table_schema='public'

uitableview - iOS Swift: Displaying asynchronous data on a TableView -

i have viewcontroller tableview in it, data tableview pulled via http call asynchronously in class. class viewcontroller1: uiviewcontroller, uitableviewdelegate, uitableviewdatasource { override func viewdidload() { super.viewdidload() // additional setup after loading view, typically nib. self.tableview.registerclass(uitableviewcell.self, forcellreuseidentifier: "cell") myhttpclass().getdata()//initiating getting data asynchronously ... } myhttpclass gets data after few seconds asynchronously, not have reference of viewcontroller hand on data (ideally viewcontroller.tableview.reloaddata - need call) is there better way handle this? how ref. viewcontroller instance when myhttp gets data? better way handle this? well, suggest use call back,add input func getdata(callback:()->()){ //when finished callback() } then call myhttpclass().getdata() { () -> () in self.tablevie

slick grid frozenColumn blank when scoll the page -

when use slick grid frozencolumn function. move bottom scrollbar width frozencolumn width. move left scrollbar down quickly. frozencolumn become blank. does bug in slick grid. or need setup slick.grid.js function appendrowhtml code block else if (( options.frozencolumn > -1 ) && ( <= options.frozencolumn )) { appendcellhtml(stringarrayl, row, i, colspan, d); } lost parameter d

objective c - obj-c's class custom initializer doesn't show up in swift -

Image
i knew swift , don't have experience objective-c. here objective-c class want use in swift code websocket.h : #import <foundation/foundation.h> @class httpmessage; @class gcdasyncsocket; #define websocketdiddienotification @"websocketdiddie" @interface websocket : nsobject { dispatch_queue_t websocketqueue; httpmessage *request; gcdasyncsocket *asyncsocket; nsdata *term; bool isstarted; bool isopen; bool isversion76; id __unsafe_unretained delegate; } + (bool)iswebsocketrequest:(httpmessage *)request; - (id)initwithrequest:(httpmessage *)request socket:(gcdasyncsocket *)socket; @property (/* atomic */ unsafe_unretained) id delegate; @property (nonatomic, readonly) dispatch_queue_t websocketqueue; - (void)start; - (void)stop; - (void)sendmessage:(nsstring *)msg; - (void)senddata:(nsdata *)msg; - (void)didopen; - (void)didreceivemessage:(nsstring *)msg; - (void)didclose; @end @protocol websocketdelegate @optional - (void)web

Vb.net application that use a SQL server database - An Undo command -

in standart programs word or excel example , when made changes , when save document , until it's not closed , can go , undo changes step step. is there way implement feature , on vb.net application use sql server database ? thank ! the best idea here maintain logs. (add, edit, delete logs table). and give options user 'revert previous changes', can choose @ point in time wants revert to. can show 'change history' record log purpose.

javascript - Brand new to angular. Making a very simple test app. Can't figure something out -

i've been learning web development 5 months now, , first time trying out angular. when watched tutorial using ng-model , {{curly-brace expressions}} bind data, wanted try out make simple google font pairing app. enter text header, , body, , can choose different fonts drop down menus each test various font pairings. simple idea. , works. 1 problem i'm having making names of fonts in drop-down menus written in font. here's have far (and sorry, css i'm including bunch of @imports fonts work in test environment. kind of ugly): var app = angular.module("app", []); app.controller('fonttester', function($scope){ $scope.fonts=["open sans", "roboto", "roboto condensed", "lato", "oswald","lora","source sans pro", "pt sans", "open sans condensed", "droid sans", "raleway", "montserrat", "ubuntu", "droid serif", &

PHP replace tags with dynamic values including IF condition -

replacing dynamic values in php can achieved using code this: $replace = array('{cover_amt}','{liability_amt}','{total_amt}'); $with = array('90', '90', '0'); $mystring = 'this cover amt : {cover_amt} . liablity amount : {liability_amt} . total amount : {total_amt}'; echo str_replace($replace, $with, $mystring); output: this cover amt : 90 . liablity amount : 90 . total amount : 0 this give correct output. but when value 0 should not displaying text itself. case, total amount should not displayed @ 0. check if condition not great solution mess code if there lots of ‘0’s . if there around 100 array elements, impossible check each values. solution can used number of data inputs great. any 1 great idea achieve this. thanks. why not trying this: <?php $replace = array('{cover_amt}','{liability_amt}','{total_amt}', 'this total amount : 0'); $with = array('90&

c++ - Why can't i use struct nested in a struct as a type to declare variable in a class template? -

this question has answer here: where , why have put “template” , “typename” keywords? 5 answers you see, structs, put structs inside structs , try use these nested structs in class template declare variables. problem is: doesn't seem work expected. minimal example code: #include "stdafx.h" #include <iostream> struct t1 { struct nested { int var1 = 12345; }; }; struct t2 { struct nested { float var1 = 67890; }; }; template <typename t > class proletarian { public: t * t; //works //t::nested * tn; ****** doesn't work! ******* proletarian<typename t>() { t::nested * tnested = new t::nested; //works std::cout << tnested->var1; } }; int _tmain(int argc, _tchar* argv[]) { proletarian<t1> t1

Javascript Object enumeration syntax -

this question has answer here: using variable key in javascript object literal 5 answers i have object: var state = { waiting: 1, ready: 2 } and object getting texts state: var language = { states: { waiting: "waiting..", ready: "ready!" } } i want text directly state this: var state = state.ready; var statustext = language.states[state]; for work need, like, illegal syntax: var language = { states: { state.waiting: "waiting..", state.ready: "ready!" } } but doesn't work, can use text state variable? no, don't. make values sensible instead of magic numbers. in case, make them use strings map key names other object(s) use, , done: var states = { waiting: "waiting", ready: "ready" } var language = { states: { waiting: "waiting..&qu

php - Hide bundled items in cart Woocommerce -

wordpress 4.2.2, woocommerce 2.3.7 , product bundles 4.9.3. when add bundled item cart, cart count appears number of bundle plus bundled items. also, bundled items appear in cart. how can hide them useless element appearance? i don't agree bundled items "useless", bundled items have specific css class, hide them via css: tr.cart_item.bundled_table_item { display: none; }

Assigning a javascript object with and object inside an array -

i curious this. let's have array of objects , create 1 object, lets name array of objects items , object item . i want particular item in array of items using following code: //gets item base on id function get_item(td){ var item = undefined; $.each(items, function(i, val) { if(val.item_id == td){ item = val; } }); return item; } the get_item() gets object matched supplied id. so question this. if changed properties of item changed properties of object associated within array? thank much! what if changed properties of item changed properties of object associated within array? yes. objects not copied. instead, references objects passed around. simplest example: var = []; var b = a; b.push(1); console.log(a); // logs [1] many object-oriented programming languages work this.

eclipse - Filling a HUD in Java -

Image
i've decided on making hud picture above, don't know command in java need use can fill top half , bottom half separately. know how use g.fillrect(); command, , take around twenty of these commands fill said half. public class hud { private player player; private bufferedimage image; private font font; private font font2; private int phealth = player.gethealth(); public hud(player p) { player = p; try { image = imageio.read(getclass().getresourceasstream("/hud/hud_test.gif")); font = new font("arial", font.plain, 10); font2 = new font("sans_serif", font.bold, 10); } catch(exception e) { e.printstacktrace(); } } public void draw(graphics2d g) { g.drawimage(image, 0, 10, null); g.setfont(font2); g.setcolor(color.black); g.drawstring("health:", 30, 22); g.drawstring(&q

javascript - dynamically add list item to ul using jquery -

i have following html structure: <div id="gw-sidebar" class="gw-sidebar"> <div class="nano-content"> <ul class="gw-nav gw-nav-list"> <li class="init-un-active"> <a href="javascript:void(0)"> <span class="gw-menu-text">scenarios</span> </a> </li> //===>need add new list using jquery here </ul> </div> </div> i want add list shown below using jquery class 'init-un-active' shown above: <li class="init-arrow-down"> <a href="javascript:void(0)"> <span class="gw-menu-text">scenario-1</span> <b class="gw-arrow"></b> </a> <ul class="gw-submenu"> <li> <a href="javascript:void(0)">scenario</a> </li> <li> <a href

hex - Converting decimal to hexadecimal byte in Java Card -

i convert decimal (integer or short types) in java hexadecimal byte in java card environment (only supports byte , short types , possibly int types). example: int num = 254 print out result: 0xfd my current method of using switches , if-else handle 256 scenarios totally inelegant , more elegant switches or if-else. the reason want manually handle pkcs 5/7 paddings on java card in event pkcs5 ciphers not available somehow fallback method. there no such thing hexadecimal byte. in java byte consists of 8 bits. when viewed number these bits contain 8 bit two-complement number -128 127. hexadecimals textual representation of values - such java byte - human consumption. integers not supported on java card classic, i'll show how convert short values bytes. if sure short s contains byte in lower 8 bits conversion simple: byte b = (byte) s; if not sure must decide if want allow. if care 8 lower bits: see above. if want have positive number 0..255 stored i

Building YQL Open Data Tables for Facebook -

i have been scouring web researching possibility of sourcing implementation of facebook newest graph api open data table yql , haven't seen any.... is possible implement yql open table facebook's newest graph api? yes possible implement yql open table facebook's newest graph api. first have make sure straightforward api exists that, able create yql open table. can use yql editor me easiest way create yql open table. have fun buddy

java - JACOB throws EXCEPTION_ACCESS_VIOLATION -

we getting exception_access_violation error on our windows server, not able replicate/reproduce error. # # fatal error has been detected java runtime environment: # # exception_access_violation (0xc0000005) @ pc=0x0000000180012df1, pid=1604, tid=4232 # # jre version: 7.0_07-b11 # java vm: java hotspot(tm) 64-bit server vm (23.3-b01 mixed mode windows-amd64 compressed oops) # problematic frame: # c [jacob-1.14.3-x64.dll+0x12df1] java_com_jacob_com_variant_getvarianttype+0x51 # # core dump written. default location: c:\xxx\xxxx\xxxx\hs_err_pid1604.mdmp # # if submit bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # crash happened outside java virtual machine in native code. # see problematic frame report bug. # we using java version 1.7, windows server 2008 r2 enterprise , jacob-1.14.3. assuming error because of jacob-1.14.4.dll not sure why causing issue. if upgrade latest jacob-18m.jar solve issue? can confirm? thanks.