Posts

Showing posts from January, 2012

Is it possible to specify the order of the tests in Visual Studio c#? -

Is it possible to specify the order of the tests in Visual Studio c#? - i have several tests in same namespace. did not utilize naming convention test1, test2, ... etc each of unit tests. so, when run tests, don't run in order want them to. there way order tests? my tests not fail if don't execute them in particular order. however, wanted execute them in order in test case spreadsheet. the reply looking yes. although agree principles of isolation there scenarios need test sequence of events. in vs 2010 can create new 'ordered test' bundle , test set of tests sequentially. c# visual-studio unit-testing testing

Configuration for ProjectReference in MSBuild -

Configuration for ProjectReference in MSBuild - is possible set configuration of projectreference in msbuild? scenario: have build script (web deploy) has number of configurations difference has how deployed , not build self. hate have maintain configurations solution/projects build part of deploy process because need configurations deployment. way can accomplish this? another possible method of setting projectreference configuration , platform utilize property picked msbuild's reference handling code called setplatform , setconfiguration . example: <projectreference include="path project.projext"> <setplatform>platform=x64</setplatform> <setconfiguration>configuration=release</setconfiguration> </projectreference> msbuild msbuild-projectreference

.net - C#, how to hide one form and show another? -

.net - C#, how to hide one form and show another? - when project starts form1 loads , checks programme license server, if everything's ok should: show form2 , close form1. afterward when user close form2 "x", programme should end. what think best way of doing it? so far got form2.show :) ... if (responsefromserver == "ok") { form2 form2 = new form2(); form2.show(); } thanks! as know if utilize form1 main form can't close close application (unless customize way app starts, that's more advanced). one alternative start creating form2 main form, maintain hidden, create , show form1, , when license check finished, close form1 , create form2 visible. or can start showing form1 , when license check done, phone call form1.hide() , create , show form2. when form2 closed user, phone call form1.close() in form2.closed event handler: class form1 { private void form1_load(object sender, eventargs e) { // ...

html - Have unchecked checkbox yield a value in Django -

html - Have unchecked checkbox yield a value in Django - i'm asking users of django app lot of yes/no questions, , i'd using checkboxes rather radio buttons. problem want value each checkbox, instead of each 1 checked. i found trick using additional hidden checkboxes, looks nice hack, one of comments raised doubts in mind: this not correct. both values submitted, html allows [multiple] values same name. is true? if so, how django httprequest.post handle multiple values same name/key? since html allows users submit multiple values single key, django has utilize specialized info construction accommodate possibility. result multivaluedict, request.get , request.post instances of under hood. can browse code construction here: http://djangoapi.quamquam.org/trunk/django.utils.datastructures.multivaluedict-class.html the short story though can access first value simple dict lookup request.post['mykey'] , list of values request.post.getlist(...

sql - How to pipeline a function with a dynamic name of columns? -

sql - How to pipeline a function with a dynamic name of columns? - i need create study retrieve expenses lastly 12 months. depends on day execute study name of columns of study alter (for illustration if execute study in jul, should retrieve twelve columns expenses in jun, may, apr, march. name of columns lastly 12 months). the next pl/sql code creates view dinamic name columns depending on sysdate. declare vsql varchar2(4000); begin vsql := 'create or replace view ifsapp.rldatetest select ip.part_no, ifsapp.rd_purch_demand_qty_issue_api.get_avr_usage_per_month(ip.contract,ip.part_no ,to_char(sysdate, ''mm'')-1) ' || **substr(add_months(sysdate, -1),4,3)** || ', ifsapp.rd_purch_demand_qty_issue_api.get_avr_usage_per_month(ip.contract,ip.part_no ,to_char(sysdate, ''mm'')-2) ' || **substr(add_months(sysdate, -2),4,3)** || ' ifsapp.inventory_part ip ip.contract = ''s03'...

c# - 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine -

c# - 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine - i'm trying info excel file on button click event. connection string is: string connstring = "provider=microsoft.ace.oledb.12.0;data source=c:\\source\\sitecore65\\individual-data.xls;extended properties=excel 8.0;"; when click on button, got next error: the 'microsoft.ace.oledb.12.0' provider not registered on local machine. i have no clue how prepare this. operating scheme windows 7. well, need install it. you're looking for: the 2007 office scheme driver: info connectivity components. c# vb.net excel ole

android - How force aplication always run in its own task? -

android - How force aplication always run in its own task? - i think app manager runs application after installation in wrong way. runs applications in task. when press home , press application icon runs sec task application. i tested it. made 2 applications app1, app2. app2 has 2 activities , b. app1 runs app2 in simplest way. intent intent = new intent(intent.action_run); intent.setcomponent(new componentname("org.app2.test", "org.app2.test.screen1")); test 1. run app1. app1 runs app2 activity a. acctivity runs activity b. press home. press app2 icon. can see app2 activity a. (wrong. have tasks app2) that changed code launching app2. intent intent = new intent(intent.action_main, null); intent.addcategory(intent.category_launcher); intent.addflags(intent.flag_activity_new_task); intent.setcomponent(new componentname("org.app2.test", "org.app2.test.screen1")); test 2. run app1. app1 runs app2 activity a. acctivity runs ...

gnuplot - How to specify the start of the x-axis at 1 instead of 0 -

gnuplot - How to specify the start of the x-axis at 1 instead of 0 - i utilize gnuplot plot execution times measured on cpu , gpu depending on info size. have 2 files execution times in it. plotting them straight forward. set title "cpu vs gpu" set xlabel "number of particles (* 10'000)" set ylabel "time in microseconds" plot "cputimes.txt" title "cpu" linespoints, \ "gputimes.txt" title "gpu" wit the resulting plot can found here: 1 i tried utilize xtics doesn't shift x-axis start @ 1 starts ticks @ 1. how can shift x-axis starts @ 1 , ends @ 50? update datafile cputimes.txt below 64780 129664 195490 266697 327871 391777 459150 517999 582959 647984 717377 790415 830869 900475 959599 1026041 1092899 1156022 1297471 1286325 1349227 1415936 1482857 1539580 1607389 1673436 1737098 1801568 1874431 1935975 2006892 2053077 2129867 2195117 2254467 2314478 2373546 2435416 2506850 25873...

android - streaming .m3u audio -

android - streaming .m3u audio - i want play streaming radio( .m3u format ), not know how it. this illustration how seek playing: final mediaplayer mp = new mediaplayer(); seek { mp.setdatasource("url.m3u"); } grab (illegalargumentexception e) { // todo auto-generated grab block e.printstacktrace(); } grab (illegalstateexception e) { // todo auto-generated grab block e.printstacktrace(); } grab (ioexception e) { // todo auto-generated grab block e.printstacktrace(); } seek { mp.prepare(); mp.start(); } grab (illegalstateexception e) { // todo auto-generated grab block e.printstacktrace(); } grab (ioexception e) { // todo auto-generated grab block e.printstacktrace(); } this code not work. help please. you have download...

c# - How to use the IEqualityComparer -

c# - How to use the IEqualityComparer - i have bells in database same number. want of them without duplication. create compare class work, execution of function makes big delay function without distinct, 0.6 sec 3.2 sec! am doing right or have utilize method? reg.addrange((from in this.datacontext.reglements bring together b in this.datacontext.clients on a.id_client equals b.id a.date_v <= datefin && a.date_v >= datedeb a.id_client == b.id orderby a.date_v descending select new class_reglement { nom = b.nom, code = b.code, numf = a.numf, }).asenumerable().distinct(new compare()).tolist()); class compare : iequalitycomparer<class_reglement> { public bool equals(class_reglement x, class_reglement y) { ...

Running another android app from my app? -

Running another android app from my app? - when press button want run separate app made, want somehow bundle these 2 apps user needs download 1 app. i'm aware of starting intent this: intent intent = new intent(intent.action_main); intent.setcomponent(new componentname("com.a.myapp","com.a.myapp.mainactivity")); startactivity(intent); but assumes i've downloaded app "com.a.myapp" separately. what's best way bundle "com.a.myapp" existing app? the easiest way you're trying create new project contains both apps. since apps started initial entry activity , can maintain them in separate packages long have same root name. app1 in bundle com.a.myapp.myapp1 . sec app "myapp2" in bundle com.a.myapp.myapp2 . in package section of project's manifest file, set "com.a.myapp" root. register activities in manifest file of entire project. app1 can invoke activity in app2 phone call th...

sql - SSIS package to execute a stored procedure for each xml document is a specific directory -

sql - SSIS package to execute a stored procedure for each xml document is a specific directory - i have table column type of xml. have directory can have 0 n number of xml documents. each xml document, need insert new row in table , throw xml xml column. to fit our clients needs, need perform operation using ssis package. plan utilize stored procedure insert xml, passing in file path. i've created stored procedure , tested, functions expected. my question is, how execute stored procedure ssis bundle each xml document specific directory? thanks in advance help. - you don't need utilize stored procedure this. can of within ssis package. here's how: have for-each loop task read available files in folder. set total path of file variable called xmlfilename inside for-each loop, utilize data-flow task read contents. the ole_src reading same sql server , it's statement select getdate() currentdatetime the derivedcolumn component creates colum...

ubuntu - Memcached PHP client library bug? -

ubuntu - Memcached PHP client library bug? - i've been using php 5.2 , apache 2.2 , memcached 1.2.6 long time, client-side sharding across number of hosts. has worked fine afaict. recently, i've started upgrading memcached clients php 5.3. comes ubuntu server 10.04 lts. however, i'm starting see weird bug, value other key comes back, 1 time every 1,000,000,000 requests or (that know of). have not been able yet decide whether corrupting on store or load (debugging happens after info has expired). corrupted info returned has been value totally different key, , has been single element within array value key supposed have. searching web finds no obvious mention of these symptoms, that's hard search hits for, because discussions related application-level race status bugs. have proven myself not 1 of those. so, known bug somewhere in stack? others similar experiences? in advance! to reply questions: yes, it's old version. it's been working long tim...

xcode - IOS: show a view when an app start -

xcode - IOS: show a view when an app start - everytime launch app want show view , view should disappear on own (example @ start see view in 3 sec disappear alpha alter 1.00 0.00) how can it? you can nowadays image in modal view app delegate. can utilize simple animation transition alpha 1.0 0.0, e.g. imageview.alpha = 1.0; [uiview beginanimations:nil context:null]; { [uiview setanimationcurve:uiviewanimationcurveeaseinout]; [uiview setanimationduration:3.0]; [uiview setanimationdelegate:self]; [uiview setanimationdidstopselector:@selector(dismissmodalselector)]; imageview.alpha = 0.0; } [uiview commitanimations]; use dismissmodalselector set method removes modal view. it help set default.png image 1 wish display, , may want have shorter animation since default appear sec or two. ios xcode view

iphone - Organiser wont install profile to device? -

iphone - Organiser wont install profile to device? - have error when trying build device saying valid profile not available decided create fresh 1 but, device not install through organiser - can click 'add profiles' , have on desktop, can select nil changes when goes organiser. have profiles showing under 'profiles' won't add together device itself. have dragged install xcode normal , comes in target , build settings. any thoughts on whats happening? reading! in order install provisioning profile device, device should added provisioning profile. check out adding devices team provisioning profile, post. iphone objective-c ios xcode install

php - Convert IPV6 to nibble format for PTR records -

php - Convert IPV6 to nibble format for PTR records - i need convert ipv6 address nibble format utilize in creating ptr records dynamically. here info got wikipedia: ipv6 reverse resolution reverse dns lookups ipv6 addresses utilize special domain ip6.arpa. ipv6 address appears name in domain sequence of nibbles in reverse order, represented hexadecimal digits subdomains. example, pointer domain name corresponding ipv6 address 2001:db8::567:89ab b.a.9.8.7.6.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa. the thing find regarding nibbles in pack function, http://www.php.net/pack. not find solutions examples googling issue. any help appreciated. given suitably modern version of php (>= 5.1.0, or 5.3+ on windows), utilize inet_pton function parse ipv6 address 16 byte array, , utilize standard string ops reverse it. $ip = '2001:db8::567:89ab'; $addr = inet_pton($ip); $unpack = unpack('h*hex', $addr); $h...

charts - color fill in column series in flex conditional -

charts - color fill in column series in flex conditional - i want create daily build chart 1 column 1 build, 1 build have 3 series eg feature 1, feature 2, feature 3. need fill color of series dynamically based on feature pass or fail. eg if in particular build feature 1: pass, feature 2: fail, feature 3:fail color sequence of column green, red, red. kindly help me how implement logic , where? (if in fillfunction) have looked here ? http://help.adobe.com/en_us/flex/using/ws2db454920e96a9e51e63e3d11c0bf69084-7c52.html flex charts

Delphi - Show modal report with Crystal Reports -

Delphi - Show modal report with Crystal Reports - i'm using crystal reports 7 , delphi 7 , wondering how open modal preview of report. crpe1.execute; opens non modal form, can't find way open modal one... help! it's long time didn't work tcrpe , delphi7. i think can alter tcrpe.output:= towindow preview , tcrpe.output:= toprinter print direct printer. i don't know because don't have delphi7 , tcrpe on pc. use crpe1.show, have preview dialog. delphi crystal-reports

perl - How to convert 64 bits integer represented as decimal string into hex string -

perl - How to convert 64 bits integer represented as decimal string into hex string - how convert 64 bits integer represented decimal string hex string? need in perl on scheme doesn't back upwards quads. use math::bigint; $decimal_string = '123456789123456789'; $hex_string = math::bigint->new($decimal_string)->as_hex(); perl

How to display php echo the same as you see in mysql -

How to display php echo the same as you see in mysql - i have mysql table called _post , have column called message (text) when insert row table text looks in phpmyadmin this right how want display how much utilize computer? might spending much time..... but when echo out of database looks this how much utilize computer? might spending much time..... thank you you should utilize nl2br() function. php mysql

android - Why are clicks in my ExpandableListView ignored? -

android - Why are clicks in my ExpandableListView ignored? - i have alertdialog populated expandablelistview. list works perfectly, reason clicks ignored. apparently click handler never called. this code: alertdialog.builder builder = new alertdialog.builder(this); builder.settitle("select something"); expandablelistview mylist = new expandablelistview(this); myexpandablelistadapter myadapter = new myexpandablelistadapter(); mylist.setadapter(myadapter); mylist.setonitemclicklistener(new expandablelistview.onitemclicklistener() { @override public void onitemclick(adapterview<?> a, view v, int i, long l) { seek { toast.maketext(expandablelist1.this, "you clicked me", toast.length_long).show(); } catch(exception e) { system.out.println("something wrong here "); } } }); builder.setview(mylist); dialog = builder.create(); dialog.show(); if instead seek populate alertdia...

request.querystring - CodeIgniter QueryStrings -

request.querystring - CodeIgniter QueryStrings - first of must point out not programmer, have no want programmer, , application speaking of not written me. average end user trying create things work need them work. beingness said, two simple questions: 1.) why urls not work codeigniter powered apps ? http://somesite.com/search?q=something 2.) how forcefulness work ? i have read atleast 2 dozen articles on issue , nil has worked. have enabled querystrings in config file, have alter url_protocol path_info, have set forms post , nil works. help... ok, seek changing $config['uri_protocol'] = "path info"; $config['uri_protocol'] = "request_uri"; if still not work, check .htaccess file rule removes index.php url; of form: rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/?$1 [l] if rule exists, alter lastly line `rewriterule ^(.*)$ index.php/$1 [l] notice, ...

Any way to get a figure from Python's matplotlib into Matlab? -

Any way to get a figure from Python's matplotlib into Matlab? - i'm processing info research project, , i'm writing scripts in python. i've been using matplotlib create graphs nowadays supervisor. however, die-hard matlab user , wants me send him matlab .fig files rather svg images. i've looked on can't find job. there way either export .fig files matplotlib, convert .svg files .fig, or import .svg files matlab? thanks in advance help. without access (or experience matlab) going bit tricky. amro stated, .fig files store underlying data, , not image, , you're going have hard time saving .fig files python. there couple of things might work in favour, these are: numpy/scipy can read , write matlab .mat files the matplotlib plotting commands very similar to/ based on matlab ones, code generate plots info going identical (modulo round/square brackets , 0/1 based indexing). my approach write info out .mat files, , set plotting commands...

c# - Difference between in doing file copy/delete and Move -

c# - Difference between in doing file copy/delete and Move - what difference between copying file , deleting using file.copy() , file.delete() moving file using file.move() in terms of permission required these operations there difference? help much appreciated. file.move method can used move file 1 path another. method works across disk volumes, , not throw exception if source , destination same. you cannot utilize move method overwrite existing file. if effort replace file moving file of same name directory, ioexception. to overcome can utilize combination of re-create , delete methods c# .net file file-io

unicode - Check valid string encoding with PHP's intl (ICU) features -

unicode - Check valid string encoding with PHP's intl (ICU) features - using features available in php's intl wrapper icu, how go checking validity of string's encoding? (e.g. check valid utf-8) i know can done mbstring, iconv() , pcre i'm interested in intl question. uconverter can used since php 5.5. manual doesn't exist. see https://wiki.php.net/rfc/uconverter api. function replace_invalid_byte_sequence($str) { homecoming uconverter::transcode($str, 'utf-8', 'utf-8'); } function replace_invalid_byte_sequence2($str) { homecoming (new uconverter('utf-8', 'utf-8'))->convert($str); } function utf8_check_encoding($str) { homecoming $str === uconverter::transcode($str, 'utf-8', 'utf-8'); } function utf8_check_encoding2($str) { homecoming $str === (new uconverter('utf-8', 'utf-8'))->convert($str); } // table 3-8. utilize of u+fffd in utf-8 conversion // http:/...

WinMerge via git difftool keeps prompting for second file -

WinMerge via git difftool keeps prompting for second file - i used @vonc's excellent instructions configure development scheme git difftool <branch1> <branch1> invoke winmerge. here did: placed next in ~/.gitconfig : [diff] tool = winmerge [difftool "winmerge"] cmd = winmerge.sh \"$local\" \"$remote\" [difftool] prompt = false created /usr/bin/winmerge.sh next content: echo launching winmergeu.exe: $1 $2 "c:/program files (x86)/winmerge/winmergeu.exe" -e -ub "$1" "$2" now, when seek launch winmerge via git difftool <branch1> <branch1> , receive seems right parameter passing: launching winmergeu.exe: /tmp/21qmvb_file1.c /tmp/1acqik_file1.c but, unusual reason, instead of winmerge displaying 2 files side-by-side, prompts entering first file right-side, sec file accepted left-side: why happening? did miss in configuration steps? p.s. when type on com...

Use jQuery dataTables with tables generated by ajax callbacks using tmpl -

Use jQuery dataTables with tables generated by ajax callbacks using tmpl - i using jquery templates , datatables plug-in create grids in application. in cases invoke asmx web service via ajax phone call , in callback function render output using tmpl command , apply datatables plug-in generated table. i'm having difficulties in updating datatables grid after deleting, inserting or updating show changes , docs have not been much help. has else done similar this? best way update grid display? template code <script id="approletemplate" type="x-jquery-tmpl"> <tr id="${approlecode}approle" onclick="selectapprole('${approlecode}');" class="approlerec"> <td id="approlecode${approlecode}" class="datagrid">${approlecode}</td> <td id="approledesc${approlecode}" class="datagrid">${shortdesc}</td> </tr> </script...

packages - Can't use awgn on Octave Windows -

packages - Can't use awgn on Octave Windows - i know awgn in communications package. installed octaveforge , still error: help: 'awgn' not found when type help awgn as woltan indicated bundle installed not loaded. problem solved with pkg load communications windows packages octave

cocos2d iphone - need help to create following motion -

cocos2d iphone - need help to create following motion - i want create next motion using moveto or moveby methods of cocos2d when touch object should move there.is possible in cocos2d? (void)cctouchesbegan:(nsset *)touches withevent:(uievent *)event{ for( uitouch *touch in touches ) { cgpoint location = [touch locationinview: [touch view]]; location = [[ccdirector shareddirector] converttogl: location]; //while creating sprite set sprite.tag=2; ccsprite *spr=[self getchildbytag:2];//use sprite tag while creating id move = [ccmoveby actionwithduration:4 position:location]; [spr runaction:move]; cocos2d-iphone

.net - What is the correct way to end a System.Threading.Tasks.Task? -

.net - What is the correct way to end a System.Threading.Tasks.Task? - as per title really. i have long running task polls message queue. occasionally may wish stop task, work , start again. right way of doing this? the proper way of stooping tasks using cancellation tokens. .net multithreading task

How to make an "out-of-date" notification for a MySQL database? -

How to make an "out-of-date" notification for a MySQL database? - i'm of mysql newbie, , wondering if there way set notification scheme e-mail notification sent time entry hasn't been updated specific amount of time (say, 6 months). preferably, done specific category rather row. tips? thanks! you can add together field storing timestamp of lastly update, , run daily job (very little script) mysql database notifications

c# - Linq from TABLE select * -

c# - Linq from TABLE select * - i need select of fields table seek using next code , error notification class name not valid @ point from item in context.createquery<permitdocumentfields>() item.id == new guid(request["view"]) select new { permitdocumentfields } how create stuff work from table select * ? from item in context.createquery<permitdocumentfields>() item.id == new guid(request["view"]) select item check post more detail : sql linq ( visual representation ) simple select select filter , select new note : select new require when want build new object only. c# .net asp.net linq linq-to-sql

extjs - how to add menu in a button -

extjs - how to add menu in a button - i want have menu in button drop-down without key "text" in ext js 4. have array me required field shown in button. , associating array in menu alternative programatically. array not have "text" column. please help. regards, ranjeet kanth ext.create('ext.button.button', { x: 5, y: 5, text: 'add language', showtext: true, width: 120, menu : menu1 }); var menu1 = { items: [{entryname:'english'},{entryname:'english(us)'}] }; i think you're using wrong component... should using split button: ext.create('ext.button.split', { ... }); extjs

Making an interface visible across WCF web services -

Making an interface visible across WCF web services - i declare interface in web service layer , have caller create objects of interface type via proxy , utilize them phone call service methods. however, when decorate interface datacontract attribute, error saying attribute can applied class, struct , enum. don't think servicecontract attribute makes sense, interface trying expose used info transfer purposes. noticed when interface decorated servicecontract, wasn't displayed in proxy class created. best practice go this? you cannot that. "datacontract" interface cannot exposed part of metadata. if share interface (in assembly) clients not able send implementation service because receiving side needs real type deserialized instance. wcf

asp.net - Connection String to access 2007 -

asp.net - Connection String to access 2007 - im using code connect access 2007 database : public void retrievedata(){ oledbconnection conn=null; oledbdatareader reader=null; string strconnection= @"provider=microsoft.ace.oledb.12.0;data source=c:\\users\\pc\\documents\\school.accdb;persist security info=false;"; seek { conn = new oledbconnection(strconnection); conn.open(); oledbcommand cmd = new oledbcommand("select * class", conn); reader = cmd.executereader(); datalist1.datasource = reader; datalist1.databind(); } grab (exception e) { response.write(e.message); response.end(); } { if (reader != null) reader.close(); if (conn != null) conn.close(); } } but when run it jus give blank page.in debug mode can see database property of co...

modular - DefaultController in Yii. Question of naming -

modular - DefaultController in Yii. Question of naming - i create 2 modules yii framework gii. each module creates own default controller class called "defaultcontroller". but think wrong, believe should "module1_defaultcontroller" , "module2_defaultcontroller" zend framework. is true? if so, how rename controllers? the file class defaultcontroller won't included yii unless request action module. prevent duplicate class name error (which guess suspect) because no 2 module actions can called @ same time (this design). yii modular

sql - How do I delete records in MySQL and keep the lastest date -

sql - How do I delete records in MySQL and keep the lastest date - example table_1 id email reply updatedate 1 xxx.@xx.com 1 2011-07-02 2 xxx.@xx.com 3 2011-07-11 3 vvv.@xx.com 3 2011-07-12 4 vvv.@xx.com 5 2011-07-13 5 xxx.@xx.com 5 2011-07-14 6 xxx.@xx.com 4 2011-07-14 7 xxx.@xx.com 4 2011-07-14 8 zzz.@xx.com 4 2011-07-15 how delete records maintain latest updatedate and result : id email reply updatedate 4 vvv.@xx.com 5 2011-07-13 7 xxx.@xx.com 4 2011-07-14 8 zzz.@xx.com 4 2011-07-15 you utilize temporary variable store highest date , seperate query delete < that. remember variables connection specific. select max(updatedate) table_1 @tempupdatedate delete table_1 updatedate < @tempupdatedate mysql sql

c# - What do I use for signal processing and GUI development? -

c# - What do I use for signal processing and GUI development? - many questions have been asked around lines, can't find summary of available options , ups , downs. in world amazing programmer, build propellerhead's reason. have different channels beingness processed in real-time , able create nods , buttons modify parameters of processing functions. some friends have given me advice how create possible: c++ / qt c# create nice guis , suffer loss of performance c++ processing / c# gui working dlls so best option? there other ways it? different paths take it? why alternative two, "c# create nice guis" require "suffer loss of performance"? just create gui in whatever framework find convenient, , decouple realtime logic please. c# c++ user-interface signal-processing

Can array index be floating in C#.net? -

Can array index be floating in C#.net? - i have array in c#, , logic stuck , can work if can have floating indexes. can day 0.5 or 2.5 that days[day, col]=1; please allow me know solution you can write indexers using type like, e.g. public double this[double x, int y] { { ... } set { ... } } you can't index array non-integer though. c# .net asp.net

php - Defining A Custom Class with Text Input values -

php - Defining A Custom Class with Text Input values - i have question masses out there regarding trying input values text input box custom class. have custom class named company properties correspond values in mysql database. so created input ui on client application calls out address, name, zip, phone, etc. - there button submit values database creation. here's question: how take each individual textinput.text property , 'mesh' them company object send server? php written takes in argument this: public function createnewcompany (company $item) { ....... so right way send them in? or??? there total of 11 things (properties) need submitted. usual - help appreciated. thank in advance time , assistance! -cs here's illustration think you'll find helpful : http://wadearnold.com/blog/zend-amf-links if take peek @ that, it's doing exact type of stuff you're trying do, clearly. i'll summarize of the basic parts you... wha...

How do I handle and properly version-control a Phonegap iOS/Android project? -

How do I handle and properly version-control a Phonegap iOS/Android project? - i have been investigating phonegap method of deploying app both android , ios. however, seems depending on device programming for, there different set of instructions. how set 'project' both xcode , ant in separate directories both point same set of mutual assets? , how version command this...what should .hgignore , necessary maintain around? we have www folder html, js, css etc app , folder next contains xcode project , android project write simple script re-create www code platform specific projects ... of made more simple tools github.com/brianleroux/cordova you check out build.phonegap.com android ios xcode cordova

asp.net - Empty DropDownList on Page Load -

asp.net - Empty DropDownList on Page Load - i have dropdownlist beingness populated items coming through databinding wcf webservice. however, whenever first start page first item in list gets selected automatically, while start blank. perhaps solve adding blank item on top of list's items, don't want blank item show 1 time users clicks dropdownlist . can accomplish in easy way? ddl.insertat(0, new item('','0')); ddl.attributes["onclick"] = "if(this[0].value=='0') this.remove(0);"; asp.net wcf data-binding drop-down-menu

How to install module? strawberry perl issues -

How to install module? strawberry perl issues - i trying install perl module withint strawberry perl on windows 7. i'm running below command, , getting slew of messages don't understand. looks getting 500 errors, though page isn't reachable. however, when point the mirrors in broswer have no problem accessing ftp directories. have little perl experience on linux, , none on windows. tried manually adding mirror urllist, , don't think helped. suggestion appreciated. c:\program files> cpan win32::ie::mechanize cpan: lwp::useragent loaded ok (v5.835) cpan: time::hires loaded ok (v1.9721) fetching lwp: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz lwp failed code[500] message[can't connect cpan.strawberryperl.com:80 (bad hostname 'cpan.strawberryperl.com')] warning: no success downloading 'c:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp5264'. giving on it. fetching lwp: ftp://mirror.teklinks.com/cpan/authors/01mailrc.txt.gz l...

php - When using Kohana DB, how does one avoid duplicate code when needing a count for pagination? -

php - When using Kohana DB, how does one avoid duplicate code when needing a count for pagination? - using kohana query builder, possible build query piece piece. then execute count on said query. then execute query itself. all without having write duplicate conditionals... 1 count , 1 results... adding db::select(array('count("pid")', 'mycount')) to main query results in getting 1 record. is maybe possible execute count, , somehow remove array('count("pid")', 'mycount') from select... right way can think of find , replace on sql code itself, , running said code sql... there must improve way though... hope... thanks! to utilize 3 methods. first 1 returns paginated results, sec 1 gets count. third, private method, holds mutual conditions used #1 , #2. if query needs utilize joins or wheres or that, goes #3. way there no need repeat query. /* 1 */ public function get_stuff($pagination = fals...

coldfusionbuilder - Cant get contents of tag to show for coldfusion builder 2 extension dialog -

coldfusionbuilder - Cant get contents of <body> tag to show for coldfusion builder 2 extension dialog - here code... <cfoutput> <cfheader name="content-type" value="text/xml"> <response showresponse="true" status="success"> <ide handlerfile="deploysvnpart2.cfm"> <dialog width="550" height="500" title="amend contents of temp dir"/> <input name="go" label="checked" type="boolean" /> <cfsavecontent variable="moo" > <![cdata[ <p style="color:black;">any html content</p> ]]> </cfsavecontent> <body>#moo#</body> <input name="go" label="#len(moo)#" type="boolean" /> </ide> </response> </cfoutput> when user shown page 2 inputs showing, not contents of body tag. this contained in .cfm page , shown u...

asp.net - Http and Https request to WCF service -

asp.net - Http and Https request to WCF service - in system.service / behaviours / servicebehaviours i have next behaviour: <behavior name="pubajaxaspnetajaxbehavior"> <servicemetadata httpgetenabled="true" httpsgetenabled="true" /> <servicedebug includeexceptiondetailinfaults="true" /> </behavior> with both these properties httpgetenabled="true" , httpsgetenabled="true" in place means requests webservice on http throw error: could not find base of operations address matches scheme https endpoint binding webhttpbinding. registered base of operations address schemes [http]. is possible have wcf service accepts http , https requests? i don't think can have them both true on same endpoint, can utilize different bindings different endpoints. you can utilize bindings that <bindings> <basichttpbinding> <binding name="httpbin...

c# - Why does a zero byte app.config file cause a very strange error? -

c# - Why does a zero byte app.config file cause a very strange error? - the volume file has been externally altered opened file no longer valid. this caused when have app.config 0 bytes. error appears come windows - windbg won't launch it. i know it's invalid have 0 byte app.config, causes error, come , why happen? // // messageid: error_file_invalid // // messagetext: // // volume file has been externally altered opened file no longer valid. // #define error_file_invalid 1006l copied winerror.h windows sdk header file. symbolic error code here much more pertinent boilerplate error message text. not quite unusual. can see beingness used within sscli20 source code (the open source version of clr) in code checks if executable has proper pe32 file header , .net header nowadays in managed assembly. doesn't apply here. nevertheless, clr interested in app.exe.config file @ moment in bootstrapping stage. elements <supportedruntime...

Using redis and node.js issue: why does redis.get return false? -

Using redis and node.js issue: why does redis.get return false? - i'm running simple web app backed node.js, , i'm trying utilize redis store key-value pairs. run "node index.js" on command line, , here's first few lines of index.js: var app = require('express').createserver(); var io = require('socket.io').listen(app); var redis = require('redis'); var redis_client = redis.createclient(); redis_client.set("hello", "world"); console.log(redis_client.get("hello")); however, redis_client.get("hello") instead of "world" false . why not returning "world" ? (and running redis-server) what's weird illustration code posted here runs fine, , produces expected output. there i'm doing incorrectly simple set , get ? i bet asynchronous, value callback. edit: it's asynchronous: file.js node.js redis

Flex Tree vertical scrolling problem -

Flex Tree vertical scrolling problem - i using mx:tree (in flex 4), , assigned customised mxtreeitemrenderer every items. treeitemrenderer contains list tilelayout, means height of every row variable. have set tree's "variablerowheight true. when testing tree, went well. when using vertical scroller, met problems: the scroll bar did not move position want. when scrolling content, scroll bar scrolled unwanted position (e.g. head of tree). when there more rows, problem more obvious. when scrolling tree, images flicking time. means, images reloading guess. help? is there can help me solve problems? many thx :) use sparktree http://kachurovskiy.com/2010/spark-tree/ there much bugs current tree. ( whating flex 5 clean out thoose things ) :) flex tree scroll

iis - WCF service won't populate datagrid -

iis - WCF service won't populate datagrid - i have datagrid populated wcf service. used tutorial ms has silverlight. runs fine on machine in test server when set in on real server not work. enabled http authentication , still not getting results service. have never touched wcf before new me. wcf iis iis-7

eclipse plugin - showing button on the view -

eclipse plugin - showing button on the view - i have 1 empty view , actions on view toolbar. when click of actions, need show 1 button on view. can kind of dynamic rendering on view.how do that? i have made little illustration on how create toolbar, handler , button in view... see so-viewaction.zip. hope helps. eclipse-plugin eclipse-rcp

java - Store Report names in an Interface , Enum , or as constant inside the report handler class? -

java - Store Report names in an Interface , Enum , or as constant inside the report handler class? - for every study have special handler class study store study name private constant within handler class. i utilize study name key study specific configuration reports configuration file. i thought changing , store study names in enum , other approach have in mind utilize qualified name of handler class key in configuration file. i need know approach improve : interface , enum , handler class constant or utilize class name key in configuration file instead of study name please advice i using enums , have used them often. have store info somewhere, why not set can find it! do this: public enum study { sales("sale report", "select * some_view"), profit("profit report", "select * some_other_view"); final string reportname; final string sql; private report(string reportname, string sql) { ...

Drupal: How to define variables in one module functions and call it from another in Drupal 7 -

Drupal: How to define variables in one module functions and call it from another in Drupal 7 - i writing module drupal 7. must current $node variable in 1 function, e.g. hook_init() or similar, , variable should accessible function. found give-and-take node_load(arg(1)) , author of solution said performance no concern because of caching. so, should phone call node_load() in every function need not beingness afraid of performance issues of there other ways pass variables between module functions? to more exact: i've placed block module on pages node types , in hook_block_view function need access current node object. i'm succeeded using node_load far. maybe there improve way. thanks in advance! in drupal 7 node_load() calls entity_load() , caches results, if phone call node_load() twice, returned cache. using node_load() improve solution passing global variables between modules, if utilize third-party caching modules (apc, memcached or other). i...

asp.net 4.0 - Cant see Mysql data source at the add connect to database -

asp.net 4.0 - Cant see Mysql data source at the add connect to database - i have visual web developer 2010 express , mysql/connector 6.4.3 when press on database explorer tab -> connect database, need take info source dont see mysql info source shold. i've tried reinstall it.. have both visual studio 2008 , visual web developer 2010 express. btw, during mysql/connector saw configured vs2008.. how can prepare that? p.s. saw here not supported, true?? thanks. this old, reply question having same issue until tried on ultimate version. picks right up. need re-install connector. so short answer, yes. :( asp.net-4.0 mysql-connector visual-web-developer-2010

Spring "alias is required" -

Spring "alias is required" - i'm new in spring , i'm trying create application using spring blazeds integration (flex + blazeds + spring + java) , when run application got error: 02:51:21,852 info [xmlbeandefinitionreader] loading xml bean definitions servletcontext resource [/web-inf/spring/security-config.xml] 02:51:23,937 error [contextloader] context initialization failed org.springframework.beans.factory.parsing.beandefinitionparsingexception: configuration problem: alias required. offending resource: servletcontext resource [/web-inf/spring/security-config.xml] the security-config.xml: <?xml version="1.0" encoding="utf-8"?> <beans:beans xmlns:security="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.springframework.org/sche...

map - Android and Google fusion tables -

map - Android and Google fusion tables - i want build map view google fusion table layer, bringing info public table. i'm searching tutorials, infos ... can give me advises how can proceed? :) the easiest way proceed might utilize app inventor fusion tables control. it's quite simple , lightweight. http://appinventor.mit.edu/explore/content/notready.html#fusiontablescontrol otherwise here simple illustration app in java https://code.google.com/p/google-api-java-client/wiki/apis#fusion_tables_api hope helps. android map google-fusion-tables

javascript - Get Contents of form Element with Same Name in Jquery. Accessing Childeren of the Object -

javascript - Get Contents of form Element with Same Name in Jquery. Accessing Childeren of the Object - i have form format <form> <fieldset> <label for="select_label">enter label </label> <input type="text" class="text ui-widget-content ui-corner-all" id="select_label" name="select_label" gtbfieldid="307"> </fieldset> <fieldset> <label for="select_option">option</label> <input type="text" class="text ui-widget-content ui-corner-all" name="select_option" gtbfieldid="308"> </fieldset> <fieldset> <label for="select_option">option</label> <input type="text" class="text ui-widget-content ui-corner-all" value="1" name="select_option"> </fieldset> <fieldset> <label for="select_option">option</la...

r - How to retrieve global index while using ddply? -

r - How to retrieve global index while using ddply? - i trying find best deal in terms of price/carat diamonds dataset plyr package so do new = ddply(diamonds, c("cut", "color", "clarity"), transform, ecart= price/carat - mean(price/carat)) best = ddply(new, c("cut", "color", "clarity"), summarize, which(ecart == min(ecart)) but when get head(best) cutting color clarity ..1 1 fair d i1 4 2 fair d si2 49 3 fair d si1 39 4 fair d vs2 9 5 fair d vs1 2 so index seem takend subgroups beingness made ddply. here first index, 4, correspond global index. if new[2,] not of type fair, d, vs1 instance. any thought on how can retrieve global index position ? how instance, add together id column elegantly ? there improve solution ? if you're trying identify diamond lowest value of ecart each unique combi...

Ajax in Codeigniter with jQuery, how to send back data? -

Ajax in Codeigniter with jQuery, how to send back data? - how send info controller view? say have next search controller: function search() { $search_text = $this->input->post('company'); $data['found_companies'] = $this->company->get_companies_by_name($search_text); $data['page_title'] = 'search'; $this->load->view('head', $data); $this->load->view('pages/after_search', $data); $this->load->view('footer'); } i search results model model $data['found_companies'] , how pass ajax homecoming data? why not function search() { $search_text = $this->input->post('company'); $data['found_companies'] = $this->company->get_companies_by_name($search_text); /* $data['page_title'] = 'search'; $this->load->view('head', $data); $this->load->view('pages/after_search...

android - IllegalArgumentException: Wrong state class -

android - IllegalArgumentException: Wrong state class - for activity, have 2 different layout files portrait , landscape orientations. elements of 1 orientation have direct relation elements in other orientation except may related base of operations class not exact same type , have same id. instance: layout/main_layout.xml: ... <listview android:id="@+id/current_news_list" android:layout_width="fill_parent" android:layout_height="fill_parent"/> then in layout-land/main_layout.xml: customlistview subclass of android.widget.adapterview ... <customlistview android:id="@+id/current_news_list" android:layout_width="fill_parent" android:layout_height="fill_parent"/> "illegalargumentexception: wrong state class" thrown when changing orientations. expected behavior? have not overridden configuration changing code , i'm letting activity destroyed , reconstructed. i've avoided o...

SQL Server: Combine several SELECT statements with "WITH" part into a UNION -

SQL Server: Combine several SELECT statements with "WITH" part into a UNION - i have several of statements (that utilize statement): with valdiff (select <complexclause1> v1 [mytable] <otherclause1>) select sum(case when v1 < @maxval v1 else @maxval end) valdiff union valdiff (select <complexclausen> v1 [mytable] <otherclausen>) select sum(case when v1 < @maxval v1 else @maxval end) valdiff i need incorporate them union result returned "in 1 swoop". statements work fine themselves, if add together word "union" between them, showed above, next error: incorrect syntax near keyword 'union'.incorrect syntax near keyword 'with'. if statement mutual table expression, xmlnamespaces clause or alter tracking context clause, previous statement must terminated semicolon." what doing wrong? the span clauses in union ;with valdiff ( whatever ) select ... valdiff ... union select .....

java - Where to put property file that is used across different modules in a multi-module maven project? -

java - Where to put property file that is used across different modules in a multi-module maven project? - i have created nice multi-module project using maven, wondering best place store property files shared accross modules. give illustration have 4 modules needing log4j.properties file, need set in every module or there central place in set this? if have parent project, best place. otherwise module included each other module. put log4j.properties /src/main/resources java maven properties multi-module

javascript - Browsers syntax error in js depending on the server...only for some browsers -

javascript - Browsers syntax error in js depending on the server...only for some browsers - this follow to: debian - browsers jquery compressed breaks js, uncompressed works fine i have more info requires new way of thinking it. a user when connecting apache server , served minified version of jquery-1.6.2 results in syntax error in file, when not have one, causing whole programme break. when same file served nginx server, error goes away , works correctly. is there can cause javascript served incorrectly server side? edit: turns out even causes javascript errors (http://muench.homeip.net/jquery/jquery-1.5.1-remote.html) including jquery 1.5.1 only thing can think of if server corrupting file beforehand. wonder if gzip has it. javascript jquery

iphone - flickr callback URL not working -

iphone - flickr callback URL not working - i downloaded objective c flickr library link. https://github.com/lukhnos/objectiveflickr created app key , secret , updated sampleapikey.h file. callback url in flicker app page set snapnrun://myapp , same in application url scheme. running snapandrun illustration application downloaded source. after running app(both in simulator , device same behaviour), when tap on authorize button, takes me web based authorization page in safari. when click authorize app button there, safari not taking me application. am missing more here, or there alter in flickr api in lastly couple of days, phone call authorization doenst work?? but official flickr app working fine. tried in device. after authorization, goes flickr app. your help appreciated. thanks. i had same problem, , found out when tried calling flickr api via xmlrpc request, when tried json worked. hope work also.. iphone objective-c url callback flickr

android - can we get Reference of Date picker Dialog from DateSetListener? -

android - can we get Reference of Date picker Dialog from DateSetListener? - is there way reference of date picker dialog date set listener in parameter has view of date set listener? if(type.equalsignorecase("datepicker") { mfield=new edittext(context); ((edittext) mfield).settext("pick date"); ll.addview(mfield); mfield.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { final calendar cal = calendar.getinstance(); myear = cal.get(calendar.year); mmonth = cal.get(calendar.month); mday = cal.get(calendar.day_of_month); datepickerdialogwithedittext dialog= new datepickerdialogwithedittext(context, mdatepickerdialog , myear, mmonth, mday, (edittext)mfield ); dialog.show(); } }); } } private datepickerdialogwithedittext.ondatesetlistener mdatepickerdialog = new datepickerdialogwithedittext.ondatesetlistener() { public void ondateset(datepicker view , int year , int month, int date) { myear = year; mmon...

java - Is it possible to have an enum that contains constructors for objects? -

java - Is it possible to have an enum that contains constructors for objects? - i'm testing out different sort of pattern. i've got code working in switch statement, i'd seek little more ecclectic... research purposes. say have 4 classes, class1 , class2 , class3 , , class4 extend baseclass . want set them enum , so: enum classfactories { class1(class1.class), class2(class2.class), class3(class3.class), class4(class4.class); private final class factory; classfactories(class factory) { this.factory = factory; } public baseclass generate() { baseclass b = null; seek { b = (baseclass)this.factory.newinstance(); } grab (exception e) { // handle exceptions } homecoming f; } } in mill method passed int , want able this: public void fakemethod(int type) { baseclass someclass = classfactories.values()[type].generate(); someclass.dostuff(); } is there cleaner/easier way of doing this? i...

escaping - How do I strip dollar signs ($) from data/ escape special characters in R? -

escaping - How do I strip dollar signs ($) from data/ escape special characters in R? - i've been using gsub("toreplace","replacement", myvector) clean out info in r. while works commas , like, removing "$" has no effect. if gsub("$","",myvector) dollar signs remain in place. i think because $ special character in r. tried escaping "\$" yields same result (no effect). , couldn't find resource on escaping special characters in r. obviously should in preprocessing. wondering if out there knew how either a) escape special characters in r b) rid of pesky $ in r directly. science. you have escape twice, first r, sec regex. gsub('\\$', '', c("a$a", "bb$")) [1] "aa" "bb" see ?quotes details on quoting , escaping. r escaping

Zip / UnZip Archive in .NET Framework? -

Zip / UnZip Archive in .NET Framework? - possible duplicate: .net library unzip zip , rar files is there zip unzip in .net? (not asking gzip). have able unzip .jar files aka zip files. any way avoid using sharpziplib, trying limit dependencies programme should use something built .net framework perhaps? or else i'll, blah might have reflector zipfile classes sharpziplib , add together them project. there no such things built in .net framework. wouldn't expect ever change. given big number of free libraries available, microsoft's limited resources improve spent on other things. .net zip unzip

c# - A native exception has occurred in -

c# - A native exception has occurred in - i using a code capture image mobile device, unfortunately shows next error msg: a native exception has occurred in timedcamera.exe. when clicked on details, shows following: exceptioncode: 0xc0000005 exceptionaddress: 0x78b21be0 reading: 0x00000020 faulting module: cameracapturedll.dll offset: 0x00001be0 i appreciate if suggest me possible ways solve problem. thanks. that's access violation read operation. the address of read ( 0x20 ) due reading field construction when pointer null. due bug in dll, or due code passing null pointer dll. c# windows-mobile native-code

mysql - PHP visualization library for Google Charts API -

mysql - PHP visualization library for Google Charts API - i'm implementing google charts using php backend. unfortunately of php visualization implementations i've found, best looked mailchimp's mc-goog-visualization (http://code.google.com/p/mc-goog-visualization/issues/detail?id=13). this allows create google info source mysql db minimal coding. downside is, project not actively developed , has many bugs (including showstoppers "where" clauses , scalars don't appear work right. can who's worked php/mysql , google charts recommend info source wrapper works google query formats? thanks i found bggardner/google-visualization-php, looks active, didn't seek it. php mysql google-visualization

idioms - C++ Is using auto_ptr references as out variables idiomatic? -

idioms - C++ Is using auto_ptr references as out variables idiomatic? - suppose want write mill method supposed allocate heterogeneous objects on heap , homecoming them caller. thinking of designing api this: bool makeem(auto_ptr<foo>& outfoo, auto_ptr<bar>& outbar) { ... if (...) { homecoming false; } outfoo.reset(new foo(...)); outbar.reset(new bar(...)); homecoming true; } this allows caller this: auto_ptr<foo> foo; auto_ptr<bar> bar; makeem(foo, bar); my question is: "is idiomatic? if not, right way this?" the alternative approaches can think of include returning struct of auto_ptr s, or writing mill api take raw pointer references. both require writing more code, , latter has other gotchyas when comes exception safety. you don't have create own struct homecoming 2 values - can utilize std::pair. in case there isn't much syntactic overhead in returning 2 values. solution have proble...

javascript - I want to code the HTML syntax indented and colored like in Visual Studio editor -

javascript - I want to code the HTML syntax indented and colored like in Visual Studio editor - app: let's take asp.net mvc 3 app. scope: add together html editor , of them have 2-3 tabs: design, html , preview modes. result expected: when design in design mode, generated syntax of html markup should appear indented , colored easy edit , read if there lot of elements , attributes. examples of wysiwyg html editors think are: tinymce; dxperience 2011 vol ii mvc extension - htmleditor; cleditor; so question is: how obtain generated html syntax indented , colored? perfect result in visual studio editor of aspx or view pages. so, think geeks ? :) appreciate that! well code highlighting/coloring, many sites using alex gorbatchev's syntax highligher. http://alexgorbatchev.com/syntaxhighlighter for indentation - can utilize xdocument's tostring() outlined here: need tool format html (indent, add together whitespace) javascript visual-studio-2...

iphone - @synthesize IBOutlet property -

iphone - @synthesize IBOutlet property - i'm objective-c newbie , i'm reading "iphone programming" alasdair allan. while reading, found code: @interface rootcontroller : uiviewcontroller <uitableviewdatasource, uitableviewdelegate> { uitableview *tableview; nsmutablearray *cities; } // warning: remember tableview @property (nonatomic, retain) iboutlet uitableview *tableview; the relative implementation starts way: @implementation rootcontroller @synthesize tableview; now: learnt @synthesize sort of shortcut avoid boring getters , setters. but i've question: in code of implementation tableview is never explicitly called dealloc releases it; if never gets called explicitly why @synthesize? is mandatory iboutlets synthesized? from memory management of nib objects, when nib file loaded , outlets established, nib-loading mechanism uses accessor methods if nowadays (on both mac os x , ios). therefore, whichever platform...

which is the better way to keep and load images at run time in android? -

which is the better way to keep and load images at run time in android? - i have 200 big scale fixed images , need handle @ run time. [consider performance , apk size] 1.where can maintain images(asset folder or drawables)? 2.currently next technique image.setbackgroundresources(r.drawable.mango); 3.any other improve way there? please utilize image loader many images. hope image loader help total you... android image drawable assets

php - Save multiple tabular input in Yii -

php - Save multiple tabular input in Yii - i'm wondering how can insert tabular info in yii. of course, i've followed docs in aspect there few differences in situation. first of all, want save 2 models, in docs article. main difference there might more 1 element sec model (simple 1 many relation in database). i utilize chtml build forms. implemented jquery snippet add together more input groups dynamically. i'm unable show code it's totally messed , not working currently. my main question is: how handle array of elements sec model in yii? define 2 models in controller $model1= new model1(); $model2= new model2(); //massive assignments $model1->attributes=$_post['model1'] $model2->attributes=$_post['model2'] //validation $valid= $model1->validate(); $valid =$valid && $model2->validate(); if($valid){ $model1->save(false); $model1->save(false); } if want access fields individually dum...

ibm midrange - Why does a PC-to-AS400, ASCII FTP transfer result in very large file growth on the AS400 side? -

ibm midrange - Why does a PC-to-AS400, ASCII FTP transfer result in very large file growth on the AS400 side? - given: novice on as400 platform, @ best problem: need transfer variable width, pipe-delimited ascii files windows 2003 server ftp server running on v6r1. files arrive , translated ebcdic, huge. 3.5mb file becomes 200+ mb member. 9gb file fails because bump against manner of quota. interesting fact: when done in binary mode (no translation), file appears on server side filename.file 1 fellow member named filename.mbr. transfer size correct, file not readable native tools because of ascii encoding. interesting fact: has been tried on 3 v6r1 machines same results. i'm normal behavior not understand well. my gut feeling here server extending file adds new rows -- don't have improve guess that @ point. has seen behavior before, , know takes avoid it? thanks in advance taking time contribute. appreciate it. the ibm ftp server can either deal objects ...

binary - Why does a negative SByte number have 16 bits in VB.Net? -

binary - Why does a negative SByte number have 16 bits in VB.Net? - i asked question before comparing numbers using "and" comparing operator in if statements , have been toying around getting head wrapped around bitwise operators. have written basic code allow me see conversion of decimal number in binary format. private sub button1_click(byval sender system.object, byval e system.eventargs) handles button1.click msgbox(converttobinary(-1)) end sub public function converttobinary(byval someinteger sbyte) string dim converted string = convert.tostring(someinteger, 2) '.padleft(8, "a"c) homecoming converted end function notice here using sbyte paramerter - should contain 8 bits right? however, message box appears has 16 bits assigned negative numbers. positive numbers have right 8. there no convert.tostring overload takes sbyte , sbyte beingness implicitly converted short . vb.net binary bit signed