Posts

Showing posts from February, 2010

android - How to connect to specific Wifi Access Point without disabling others? -

i have application needs connect specific wifi access point "network a" activity, switch other unknown user access point general internet access. currently, can achieve enabling network , disabling rest: wifimanager.enablenetwork(network_a, true); but have externally keep track of other networks enabled , re-enable them when activity complete. is there way connect specific network without disabling rest? one option remove network after work done using removenetwork android connect connected network if still around.

java - Opengl multiple glDrawArrays calls -

i have problem vertex array objects in opengl ( java , lwjgl ). program works, have object, can move around it. draw call simple: gl11.gldrawarrays(drawmode, 0, 4); in shader have 1 uniform model, (called model ^^). tried following: (pseudo code) update model draw update model draw again this doesn't work. why? know there instancing, isn't aim here. want draw 2 things 2 draw calls. see first one.. have idea? ** edit ** i hate it. hate principe... again , again forget flip buffer before using in opengl. again. point... first time flipped second time not... can't brain flip buffers -.-

c# - data type mismatch in criteria expression error -

con.close(); cmd = new oledbcommand(@"insert tbl_alltransactions values (@transdate, @transtype, @transdesc, @transamount, @transcategory, @transfreq, @transpayvia, @transpaid, @transtopay, @transnextpay, @transstatus, @transmonth, @transweek, @transyear, @c_name ,@transmode)", con); cmd.parameters.addwithvalue("@transdate", firstpay.toshortdatestring()); cmd.parameters.addwithvalue("@transtype", cbtranstype.text); cmd.parameters.addwithvalue("@transdesc", txtdesc.text); cmd.parameters.addwithvalue("@transamount", txtmoney.text); cmd.parameters.addwithvalue("@transcategory", cbcategory.text); cmd.parameters.addwithvalue("@transfreq", cbfreq.text); cmd.parameters.addwithvalue("@transpayvia", cbpay.text); cmd.parameters.addwithvalue("@transpaid", i); cmd.parameters.addwithvalue("@transtopay", txtpayments.text); if (i <= (totpayments - 1)) { cmd.parameters....

sql - Creating functions in postgresql -

i new sql, please try not overly critical question, need create function return me table (say example "machine") , have column called "aggtablename" , rows filled values derived database. here tried , following error came....so please me in making syntax correct, thanks.. create function aggtable() returns table (machineid, serveraggtablename) $table$ begin return query select m.machineid, m.serveraggtablename machine m end; $table$ language plpgsql; select aggtable(); error: function aggtable() not exist line 1: select aggtable(); ^ hint: no function matches given name , argument types. might need add explicit type casts. the arguments of table you're returning not have type. try adding type such machineid int. check post how can postgres stored function return table

Rails many to many -

i have following situation seems should easy in rails it's escaping me. lets have following many many relationship. user , groups (group being user belongs through 'membership'): class user < activerecord::base has_many :groups, through: :memberships end class membership < activerecord::base belongs_to :users belongs_to :groups end class group < activerecord::base has_many :users, through: :memberships end so query selects more 1 group (so array of groups were, example, in northeast region. this: northeast_groups = group.where("region = 'northeast'") now this: northeast_groups.users.count or better yet, this: northeast_groups.users.each |u| to loop through of users selected groups. is there way in rails? you can this: user.includes(:groups).where(groups: { region: 'northeast' }) attention: you have use relation's name in includes , joins , have use exact table...

php - Laravel max Validator not working -

i'm new laravel. could explain why max validator doesn't work expected in case? $input = ["schoolseatstotal" => '2000']; $rules = ['schoolseatstotal'=>'max:300']; $validator = validator::make($input, $rules); $validator->fails(); //expected: true, actual: false. you have schoolseatstotal string. string data, max value corresponds number of characters. want validate integer instead. so change $input = ["schoolseatstotal" => '2000']; to $input = ["schoolseatstotal" => 2000]; to make sure validating numbers - this: $rules = ['schoolseatstotal'=>'numeric|max:300'];

python - how to get c_void_p to actual structure data -

i'm using types.c_void_p return type 1 of c library function. how retrieve actual data returned data c_void_p. class intint(structure): _fields_ = [('v', c_int), ('value', c_int)] class h(object): ..... def get(self, key): .... key = self.pack(key) self._get = self.clib.get self._get.restype = c_void_p self._get.argtypes = [c_void_p, c_void_p] item = self._get(key) now want retrieve intint structure result item. please me how it.

ios - Trying swipe feature but the object I want to move is not there when I Run it (objective c) -

i'm sorry had ask this. i'm trying implement swipe feature 1 of image view image view follows finger. i'm trying make y coordinate doesn't change. i've been referencing tutorial http://www.raywenderlich.com/62435/make-swipeable-table-view-cell-actions-without-going-nuts-scroll-views however in tutorial uses tableview, want similar using view controller. problem whenever run it, image view doesn't appear. shows white screen without object want able move finger. sorry n00b way of asking. thank much. swipeablecell.m #import "swipeablecell.h" static cgfloat const kbouncevalue = 20.0f; @interface swipeablecell() <uigesturerecognizerdelegate> @property (nonatomic, weak) iboutlet uibutton *button1; @property (nonatomic, weak) iboutlet uibutton *button2; @property (nonatomic, weak) iboutlet uiview *mycontentview; @property (nonatomic, weak) iboutlet uilabel *mytextlabel; @property (nonatomic, strong) uipangesturerecognizer *panrecognizer; ...

c# - How to assign values to an array -

i trying assign invalid characters array , call function checks if entered string text box has invalid characters array in it. string[] invalidchars = new string[3] ("!", "@","#",) i keep getting error under string says string class type , cannot used expression your syntax needs few fixes. here's correct version. string[] invalidchars = new string[] { "!", "@", "#" }; primarily, need use { } instead of ( ).

android - Implementing FloatingGroupExpandableListView in a listview consisting 2 types of headers -

Image
i tried implement floatinggroupexpandablelistview unable modify according custom listview. the below code implements 2 types of headers in list. well, implementing 2 types of header complex task me & within implementing floatinggroupexpandablelistview not easy task , not able customize code according custom listview. please see mycustomadapter class, & please tell me how can modify achieve task ? public class contentsfragment extends listfragment implements ontouchlistener { private mycustomadapter madapter; activity temp = getactivity(); string []s = new string[500]; arraylist<gs> q = new arraylist<gs>(); listview lv; int count=0; @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); dbadapter db = dbadapter.getdbadapter(getactivity()); if (!db.checkdatabase()) db.createdatabase(getactivity()); db.opendatabase(); q = db.getdata(); madapter = new mycustomadapter(getactivity()); madapter.adds...

Oozie: run at some time or at some frequency, whichever comes first -

the benefits of coordinating absolute time (insofar jobs take consistent amount of time) output ready others @ time (e.g. update dashboard during night people see in morning). the benefits of coordinating relative frequency that, if oozie (or it's server) down, no jobs skipped (e.g. daily job might run 2 hours late, not 22 hours late). how can like: start="2009-01-01t21:00z" frequency="${coord:days(1)}" run-if-skipped="true" i.e. when all's well, jobs run daily @ 9pm. if happens oozie (e.g. server rolled) between 8pm , 10pm, once oozie comes @ 10pm, job should run @ 10pm, , tomorrow @ 9pm normal. https://github.com/yahoo/oozie/wiki/oozie-coord-use-cases not sure understand question. if server down, , re-start coordinator, start coordinator start time. also can make job run every hour, check if output folder exist - stop . use decision control node

ios - FMDatabase connection -

i working fmdatabase in ios app opening new connection on every query need do. for example in categorydao getcategoriesforarticle method open new connection. in articledao getarticle open new connection. i thinking on open 1 connection in appdelegate , use connection on queries. good? or better open new connection when need , close connection? yes, open 1 connection , consider using fmdatabasequeue.

Python code crashes when running, but not when debugging (Ctypes) -

i running weird case little class involving ctypes writing. objective of class load matrix in proprietary format python structure had create (these matrices can have several cores/layers , each core/layer can have several indices refer few elements of matrix, forming submatrices). the code test class this: import numpy np reads_mtx import mtx import time mymatrix=mtx() mymatrix.load('d:\\mymatrix.mtx', true) and class created this: import os import numpy np ctypes import * import ctypes import time def main(): pass #a mydll mtx can have several cores #we need class define each core #and class hold whole file class mtx_core: def __init__(self): self.name=none #matrix core name self.rows=-1 #number of rows in matrix self.columns=-1 #number of columns in matrix self.type=-1 #data type of matrix self.indexcount=-1 #tuple number of indices each dimension self.rindex={} #dictionary in...

javascript - Change class of active bootstrap button on hover -

if want change class of bootstrap button on hover jquery, styling of button changes new custom class, add "addclass": <div id="tile-sort" class="btn-group" data-toggle="buttons"> <label id="sort-hello" class="btn btn-primary btn-xs"> <input type="radio" name="sort-option" value="hello">hello </label> </div> the below code works: $('#tile-sort').hover( function() { $('.btn-primary').addclass('sort-hover-nonactive'); }, function() { $('.btn-primary').removeclass('sort-hover-nonactive'); } ); however, if attempt change class of "active" bootstrap button on hover jquery: <div id="tile-sort" class="btn-group" data-toggle="buttons"> <label id="sort-goodbye" class="btn btn-primary btn-xs active"> ...

php - uploading file so what should i do with headers? -

we set image uploading on our server nginx. gets posted /upload , redirects /file processing. file gets uploaded , stored, there headers @ top of file. ------webkitformboundaryquwbabts5uilhgdn content-disposition: form-data; name="picture"; filename="coldplay.jpg" content-type: image/jpeg what this? strip these headers out php , save file again? is uploading files these headers expected behavior? here form: <form action="/upload/" id="upload3" method="post"> <input type="file" id="file" name="picture" value=""/> <input type="submit" onclick="return uploadfiles(this.form);"> </form> and js: <script type="text/javascript"> function uploadfiles(form) { var formdata = new formdata(form); var url = "/upload/"; var xhr = new xmlhttprequest(); ...

intellij idea - Rearranging fields and constants -

Image
i have following lines of code @ top of class: private static final int default_a = 0; private static final int default_b = 1; private int ma = default_a; private int mb = default_b; when use 'rearrange code' action in intellij (or rather, android studio), thinks should stick these together, this: private static final int default_a = 0; private int ma = default_a; private static final int default_b = 1; private int mb = default_b; how can prevent happening when using action? these matching rules: i guess way intellij 'understands' code in humanly readable manner. i'll explain: in code above declaring final variables defaulta , defaultb, , setting value ma , mb. intellij doing setting value of ma , mb after declaration, therefore refactoring code. i not sure if there way change in intellij, way software developed handles declarations , setting of variables in grouped manner more developer friendly, (not make developer forget ma , mb. h...

xpages - Create an iconNote Document in a new database -

this more explicite extension on previous question. from button on xpage create new database targetdb = dir.createdatabase(filename); i copy bunch of stuff targetdb sourcedb. want set launch properties in targetdb problem comes. know can iconnote = targetdb.getdocumentbyid("ffff0010") except there no icondoc in target. have way create doc specific noteid? i tried copying iconnote document sourcedb targetdb not work. changes unid , noteid. can't find database method create icon note. found lots of stuff on how change settings in iconnote, nothing on how create 1 if there not 1 in database. thanks jesse took code , changed ssjs , works fine. var dir:notesdbdirectory = session.getdbdirectory("development"); var newdb:notesdatabase = dir.createdatabase("xpages/install/created.nsf"); var importer:notesdxlimporter = session.createdxlimporter(); importer.setdesignimportoption(6); var dxl:string = "<?xml version='1.0'?>\n...

class - PHP Methods Referencing Each Other causes PHP to return "No Data" -

php methods referencing each other causes php return page says "no data received" i completly lost why happening since both methods belong same class...help please? : () --------- code ----- simplified readability ---- <?php /** * simplified version of situation causing me problems... * each of theses methods needs make call other method */ class someclass { protected static function someprotectedstaticmethod() { someclass::somepublicstaticmethod('some value call make inside class'); return 'some return value'; } public static function somepublicstaticmethod($some_param) { $some_var = someclass::someprotectedstaticmethod(); return $some_var . $some_param; } } $var = someclass::somepublicstaticmethod('some value call make outside class'); ?> i think should return stack overflow error.

screen - Incompatible Android app in PlayStore -

my app "normal" 1 doesn't require special screen size or density. regular 1 activities , layouts base views. not drawing or special graphics. for reason don't remember (and regret) added next compatible-screens code manifest. since finding devices (i cannot specify which) not compatible app anymore. playstore not let them update (well, playstore doesn't display app on those, , if users manually says not compatible). cannot remove code , upload app again because playstore doesn't allow me remove compatible-screens entry. so, question is: code right? have add more possibilities fit every screen (including tablets)? the last user complaint had samsung galaxy star gt-s5282 this code: <compatible-screens> <screen android:screensize="small" android:screendensity="ldpi" /> <screen android:screensize="small" android:screendensity="mdpi" /> <screen android:screensize="smal...

css - sidebar is hanging over page wrapper tag -

in attempt terribly clever , have #secondary sidebar sit on top of slideshow on homepage, have somehow made area dangle on #wrapper on secondary pages. have added removed whole bunch of div tags, nudged things around , tried else can think of. have suggestion how fix this? homepage: http://emgraphics.net/joyful/ , sidebar dangles on other page (the shame!) thanks! you won't have problem once add content pages, though. not sure issue is. absolutely positioned element taken out of document flow, wrapper not take notice of sidebar. alternatively float , give negative top margin on home page.

html - How to fix the absolute position issue? -

i have question regarding absolute position div. i have like <div id='body-container'> <div id='content-wrapper'> contents.... </div> </div> i need make body-wrapper absolute position because of other issues. my css #body-container{ position: absolute; right: 0; left: 0; height: 100%; overflow-y: hidden; } i have encounter problem. inside content-wrapper , have dynamic contents added inside. create unwanted scrollbar , div become scrollable in div. there anyway kill scrolling behavior? much. remove height property #body-container , , fit content's height. no scrollbar. http://jsfiddle.net/qefe5/ edit if need wrapper full height, don't forget set top: 0 property, body won't create scroll: #body-container{ position: absolute; right: 0; left: 0; top: 0; background: silver; height: 100%; overflow: hidden; } updated: http://jsfiddle.net/qe...

Perl string parsing -

friends... i'm trying parse string in perl. for last couple of classes i'm testing oracle tns file , testing variations, particular small if code taking time, please suggest? basically if statement, i'm trying read tns file , put single value in hash reference till if statement gets expected result... get single alias value tns line get sid of alias put distinct sid value hash reference connect database once , not multiple times. first if works connects couple of databases multiple times. code: if /^(([a-za-z][a-za-z0-9]*)(\.([a-za-z][a-za-z0-9]*))*)(\s|,|=)/ { (/\(connect_data\s+=\s+\(sid\s+=\s+(\w+\d+?)(\s+)?\)/) { $hashref->{$1}=""; } } sample file (tnsfile.txt) db1.uk, db2.uk = ( (address = (protocal = tcp)) (connect_data = (sid = db1)) ) db1.eu, db2.ch = ( (address = (protocal = tcp)) (connect_data = (sid = db1)) ) db3.uk = ( (address = (protocal = tcp)) (connect_data = (sid = ...

python - find the maximum occurrence of a string in value for all keys in a dictionary -

i have dictionary object say d = { '25478329': ['17647430', '376088951', '32416061', '43096205'], '43096205': '17647430', '376088951': ['17647430', '25478329', '32416061'], '32416061': ['17647430', '25478329'] } what want find out value has occurred maximum number of times keys, e.g. in above dictionary answer '17647430'. what did is: def di(d): = [] in d.values(): if isinstance(i,str): a.append(i) else: j in i: a.append(j) print most_common,num_most_common = counter(a).most_common(1)[0] print most_common,num_most_common can above code optimized? chain values using itertools.chain.from_iterable() : from collections import counter itertools import chain def di(d): counts = counter(chain.from_iterable( [v] if isinstance(v, str) else v v in d....

javascript - Send file AND html page? -

i'm using express create link users download file. once click link, file downloads computer. for i'm using: res.download('filename.pdf'); easy. is possible either redirect them page or send html page along well? not sure web servers can this. no. in future, think pull off spdy or http 2.0, http 1.1 doesn't allow this. technically can attach data 302 moved response, browser going ignore it.

java - Why is redis throwing NullPointerException running via JUnit with spring and default config? -

i'm working on os x java 7, spring 3.2, jedis 2.1.0, spring-data-redis 1.1.1, trying bare-bones redis set working default redis configuration. meaning haven't put redis.conf file. when redis-server it says started , ready accept connections on port 6379. initially, tried annotated beans redistemplate , jedisconnectionfactory, spring complained couldn't create or find beans, did way. maybe indicating more basic problem. did longer version below, @ least appears create redis , jedis components. here test : @runwith(springjunit4classrunner.class) @contextconfiguration(loader=annotationconfigcontextloader.class) public class redistest { @configuration static class contextconfiguration { } redistemplate<string, string> template; private jedisconnectionfactory getjedisconnectionfactory() { jedisconnectionfactory factory = new jedisconnectionfactory(); factory.sethostname("localhost"); factory.setport(6...

algorithm - Python Numerical Integration for Volume of Region -

for program, need algorithm compute volume of solid. shape specified function that, given point p(x,y,z), returns 1 if p point of solid , 0 if p not point of solid. i have tried using numpy using following test: import numpy scipy.integrate import * def integrand(x,y,z): if x**2. + y**2. + z**2. <=1.: return 1. else: return 0. g=lambda x: -2. f=lambda x: 2. q=lambda x,y: -2. r=lambda x,y: 2. i=tplquad(integrand,-2.,2.,g,f,q,r) print but fails giving me following errors: warning (from warnings module): file "c:\python27\lib\site-packages\scipy\integrate\quadpack.py", line 321 warnings.warn(msg, integrationwarning) integrationwarning: maximum number of subdivisions (50) has been achieved. if increasing limit yields no improvement advised analyze integrand in order determine difficulties. if position of local difficulty can determined (singularity, discontinuity) 1 gain splitting interval , calling integra...

c# - Is there a way to paint a colored border around a Textbox? -

Image
i want create colored border around textbox on windows form, can done in android (with "id" , "packsize" edittext widgets): is possible (without writing gazillion loc , sacrificing chicken)? there borderstyle property, not change color of border. forecolor , backcolor properties nothing helpful. you either: put textbox in larger panel dark backcolor or handle paint event , draw border yourself.

python - Do fixtures defined within a Nose test class get called between functions? -

suppose have test class: class testfoo(): def bar(): #assert stuff def baz(): #assert stuff def setup(): config = {"stuff": "morestuff"} def teardown(): cleanup() are fixtures(setup , teardown) supposed called between function calls (bar , baz)? or setup called when test class gets instantiated? ideally, fixtures called between function calls. i read documentation on , wasn't clear enough me. setup() , teardown() methods called right before , after every test method. if need called once before of test methods in test case class executed - define setupclass() class method, if once after methods executed - define teardownclass() class method.

soap - Java - Web services over JMS -

i'm confused. have situation need accept incoming messages outside company , other technology stacks, fool them, , send response back. i've got both activemq , websphere mq (we're on websphere application server, , i'm trying decide if 1 on other), , understand how set message listeners. think. don't know format incoming message takes. web service , can treated one? or jms message? or hybrid of two? said, i'm totally confused. on great! is soap/http, body of text message has soap message , then, webservice unmarshall payload , java beans. you need 2 queue: request , reply, there no bidirectional comunication same queue try develop jax-ws because , java standard, apis axis less compatible. here example: http://www.ibm.com/developerworks/websphere/library/tutorials/0903_adams/index.html?ca=dat

c++ - DeviceIoControl for SCSI INQUIRY command returns error 50 -

i trying access usb scanner through ioctl commands. on windows 7. did not deal ioctl coding before, first tried following snippet based on find quick search. #include "stdafx.h" #include <stddef.h> #include <windows.h> #include <ntddscsi.h> #include <usbscan.h> typedef struct { scsi_pass_through spt; byte sense[18]; byte data[36]; } sptsd; lptstr errormessage(dword error) { lptstr errortext = null; formatmessage( format_message_from_system |format_message_allocate_buffer |format_message_ignore_inserts, null, error, makelangid(lang_neutral, sublang_default), (lptstr)&errortext, 0, null); return errortext; } int _tmain(int argc, _tchar* argv[]) { handle h = createfile(l"\\\\.\\usbscan0", generic_read|generic_write, file_share_read|file_share_write, null, open_existing, file_attribute_normal, null); if (invalid_handle_value != h) ...

java - Building avahi for use in the Oracle jvm (error: jni.h not found) -

this follow following question: compile errors when defining macro convert case class instance map , back the answer there resolved initial problem -- not installing dependencies. however, have problem because ant clean all still not able find jni.h . possibly because instructions install open jdk 6. there workaround oracle jdk 7. here error i'm getting: myuser@ubuntu:~/downloads/avahi4j-0.1$ ant clean buildfile: /home/myuser/downloads/avahi4j-0.1/build.xml clean: [exec] make: entering directory `/home/myuser/downloads/avahi4j-0.1/src' [exec] rm -f avahi4j_client.o avahi4j_entrygroup.o avahi4j_avahi4jconstants.o thread-watch.o avahi4j_servicebrowser.o avahi4j_serviceresolver.o avahi4j_recordbrowser.o libavahi4j.so ./*~ [exec] make: leaving directory `/home/myuser/downloads/avahi4j-0.1/src' [delete] deleting directory /home/myuser/downloads/avahi4j-0.1/classes init: [mkdir] created dir: /home/myuser/downloads/avahi4j-0.1/classes jnilib: ...

python - Splicing lists within a list -

what's concise way return every fourth number in sublists, treating number lists 1 list? a = [ ['a',[1,2,3]], ['b',[4,5]], ['c',[6,7,8,9,10]] ] i want result this, when printing list a: [ ['a',[1]], ['b',[5]], ['c',[9]] ] i can see how similar splicing single list, in i'd use [::4]. i'm guessing have use here along else, treating number lists 1 list. i'd use itertools.count() , handy generator returns increasing numbers. using that, it's same question asked, still using nested list comprehension: >>> itertools import count >>> c = count() >>> b = [[let, [n n in nums if next(c) % 4 == 0]] let, nums in a] >>> b [['a', [1]], ['b', [5]], ['c', [9]]] which works because first time next(c) called, gives 0, 0 % 4 == 0 keep n , next time 1 don't keep it, etc. [answer original question removing elements:] you can nest list comprehen...

wpf - How does one implement application keyboard shortcuts in Caliburn.Micro -

in larger applications, there can multiple dozens of keyboard shortcuts. users tend expect able remap these, similar options/environment/keyboard section in visual studio 2013. creating form not challenge, nor individual key bindings. what want know how leverage caliburn.micro set these application, window, , control. if caliburn.micro doesn't provide direct mechanism, can nuget, implement, or learn , remain compatible caliburn.micro? thanks david not sure if you're looking caliburn.micro have sample create key bindings in wpf, it's available on github . the important parts see in bootstrapper adds custom code new sort trigger , in shellview.xaml using event. this should enough create key bindings appropriate scope mentioned. what you're looking more complicated (especially around remapping) sample should on way. update : @ creating dictionary mapping "command name" key combination. rather modifying parser create key trigger have custo...

c++ - regex("(abc|aa.*|bb.*)") Vs regex("(aa.*|bb.*|cc.*)"); -

this question has answer here: is gcc 4.8 or earlier buggy regular expressions? 3 answers i encounter weird problem when using regex in c++11 (ubuntu 14.4 ,gcc 4.8.2) #include <iostream> #include <regex> using namespace std; int main() { regex r("(abc|aa.*|bb.*)"); cout<<regex_match("bb11",r)<<endl; //return false cout<<regex_match("aa11",r)<<endl; //return true cout<<regex_match("abc",r)<<endl; //return true return 0; } while int main() { regex r("(aa.*|bb.*|cc.*)"); cout<<regex_match("bb11",r)<<endl; //return true cout<<regex_match("aa11",r)<<endl; //return true cout<<regex_match("abc",r)<<endl; //return false return 0; } i wondering why "bb11...

Google Sheets Scripts and Trendlines -

this question first scripts, because missing something. looking implementing them. when go "script editor" have create new "project" , save something. should script not attached spreadsheet? but if ignore strange fact , open editor , copy , paste nice script in there, how run in spreadsheet? can see if go spreadsheet , refresh page new menu item appears, makes me think script running, script saved? overview of going on in google scripts awesome. the overall problem attempting solve: want spreadsheets able plot trendlines. thought solution write script , apply spreadsheets. ideal script have menu item trendlines, , allow me select data need trendline. have advice or scripts this? not programmer can learn basics if need to. feature should exist. can't remember ever making scatterplot , not plotting trend , equation. help. first of all, you're asking lot of questions. as commented above zig mandel, need read documentation first. here links...

java - What are these two extra bytes in an ObjectOutputStream file? -

Image
i came across problem while working on question raised earlier. this specific objectinputstream , not binary reading in general, title may misleading. basically problem there goes this: author has serialized hashmap of strings doubles. author's custom serialization format each entry in hashmap pretty simple int n // length of string key 4-byte integer byte[n] key // string of length n double value // value associated key now reason, during serialization process, 1 of strings 2010-00-008.html serialized 2 bytes, shown here. so instead of 16 bytes being written, 18 bytes written instead. bound cause problems because still says string 16 bytes long. however, reason, can write hash map out , read in perfectly! seems given 18 byte string, can read 16 bytes , still read whole thing. test code here's code. it's code in other question except made should able change path , run it. after run it, you'll sequence of write statements followed sequen...

html - CSS accordion pictures don't show on WordPress site -

i'm sure missing simple eluding me. trying css accordion work , have each section link page. here source http://www.webarti.com/css3-horizontal-accordion-slider/content-slider/ here current test site: http://g6t.test-lca-website.com/ i have accordion part working (with 1 odd quirk, first bar disappears when move second bar, can dealt little later) pictures not show @ all. right have 1 picture assigned "payment processing" slider not showing. this code: <!-- css3 accordion --> <div class="accordion"> <!--[if ie ]><ul class="accordion-ie"><![endif]--> <!--[if !ie]>--><ul><!--<![endif]--> <li> <a href="##"><span>payment processing </span></a> <div> <img border="0" alt="" src="img/blank-card-bills.jpg"> </div...