Posts

Showing posts from September, 2014

ios - UIPickerView Only Responds Within Area of Tab Bar -

ios - UIPickerView Only Responds Within Area of Tab Bar - i'm updating app ios 8 , trying recreate uipickerview within uiactionsheet uialertcontroller described here. using reply nada gamal, able recreate functionality, uipickerview responds within tab bar (even though tab bar hidden behind picker view). tab bar controller root view controller. -(void)loadpickerview{ uipickerview *pickerview = [[uipickerview alloc] initwithframe:cgrectmake(0.0, 44.0, 0.0, 0.0)]; pickerview.showsselectionindicator = yes; pickerview.datasource = self; pickerview.delegate = self; pickerview.backgroundcolor = [uicolor whitecolor]; [pickerview selectrow:pickerviewrow incomponent:0 animated:no]; uitoolbar *pickertoolbar = [[uitoolbar alloc] initwithframe:cgrectmake(0, 0, self.view.frame.size.width, 44)]; pickertoolbar.tintcolor = self.navigationcontroller.navigationbar.tintcolor; nsmutablearray *baritems = [[nsmutablearray alloc] init]; uibarbutton

encryption - Data type for blocks in DES-like algorithm in Java -

encryption - Data type for blocks in DES-like algorithm in Java - i writing des-like block cipher in java. cipher works 64-bit blocks , i'm having tough time deciding how partition info useable. in case wondering info coming file , i'm going pad zeroes until nearest multiple of 64. here's i've been thinking about. store array of longs. array of longs can traverse on each block in fewest amount of steps. but, logical operations, xor, work properly? when have split 64-bit 32-bits should convert ints or maintain using longs? , there sign worry about, think utilize long class prepare that. store array of byte arrays. initial idea, i'm seeing limitations now. have work 8 elements per array rather 1 array of longs. might not matter don't know. bitsets. saw these , thought reply i've been looking for, when started using them realized not suited problem @ hand , lot of methods don't thought do. i'm wondering how more experienced this. th

javascript - window.history.back with hash not working properly on Windows Phone -

javascript - window.history.back with hash not working properly on Windows Phone - i have user reporting clicking "done button" in app, window.history.back() removes entire hash, i.e. reducing /mobile#/record/project /mobile . i cannot reproduce , on other devices: iphone / safari android / build in browser , chrome ie 10 on desktop ie 11 on desktop chrome/safari/firefox on desktop ...clicking "done button" removes /project part of hash. taking user (s)he came from, i.e. /mobile#/record . anybody have experienced winphone before? solution purchase winphone , seek self? javascript internet-explorer

qbxml - Is it possible to Apply Exchange Rates through the QuickBooks Web Connector? -

qbxml - Is it possible to Apply Exchange Rates through the QuickBooks Web Connector? - basically, doesn't appear possible set exchange rates update automatically in quickbooks desktop ui (company > manage currency > download latest exchange rates) when in multi currency mode. i wondering if there request can set through web connector analogous menu alternative in ui outlined above, way phone call web connector regularly , emulate downloading latest exchange rates automatic process? if not downloading exchange rates, applying them directly? many in advance. no, there no way through quickbooks sdk/api. quickbooks qbxml

java - Unknown class exception when inflating a dialog fragment in android -

java - Unknown class exception when inflating a dialog fragment in android - this question has reply here: strange out of memory issue while loading image bitmap object 38 answers i trying create dialog fragment. when trying show fragment, forcefulness close error stack trace hinting @ error when inflating xml files. here xml resource file. <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> <linearlayout android:layout_width="match_parent" android:layout_height="50dp" android:background="@color/white" android:gravity="center" andr

c# - WPF: Two TabControls / Switching works under Win7/.NET 4.5 but not under Windows 8.1/.NET 4.5.1 -

c# - WPF: Two TabControls / Switching works under Win7/.NET 4.5 but not under Windows 8.1/.NET 4.5.1 - i've got window 2 tabcontrols. 1 left-aligned, other right-aligned. headers of tabcontrols aligned in top row. whenever click tabitem, other tabcontrol unfocused. that works fine on development pc (windows 7, .net framework 4.5). however, when execute under pc windows 8.1 (.net 4.5.1), can not switch right-aligned tabcontrol. when click on tabitem within it, nil @ happens. xaml of mainwindow: <window x:class="tabgroupproblem.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="mainwindow" height="350" width="525" loaded="window_loaded"> <grid> <tabcontrol gotfocus="tabcontrol_gotfocus" x:name="c1">

Terrible performance degradation in postgreSQL when i created too many partitions -

Terrible performance degradation in postgreSQL when i created too many partitions - i don't understand why occur performance degradation in postgresql when created many partitions table. 100 -> 0.05 sec 200 -> 0.07 sec 400 -> 0.16 sec 600 -> 0.24 sec 800 -> 0.29 sec 1,000 -> 0.37 sec 1,500 -> 0.62 sec 2,000 -> 0.82 sec 4,000 -> 1.86 sec 10,000 -> 7.62 sec below test query , result of explain. select count(*) test_sql_stat_daily partition_key=1000000099; aggregate (cost=20000000011.88..20000000011.89 rows=1 width=0)" output: count(*)" -> append (cost=10000000000.00..20000000011.88 rows=2 width=0)" -> seq scan on test_sql_stat_daily (cost=10000000000.00..1000

ios - Make an action when searchBar cancel button is fire -

ios - Make an action when searchBar cancel button is fire - i have tableview searchbar. want reload tableview info when searchbar cancel button tapped. func searchbarcancelbuttonclicked(searchbar: uisearchbar) { println("cancel button tapped") self.tableview.reloaddata() } i set : uisearchbardelegate and : override func viewdidload() { self.searchbar.delegate = self } what weird searchbarsearchbuttonclicked working good. what did miss ? ios swift delegates uisearchbar

android - Add .so files to gradle project for a jar -

android - Add .so files to gradle project for a jar - in current gradle based project, i'm using library depends on built .so libraries in armeabi folder in libs. how can add together .so files project? thanks i created new jar .so files in lib folder in it. simpliest way prepare that.. android jar

c++ - Define a dynamic array in a function, then return the array element. How to release array's memory? -

c++ - Define a dynamic array in a function, then return the array element. How to release array's memory? - double fibonacci(int n, double **p) { if(n == 0) homecoming n; (*p) = new double[n]; memset(*p, 0, n); (*p)[0] = 0; (*p)[1] = 1; for(int = 2; <= n; i++) (*p)[i] = (*p)[i-1] + (*p)[i-2]; homecoming (*p)[n]; } int main() { double *p = null; cout << fibonacci(1, &p) << endl; delete []p; } the output is: *** error in `/home/tardis/codeblocks/test/bin/debug/test': free(): invalid next size (fast): 0x08932008 *** aborted (core dumped) process returned 134 (0x86) execution time : 0.185 s i define dynamic array in fibonacci. want delete in function main. why can't delete it? I tried prepare error, failed. you're allocated array of size 1, (*p)p[0] = 0; (*p)p[1] = 1; you're writing beyond end of array. you're corrupting something, maybe heap info array free'ing. can't repr

c# - Object does not match target type with WinRT XAML Toolkit Chart -

c# - Object does not match target type with WinRT XAML Toolkit Chart - as stated in title, i've got exception when seek utilize winrt xaml toolkit's chart. here's quick snippet of code: public observabledictionary<string, int> mydict { get; set; } ... <charting:chart grid.row="2" margin="0"> <charting:chart.series> <charting:lineseries itemssource="{binding mydict}" independentvaluebinding="{binding key}" dependentvaluebinding="{binding value}"/> </charting:chart.series> </charting:chart> i can't find useful online , don't want forced write new class wraps 2 items in order bind list because it's quite nonsense. any idea? c# xaml windows-runtime windows-phone-8.1

C# Edit XML, I am totally lost -

C# Edit XML, I am totally lost - i have code load xml files not sure of if complete. code. public void updatexml(string xmlfile, string choosenode, string choosesinglenode, string newnode, string selectedcategory) { xmldocument xml = new xmldocument(); xml.load(xmlfile); foreach (xmlelement element in xml.selectnodes(choosenode)) { foreach (xmlelement element1 in element) { if (element.selectsinglenode(choosenode).innertext == selectedcategory) { xmlnode newvalue = xml.createelement(newnode); newvalue.innertext = "modified"; element.replacechild(newvalue, element1); xml.save(xmlfile); } } } below method utilize in end, set xmlfile , such. (the updatexml method in "data.cs", called on repository. public void editcategory(string newnode) { string xmlfile = "category.xml"; string choosenodes

php - Getting error Mysql. PDO -

php - Getting error Mysql. PDO - i created profile.php page after log in user profile, want display users info. next error. error messagefatal error: phone call fellow member function fetch() on non-object in /home/a6150953/public_html/profile.php on line 16` help me solution please. profile.php <?php session_start(); //session_destroy(); include_once('php/classes/class.user.php'); $user1 = new user($con); if(isset($_post['logout'])) { session_destroy(); header('location: index.php'); } include_once('php/common/head.php'); $all = $con->fetch("select * users"); ?> <div class="wrapper"> <h1> <?php if(isset($_session['uid'])){ echo "profile page ". $all[0]['fullname'] ." "; }else{ echo "welcome", "<br/><a href='index.php'>

python - win32com Excel PasteSpecial -

python - win32com Excel PasteSpecial - i'm having problem pastespecial in python. here's sample code: import win32com.client win32com win32com.client import constants xl = win32com.gencache.ensuredispatch('excel.application') xl.visible = true wb = xl.workbooks.add () sheet1 = wb.sheets("sheet1") # fill in summy formulas in range(10): sheet1.cells(i+1,1).value = "=10*"+str(i+1) sheet1.range("a1:a16").copy() sheet1.range("c1").select() sheet1.pastespecial(paste=constants.xlpastevalues) i'm getting next error: typeerror: paste() got unexpected keyword argument 'paste' i know paste keyword argument because of msdn here: http://msdn.microsoft.com/en-us/library/office/ff839476(v=office.15).aspx any thought why won't allow me this? can't find much on web. edit solution(s): import win32com.client win32com win32com.client import constants xl = win32com.gencache.ensuredispatch('

javascript - mouseover event and click event on same element conflicts on mobile -

javascript - mouseover event and click event on same element conflicts on mobile - i'm using angular.js build website, , have element mouseover event supposed show navbar, , on mobile, clicking on element, supposed show navbar + menu. these 2 events conflict. any ideas? //navbar fade in mouse on menu button angular.element('.picture_hamburger>.text').on('mouseover', function() { angular.element('#navbar').stop().fadein(); btnstate.setposition(1); // navbar fade out mouse out of button angular.element('.menu_hamburger').one('mouseout', function() { btnstate.setposition(0); }); }); //menu open click angular.element('.picture_hamburger>.text').click(function () { angular.element('#navbar').finish().slidedown(); btnstate.openmenu(); }); if able utilize modernizr (js library checking html5 stuff), provides best method checking if client mobile or not. can in pure java

java - Trying to get my matrix printed not the heap address -

java - Trying to get my matrix printed not the heap address - the code seems run except getting not matrix of specified (by user) size think heap address here's returns when user inputs 2 size , 4 numbers: enter matrix size: 2 come in 2 2 matrix row row: 2 3 4 5 row-sort matrix is...[[d@3c954549build successful (total time: 8 seconds) here code....thank in advance. import java.util.scanner; public class exercise7_26m { public static void main (string[]args) { //prompt user input of matrix size system.out.println("enter matrix size: "); scanner input = new scanner(system.in); int size = input.nextint(); double[][] m = new double [size][size]; //prompt user input of array system.out.print("enter " + size + " " + size + " matrix row row: "); (int row = 0; row < 2; row++) (int column = 0; column < 2; column++) m[row][column] = input.nextdoubl

How to check a value exists in which table in SQL? -

How to check a value exists in which table in SQL? - i have 2 tables identical columns, table , table b , both have column id. have value of id 'abc'. how check abc exists in id column of table? need output table name. select 'a' table_name dual exists( select 1 id = 'abc') union select 'b' dual exists( select 1 b id = 'abc') dual kind of placeholder can use, if don't have table select from. sql

sql - First and Last name tables to increase performance? -

sql - First and Last name tables to increase performance? - let's have client table: customerid | firstname | lastname 1 | john | smith 2 | john | adams 3 | kevin | smith 4 | kevin | adams now imagine table has 200k+ rows. increment performance create separate firstname , lastname table shown below , using joins view above? example: firstnameid | firstname 1 | john 2 | kevin lastnameid | lastname 1 | adam 2 | smith customerid | firstnameid | lastnameid 1 | 1 | 2 2 | 1 | 1 3 | 2 | 2 4 | 2 | 1 it depends on query workload. simple form of info compression. reducing set of info needed reply given query can improve performance. on other hand introduce overhead in many places. trade-off. if want retrieve values of columns need join. dml becomes slower well. since name co

java - Netty SSL: Chat Client example with custom keystore is unable to accept multiple connections -

java - Netty SSL: Chat Client example with custom keystore is unable to accept multiple connections - i've been playing netty's (version 4.0.24) securechatserver examples , i've plugged in own keystore (based on answers found on next 2 posts post 1 , post2. see code snippets below. the issue i'm seeing works expected when run 1 instance of client, when seek launch more client instances exceptions on both server , client (see below exception text) , @ point server stops responding. i'm hoping here shed lite i'm doing wrong. this class handles loading keystore , creating sslcontext instances used both client/server (for obvious reasons i've omitted keystore values): package com.test.securechat; import java.io.bytearrayinputstream; import java.security.keystore; import javax.net.ssl.keymanagerfactory; import javax.net.ssl.sslcontext; import javax.net.ssl.trustmanagerfactory; import com.test.util.key; import com.pragmafs.util.encryption.base6

graph - Why is time complexity for BFS/DFS not simply O(E) instead of O(E+V)? -

graph - Why is time complexity for BFS/DFS not simply O(E) instead of O(E+V)? - i know there's similar question in stack overflow, 1 person has asked, why time complexity of bfs/dfs not o(v). the appropriate reply given e can big v^2 in case of finish graph, , hence valid include e in time complexity. but, if v cannot greater e+1. so, in case not having v in time complexity, should work? if given e = kv + c , real constants k , c then, o(e + v) = o(kv + c + v) = o(v) = o(e) , argument correct. an illustration of trees. in general, however, e = o(v^2) , , cannot improve o(v^2) . why not write o(e) always? note there might cases when there no edges in graph @ (i.e. o(e) ~ o(1) ). such cases, we'll have go each of vertex ( o(v) ), cannot finish in o(1) time. thus, writing o(e) won't in general. graph time-complexity depth-first-search breadth-first-search

Memory Leak(?) when displaying images in java -

Memory Leak(?) when displaying images in java - today kinda fiddled around image opening/scaling/displaying in java , wrote bit of code open image file, scale randomly , display short time. the problem is: after displaying 100-1000 times, used memory of "javaw.exe" grows , grows, reached 1 gb of memory space. i dont know memory leak in code since memory eating things picures , there 2 (the original image , 1 getting scaled, assigned same variable(temp) "older" ones should picked off gc), maybe guys have on it, pretty simple. 1) take image hard drive 2) gets scaled randomly 3) displayed short amount of time , disappears 4) go 2) to scale image used library: http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/ import java.awt.image.bufferedimage; import java.io.ioexception; import javax.imageio.imageio; import javax.swing.imageicon; import javax.swing.jfilechooser; import javax.swing.jframe; import javax.swing.jlabel; impo

.net - IronPython urllib2 Basic Auth Exceptions? (Shopify) -

.net - IronPython urllib2 Basic Auth Exceptions? (Shopify) - i'm creating private shopify app, uses basic authentication. programme written in ironpython, however, i'm having problem getting urllib2 working. i've tried solution here: python urllib2 basic auth problem and works expected plain python, when run ironpython, error: ioerror: system.io.ioexception: unable read info transport connection: existing connection forcibly closed remote host. ---> system.net.sockets.socketexception: existing connection forcibly closed remote host @ system.net.sockets.socket.receive(byte[] buffer, int32 offset, int32 size, socketflags socketflags) @ system.net.sockets.networkstream.read(byte[] buffer, int32 offset, int32 size) --- end of inner exception stack trace --- @ microsoft.scripting.runtime.lightexceptions.checkandthrow(object value) @ dlrcachedcode.do_open$5398(closure , pythonfunction $function, object self, object http_class, object req) @ ironpython.

objective c - iOS: Best way to position my mapView to show the coordinates at the top left -

objective c - iOS: Best way to position my mapView to show the coordinates at the top left - i have next code below positions mapview shows coordinates in center. however, need position mapview show coordinates @ top left. code below using. using category called mkmapview+zoomlevel.h. if need more info please allow me know. [self.mapview setcentercoordinate:coordinate zoomlevel:level animated:animated]; get part self.mapview.region , find new coordinate using simple geometry. part give center point , width , height of view in degrees of latitude , longitude. from there, can determine center coordinate provide map view set original coordinate in upper left corner. cllocationcoordinate2dmake(self.mapview.coordinate.latitude + self.mapview.region.span.latitudedelta / 2, self.mapview.coordinate.longitude + self.mapview.region.span.longitudedelta / 2) ios objective-c iphone xcode

c# - specify Ip of the Client in Client/Server manually (By hand) -

c# - specify Ip of the Client in Client/Server manually (By hand) - i building client/server using tcp socket in c# here code server : namespace server { public partial class form1 : form { private list<socket> _clientsockets; private socket server = null; private byte[] _buffer; public form1() { initializecomponent(); } private void button1_click(object sender, eventargs e) { server = new socket(addressfamily.internetwork, sockettype.stream, protocoltype.tcp); server.bind(new ipendpoint(ipaddress.any, 13000)); server.listen(10); server.beginaccept(new asynccallback(onconnect), null); } private void onconnect(iasyncresult ar) { socket client = server.endaccept(ar); _clientsockets.add(client); messagebox.show("connected"); client.beginreceive(_buffer, 0, _buff

java - Mock a protected method in an abstract class -

java - Mock a protected method in an abstract class - i have abstract class protected method trying mock. please note abstract class defined in company's library api have use. public abstract class supportobjectbase { protected nrobject getnrobjects(order order) throws applicationexception { homecoming ... ; } } the issue nullpointerexception when seek unit test code uses protected method within abstract class. exception stack-trace (n.b. minimal due intellectual property). also, line 153 in supportobjectbase declaration of protected method getnrobjects(order) . java.lang.nullpointerexception @ xx.xxxx.xxxxxx.xxxxxx.supportobjectbase.getnrobjects(supportobjectbase.java:153) @ org.powermock.modules.junit4.internal.impl.powermockjunit44runnerdelegateimpl$powermockjunit44methodrunner.runtestmethod(powermockjunit44runnerdelegateimpl.java:310) @ org.junit.internal.runners.methodroadie$2.run(methodroadie.java:88) @ org.junit.internal.runners.

javascript - Set background-image for button to element already contained within page -

javascript - Set background-image for button to element already contained within page - basically want specify background-image button using other image url. beingness able set background-image loaded element contained within dom ideal. can cache loading gif (displayed on button) within dom , don't have fetch when button clicked. i didn't think code necessary illustrate problem here anyway not ideal due image loading on click: that.submitbuttonselector.css('background-image', 'url(/content/_activity/ajax-loader.gif)'); ideal (but no obvious way achieve) that.submitbuttonselector.css('background-image', '#precachedimage'); if load loading gif via url, cached in cases. need download once. after served cache. other thing can think of utilize base64 source. has benefit if not generating http request, larger when comes actual bytes (i don't think larger size slower http request, can benchmark them). in ex

r - 10 fold Cross Validation - function issues -

r - 10 fold Cross Validation - function issues - i have created function perform 10 fold cross validation on info set birthwt library(mass). code within function doing want do. however, want utilize values returned outside of function cant access mean_mrate variable outside of function. my code is: library(mass) tenfold3 = function() { fold = 10 end = nrow(birthwt) fold_2 = floor(end/fold) misclasrate=numeric() for(i in 1:10){ df_i = birthwt[sample(nrow(birthwt)),] # random sort dataframe birthwt tester = df_i[1:fold_2,] # remove first 10th of rows - utilize predict on info trainer = df_i[-c(1:fold_2),] # other first 10th of rows - utilize glm on info #mod = glm(low~age,family=binomial,data=trainer) mod = glm(low~age+lwt+race+smoke+ptl+ht+ui+ftv,family=binomial,data=trainer) ypred = predict(mod,data=tester,type='response') ypred = trunc(0.5+predict(mod,data=tester,type='response')) # predicted values

visual studio 2010 - Crystal Reports Does Not Show Data From View -

visual studio 2010 - Crystal Reports Does Not Show Data From View - using vs2010, oracle 11g. i have view linking 2 tables: select table1.address1, table1.address2, table1.city, table1.name table2.product_name, table1.product_num table1 inner bring together table2 on table1.orderid = table2.orderid i can see fields table1 none table2. when right click on table2 field , take "browse data", see results. when click on "main study preview" - see results. when run (f5) not see results, nor when set study on server. i set code in study tell me fields empty when generated. got it. didn't update object in code feeds report. guess since study attached sp, that's why showed in "main study preview" not when running in vs. visual-studio-2010 crystal-reports

c++ - Difference between static and dynamic cast -

c++ - Difference between static and dynamic cast - the class polymorphic. why both print same output? class { public: virtual void p(){ cout << "a" << endl; } }; class b : public { public: void p()override{ cout << "b" << endl; } b(){ cout << "created b" << endl; s = "created b"; } string s; }; and main: variant 1: a* = new b(); // created b b* b = static_cast<b*>(a); b->p(); b cout<<b->s<<endl; // created b and variant 2: a* = new b(); b* b = dynamic_cast<b*>(a); if (b){ b->p(); cout << b->s << endl; // prints same } both of examples same thing, , that's fine. seek instead: a* = new a(); in case, static_cast "succeed" (though undefined behavior), whereas dynamic_cast "fail" (by returning nullptr, check for). your original examples don&#

node.js - nodejs writen file is empty -

node.js - nodejs writen file is empty - i have little problem, when seek re-create 1 file tmp dir ftp dir writen file empty. have no error, don't understand i'm doing wrong var ftppath = "/var/www/ftp/", zippath = "/var/www/tmp/", file = "test"; fs.createreadstream(zippath + file).pipe(fs.createwritestream(ftppath + file)); my test file contain loremipsum sample. if have solution, take it, line bug in app :( thank you first, create sure file /var/www/tmp/test exists, file, , has right permissions user start script with. second, create sure /var/www/ftp/ has writing permissions. then next code should work : var readerstream = fs.createreadstream('/var/www/tmp/test'); var writerstream = fs.createwritestream('/var/www/ftp/test'); readerstream.pipe(writerstream); edit : try debugging using snippet : var data; var readerstream = fs.createreadstream('/var/www/tmp/test'); readerstr

ms word - Populating Word2013 with XML data -

ms word - Populating Word2013 with XML data - this year have maintain log book of meetings tutor @ university. i'd word document can take info meetings stored in xml , insert word document , format in way define. <?xml version="1.0"?> <logbookentry> <date>02-09-2013</date> <todo> thisandthat thisandthat thisandthat </todo> <notes> morenotes </notes> </logbookentry> is there way can set word 2013 document take multiple logbook entries , add together them 1 after document formatting? you can utilize content command databinding; in word 2013 can handle repeating data. xml ms-word

python - How to disconnect the streaming on the exact date & time -

python - How to disconnect the streaming on the exact date & time - i using python , twythonstreamer stream statuses twitter. currently, setup automatic disconnect counting number of collected tweets below: first set globally max_tweets = 8000 then in def on_success(self, tweet) , have code snippet: if (count >= max_tweets): self.disconnect() homecoming false how can disconnect stream on exact date , time, let's say, on 'october 12, 2014 00:00:00' since stream process acts serverforever server (unless pass retry count) twython/streaming/api.py._request if self.retry_count , (self.retry_count - retry_counter) > 0: time.sleep(self.retry_in) retry_counter += 1 _send(retry_counter) the way stop process is, self.shutdown in on_success callback when status true or, hard way: wrap stream process, maintain pid or reference ,and kill process (like commented here) edit: approach of streamer wrapper , caller class

google app engine - GWT MVP Storing session data -

google app engine - GWT MVP Storing session data - i'm having mvp application , need temp save height info resizeablepanel (within panel dockpanel needs init height in px ). i'm not sure whats best way this. webcontext, eventbus ? you can store in view or in activity/presenter. can store in entry point class. there no single right reply here - depends on requirements , patterns use. there no need eventbus or sessions involved. google-app-engine session gwt

java - Issue in setting global array value with onPostExecute -

java - Issue in setting global array value with onPostExecute - i trying set globally defined string[] placessuggestion; using onpostexecute of asynctask<string, string, string[]> the onpostexecute method looks : @override protected void onpostexecute(string[] suggestionarray){ //log.d("suggestionarray", arrays.tostring(suggestionarray)); super.onpostexecute(suggestionarray); fillplacessuggestion(suggestionarray); log.d("suggestionarray", arrays.tostring(suggestionarray)); } fillplacessuggestion function looks : public void fillplacessuggestion(string[] suggestionarray){ placessuggestion = suggestionarray; } oncreate method looks : super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); sourceet = (edittext) findviewbyid(r.id.sourceedittext); destinationet = (edittext) findviewbyid(r.id.destinationedittext); new myasynctask().execute(); log.d("

Android login form the values does not pass to the database -

Android login form the values does not pass to the database - i created login form android application here's mainactivity.java file bundle com.chi.tripassist; import java.io.bufferedreader; import java.io.ioexception; import java.io.inputstream; import java.io.inputstreamreader; import java.util.arraylist; import org.apache.http.httpentity; import org.apache.http.httpresponse; import org.apache.http.namevaluepair; import org.apache.http.client.httpclient; import org.apache.http.client.entity.urlencodedformentity; import org.apache.http.client.methods.httppost; import org.apache.http.impl.client.defaulthttpclient; import org.apache.http.message.basicnamevaluepair; import org.apache.http.params.basichttpparams; import org.apache.http.params.httpparams; import org.json.jsonobject; import android.support.v7.app.actionbaractivity; import android.content.sharedpreferences; import android.os.bundle; import android.view.menu; import android.view.menuitem; import android.