text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
My Problem is i couldnt able to integrate my sencha2 MVC file architecture. I've googled this but didnt get succeed. I'm doing any thing wrong here? Can you suggest me the right way to do this. Thanks in Advance. this is my index.html file ``` <!DOCTYPE HTML> <html manifest="" lang="en-US"> <head> <meta charse...
[ -0.021002214401960373, 0.19220109283924103, 0.5033431053161621, 0.07489509880542755, -0.19187423586845398, -0.07011742144823074, 0.3923202455043793, -0.3585333526134491, -0.029677750542759895, -0.8106950521469116, -0.06014452874660492, 0.6347746849060059, -0.19341996312141418, -0.189123511...
}); //</debug> ``` `Ext.Loader` is what allows your JS files to live in different folders inside the `app` folder. Sencha Touch can dynamically load your files from the appropriate directory if you have configured `Ext.Loader` as described in the [tutorial](http://docs.sencha.com/touch/2-0/#!/guide/mvc_dependencie...
[ -0.023028766736388206, -0.19973784685134888, 0.6993575692176819, -0.17691448330879211, -0.10183005779981613, 0.1486956626176834, 0.14947259426116943, -0.0456959493458271, -0.16607308387756348, -0.7354575395584106, -0.2229514867067337, 0.793795645236969, -0.37225258350372314, -0.16785858571...
I want install android on my computer but using the sdk it fails to download the packages due to my speed i think. I have extensively googled for several days but could not find any result i found a page which showed a way using the abyss server to install but lost it due to a powercut and could not find it again. If a...
[ 0.5853294134140015, 0.010450292378664017, -0.0909450501203537, 0.15589222311973572, -0.19783690571784973, -0.048306580632925034, 0.5319715142250061, 0.15897752344608307, 0.008264102041721344, -0.7705907225608826, 0.216782346367836, 0.82899409532547, -0.1188093051314354, 0.18827089667320251...
you have already Eclipse .if you don't have then get it from here and Latest Eclipse is Version 3.7.[Eclipse for Java](http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr2) Step 2: As you have problem of internet speed try to Download Zip File of Latest ADT tool from this. [Android ADT Plugi...
[ 0.32162752747535706, -0.1101837307214737, 0.4853828251361847, -0.20443929731845856, -0.37523001432418823, -0.28524237871170044, 0.047785308212041855, -0.2525104284286499, -0.10433419048786163, -0.9759077429771423, -0.04929620772600174, 0.6455045342445374, -0.3504403829574585, -0.2904072999...
of Android SDK Platform from this Site -->[SDK Platform Offiine](http://qdevarena.blogspot.in/2010/05/download-android-sdk-standalone-for.html). STEp 4: Now when you get one of SDK Platform you need to put that in this for Example in my PC .I have following path . ``` E:\Android_development\android-sdk\platforms\pu...
[ 0.2740156054496765, -0.03740619122982025, 0.5370581746101379, -0.14080151915550232, -0.07160283625125885, -0.0987807959318161, 0.13615351915359497, -0.40849483013153076, -0.06660910695791245, -0.7384716868400574, -0.3567422330379486, 0.5637426376342773, -0.11962761729955673, 0.045186456292...
The following snippet from [RuntimeUtil.java](http://jlibs.googlecode.com/svn/trunk/core/src/main/java/jlibs/core/lang/RuntimeUtil.java) from jlibs guarantees GC that garbage collection is done. Since, it also uses System.gc(), i dont understand how can they guarantee that it will happen 100% of the times. Followin...
[ 0.08085913956165314, -0.0768750011920929, 0.4981423020362854, -0.04731324315071106, -0.06529965996742249, -0.18225409090518951, 0.3267177641391754, -0.03612504526972771, -0.3485249876976013, -0.5151620507240295, -0.4917641580104828, 0.2970728278160095, -0.5543524026870728, 0.08884335309267...
obj = null; while(ref.get()!=null) System.gc(); } ``` From what I can see it should work as they 1) create an object 2) get a "weak" reference to it 3) null the reference to it, in order to mark it for garbage collection 4) and wait with the while loop until it actually disappears
[ -0.1699426919221878, 0.11179468780755997, 0.37081560492515564, -0.37540459632873535, 0.19236278533935547, -0.004137581679970026, 0.7553924918174744, 0.1422913819551468, -0.2606850564479828, -0.460631787776947, -0.28924858570098877, 0.26202648878097534, -0.3900304436683655, 0.42578873038291...
I started programming in Python on Monday. I have enjoyed learning it. But I am stuck trying to understand how to avoid recursion when switching between tkinter menus! I am sure this is a very basic question, and I appreciate you tolerating my ignorance on this subject, but I have been unable to find an answer elsewher...
[ 0.2831052243709564, 0.08891623467206955, -0.03819957375526428, -0.34210509061813354, -0.1766439527273178, -0.3265509605407715, 0.7128650546073914, 0.22340688109397888, -0.34186866879463196, -0.45627593994140625, -0.03240569680929184, 0.6897262930870056, -0.4328838884830475, -0.234024152159...
:D ``` from tkinter import * def mainmenu(): global frame, root frame.destroy() frame = Frame() frame.pack() button1 = Button(frame, text="anothermenulikethis", command = anothermenulikethis) button2 = Button(frame, text="anothermenulikethis", command = anothermenulikethis) button3 = Bu...
[ -0.17096178233623505, -0.12754039466381073, 0.19321464002132416, -0.48291832208633423, -0.1005159243941307, 0.10091008991003036, 0.4406992793083191, -0.7088493704795837, -0.34615358710289, -0.6430979371070862, -0.39035841822624207, 0.30649861693382263, -0.6968604326248169, -0.0822379738092...
= mainmenu) button2 = Button(frame, text="mainmenu", command = mainmenu) button3 = Button(frame, text="anothermenulikethis", command = anothermenulikethis) button1.pack(side=LEFT) button2.pack(side=LEFT) button3.pack(side=LEFT) root.mainloop() root = Tk() root.title("Recursive Menu Problem Is...
[ -0.11873948574066162, -0.18668094277381897, 0.46538567543029785, -0.2001674771308899, 0.04617362096905708, 0.07290036231279373, 0.42694732546806335, -0.40562736988067627, -0.3490311801433563, -0.8083400726318359, -0.3311348855495453, 0.525525689125061, -0.29099801182746887, -0.271335035562...
is a poor man's solution to what is a fundamental problem with my approach. Thank you in advance, everyone. As requested, here is the traceback: ``` Exception in Tkinter callback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/tkinter/__init__.py", line 1399...
[ -0.5551543831825256, 0.32593032717704773, 0.4589860737323761, -0.009063974022865295, 0.07271632552146912, 0.3703201413154602, 0.2880065441131592, -0.4072110652923584, -0.23629829287528992, -0.32756420969963074, -0.0689215213060379, 0.4375978708267212, -0.20879967510700226, 0.10829121619462...
v = self._register(v) File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/tkinter/__init__.py", line 1079, in _register f = CallWrapper(func, subst, self).__call__ RuntimeError: maximum recursion depth exceeded ``` Only one `mainloop()` is needed to handle a tkinter GUI. With that said, I thin...
[ -0.04657275229692459, 0.019335396587848663, 0.4717291593551636, -0.4564630389213562, -0.050869524478912354, 0.21879547834396362, 0.5682692527770996, -0.5012529492378235, -0.09948736429214478, -0.4043366312980652, -0.3224138915538788, 0.8984838724136353, -0.5374451875686646, -0.069842614233...
command=self.close_app) self.quitButton.grid(row=0, column=0, padx=8, pady=8) self.helloButton = Button(self, width=12, text='Hello', command=self.say_hi) self.helloButton.grid(row=0, column=1, padx=8, pady=8) def __init__(self): Tk.__init__(self) self.t...
[ -0.17701032757759094, 0.10801124572753906, 0.5944495797157288, -0.37231457233428955, 0.07401000708341599, 0.2027009129524231, 0.4050726890563965, -0.2546723484992981, -0.13704200088977814, -0.7082052230834961, -0.32613253593444824, 0.8147349953651428, -0.528387725353241, 0.1628448665142059...
possible conflicts with other modules, some people prefer importing like this (clearly stating where everything comes from): ``` import tkinter as tk class Application(tk.Tk): def __init__(self): tk.Tk.__init__(self) self.title('Hello world!') self.quitButton = tk.Button(self, width=1...
[ -0.151722714304924, -0.020238082855939865, 0.4654070734977722, -0.3126310110092163, 0.1693318784236908, 0.1246856078505516, 0.4626502990722656, -0.16469137370586395, -0.23532380163669586, -0.5351873636245728, -0.46433505415916443, 0.7786405682563782, -0.43182656168937683, 0.228329613804817...
command=self.say_hi) self.helloButton.grid(row=0, column=1, padx=8, pady=8) def say_hi(self): print('Hello world?!') def close_app(self): self.destroy() app = Application() app.mainloop() ``` And as you can see, creating the widgets can easily happen in the `__init__` --- I decide...
[ -0.012221358716487885, 0.2364841103553772, 0.660503625869751, -0.43236157298088074, 0.06343986839056015, -0.049334295094013214, 0.5366395711898804, -0.17841951549053192, -0.08256808668375015, -0.748163104057312, -0.2669233977794647, 0.7065622806549072, -0.381481796503067, 0.117821425199508...
revelation: not everything requires a self. prefix in a class! This is especially true with a tkinter class, because you aren't manipulating it as an object in the main program. Mostly you need the self. prefix when you are going to use something in a method later. The previous examples display how anything (like the b...
[ 0.023160476237535477, -0.2683910131454468, -0.19445112347602844, 0.2388143241405487, -0.46295449137687683, -0.2804917097091675, 0.42957571148872375, -0.22981388866901398, -0.16023419797420502, -0.5280922055244446, -0.1442662626504898, 0.32180655002593994, 0.04396888613700867, 0.09264463931...
font size changes. • How to toggle a bold tag on and off of selected text. • How to truly center a GUI on the screen. [(more information here)](https://stackoverflow.com/a/10018670/1217270) • How to make a Toplevel window appear in the same location relative to the main window. • Two ways to prevent a Toplevel wind...
[ -0.2821173667907715, -0.09873153269290924, 0.8064184188842773, -0.11198581755161285, -0.07769257575273514, 0.20677874982357025, 0.297440767288208, -0.5323366522789001, -0.22467315196990967, -0.8374165296554565, -0.3351203203201294, 0.7845110297203064, -0.3085842728614807, -0.36893436312675...
menubar = tk.Menu(self) filemenu = tk.Menu(menubar, tearoff=0) filemenu.add_command(label="Exit", command=self.close_app) menubar.add_cascade(label="File", menu=filemenu) formatmenu = tk.Menu(menubar, tearoff=0) formatmenu.add_command(label="Font", command=self.show_sizeWin) ...
[ -0.07997449487447739, -0.054559435695409775, 0.7530379891395569, -0.37247636914253235, -0.18261750042438507, 0.41526588797569275, 0.34234127402305603, -0.6410335898399353, -0.2746090888977051, -0.6419583559036255, -0.2009810358285904, 0.6070185303688049, -0.44898319244384766, -0.0915229097...
command=self.make_bold) boldButton.pack() # Text widget, its font and frame self.defaultFont = tkFont.Font(name="defFont") textFrame = tk.Frame(self, borderwidth=1, relief="sunken", width=600, height=600)
[ -0.05239945650100708, -0.04676877334713936, 0.6754937767982483, -0.30584874749183655, -0.010946164838969707, 0.28577402234077454, 0.3566385805606842, -0.4327436685562134, -0.12855680286884308, -0.6620025038719177, -0.2996649146080017, 0.6401521563529968, -0.08301762491464615, -0.2157783061...
textFrame.grid_propagate(False) # ensures a consistent GUI size textFrame.pack(side="bottom", fill="both", expand=True) self.mText = tk.Text(textFrame, width=48, height=24, wrap='word', font="defFont") self.mText.grid(row=0, column=0, sticky="nsew") # Scrollbar ...
[ -0.10891498625278473, 0.04564422741532326, 0.857275128364563, -0.15819668769836426, -0.24805903434753418, 0.1420145034790039, 0.35741594433784485, -0.5206087827682495, -0.05249307304620743, -0.9619697332382202, -0.02144046500325203, 0.831088662147522, -0.355452299118042, -0.349679201841354...
self.mText.config(yscrollcommand=tScrollbar.set) # Stretchable textFrame.grid_rowconfigure(0, weight=1) textFrame.grid_columnconfigure(0, weight=1) # Bold Tag self.bold_font = tkFont.Font(self.mText, self.mText.cget("font")) self.bold_font.configure(weight="bold") sel...
[ -0.033366039395332336, 0.13421308994293213, 0.7910414338111877, -0.3864389955997467, -0.12458265572786331, 0.2381097376346588, 0.3227928578853607, -0.30575424432754517, -0.18723905086517334, -0.8368493318557739, -0.11155925691127777, 0.924681544303894, -0.2715383470058441, -0.1833315044641...
yp = (self.winfo_screenheight() / 2) - (self.winfo_height() / 2) - 30 self.geometry('{0}x{1}+{2}+{3}'.format(self.winfo_width(), self.winfo_height(),
[ 0.40950140357017517, -0.02618122100830078, 1.0878565311431885, -0.2082636058330536, 0.07576140761375427, 0.5769621729850769, -0.0941556841135025, -0.42067351937294006, -0.18174125254154205, -0.5545608401298523, -0.17350611090660095, 0.5213504433631897, 0.11223147064447403, -0.1033231392502...
xp, yp)) # Font Size Window (notice that self.sizeWin is given an alias) sizeWin = self.sizeWin = tk.Toplevel(self, bd=4, relief='ridge') self.sizeList = tk.Listbox(sizeWin, width=10, height=17, bd=4, font=("Times", "16"), relief='sunken') self.sizeList.gr...
[ -0.0791553184390068, -0.03678596019744873, 0.7521149516105652, -0.4398854076862335, -0.0637776181101799, 0.2944287061691284, 0.2384495735168457, -0.5583769083023071, -0.2870403528213501, -0.5566186904907227, -0.2945438623428345, 0.6678931713104248, -0.028507813811302185, -0.086469285190105...
doneButton.grid() for num in range(8,25): self.sizeList.insert('end', num) sizeWin.withdraw() sizeWin.overrideredirect(True) # No outerframe! # Below is another way to prevent a TopLevel window from being destroyed. # sizeWin.protocol("WM_DELETE_WINDOW", self.callb...
[ 0.11138492077589035, 0.1193426176905632, 0.6422997713088989, -0.3288809359073639, 0.09318525344133377, 0.17995333671569824, 0.25241518020629883, -0.5252673625946045, -0.3035452365875244, -0.4546028673648834, -0.2656904458999634, 0.45023825764656067, -0.15705381333827972, 0.0461995191872119...
Listbox self.sizeList.bind("<Double-Button-1>", self.choose_size) self.bind_class("Text", "<Control-a>", self.select_all) ## def callback(self): ## self.sizeWin.withdraw() def select_all(self, event): self.mText.tag_add("sel","1.0","end-1c") def choose_size(self, event=None)...
[ -0.08977014571428299, -0.26340699195861816, 0.6075788736343384, -0.44642743468284607, -0.02443849667906761, -0.11516889929771423, 0.25476109981536865, -0.6322832107543945, -0.3238374888896942, -0.5432997941970825, -0.33102938532829285, 0.6232948303222656, -0.5683154463768005, -0.2162342965...
= self.winfo_rootx() - self.sizeWin.winfo_width() - 8 ypos = self.winfo_rooty() self.sizeWin.geometry('{0}x{1}+{2}+{3}'.format(self.sizeWin.winfo_width(), self.sizeWin.winfo_height(), xpos, ypos)) def make_bold(self): try: current_...
[ 0.13347391784191132, -0.09866176545619965, 0.7293290495872498, -0.23556815087795258, 0.2551893889904022, -0.011574448086321354, 0.13129760324954987, -0.6801526546478271, -0.26535555720329285, -0.3008384704589844, -0.172024205327034, 0.6572266817092896, -0.24941366910934448, -0.140587151050...
self.mText.tag_names("sel.first") if "bt" in current_tags: self.mText.tag_remove("bt", "sel.first", "sel.last") else: self.mText.tag_add("bt", "sel.first", "sel.last") except tk.TclError: pass def close_app(self): self.destroy() a...
[ 0.16516254842281342, 0.3472605049610138, 0.5952820777893066, -0.3050500154495239, 0.28233668208122253, -0.006697204429656267, 0.566562831401825, -0.5169804096221924, -0.10127875953912735, -0.7355039715766907, -0.33604493737220764, 0.5481831431388855, -0.6852337121963501, 0.1610428243875503...
When I try to run the application the internet explorer loads my page with url like <http://localhost:1583/PMS/(S(gguhu4jtwv4waa45q5q2ehzk))/GenerateReport.aspx> And when I try to publish my site to the server, there too some string comes along with the url. Earlier it was working correctly. Why this **(S(gguhu4jtwv4...
[ 0.3109239637851715, 0.17600814998149872, 0.4240613281726837, 0.13505208492279053, -0.10935266315937042, -0.41356149315834045, 0.475624680519104, 0.19077324867248535, -0.29850977659225464, -0.958372175693512, -0.22658708691596985, 0.4821345806121826, -0.304740846157074, 0.5083428621292114, ...
i am trying one example from [Here](http://blogs.sonymobile.com/wp/2010/05/18/android-one-finger-zoom-tutorial-part-1/) for ontouch image zoom and touch on other section of mobile screen zoom-out so simply i have find this link and try to implement in code but there are something error like ``` 04-06 10:58:53.618: ERR...
[ -0.23936453461647034, 0.1718425303697586, 0.6098819375038147, -0.31847837567329407, -0.1578366905450821, 0.11814573407173157, 0.7706447839736938, -0.540674090385437, -0.07269492745399475, -0.5670796632766724, -0.15141725540161133, 0.8153072595596313, -0.24011574685573578, -0.25297036767005...
at android.os.Handler.dispatchMessage(Handler.java:99) 04-06 10:58:53.618: ERROR/AndroidRuntime(493): at android.os.Looper.loop(Looper.java:123) 04-06 10:58:53.618: ERROR/AndroidRuntime(493): at android.app.ActivityThread.main(ActivityThread.java:4627) 04-06 10:58:53.618: ERROR/AndroidRuntime(493): at java....
[ -0.48850566148757935, 0.2779547870159149, 0.31834277510643005, -0.38785114884376526, 0.00547748664394021, 0.586176335811615, 1.0342429876327515, -0.2882566452026367, -0.39473646879196167, -0.5915024876594543, -0.30629390478134155, 0.5964847803115845, -0.3802098333835602, 0.0711517110466957...
at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-06 10:58:53.618: ERROR/AndroidRuntime(493): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198) 04-06 10:58:53.618: ERROR/AndroidRuntime(493): at android.app.Activity.setContentView(Activity.java:1647) 04-06 10:5...
[ 0.294847309589386, 0.04175348952412605, 0.5652680397033691, -0.15590374171733856, 0.11796198785305023, 0.5165491104125977, 0.5910482406616211, -0.7535909414291382, -0.4469793140888214, -0.4975336790084839, -0.33364102244377136, 0.9428804516792297, -0.6113936305046082, -0.23917168378829956,...
type */ private static final int MENU_ID_PAN = 1; /** Constant used as menu item id for resetting zoom state */ private static final int MENU_ID_RESET = 2; /** Image zoom view */ private ImageZoomView mZoomView; /** Zoom state */ private ZoomState mZoomState; /** Decoded bitmap image...
[ 0.3931206464767456, -0.24519622325897217, 0.718102753162384, -0.15862995386123657, 0.23964367806911469, 0.4899756610393524, 0.3478585481643677, -0.6192867755889893, -0.13954700529575348, -0.5008721947669983, -0.5251269936561584, 0.7122865915298462, -0.6186560392379761, -0.07046014815568924...
super.onCreate(savedInstanceState); setContentView(R.layout.main); try { mZoomState = new ZoomState(); mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon); mZoomListener = new SimpleZoomListener(); mZoomListener.setZoomState(mZoomState); ...
[ 0.044617634266614914, -0.37866970896720886, 0.9448589086532593, -0.2438853234052658, 0.13138020038604736, 0.316866934299469, 0.5379389524459839, -0.40616193413734436, -0.388184130191803, -0.6641278266906738, -0.7102017402648926, 0.7455862164497375, -0.6063086986541748, 0.05919541418552399,...
mZoomView.setOnTouchListener(mZoomListener); resetZoomState(); }catch (Exception e) { // TODO: handle exception } } @Override protected void onDestroy() { super.onDestroy(); mBitmap.recycle(); mZoomView.setOnTouchListener(null); mZoomSta...
[ -0.36161938309669495, -0.3620907664299011, 0.6920726299285889, -0.3454441428184509, 0.3381917178630829, 0.2674906253814697, 0.9739181995391846, -0.4625369608402252, -0.49775466322898865, -0.6076440215110779, -0.3892194926738739, 0.5701252818107605, -0.40153977274894714, 0.4675094485282898,...
public boolean onCreateOptionsMenu(Menu menu) { menu.add(Menu.NONE, MENU_ID_ZOOM, 0, R.string.menu_zoom); menu.add(Menu.NONE, MENU_ID_PAN, 1, R.string.menu_pan); menu.add(Menu.NONE, MENU_ID_RESET, 2, R.string.menu_reset); return super.onCreateOptionsMenu(menu); } @Override p...
[ -0.004672268871217966, -0.01784767396748066, 0.1828313171863556, -0.2946329116821289, 0.5487802028656006, 0.5304365158081055, -0.038560062646865845, -0.2380882054567337, -0.19277022778987885, -0.566857635974884, -0.635464072227478, 0.738347053527832, -0.3801727294921875, 0.1498163342475891...
mZoomListener.setControlType(ControlType.ZOOM); break; case MENU_ID_PAN: mZoomListener.setControlType(ControlType.PAN); break; case MENU_ID_RESET: resetZoomState();
[ -0.3611529767513275, -0.0942300483584404, 0.10599327087402344, -0.28097933530807495, 0.601997435092926, 0.31876179575920105, 0.4567766785621643, 0.04227708280086517, -0.5153689384460449, -0.4532797634601593, -0.9004579186439514, 0.508634626865387, -0.602669358253479, 0.22411562502384186, ...
break; } return super.onOptionsItemSelected(item); } /** * Reset zoom state and notify observers */ private void resetZoomState() { mZoomState.setPanX(0.5f); mZoomState.setPanY(0.5f); mZoomState.setZoom(1f); mZoomState.notifyObservers(); } } ...
[ 0.2920711040496826, -0.15090903639793396, 0.6115419864654541, -0.24281059205532074, 0.18760330975055695, 0.08472331613302231, 0.41342779994010925, -0.4028899073600769, -0.4317455589771271, -0.5126248002052307, -0.5056899189949036, 0.6290696859359741, -0.458610475063324, -0.1181527301669120...
xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/zoomview" android:layout_width="fill_parent" android:layout_height="fill_parent" /> ``` Please help me out... ``` <?xml version="1.0" encoding="utf-8"?> <com.sonyericsson.zoom.ImageZoomView xmlns:android="http://schemas...
[ -0.0879397913813591, 0.01371324248611927, 0.4887543320655823, -0.04312054440379143, 0.026404377073049545, 0.27572932839393616, -0.24007897078990936, -0.2371949702501297, -0.06966598331928253, -0.6210673451423645, -0.32660260796546936, 0.5028279423713684, -0.09510991722345352, -0.0008337779...
/> ``` or if u have not added a class ImageZoomView in your project then plz add it as in example [Here](http://blogs.sonymobile.com/wp/2010/05/18/android-one-finger-zoom-tutorial-part-1/)
[ 0.11004257947206497, -0.27774515748023987, 0.5033929944038391, 0.10383395105600357, -0.1712411791086197, -0.04995433986186981, -0.012845253571867943, -0.06660352647304535, -0.23629418015480042, -0.5478782057762146, 0.20112067461013794, 0.4995502233505249, -0.16783452033996582, -0.280901581...
Here i am going to use the alarm service to play the alarm at every 30 minutes. Right now i have set it to play it at every 10 second from the Every start. Here is the Code: ``` @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.settings_layo...
[ 0.3353902995586395, -0.006300923880189657, 1.0757423639297485, -0.2364012449979782, 0.39551156759262085, -0.051051266491413116, 0.7505490183830261, -0.5561470985412598, -0.3409905731678009, -0.5622825622558594, 0.11623211205005646, 1.1555755138397217, -0.3193390965461731, -0.00430007232353...
from the 12:30 not from the time application start and it should repeatedly play at evert 30 minutes. like 1:00, 1:30, 2:00 . . . etc So what changes i have to do in my code ? To start a service at specific time. see this post maybe helpful: [Using Alarmmanager to start a service at specific time](https://stackoverfl...
[ 0.3727390766143799, -0.1926458477973938, 0.6443424224853516, 0.0007780234445817769, 0.26570555567741394, -0.36184266209602356, 0.5181268453598022, -0.22272437810897827, -0.21749915182590485, -0.6119812726974487, -0.19767336547374725, 0.7280927300453186, -0.03730237856507301, -0.01605023816...
If we are in the same network, then hop to hop communication takes place by layer-2 devices such as switches, bridges, *etc.* that work at the MAC layer. But if we have to send packets to a destination in some other network then hop to hop communication takes place through routers. Is this correct? Your statements ar...
[ 0.13527797162532806, -0.22103378176689148, 0.5833467245101929, 0.38680869340896606, 0.2726016044616699, -0.33011847734451294, 0.1523241549730301, 0.14176324009895325, -0.3939114511013031, -0.9306935667991638, -0.1642722636461258, 0.32747676968574524, -0.34981393814086914, -0.14867098629474...
transmits a packet on a TCP/IP network, it must know the ethernet (layer 2) address of the next hop and the IP (layer 3) address of the packet's final destination. Let's look at the two cases you describe, using a scenario where a user on Device A knows the IP address of Device B and wants to send it a packet. **Devi...
[ 0.16798867285251617, -0.25867047905921936, 0.7089351415634155, -0.11264513432979584, -0.13964185118675232, -0.20427939295768738, 0.21985507011413574, -0.28848862648010254, -0.2840518057346344, -0.674327552318573, -0.3547517657279968, 0.5184334516525269, -0.3271096646785736, 0.3075418174266...
the IP address as its own and answers the request by returning a packet with its IP and ethernet addresses as the source, and Device A's IP and ethernet addresses as the destination. 4. Now Device A has everything it needs to communicate with Device B. Every packet it transmits to Device B will have the proper ethernet...
[ 0.044390689581632614, -0.17482298612594604, 0.8959671854972839, -0.17831870913505554, 0.07079780846834183, 0.11291904747486115, -0.1297241896390915, -0.21420817077159882, -0.18282657861709595, -0.7763264179229736, -0.6048635244369507, 0.443839430809021, -0.2323731929063797, 0.2959114313125...
A switch receives the packet on one of its ports and retransmits the *same* packet on whichever port is connected to Device B. **This is the only significant difference between switched and unswitched subnets.** 4. Device B recognizes the IP address as its own and answers the request by returning a packet with its IP a...
[ 0.26363256573677063, -0.26925307512283325, 0.816189706325531, 0.1111101284623146, 0.06695680320262909, -0.011700794100761414, -0.058974724262952805, -0.0726766288280487, -0.3064080774784088, -0.8035828471183777, -0.4474647641181946, 0.08841893076896667, -0.060047902166843414, 0.55614185333...
on different subnets** 1. The user on Device A issues the command `ping 8.8.8.8`. 2. Device A broadcasts an ARP (layer 2) request, asking which device on its network can route a packet to IP address 8.8.8.8. 3. The address 8.8.8.8 is on a different network, so no local device recognizes the address as its own. However...
[ -0.050029829144477844, -0.19843389093875885, 0.7773342728614807, -0.19836661219596863, -0.06080521643161774, 0.003113411134108901, 0.13138040900230408, -0.046468138694763184, -0.2989380359649658, -0.8076022267341614, -0.35023194551467896, 0.27985599637031555, -0.3667004108428955, 0.3491616...
B by sending packets that have a destination IP address of 8.8.8.8, but the *router's* ethernet address as their destination. 5. The router receives the packets because they are destined for its ethernet (layer 2) address, but it notices that their destination IP (layer 3) addresses are different from its own, and so i...
[ 0.2772064805030823, -0.3015870749950409, 0.22172661125659943, -0.3984733819961548, -0.09672217816114426, 0.07252313196659088, 0.03922295942902565, -0.08886253088712692, -0.29081982374191284, -0.5695969462394714, -0.4290940463542938, -0.20263883471488953, -0.5286821126937866, 0.357037812471...
I am trying to parse the following JSON string remotely: ``` [{"name":"Object1","data":[1,2]},{"name":"Object2","data":[3,4]}] ``` I am doing so with the following code: ``` $(function () { var chart; $(document).ready(function() { var options = { chart: { renderTo: 'container', type: ...
[ -0.12739741802215576, -0.09732235968112946, 0.810796856880188, -0.0737876445055008, 0.2400391399860382, 0.3260399103164673, 0.260757714509964, -0.10704870522022247, 0.07022253423929214, -0.7344080805778503, -0.30062350630760193, 0.6063553690910339, 0.13956515491008759, -0.09324625879526138...
x: -20 //center }, subtitle: { text: 'Source:', x: -20 }, xAxis: { categories: ['8am', '9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm', '7pm'] }, yAxis: {
[ 0.16340361535549164, 0.23246647417545319, 0.3602476716041565, 0.30714893341064453, -0.020678287371993065, 0.42622891068458557, 0.07657173275947571, 0.25635072588920593, 0.00517421867698431, -0.516261875629425, -0.4613173305988312, 0.42019984126091003, -0.04922524839639664, 0.00549541506916...
title: { text: 'Hits' }, plotLines: [{ value: 0, width: 1, color: '#808080' }] }, tooltip: { formatter: function() {
[ -0.5616005659103394, -0.04031006991863251, 0.41319501399993896, 0.3612859547138214, 0.010411614552140236, -0.047432996332645416, 0.06944815814495087, -0.22023479640483856, 0.11483888328075409, -0.16231481730937958, -0.7906434535980225, 0.6146776080131531, 0.1510199010372162, -0.13104028999...
return '<b>'+ this.series.name +'</b><br/>'+ this.x +': '+ this.y; } }, legend: { layout: 'vertical', align: 'right', verticalAlign: 'top', x: -10, y: 100, borderWidth: 0
[ -0.49473506212234497, -0.16216729581356049, 0.7349072098731995, -0.01025434397161007, 0.22892595827579498, 0.2854790985584259, 0.21558134257793427, -0.13330203294754028, -0.2640378773212433, -0.3177631199359894, -0.19931481778621674, 0.08942505717277527, 0.009704113006591797, 0.11172627657...
}, series: [] }; $.getJSON('http://localhost:8080/jsonget', function(data) { var series = { data: [] }; $.each(data, function(i,item){ alert(item.name); series.name = item.name; $.each(item.data, function(j,dataitem){ alert(dataitem); ...
[ 0.16904740035533905, -0.6263583898544312, 0.8491947650909424, -0.37909215688705444, -0.11604095250368118, 0.4387291371822357, 0.26755350828170776, -0.3596677780151367, -0.35530126094818115, -0.6945590376853943, -0.6544936299324036, 0.46220365166664124, -0.5017886757850647, 0.45357745885849...
}); }); options.series.push(series); // Create the chart var chart = new Highcharts.Chart(options); }); }); }); ``` The chart does not render, but does so when I substitute the remote portion for the CSV example on the site. Does anyone know what the problem is? As far as I can t...
[ 0.02649114653468132, -0.23789560794830322, 1.0554606914520264, -0.12533020973205566, 0.3302101790904999, -0.10475867986679077, 0.4850132167339325, -0.0633922591805458, -0.28359925746917725, -0.6817108988761902, -0.2671869099140167, 0.6606392860412598, -0.2919665575027466, 0.335162103176116...
to be well formed. So, this should do it: ``` var chart; $.getJSON('http://localhost:8080/UDPver/tagdiscover', function(data) { // Populate series options.series = data; // Create the chart chart = new Highcharts.Chart(options); }); ```
[ -0.09281724691390991, -0.49632108211517334, 1.3101543188095093, 0.003014094429090619, 0.2735147178173065, -0.10531386733055115, 0.16876763105392456, -0.36096224188804626, -0.2331230789422989, -0.8557752370834351, -0.2693616449832916, 0.5833697319030762, -0.32470598816871643, 0.177906721830...
I've been searching everywhere trying to figure this one out. I'm trying to generate html pages from couchdb show and list functions. I'd like to leverage underscore.js's template solution. The part I'm getting stuck on is how to include html templates in my show and list functions. Where do I store them? As attachmen...
[ 0.45471036434173584, 0.004435103386640549, 0.012659088708460331, 0.09231357276439667, -0.1336812973022461, -0.2943761646747589, 0.03693920373916626, -0.047427475452423096, -0.3205339014530182, -0.7469651103019714, -0.04242154583334923, 0.49446478486061096, -0.16641655564308167, 0.053620480...
push my apps, not CouchApp. I'm unfamiliar with Kanso, but before CouchDB 1.1, view/show etc. functions in CouchDB could not include anything. (The CouchApp tool had its own `!include` workarounds to solve this.) These are not necessary anymore. CouchDB 1.1 added CommonJS support. Tll the templates and libraries must ...
[ 0.5128021836280823, -0.20678280293941498, 0.8349143862724304, -0.28663885593414307, -0.03400350734591484, 0.07185573130846024, 0.09851762652397156, -0.2834702432155609, 0.0030125370249152184, -0.9396170973777771, -0.012490931898355484, 0.721164882183075, -0.3851274251937866, -0.10628965497...
var example = require('views/lib/example'); if (doc.num) { emit(doc._id, example.fn()); } } }; ``` ([Sharing code between views](http://kan.so/docs/Sharing_code_between_views)) To render templates server-side, you'll need to encode them as string and require them like you require othe...
[ 0.3582771122455597, -0.09843003749847412, 0.16654030978679657, -0.10647384077310562, -0.13835850358009338, 0.18498001992702484, 0.10650932043790817, -0.6691113114356995, -0.10809056460857391, -0.6964834332466125, -0.1012166291475296, 0.4428873658180237, -0.48990023136138916, -0.00394857348...
I'm using jQuery clone and children concepts for my project. I'm using one table within div (class is clonedInput), by clicking one button I'm cloning the whole div and inserting it after the div. In this time: " ``` var num = $('.clonedInput').length; var newNum = new Number(num + 1); var newElem = $('#input' + ...
[ 0.34181201457977295, -0.2562426030635834, 0.36505088210105896, -0.025432201102375984, -0.025913037359714508, 0.24291159212589264, -0.1066046804189682, -0.3051585257053375, -0.11255215853452682, -0.7997919321060181, 0.16896440088748932, 0.3396248519420624, -0.12008711695671082, 0.4797280132...
for me? Thanks in advance. I'm unfamiliar with Kanso, but before CouchDB 1.1, view/show etc. functions in CouchDB could not include anything. (The CouchApp tool had its own `!include` workarounds to solve this.) These are not necessary anymore. CouchDB 1.1 added CommonJS support. Tll the templates and libraries must ...
[ 0.5306310057640076, -0.06296133995056152, 0.5038716197013855, -0.09678851068019867, -0.05757533758878708, -0.20905287563800812, 0.11898459494113922, -0.070960134267807, -0.03728107362985611, -0.9085079431533813, -0.0751451924443245, 0.7132294178009033, -0.152428537607193, 0.091368608176708...
var example = require('views/lib/example'); if (doc.num) { emit(doc._id, example.fn()); } } }; ``` ([Sharing code between views](http://kan.so/docs/Sharing_code_between_views)) To render templates server-side, you'll need to encode them as string and require them like you require othe...
[ 0.3582771122455597, -0.09843003749847412, 0.16654030978679657, -0.10647384077310562, -0.13835850358009338, 0.18498001992702484, 0.10650932043790817, -0.6691113114356995, -0.10809056460857391, -0.6964834332466125, -0.1012166291475296, 0.4428873658180237, -0.48990023136138916, -0.00394857348...
For some reason the following form isn't submitting the file like it should and I'm unsure why, on the server side if I check $\_FILES it is always empty however if I check say $\_POST['article'] that submit just fine, so only the file isn't being received then does anyone see something wrong with this? ``` ...
[ 0.36897337436676025, 0.1620483547449112, 0.5203732848167419, -0.0200937632471323, -0.16954530775547028, -0.4087877571582794, 0.2774021327495575, -0.18460050225257874, -0.3540458381175995, -0.5210608839988708, 0.138467937707901, 0.4471123218536377, -0.05338134244084358, 0.3438783586025238, ...
<input type="text" id="subject" name="subject"><br> <textarea id="article" id="article" name="article"></textarea><br> <div class="sliderimage"><h2 class="blockhead">Slider Image:</h2> <table><tr><td><b>Image:</b><br>Dimensions should be 640x360.</td><td>
[ -0.3913314938545227, -0.1885710507631302, 0.7564177513122559, 0.1103171706199646, -0.5224737524986267, 0.2553439736366272, -0.32922834157943726, -0.6589899063110352, -0.437841534614563, -0.5583339333534241, 0.029099179431796074, 0.20087282359600067, 0.06358020007610321, 0.03696542233228683...
<input type="file" id="image" name="image"></td></tr> <tr><td><b>Transition:</b></td><td> <select id="transition" name="transition"> <option value="">Random</option> <option value="sliceDown">slideDown</option>
[ -0.19232989847660065, -0.7582255601882935, 0.26063409447669983, -0.032819584012031555, -0.06500223278999329, 0.2924629747867584, -0.511503279209137, -0.43517470359802246, -0.4021945893764496, -0.7305616736412048, -0.3059576451778412, 0.21952979266643524, 0.020542465150356293, 0.08915412425...
<option value="sliceDownLeft">sliceDownLeft</option> <option value="sliceUp">sliceUp</option> <option value="sliceUpLeft">sliceUpLeft</option> <option value="fold">fold</option>
[ -0.32134491205215454, -0.9021593332290649, 0.21497216820716858, -0.32706424593925476, 0.08138779550790787, 0.5887238383293152, -0.2460615634918213, -0.12121587991714478, -0.17648182809352875, -1.0072256326675415, -0.6253023147583008, 0.5461519360542297, 0.23858045041561127, -0.362744271755...
<option value="fade">fade</option> <option value="slideInRight">slideInRight</option> <option value="slideInLeft">slideInLeft</option> <option value="boxRandom">boxRandom</option>
[ -0.33508482575416565, -0.6466225385665894, 0.5972548127174377, -0.15410864353179932, 0.16967403888702393, 0.19115698337554932, -0.11473367363214493, -0.2794119119644165, -0.43650323152542114, -0.4328485131263733, -0.19841626286506653, 0.4996776580810547, -0.2921470105648041, -0.09820415824...
<option value="boxRain">boxRain</option> <option value="boxRainReverse">boxRainReverse</option> <option value="boxRainGrow">boxRainGrow</option> <option value="boxRainGrowReverse">boxRainGrowReverse</option>
[ -0.4705880284309387, -0.6168844699859619, 0.08864259719848633, -0.017259642481803894, 0.16198532283306122, 0.7240222692489624, 0.446999192237854, 0.004842665977776051, -0.2219420075416565, -0.704343855381012, -0.39143961668014526, 0.5752555131912231, -0.13214011490345, -0.08368810266256332...
</select></td></tr> <tr><td><b>Caption:</b></td><td> <input type="text" id="caption" name="caption"></table><br></div> <input type="hidden" name="securitytoken" value="<?php echo $vbulletin->userinfo['securitytoken'] ?>" />
[ 0.06508506834506989, -0.38475003838539124, 0.20625458657741547, 0.086054228246212, -0.10340961068868637, 0.005910116713494062, 0.40241730213165283, -0.7727984189987183, -0.31315550208091736, 0.19616974890232086, -0.4785325527191162, 0.5199306011199951, -0.18334610760211945, -0.246901005506...
<div class="center"><input type="button" value="Preview" class="preview"><input type="submit" name="submit"></div> </form> ``` You need to have an input specifying the max file size: <http://www.php.net/manual/en/features.file-upload.post-method.php>
[ 0.18889778852462769, -0.37114906311035156, 0.44588154554367065, -0.09546670317649841, -0.019532335922122, 0.014968154951930046, -0.3086166977882385, -0.4455338418483734, -0.46292367577552795, -0.7228798270225525, -0.2535271644592285, 0.3552478849887848, 0.13380227982997894, -0.015842609107...
Given such a code segment: ``` #include <iostream> #include <iterator> #include <fstream> #include <string> using namespace std; int main(){ ifstream file("1.txt"); string str((istream_iterator<char>(file)),istream_iterator<char>()); file.close(); cout<<str<<endl; } ``` The code constructs a string f...
[ -0.1830167919397354, 0.13008622825145721, 0.4053683578968048, -0.3847886025905609, -0.018273157998919487, 0.1402205526828766, 0.18025898933410645, -0.3767487704753876, -0.1993744820356369, -0.5752889513969421, -0.23242753744125366, 0.5960553884506226, -0.5784550309181213, -0.00288967043161...
-- instead of defining an object named `str` with the two istream\_iterators to specify its initializers, it's parsed as a declaration of a function named `str` that returns a `string`, and the "stuff" in parentheses specifies the types of parameters it takes.
[ -0.0350368432700634, 0.22195786237716675, 0.27750036120414734, 0.011899542063474655, -0.0535055473446846, 0.14021530747413635, 0.07400844991207123, -0.15882448852062225, 0.007134580984711647, -0.09695687144994736, -0.6554836630821228, 0.31593236327171326, -0.3340590000152588, -0.1920193135...
I am trying to get file content in bytes in Android application. I have get the file in SD card now want to get the selected file in bytes. I googled but no such success. Please help Below is the code to get files with extension. Through this i get files and show in spinner. On file selection I want to get file in byt...
[ 0.334218293428421, -0.17797516286373138, 0.6699983477592468, -0.18515010178089142, -0.23675188422203064, 0.08829187601804733, 0.09559997171163559, -0.3776422142982483, -0.3957401216030121, -1.0719165802001953, -0.2836928367614746, 0.652362048625946, -0.34331241250038147, 0.0281764436513185...
public boolean accept(File pathname) { String ext; String path = pathname.getPath(); ext = path.substring(path.lastIndexOf(".") + 1); return exts.contains(ext); } }; final File [] filesFound = files.listFiles(filter); List<String> list = new ArrayList<String>(); if...
[ -0.07394813001155853, -0.09096652269363403, 0.4661630094051361, -0.4923569858074188, -0.12093841284513474, -0.20648550987243652, 0.5601588487625122, -0.6888471245765686, 0.10833694785833359, -0.2964901626110077, -0.43059253692626953, 0.5863386988639832, -0.5073481798171997, 0.1223613247275...
list.add(file.getName()); } } return list; } ``` here it's a simple: ``` File file = new File(path); int size = (int) file.length(); byte[] bytes = new byte[size]; try { BufferedInputStream buf = new BufferedInputStream(new FileInputStream(file)); buf.read(bytes, 0, bytes.length); buf.close();...
[ 0.18572235107421875, -0.21592260897159576, 0.7051949501037598, -0.2909739017486572, 0.08082350343465805, 0.19417403638362885, 0.051481325179338455, -0.64496248960495, -0.1553962379693985, -0.7315700054168701, -0.18921039998531342, 0.538714587688446, -0.5487013459205627, -0.0563815310597419...
In my login activity...I am asking the username and password.. I want to check whether the user is a authorized user or not.. If the user is authorized then my net activity menu.java starts.. else he should be redirected to the same login page...With a alert that..the user doesn't exist... How to do that?? I have writ...
[ 0.4516185224056244, -0.07815385609865189, 0.5547048449516296, -0.06968213617801666, 0.17578473687171936, -0.016255076974630356, 0.4133444130420685, -0.5912063717842102, 0.09647084772586823, -0.7766008377075195, -0.4803677499294281, 0.6061913371086121, -0.6211411356925964, -0.22821375727653...
stub super.onCreate(savedInstanceState); setContentView(R.layout.login_lay); final TextView tv=(TextView) findViewById(R.id.login_stat_tv); final EditText uname=(EditText)findViewById(R.id.uname); final EditText pass=(EditText)findViewById(R.id.pass); Button login=(Button)findViewById(R.id.login...
[ 0.029288679361343384, -0.33932921290397644, 0.9714444875717163, -0.45485687255859375, -0.31063491106033325, 0.2843695878982544, 0.5378279685974121, -0.45866867899894714, 0.04407584294676781, -0.7693614363670349, -0.5635772943496704, 0.6513609290122986, -0.305195689201355, 0.230646848678588...
= new ArrayList<NameValuePair>(); pairs.add(new BasicNameValuePair("username",uname.getText().toString())); pairs.add(new BasicNameValuePair("password",pass.getText().toString())); post.setEntity(new UrlEncodedFormEntity(pairs)); HttpResponse response = client...
[ -0.23895315825939178, -0.3151194155216217, 0.6304495334625244, -0.40782782435417175, -0.16756972670555115, 0.3439086973667145, 0.5860859751701355, -0.5139851570129395, -0.23744027316570282, -0.7104781866073608, -0.5823875069618225, 0.5045178532600403, -0.39327263832092285, 0.33064657449722...
response.getEntity().getContent())); String line = null; while ((line = rd.readLine()) != null) { tv.append(line); } //startActivity(new Intent("com.campuspro.start.DEMO_RETRV")); } catch(Exception e)
[ 0.29476895928382874, -0.6687842011451721, 0.8399385809898376, -0.13948176801204681, 0.28760814666748047, 0.03139026463031769, 0.49134376645088196, -0.37309369444847107, -0.23254051804542542, -0.5598471760749817, -0.5499693751335144, 0.5837309956550598, -0.13719184696674347, 0.1286818534135...
{ e.printStackTrace(); } } }); cancel.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { uname.getText().clear(); pass.getText().clear(); } }); } } ``` Use `Aysntask` class over here Which
[ -0.30381837487220764, -0.4402155876159668, 0.8414316177368164, -0.2683495283126831, 0.32272014021873474, 0.023214828222990036, 0.5237957835197449, -0.23913876712322235, -0.2784956395626068, -0.5961500406265259, -0.4388478696346283, 0.5260362029075623, -0.36032241582870483, 0.16242235898971...
do operation in `doInBackground()` result and give result in `onPostExecute()` ``` public class Login_Menu extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.login_lay); final ...
[ 0.13242405652999878, -0.4843829274177551, 0.953159749507904, -0.2715420126914978, 0.029601318761706352, 0.15118053555488586, 0.4828732907772064, -0.5737277865409851, -0.06222125515341759, -0.5899028182029724, -0.7283340692520142, 0.7264730334281921, -0.3600810170173645, 0.11347916722297668...
ProgressDialog dialog = ProgressDialog.show(activity.this, "", "Loading, Please wait..."); @Override protected int doInBackground(String... params) { // TODO Auto-generated method stub Log.i("thread", "Doing Something..."); //authentication operation try{ List<NameValuePair> pai...
[ 0.07709980010986328, -0.14569440484046936, 0.5600451231002808, -0.2809448540210724, -0.08928167819976807, 0.2543514370918274, 0.6454775929450989, -0.7512925267219543, -0.11612799763679504, -0.3977663516998291, -0.3636516332626343, 0.3377329409122467, -0.572735071182251, 0.01636848784983158...
HttpResponse response = client.execute(post); BufferedReader rd = new BufferedReader(new InputStreamReader( response.getEntity().getContent())); String line = null; while ((line = rd.readLine()) != null) { tv.append(line); } //startActivity(new Int...
[ 0.1009264886379242, -0.5667770504951477, 0.8411070704460144, -0.10903242230415344, 0.06492327153682709, 0.16377627849578857, 0.5053123235702515, -0.27146321535110474, -0.08476369082927704, -0.9826720952987671, -0.5928782224655151, 0.5165072083473206, -0.2504657804965973, 0.0308408085256814...
} catch(Exception e) { e.printStackTrace(); } return val; } protected void onPreExecute(){ //dialog.dismiss(); Log.i("thread", "Started..."); dialog.show(); } protected void onPostExecute(int result){ Log.i("thread", "Done..."); ...
[ 0.42923593521118164, -0.20177854597568512, 0.4827522933483124, -0.2623646557331085, 0.3630978465080261, 0.06798677891492844, 0.3640519678592682, -0.2834693491458893, -0.2378905713558197, -0.3272763788700104, -0.2837636470794678, 0.43920284509658813, -0.3254362642765045, 0.3035999834537506,...
dialog.dismiss(); if(result){ toast.setText("No User Found, please try again!"); toast.show(); }else{ Intent myIntent = new Intent(ctx, main.class); myIntent.putExtra("user", user); startActivity(myIntent); } } } ```
[ 0.33941349387168884, 0.13312652707099915, 0.8520575165748596, -0.4987027943134308, 0.16571451723575592, -0.1278681457042694, 0.5719647407531738, -0.1806485503911972, -0.03007291629910469, -0.6234810948371887, -0.3454039692878723, 0.47413426637649536, -0.20823870599269867, 0.331868827342987...
I am trying to add the gotham feature found in Instagram via PHP and ImageMagick (http://net.tutsplus.com/tutorials/php/create-instagram-filters-with-php/) The script given doesn't work, but the commands do. When I generate the commands and copy and paste them to a command line, they work fine. Yet when I try to execut...
[ 0.6222416758537292, -0.1620517522096634, 0.30864420533180237, 0.13215325772762299, -0.3340955674648285, -0.05060427263379097, 0.49586021900177, -0.18567605316638947, 0.07510384172201157, -0.5907885432243347, 0.42712974548339844, 0.6366506814956665, -0.5684137344360352, -0.2984829545021057,...
not understand the command? Here is the script ``` function gotham($image) { exec("convert " . $image . " -modulate 120,10,100 -fill '#222b6d' -colorize 20 -gamma 0.5 -contrast -contrast " . $image . " 2>&1", $output1); exec("convert " . $image . " -bordercolor black -border 20x20 " . $image . " 2>&1", $output...
[ -0.26552653312683105, -0.036891624331474304, 0.37519121170043945, 0.13173682987689972, -0.11576412618160248, 0.00018155227007810026, 0.5679363012313843, 0.0055480292066931725, 0.19025537371635437, -0.7051339149475098, -0.4110945761203766, 0.8655293583869934, -0.5601573586463928, -0.1388217...
subset of UTF-8. The [go-charset](http://code.google.com/p/go-charset/) package (found from [here](http://godashboard.appspot.com/)) supports conversion to and from UTF-8 and it also links to the GNU iconv library. See also field `CharsetReader` in [encoding/xml.Decoder](http://golang.org/pkg/encoding/xml/#Decoder).
[ -0.31758245825767517, -0.1280682384967804, 0.33924171328544617, -0.3139607012271881, -0.10573658347129822, -0.012060150504112244, 0.2188236266374588, -0.0564141646027565, -0.24704420566558838, -0.6858229041099548, -0.8432880640029907, 0.49929165840148926, -0.8387115597724915, -0.6318373680...
When I mouse over the services link the right hand side hover keeps disappearing. I have looked at the css and I cant seem to find where to fix it. This website is <http://www.aoaluminiumproducts.com.au> and my CSS is as below: ``` html { height: 100%;} * { margin: 0; padding: 0;} body { font: 0.8em/1.5 "arial",sa...
[ -0.24676768481731415, 0.28893983364105225, 0.6979735493659973, 0.01174867618829012, -0.22126154601573944, 0.6365082263946533, 0.45511406660079956, 0.03678114339709282, -0.014847373589873314, -0.727988600730896, -0.09716566652059555, 0.1685340851545334, -0.15987445414066315, 0.1523901373147...
'century gothic', arial, sans-serif; color: #1293EE;} h4, h5, h6 { margin: 0; padding: 0 0 5px 0; font: normal 120% arial, sans-serif; color: #1293EE;} h5, h6 { font: italic 95% arial, sans-serif; padding: 0 0 15px 0; color: #000;} h6 { color: #362C20;} a, a:hover { outline: none; text-decoration: und...
[ -0.60329669713974, 0.1328372359275818, 0.6348739266395569, 0.17215050756931305, -0.4312330186367035, 0.7228320240974426, 0.683921217918396, -0.18647539615631104, -0.3444223403930664, -0.4904014766216278, -0.3952706456184387, -0.1824408620595932, -0.015725042670965195, 0.44127729535102844, ...
0 22px 17px;} ul li { list-style-type: circle; margin: 0 0 6px 0; padding: 0 0 4px 5px;} ol { margin: 8px 0 22px 20px;} ol li { margin: 0 0 11px 0;} #main, #logo, #menubar, #site_content, #footer { margin-left: auto; margin-right: auto;} #header { background: #990000; height: 240px;} #logo { width: 810p...
[ -0.24975763261318207, 0.17058704793453217, 0.9450015425682068, 0.04151150956749916, -0.33330291509628296, 0.5583632588386536, 0.3083696663379669, -0.03817227482795715, -0.24311859905719757, -0.5490961670875549, -0.32687821984291077, -0.013621771708130836, 0.07788867503404617, 0.23528657853...
0; color: #FFF; letter-spacing: 0.1em; text-decoration: none;} #logo_text h1 a .logo_colour { color: #FAF700;} #logo_text h2 { font-size: 100%; padding: 4px 0 0 0; color: #DDD;} #menubar { width: 877px; height: 72px; padding: 0; background: #150517; url(menu.png) repeat-x; } ul#menu, ul#menu li {...
[ -0.3575446903705597, 0.08227957785129547, 0.7419793009757996, -0.12330342084169388, -0.17020449042320251, 0.6914768815040588, 0.2917200028896332, -0.4066762626171112, -0.03863620012998581, -0.5700052976608276, -0.5818226933479309, 0.31118547916412354, -0.21848662197589874, -0.0335884019732...
background: transparent;} ul#menu li a:hover, ul#menu li.selected a, ul#menu li.selected a:hover { color: #FFF; background: #451C1B url(menu_select.png) repeat-x;} ul#menu li ul#sub_nav { /*border:1px solid red;*/ position: absolute; left: 0; top:35px; padding: 15px 0; width: 170px; margin:...
[ -0.6050998568534851, -0.279186487197876, 0.7199292778968811, -0.23498758673667908, -0.10891364514827728, 0.6690471172332764, 0.18330685794353485, -0.17085768282413483, -0.3013139069080353, -0.7606593370437622, -0.53736412525177, 0.2563716471195221, -0.24306613206863403, 0.21604904532432556...
178px; padding: 4px 0 0 0; margin: 4px 0 30px 0;} .sidebar li { list-style: none; padding: 0 0 7px 0; } .sidebar li a, .sidebar li a:hover { padding: 0 0 0 40px; display: block; background: transparent url(link.png) no-repeat left center;} .sidebar li a.selected { color: #444; text-decoration: none;}...
[ -0.266243577003479, 0.09037034958600998, 1.0119928121566772, 0.05471049249172211, -0.2917450964450836, 0.5322532653808594, 0.22887560725212097, -0.26718369126319885, -0.19031591713428497, -0.39185330271720886, -0.3747280538082123, 0.179354727268219, -0.34236809611320496, -0.163606360554695...
100% 'lucida sans unicode', arial, sans-serif; height: 33px; padding: 24px 0 5px 0; text-align: center; background: #000000; color: #b1b1b1; text-transform: uppercase; letter-spacing: 0.1em;} #footer a { color: #FFF; text-decoration: none;} #footer a:hover { color: #FFF; text-decoration: underline;...
[ -0.38185200095176697, 0.0594482459127903, 0.6419316530227661, -0.005476630292832851, -0.13297802209854126, 0.6466350555419922, 0.41844442486763, -0.3430071175098419, 0.22278955578804016, -0.5689645409584045, -0.2748485803604126, 0.15581834316253662, -0.0998355969786644, -0.1103792488574981...
textarea { padding: 5px; width: 299px; font: 100% arial; border: 1px solid #E5E5DB; background: #FFF; color: #47433F;} .form_settings .submit { font: 100% arial; border: 1px solid; width: 99px; margin: 0 0 0 212px; height: 33px; padding: 2px 0 3px 0; cursor: pointer; background: #7D0F...
[ -0.556079626083374, -0.043517112731933594, 0.8632020354270935, 0.04596664011478424, -0.36295053362846375, 0.48939675092697144, 0.5329338908195496, -0.461565762758255, 0.19186609983444214, -0.6792522072792053, -0.46339505910873413, 0.411326140165329, -0.12208311259746552, -0.006918451748788...
height: 0; border-top: 1px solid #D9D5CF; border-bottom: 1px solid #FFF; margin: 0 0 20px 0;} table { margin: 10px 0 30px 0;} table tr th, table tr td { background: #DCDCDC; color: #DCDCDC; padding: 7px 4px; text-align: left;} table tr td { background: #DCDCDC; color: #DCDCDC; } #testimonials{ wid...
[ -0.4628826081752777, 0.25503629446029663, 1.0537104606628418, 0.4140715003013611, -0.09413404017686844, 0.5020843744277954, 0.19967107474803925, -0.3170017600059509, -0.06146327406167984, -0.44670429825782776, -0.42894768714904785, 0.2738403081893921, 0.12990368902683258, 0.145353138446807...
font-style: italic; text-align: left; } #testimonials p.author a, #testimonials p.author a:visited{ color:#6aa42a; } ``` The standard Go library only supports Unicode (UTF-8, UTF-16, UTF-32) and ASCII encoding. ASCII is a subset of UTF-8. The [go-charset](http://code.google.com/p/go-charset/) package (found...
[ -0.48147523403167725, 0.14319895207881927, 0.39317360520362854, -0.016493460163474083, -0.31122490763664246, 0.2567300796508789, 0.1610114872455597, 0.05529361218214035, -0.11667072772979736, -0.8477075695991516, -0.6018444299697876, 0.4773537218570709, -0.5580098032951355, -0.525293171405...
I have a string which comes from the DB. the string is something like this:- ``` ABC:def,ghi:jkl,hfh:fhgh,ahf:jasg ``` In short `String:String`, and it repeats for large values. I need to parse this string to get only the words without any `:` or `,` and store each word in ArrayList I can do it using split functio...
[ 0.07532364130020142, 0.11426965892314911, 0.42922353744506836, -0.2930043339729309, -0.4444345235824585, -0.051587898284196854, 0.486127108335495, -0.3287683427333832, 0.058863505721092224, -0.47139108180999756, -0.08798111230134964, 0.27866941690444946, -0.397594153881073, 0.4085053205490...
while(titleMatcher.find()) { i=titleMatcher.start(); System.out.println(strLine.charAt(i)); } ``` However it is not giving me proper results..It ends up giving me index of match found and then I need to append it which is not so logical and efficient,. Is there any way aroun...
[ -0.2857164740562439, 0.0693952888250351, 0.7005453705787659, -0.19134336709976196, 0.08216002583503723, 0.0012110349489375949, 0.5335645079612732, -0.23425757884979248, -0.12502379715442657, -0.35611265897750854, -0.43435928225517273, 0.4416579604148865, -0.40074655413627625, 0.50021195411...
I have to show many values in a Picklist, and up to certain limit it works. However, it throws an error when it reaches a certain limit when I assign to it. So help me out, how can I manage to store more values in a Picklist? Formula is like below: ``` CASE( Name, "Virgin Australia",HYPERLINK("http://www.virginaustr...
[ 0.22212910652160645, -0.17902572453022003, 0.38103777170181274, 0.36332574486732483, 0.2929675877094269, 0.6481777429580688, 0.04547642171382904, 0.1634412556886673, -0.32310399413108826, -0.5123423933982849, -0.12039585411548615, 0.07488135248422623, -0.33293744921684265, 0.17888936400413...
too big to execute (5,171 characters). Maximum size is 5,000 characters You could address this in a couple of ways. My preferred way is to use workflow field updates. You could split up your case statements into individual workflows and update a field with with the right link. That way you are splitting the formula ca...
[ 0.01614122837781906, -0.06734159588813782, 0.1199486032128334, 0.262420117855072, 0.3444351851940155, 0.3505377471446991, 0.090518519282341, -0.05928882583975792, -0.39427822828292847, -0.512477695941925, -0.12930165231227875, 0.2389843910932541, -0.3350895345211029, -0.14286787807941437, ...