text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I've got a pickerview. I would like to call a specific function each time the list changes (an item is added or removed). How would I be able to do that ? I have tried a few IB Actions but could not get the function triggered. **Extra**: Here is a little bit more about the project just in case you have a better...
[ 0.4393653869628906, -0.32316216826438904, 0.1847275197505951, 0.1395600140094757, -0.032611291855573654, 0.29597043991088867, -0.2443050593137741, 0.06134140118956566, -0.19160033762454987, -0.4240882694721222, 0.42986661195755005, 0.3240472376346588, 0.1413526087999344, 0.1566676795482635...
to the picker view, the picker view updates. I think you are looking for `[pickerView reloadAllComponents];` this will reload all the components of the picker view
[ 0.2434038370847702, -0.4161262512207031, 0.48982930183410645, -0.08020525425672531, -0.10199140757322311, -0.1207866445183754, -0.16250719130039215, 0.26621466875076294, -0.41936734318733215, -0.5477362275123596, -0.0017270257230848074, 0.4763588309288025, -0.13949386775493622, 0.107672207...
I often see a pattern used in circumstances where we have look-up code that needs to be executed before we have access to an object. When using this pattern, usually begins with the word `with`. For example, we have customer records that need to be retrieved from a database before we can use them: ``` def withCustome...
[ -0.0014400702202692628, 0.03827816620469093, 0.3142930865287781, -0.2519684135913849, 0.11689864099025726, -0.271531879901886, 0.03327130153775215, 0.1880277395248413, -0.4022079408168793, -0.3140147924423218, -0.36283671855926514, 0.550626277923584, -0.33620625734329224, 0.335768431425094...
anonymous functions. This is the Strategy pattern. The closure holds some piece of behavior to be passed into the function as an argument, so that the function can accept different behaviors. See Peter Norvig's presentation [Design Patterns in Dynamic Languages](http://norvig.com/design-patterns/ppframe.htm): > The st...
[ -0.31601983308792114, -0.5443147420883179, 0.049632418900728226, -0.09163572639226913, -0.23587514460086823, 0.16048933565616608, 0.20364287495613098, 0.013194800354540348, -0.18776004016399384, -0.1810603141784668, -0.20136363804340363, 0.538486123085022, -1.0087146759033203, -0.129031464...
I'm wondering if there's a way to do this in a "simple way" and maybe someone knows a solution: I'm working with javax.swing.text.html.HTMLDocument class, but for some reason, at least 2 methods that I need are non-public, even so, I need to "override" them, to change a few things, but, in some way, I need to keep the...
[ 0.30487820506095886, 0.20756256580352783, 0.05319378525018692, 0.1201927438378334, -0.16022945940494537, -0.3686279356479645, 0.2887386679649353, -0.21525345742702484, -0.23538434505462646, -0.6484919786453247, 0.3489207327365875, 0.48400169610977173, -0.26844272017478943, 0.01710144244134...
working.. so, being desesperated, I've "copy - paste all" HTMLDocument code as MyHTMLDocument, (extending HTMLDocument), change what I needed and put it on my own "javax.swing.text.html" package, and it seems to work for now, but... ...when I finally run it, I'm getting stuck on some "Illegal Access errors", when I c...
[ 0.14558815956115723, 0.08906865864992142, 0.4176003336906433, -0.01345968246459961, -0.24317362904548645, -0.11331578344106674, 0.4648151695728302, -0.3582627475261688, -0.3045864999294281, -0.583888828754425, -0.18325549364089966, 0.5305191874504089, -0.39455315470695496, -0.3866557776927...
HTML.Tag insertTag, boolean insertInsertTag)** the last one, is non public or protected. Also, there is an inner-Class called HTMLReader and it has 3 constructors: **public HTMLReader(int offset)** **public HTMLReader(int offset, int popDepth, int pushDepth, HTML.Tag insertTag)** **HTMLReader(int offset, int popDe...
[ -0.022720983251929283, -0.05787741765379906, 0.6710187792778015, 0.10380495339632034, -0.30352017283439636, -0.06629174202680588, 0.1466980278491974, -0.23583251237869263, -0.12530620396137238, -0.7037433385848999, -0.01355485338717699, 0.6597312688827515, -0.4890829622745514, -0.281093269...
the same for constructors... Thanks again. Those methods are both *package private*, which is why you can't get to them. I agree that it might be a bug, given the comments in the source: ``` 356 /** 357 * Fetches the reader for the parser to use to load the document 358 * with HTML. This is implem...
[ 0.246211975812912, 0.12911389768123627, 0.34288400411605835, 0.0799083411693573, -0.27297091484069824, 0.05817779153585434, 0.4114864468574524, -0.2951611876487732, -0.22089196741580963, -0.6025139689445496, 0.057166121900081635, 0.4404381215572357, -0.33946412801742554, -0.050459291785955...
method to change how the document get structured if desired 361 * (e.g. to handle custom tags, structurally represent character 362 * style elements, etc.). 363 * ... ``` If you *really* wanted to do this, you could put it in `javax.swing.text.html` inside your own project. There's n...
[ 0.3570249676704407, -0.22125394642353058, 0.38941967487335205, 0.11048807203769684, -0.05627894029021263, -0.13041986525058746, 0.2532762289047241, -0.5592573881149292, -0.34436771273612976, -0.693679928779602, -0.10726987570524216, 0.17660829424858093, -0.5763506889343262, -0.382224172353...
right. There might be class-loading issues, especially if you're running in a container that plays games with classloading.
[ 0.2800336182117462, -0.042041558772325516, -0.29430222511291504, 0.492086261510849, 0.16571708023548126, -0.1508416086435318, -0.09215307980775833, 0.33360108733177185, -0.27114805579185486, 0.06185032054781914, 0.030909765511751175, 0.4205896556377411, 0.17080828547477722, 0.0911737307906...
I have tried Tesseract with iPhone and assessed its accuracy to be 70% without image preprocessing. I also noticed that it might be poor in extracting digits. I have heard about OCRopus OCR engine: which is better, Tesseract or OCRopus, in terms of digit extraction and if my image preprocessing is low? Has anyone ru...
[ -0.4144999384880066, -0.16832537949085236, 0.32992610335350037, 0.23447898030281067, -0.2609122395515442, 0.47335824370384216, 0.2015915960073471, -0.07827793061733246, -0.07252673804759979, -0.6646016240119934, 0.2837355434894562, 0.6039106249809265, -0.00918540544807911, -0.1557497233152...
year ago, and OCRopus was definitely losing to Tesseract, I am not even talking about commercial enignes. Since then I stopped following OCRopus progress, but what I definetely know that activity on OCRopus support forum is close to zero now. That means, no one is using it. Mostly people are using commercial engines, b...
[ 0.28023210167884827, 0.07356759160757065, 0.1264374554157257, 0.018550261855125427, -0.09260710328817368, -0.4061603546142578, 0.11531629413366318, 0.5560062527656555, 0.033127203583717346, -0.3754868805408478, 0.3150729537010193, 0.5171341300010681, -0.08889894187450409, 0.354991108179092...
I have a form and I have some buttons doing stuff. When I press buttons the windows form controls, like textboxes or group-boxes, buttons appear and disappear and change place on my form, for it is a dynamic form :) However, what I'd like to do is have a button ( `BACK` ) that will get my form to the state it was be...
[ 0.22745659947395325, -0.04514718055725098, 0.6582213640213013, 0.15596525371074677, -0.10098599642515182, -0.17372125387191772, 0.2164599746465683, -0.03391358628869057, -0.023168617859482765, -0.8483307957649231, 0.01201450452208519, 0.19727711379528046, 0.07325034588575363, -0.0623061582...
form state in that array and when I'll press the `back` button to get from array that "copy" of the Form state and maybe an index for indexing states. I have no idea how to implement this, unfortunately. :| Can anyone show me the right way to do this? ``` class Mystate { private Form1 [] state; public Mysta...
[ 0.14817562699317932, -0.10902789235115051, 0.5098838210105896, -0.09617269039154053, 0.20772521197795868, -0.15896709263324738, 0.5328949689865112, -0.14182037115097046, 0.04512215778231621, -0.8731098175048828, -0.2201148271560669, 0.3876776695251465, -0.3409225046634674, 0.20203121006488...
{ return state[index]; } set { this.state[index] = value; } } } ``` Initially OCRopus was actually using Tesseract as recognition engine inside, but later they changed it to their own brand-new engine. It is still fresh and not mature. We have been making
[ -0.25249192118644714, -0.27359992265701294, 0.3175773322582245, 0.1398785412311554, -0.21085655689239502, -0.010978467762470245, 0.22496941685676575, -0.03126651793718338, 0.1945163905620575, -0.8444420695304871, 0.26065534353256226, 0.25928765535354614, -0.28743651509284973, 0.13521888852...
accuracy comparison about year ago, and OCRopus was definitely losing to Tesseract, I am not even talking about commercial enignes. Since then I stopped following OCRopus progress, but what I definetely know that activity on OCRopus support forum is close to zero now. That means, no one is using it. Mostly people are u...
[ 0.07697992771863937, 0.004856438841670752, 0.2959165871143341, 0.16153651475906372, -0.17976942658424377, -0.10625988245010376, 0.040995042771101, 0.3328905999660492, 0.1703680455684662, -0.5912770628929138, 0.4282877445220947, 0.6042552590370178, 0.07706611603498459, 0.1577146053314209, ...
I've always found SQL Server date formatting to be counter intuitive. I am pretty sure I already know the only answer is to use a slew of convert and string functions but thought I would ask just in case. How do you get SQL Server to format a `datetime` to look like: ``` %Y-%m-%d %I:%M%P or '2012-04-05 11:56am' ``` ...
[ 0.2695564329624176, 0.021168123930692673, 0.45680686831474304, -0.10110478848218918, 0.0381016843020916, -0.17989616096019745, 0.009987524710595608, 0.08530744910240173, -0.25572633743286133, -0.4382270872592926, -0.1507112830877304, 0.5577784776687622, -0.15749920904636383, 0.136275798082...
to SQL Server 2012. [FORMAT (Transact-SQL)](http://msdn.microsoft.com/en-us/library/hh213505.aspx)
[ -0.19529038667678833, -0.08612849563360214, 0.2791646718978882, 0.21439911425113678, -0.00036401234683580697, -0.02557695284485817, 0.1300058513879776, -0.10769613087177277, -0.11736086755990982, -0.4269821345806122, -0.3977026343345642, 0.24431703984737396, -0.19746632874011993, 0.0289648...
I'm new to js/jQuery. Forgive this horrible script. I'm lost. \*(Updated with global variable ifTaxRate as suggested.)\* I'm trying to calculate tax, subtotal, and total based on a customer's selected state and quantity ordered and dynamically display it onscreen. If a customer is from Idaho, I'm trying to apply a 6...
[ 0.4318331480026245, 0.42695218324661255, 0.1962164044380188, 0.07043783366680145, 0.2582397162914276, 0.2748740017414093, 0.38000503182411194, -0.12781615555286407, -0.16349463164806366, -0.4898506700992584, 0.2698284685611725, 0.18921414017677307, -0.10886276513338089, 0.4883233904838562,...
. <option value="8">8 Bottles (240 Day Supply)</option> </select> ``` Divs to display info: ``` <div class="quantityselected"></div> <div class="productprice"></div> <div class="pricequantity"></div> <div class="subtotal"></div> <div class="tax"></div> <div class="shipping"></div> <div class="total"></div> ``` ...
[ 0.45896583795547485, -0.1329042762517929, 0.5833039283752441, -0.32587704062461853, 0.20316550135612488, 0.53642737865448, -0.021396705880761147, -0.6121511459350586, -0.047723978757858276, -0.5273959040641785, -0.27246832847595215, 0.738442063331604, -0.12130118161439896, 0.18017204105854...
ifTaxRate = 0; } }); }); function doMath() { var quant = parseInt(document.getElementById('orderquantity').value); //change price here var price = 69.99;
[ 0.13842029869556427, -0.2957257628440857, 0.738330066204071, -0.31881582736968994, 0.3721986711025238, 0.2317209243774414, 0.0186709426343441, -0.44173842668533325, 0.2912490963935852, -0.2912580668926239, -0.5058329105377197, 1.165036916732788, -0.0934162586927414, 0.5882927775382996, 0...
var tax = ifTaxRate; //change flat shipping cost here var shipping = 4.99; var subtotal = quant * price; var taxtotal = tax * subtotal; var total = subtotal + tax;
[ 0.05621660128235817, -0.41222235560417175, 0.3248709738254547, -0.17245133221149445, -0.049607813358306885, 0.697888195514679, -0.27546027302742004, -0.03481031209230423, -0.15615618228912354, -0.13349193334579468, -0.23186855018138885, 0.9710413813591003, 0.17296744883060455, 0.0649348720...
$('.quantityselected').value = quant; $('.productprice').value = price; $('.pricequantity').value = subtotal; $('.tax').value = taxtotal; $('.shipping').value = shipping; $('.total').value = shipping; } </script> ``` one big problem i see here is your...
[ 0.304794579744339, -0.1542796641588211, 0.05883803218603134, -0.14047914743423462, 0.3799359202384949, 0.0457233227789402, -0.08732790499925613, 0.22017842531204224, 0.05202381685376167, 0.016739260405302048, -0.1492261439561844, 0.6989539265632629, -0.3393877148628235, 0.340498685836792, ...
function you pass as a parameter on `$('state').change();` You have to declare it as a global variable, and not redeclare it inside said function: ``` var ifTaxRate = 0; //new $(document).ready(function() { $("#state").change(function() { if ($(this).val() == 'ID') { ifTaxRate = .06; } e...
[ 0.09299267828464508, -0.14788946509361267, 0.5773748159408569, -0.3003372251987457, 0.4618556499481201, -0.05158263072371483, 0.24490493535995483, -0.40418142080307007, -0.08034603297710419, -0.4524509906768799, -0.2787734866142273, 0.7315226793289185, -0.44501689076423645, 0.4096021950244...
change a select box value, doMath() is called $('select').change(doMath); }); ``` this way, it will be accessible whereever you need it... update ====== as for the content not showing in the divs, don't use ``` $('.quantityselected').value = quant; ``` it won't work for two different reasons: first: `.value =...
[ -0.02549939602613449, -0.41118142008781433, 0.7622048258781433, -0.14249227941036224, 0.2171182632446289, 0.034676581621170044, -0.02691362053155899, -0.3973727524280548, -0.07596560567617416, -0.5895689725875854, -0.376251220703125, 0.5660700798034668, -0.5335875749588013, 0.0474730394780...
I would like to match positive and negative numbers (no decimal or thousand separators) inside a string using .NET, but I want to match whole words only. So if a string looks like ``` redeem: -1234 paid: 234432 ``` then I'd like to match -1234 and 234432 But if text is ``` LS022-1234-5678 FA123245 ``` then I wan...
[ 0.011336223222315311, 0.25439614057540894, 0.29087430238723755, 0.0024830515030771494, -0.19318607449531555, -0.029395155608654022, 0.2817508578300476, -0.08995708078145981, -0.019645076245069504, -0.5751091241836548, 0.025921765714883804, 0.5459938645362854, -0.2721817195415497, -0.097970...
any issues and I'll try and help. If you'd like me to explain either of them, let me know that too. ***EDIT*** To only match if there is a space or tab just before the number / negative sign (as noted in the comment below), this could be used: ``` (?<=[ \t])-?\d+ ``` *Note that it will match e.g. on the first numb...
[ 0.28695228695869446, 0.16630050539970398, 0.4309905171394348, 0.04209482669830322, 0.153593048453331, -0.026713306084275246, 0.25301697850227356, 0.14398474991321564, -0.15067178010940552, -0.8136358261108398, -0.36366087198257446, 0.5329576134681702, -0.26449742913246155, -0.0494523867964...
im having a problem i havent been able to figure out a solution to. Im making a small game where the object in \_sballs ArrayList will be deleted if collided with another object called ball. the problem i've encountered is that when the collision occur and when i attempt to remove the object from the ArrayList, the app...
[ -0.48348796367645264, -0.15601472556591034, 0.6209055185317993, -0.09614845365285873, -0.02647283859550953, -0.05469867214560509, 0.4781736135482788, -0.3965965807437897, -0.28134042024612427, -0.6401719450950623, -0.34352898597717285, 0.4786888659000397, -0.470380961894989, -0.00117016828...
+ sballcoords._width){ _sballs.remove(sballgraphic); } } ``` So the code compares the balls coordinates with all the sballs objects to check if there is a collision, then tries to remove the sball. What is the problem here? :) I'm guessing that the "crash" is a `ConcurrentModifica...
[ -0.04459758475422859, -0.09880933165550232, 0.28033575415611267, 0.09091319143772125, -0.21140597760677338, -0.20244625210762024, 0.21548780798912048, -0.35648155212402344, -0.39046192169189453, -0.5207351446151733, -0.13106171786785126, 0.5280106067657471, -0.5486987829208374, 0.169059231...
for). Your choices are: 1. Iterate using an index (old-style `for( i=0; i<_sballs.size(); i++ )`) 2. Iterate using an iterator explicitly, and use the iterator's `remove()` method. 3. Remember which items to remove by putting them into another list, and then use `removeAll()` after the loop is finished.
[ 0.21539318561553955, -0.20593520998954773, 0.19365671277046204, -0.31134000420570374, 0.4358009397983551, 0.11092103272676468, 0.2710016071796417, -0.8120056986808777, -0.08856604248285294, -0.4404312074184418, -0.29180166125297546, 0.574866533279419, -0.5213583707809448, 0.037192396819591...
I'm a newbie in bash scripts and have the following problem : I'm trying to make a search script that let me search for files containing a certain string with find and / or grep and optional parameters, and I'm stuck with one last problem, the \* character that doesn't match the condition in all cases. There are 3 par...
[ 0.1292351335287094, 0.3021945059299469, 0.2745290696620941, -0.22226375341415405, -0.11078903824090958, -0.07087009400129318, 0.3349064290523529, -0.18363410234451294, -0.24825449287891388, -0.7845304608345032, 0.02427915297448635, 0.722628653049469, -0.12985840439796448, -0.07211441546678...
or '\*' => find + grep Here's my code : ``` #!/bin/bash # ------------------------------------ # Set default values for optional parameters (tests) if [ ! -z $2 ] then FILE_TYPE=$2 echo 'FILE_TYPE : var 2' else FILE_TYPE="*" echo 'FILE_TYPE : *' fi if [ ! -z $3 ] then LOCATION=$3 echo '...
[ 0.1941787302494049, 0.05424709618091583, 0.34784406423568726, -0.24700941145420074, 0.29524490237236023, 0.1189740002155304, 0.4358288049697876, -0.7271040081977844, -0.1184098869562149, -0.38691261410713196, -0.2935418486595154, 0.6004488468170166, -0.1907617598772049, -0.1681375503540039...
"$1" $LOCATION | less -R; echo ' => GREP'; else #find $LOCATION -iname $FILE_TYPE | sort | xargs grep "$1" --color=always -n 2>/dev/null | less -R; echo '=> FIND'; fi ``` Just run this code to show the 2 echos at the end for testing. **Now my problem is :** ``` ./search_text.sh 'string_to_search' '*....
[ 0.12000124901533127, 0.1244342252612114, 0.3100086450576782, -0.32160186767578125, -0.010475976392626762, -0.0072497352957725525, 0.8370727300643921, -0.915095865726471, -0.32129472494125366, -0.483715295791626, -0.017667122185230255, 0.43879204988479614, -0.7234756946563721, 0.01662648841...
=> ERROR => goes to FIND INSTEAD OF GREP :-( ./search_text.sh 'string_to_search' => works (GREP) ``` In other words how could I write the following condition : ``` if [ "$FILE_TYPE" == \* ]; ``` so that \* should be considered the same as '\*' when passing these values as a parameter in command l...
[ -0.026766324415802956, 0.22025437653064728, 0.31889620423316956, -0.16392284631729126, 0.15280525386333466, -0.048673421144485474, 0.6659736037254333, -0.31599605083465576, -0.15563707053661346, -0.6556051969528198, -0.1651480495929718, 0.6741445660591125, -0.14987830817699432, 0.031043902...
\* to be considered as a normal wildcard like in any other command, so that \* = '\*' Many thanks for any help ! You can disable all glob expansion using ``` set -o noglob ``` Afterwards `*` is not special: ``` $ ls * ls: *: No such file or directory ``` However, there is no way to force your users to do this b...
[ -0.3351392149925232, -0.25069382786750793, 0.5627090334892273, 0.0029498606454581022, 0.11995116621255875, -0.2026328593492508, 0.14170360565185547, 0.23614835739135742, -0.3052145540714264, -0.6213364005088806, -0.28156161308288574, 0.4777943193912506, -0.38235390186309814, 0.253152400255...
and `$1` is not a literal `*` use the `grep` case.
[ 0.2199367880821228, 0.28104060888290405, -0.042786356061697006, -0.12138089537620544, -0.023592093959450722, -0.03132830932736397, -0.03834830969572067, 0.2576572597026825, -0.021668564528226852, -0.03637663275003433, -0.49246421456336975, 0.3038542568683624, -0.3108031749725342, 0.0757543...
i will be targeting my app to all the android devices, what is the best way of doing it? so far i will be targeting Android phone and Kindle-fire and here is my thoughts. android phone and its working as expected with images,font size etc... so i thought to test my app for kindle-fire: create AVD emulator for kindle-...
[ 0.35918179154396057, 0.0565171055495739, 0.6117042303085327, -0.04633507877588272, -0.35738617181777954, 0.3767384886741638, 0.13594256341457367, -0.1357010006904602, -0.2115040421485901, -0.8021986484527588, 0.03316834196448326, 0.8111807107925415, -0.1226978600025177, -0.2038671821355819...
back button in my activity so i assume the user will be able to use the back arrow button in kindle-fire but in the emulator there is none showing. Here are the specs of the Kindle Fire * Width: 600px * Height: 1024px * Abstracted LCD Density: 169 * Target: Android 2.3.3 - API Level 10 * RAM: 512 MB what do i need ...
[ 0.053635723888874054, 0.07010949403047562, 0.6999830603599548, -0.11951098591089249, -0.1322125643491745, 0.4078631103038788, -0.03812408819794655, -0.5667956471443176, -0.14443401992321014, -0.7218796610832214, -0.02301127091050148, 0.782078206539154, 0.10865911096334457, -0.4370732605457...
FROM NOTES) ``` Results Man1 456 & Man2 123 ``` SELECT * FROM PEOPLE WHERE ID NOT IN (SELECT ID FROM NOTES) ``` Results Man3 789
[ -0.5518802404403687, 0.44521111249923706, -0.042642854154109955, -0.11326158046722412, -0.148819699883461, 0.4858377277851105, 0.40428149700164795, -0.9114486575126648, -0.3269367516040802, -0.7083057761192322, -0.21396148204803467, 0.165800079703331, -0.14236681163311005, -0.2791618704795...
I am working through Learn C The Hard Way and am stumped on something. I've written a simplified version of the problem I am running into to make it easier to get down to it: ``` #include <stdlib.h> #define GROUP_SIZE 10 #define DATA_SIZE 64 struct Dummy { char *name; }; struct Group { struct Dummy **dummie...
[ 0.047443099319934845, 0.08160175383090973, 0.23317578434944153, -0.35721608996391296, -0.19452612102031708, 0.1257535219192505, 0.5858290195465088, -0.36979320645332336, -0.13588742911815643, -0.43770575523376465, -0.37241116166114807, 0.4376709461212158, -0.23985683917999268, -0.013468110...
return 0; } ``` When I try to set the name pointer on one of my dummies I get a seg fault. Using valgrind it tells me this is uninitialized space. Why is this? Your *use* of `dummies` appears inconsistent with its *declaration*. From the way you use the `dummies` field it appears that `dummies` was intended as an *ar...
[ 0.19461920857429504, 0.09205146133899689, 0.31299495697021484, -0.2537582218647003, -0.26907670497894287, 0.06867916136980057, 0.37926384806632996, -0.37628045678138733, -0.24170412123203278, -0.3339778780937195, -0.25992798805236816, 0.5438232421875, -0.5315181016921997, 0.349686563014984...
course this assumes that `GROUP_SIZE` is four or more.
[ 0.19898070394992828, 0.05859632417559624, -0.06979292631149292, -0.09903758019208908, -0.1308032125234604, -0.12377884238958359, 0.35325029492378235, -0.17726677656173706, -0.6078761219978333, -0.4366306662559509, -0.2239709198474884, 0.2209424376487732, -0.45769956707954407, -0.0798087939...
What do you think about xna and massive multiplayer? for example server and 100 clients? Is there any nice tutorial how to create client server application in xna? There certainly are tutorials on how to do it. Personally I use Lidgren for my online prototype. I've only tested it with 4 people total and the server runn...
[ 0.4160155951976776, -0.1760309636592865, 0.18382447957992554, 0.11866781860589981, -0.5099191069602966, -0.16562674939632416, 0.2180599719285965, -0.043661508709192276, -0.2962058186531067, -0.5572088360786438, 0.40453124046325684, 0.27001166343688965, -0.2236078381538391, 0.11696889251470...
idea of what others think of it. The wiki posts on the main site have some basic tutorial-like posts but nothing too detailed. Or you can check out this site even and get a more detailed tutorial <http://dirkkok.wordpress.com/lets-make-a-multi-player-game/>. But this won't necessarily make you good at programming netw...
[ 0.5010956525802612, -0.23331551253795624, 0.05314038321375847, 0.377861887216568, 0.19404108822345734, -0.4515371322631836, 0.31902220845222473, 0.21947892010211945, -0.6767485737800598, -0.6209318041801453, 0.38193613290786743, 0.6234169006347656, 0.2500520646572113, 0.10968156158924103, ...
Trying to add a class object into a List using reflection, but when invoking the Add method with my class object as a parameter, I get 'Object does not match target type' Here's the snippet code in concern (you can assume `classString = "Processor"` for now) ``` PC fetched = new PC(); // Get the appropriate computer...
[ 0.19792664051055908, -0.06190051510930061, 0.17378169298171997, -0.21915461122989655, 0.11777094006538391, 0.11495883017778397, 0.12717393040657043, -0.20728924870491028, -0.2140343189239502, -0.6866836547851562, 0.22599974274635315, 0.6326410174369812, -0.5439174771308899, 0.1442361623048...
classContainer is definitely // the correct type for the list it's being added to at this point. field.FieldType.GetMethod("Add").Invoke(fetched, new[] {classContainer}); ``` Then this is part of the class the above code is adding classContainers to: ``` public class PC { public List<Processor> Processor = new L...
[ -0.01631355471909046, -0.4252708852291107, 0.7140186429023743, -0.2138856202363968, 0.0987795740365982, 0.3330768346786499, -0.2352592647075653, -0.1646595448255539, 0.016202105209231377, -0.490389347076416, 0.15557460486888885, 0.7472286820411682, -0.4519103169441223, 0.1321220099925995, ...
new[] {classContainer}); ``` However, I'd personally advise you *not* to have public fields like this. Consider using properties instead.
[ 0.21348580718040466, -0.1656142920255661, -0.00913243368268013, -0.031728267669677734, -0.011201010085642338, -0.49283137917518616, 0.2093288004398346, 0.09302722662687302, -0.1376132220029831, -0.7284281849861145, -0.28404128551483154, 0.665665328502655, -0.3882550895214081, 0.28746202588...
I get an error in the bellow code it says I cannot convert method group ListStudents to generic.list, if I try () at the end of ListStudents I get: cant convert array to list All im trying to do is hardcode some users to an array and return them in my GET request is there a fix for this? ``` [WebInvoke(Method = "...
[ 0.3135340213775635, -0.2347949743270874, 0.5431440472602844, -0.0634305477142334, -0.041231732815504074, 0.10356240719556808, 0.38491788506507874, -0.5328694581985474, -0.11409979313611984, -0.6806468367576599, -0.39463335275650024, 0.38920021057128906, -0.3286648690700531, 0.1129729524254...
[DataMember(Name = "FirstName")] public string FirstName { get; set; } [DataMember(Name = "LastName")] public string LastName { get; set; } } public class RawDataService : IReceiveData { public Student[] ListStudents() { List<Student> student = new List<Student>() { new Stu...
[ 0.0701875165104866, -0.5636434555053711, 0.5560511350631714, 0.011487863957881927, 0.1076856330037117, 0.22054876387119293, -0.05499863252043724, -0.037630774080753326, -0.2781600058078766, -0.4699856638908386, -0.6124087572097778, 0.303752601146698, 0.0574839748442173, 0.24402347207069397...
new Student { StudentID="bla2", FirstName="bla2", LastName="bla2"} }; return student.ToArray(); } public List<Student> GetStudentCollection() { return ListStudents(); //error on this line, cant convert array to list } ``` Try using the `ToList` linq extension method: ``` using ...
[ 0.03336939960718155, -0.30963584780693054, 0.6470546126365662, -0.16520531475543976, 0.461548388004303, 0.29427891969680786, -0.12903520464897156, -0.1256757527589798, -0.4412165582180023, -0.5805932283401489, -0.6368955373764038, 0.13060404360294342, -0.17845751345157623, 0.45974841713905...
new Student { StudentID="bla1", FirstName="bla1", LastName="bla1"}, new Student { StudentID="bla2", FirstName="bla2", LastName="bla2"} }; return student.ToArray(); } public List<Student> GetStudentCollection() { return ListStudents().ToList(); //<-- this is the change you need } ``` However, to **r...
[ 0.12062650918960571, -0.2727716565132141, 0.5978789925575256, -0.23019129037857056, 0.4436096251010895, 0.3212580382823944, 0.012682669796049595, -0.22540423274040222, -0.39852336049079895, -0.6729790568351746, -0.6301661729812622, 0.315603643655777, -0.08618374913930893, 0.483814865350723...
new Student { StudentID="bla2", FirstName="bla2", LastName="bla2"} }; return students(); } ```
[ 0.032227396965026855, -0.17428043484687805, 0.37935930490493774, -0.22689753770828247, 0.5144330859184265, 0.14420774579048157, 0.043069347739219666, 0.13957643508911133, -0.15196311473846436, -0.7644851803779602, -0.6425574421882629, 0.20335878431797028, 0.0015191930579021573, 0.673895299...
I'm building a website using Drupal. On the header of each page I want to have a single image (custom designed by me) which would act as a custom "Add to Favorites" button. Clicking on the image should add the website's URL to the user browser's favorites (bookmarks). This should work for all browsers, IE7+, FF, Opera,...
[ 0.5175971388816833, -0.06015536189079285, 0.6641935110092163, 0.003901965217664838, -0.2769205868244171, -0.12693622708320618, 0.112082339823246, 0.05678781494498253, -0.18740250170230865, -0.8494395613670349, 0.05343024432659149, 0.5481376051902771, -0.2459995001554489, -0.059599436819553...
window.sidebar.addPanel) { // Mozilla Firefox Bookmark window.sidebar.addPanel(document.title, window.location.href, ''); } else if (window.external && ('AddFavorite' in window.external)) { // IE Favorite window.external.AddFavorite(location.href, document.title); } else if (window.opera && wind...
[ -0.0571497417986393, 0.09949643164873123, 0.8165483474731445, -0.3620165288448334, 0.20320431888103485, 0.047319769859313965, 0.40056535601615906, -0.45708727836608887, -0.028039012104272842, -0.6909314393997192, -0.5334576964378357, 0.9912115931510925, -0.5365750789642334, -0.010512057691...
} }); }); ``` ```html <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <a id="bookmarkme" href="#" rel="sidebar" title="bookmark this page">Bookmark This Page</a> ```
[ -0.35812246799468994, 0.08093865215778351, 0.7390841841697693, -0.14432145655155182, 0.11660728603601456, -0.04879230633378029, 0.09741879254579544, -0.22379252314567566, -0.0567990206182003, -0.6412827968597412, -0.41452962160110474, 0.6297529339790344, -0.09959278255701065, -0.1566303074...
**Return Successful** ``` Dim user = "ravi" Dim pass = "admin" objcmd.CommandText = "Select * from ADMIN_INFO where ADMIN_ID='" & user & "' and ADMIN_PASS='" & pass & "'" ``` **Return Successful** ``` Dim user = "ravi" Dim pass = "ADMIN" objcmd.CommandText = "Select * from ADMIN_INFO...
[ -0.18478381633758545, 0.3374950885772705, 0.6336336135864258, -0.06968151032924652, -0.04505566135048866, 0.2933407127857208, 0.3020309507846832, -0.6888462901115417, -0.05209098383784294, -0.32148921489715576, -0.4733443260192871, 0.7302878499031067, -0.12447568029165268, 0.36786186695098...
i check for case-sensitivity. Need help !! This should do it: ``` cool_function($('.overlay')); function cool_function(selector) { $(selector).hover(function() { $(this).stop().animate({ 'opacity': '1.0' }, 400); }, function() { $(this).stop().animate({ 'opacit...
[ -0.09025774151086807, -0.2606513798236847, 0.6362719535827637, -0.10632237792015076, 0.4993568956851959, -0.13187403976917267, 0.22668595612049103, -0.35491734743118286, -0.11796878278255463, -0.6594009399414062, -0.2051776796579361, 0.6294596791267395, -0.40927204489707947, -0.09903360903...
$(this).click(function(){ cool_function($(this)); }); }); }​ ``` See the fiddle: <http://jsfiddle.net/xEyCB/1/>
[ 0.1074281707406044, 0.2239803671836853, 0.563988447189331, -0.29153481125831604, -0.02057848870754242, -0.33431217074394226, 0.3636274039745331, 0.02227642945945263, -0.22552062571048737, -0.4606337547302246, 0.115598663687706, 0.34706079959869385, -0.08935443311929703, 0.2831847667694092,...
Very often, it's natural to need to specify a CSS style for all elements except the first (or the last). For example, when styling paragraphs, you wish to add a bottom margin to every element except the last one (or similarly, a top margin to every element except the first one). Is there any way to do that that's : *...
[ -0.018113475292921066, 0.29177501797676086, 0.18837971985340118, 0.022023893892765045, -0.15041610598564148, 0.33266374468803406, -0.017011724412441254, -0.045305121690034866, -0.18958544731140137, -0.6669357419013977, -0.32697176933288574, 0.03223150596022606, 0.09342145174741745, -0.2172...
second one is better-supported): ``` p:not(:first-child) p:first-child ~ p ``` For all `p` elements except the last child: ``` p:not(:last-child) ``` For all `p` elements except the first and the last children: ``` p:not(:first-child):not(:last-child) ``` As usual, CSS3's `:not()` and `:last-child` aren't supp...
[ -0.2633255422115326, 0.08333460241556168, 0.24793925881385803, 0.04607570543885231, 0.0247193556278944, 0.2233864814043045, 0.11858521401882172, 0.04222199693322182, -0.04840312898159027, -0.8729800581932068, -0.3864738643169403, 0.11888367682695389, -0.06912481039762497, -0.05373774468898...
zero out the margins of the first and last `p` elements specifically. Here's a [fiddle](http://jsfiddle.net/BoltClock/cHxFg) to illustrate.
[ 0.08547092974185944, -0.01201418973505497, 0.2595003545284271, -0.0754508376121521, -0.08282122761011124, 0.2380588948726654, 0.036696065217256546, -0.20198671519756317, -0.34350308775901794, -0.32902318239212036, 0.2546851933002472, 0.1416543424129486, 0.14201702177524567, 0.0952444300055...
I am wondering where the best place to filter user submitted input is. In regards to filter, I am talking about [filter\_var](http://php.net/manual/en/function.filter-var.php) and [filter\_input](http://www.php.net/manual/en/function.filter-input.php). I've come up with three scenarios: 1. Filter data from POST/GET...
[ 0.17093735933303833, -0.43438076972961426, 0.20139656960964203, -0.13703669607639313, -0.27847298979759216, 0.18036818504333496, -0.019205687567591667, -0.6388384103775024, 0.018083320930600166, -0.9436206817626953, -0.11585250496864319, 0.41885316371917725, -0.4493025839328766, -0.1675849...
the function, and thus functions can be smaller not having to sanitize everything coming in. The downfall is if any other place your function is called and the data isn't sanitized, this can lead to problems. This simply requires good coding practice to remember to sanitize everything before passing to a function. Met...
[ -0.16905120015144348, -0.04375609755516052, 0.31939369440078735, 0.1268959939479828, -0.06066984683275223, -0.24344752728939056, 0.48750096559524536, -0.4054071009159088, -0.22029224038124084, -0.5566198825836182, -0.3126938045024872, 0.262118935585022, -0.514762282371521, 0.04063314571976...
and time. From the above-mentioned **scenarios, 1 & 2** are applicable for good practice. While number 3 is unnecessary to filter input data twice as you said it waste resources. Thus, scenario 1 or 2; it depends on what situation you are dealing with.
[ 0.15301477909088135, -0.20708656311035156, -0.06157364323735237, 0.01992105506360531, 0.024680620059370995, 0.07047160714864731, 0.3097054362297058, -0.4385312497615814, -0.23315657675266266, -1.1384284496307373, 0.024142365902662277, 0.6286712288856506, 0.024100659415125847, -0.2048519849...
What charting tool is the most promising to develop a rich iPad application that can display motion charts with replay capabilities? The end-user should be able to change what are being plotted on the x- and y- axes. In addition, can such applications be built using QlikView, or Tableau to handle the charting? Do I us...
[ 0.22519633173942566, -0.18878935277462006, 0.6197963953018188, 0.46025988459587097, 0.04824802279472351, -0.1663178652524948, -0.04068710282444954, -0.25006571412086487, -0.2834267020225525, -0.7801859974861145, 0.371855765581131, 0.5850847959518433, -0.26947125792503357, -0.26217293739318...
dealing with.
[ -0.08546765893697739, 0.4563142955303192, -0.14098402857780457, 0.019646916538476944, -0.26973238587379456, -0.09012455493211746, 0.23637475073337555, -0.12360464781522751, -0.2609148621559143, -0.8396508693695068, -0.333618700504303, 0.529267430305481, -0.40351438522338867, -0.17602838575...
I wrote a daemon program, for searching through recipes from Gourmet Recipe Manager's database ( that is a recipe manager for GNU/Linux ) My program reads the information that it needs for each recipe element over a loop from the sqlite database. (Such a daemon for Ubuntu Linux is called a 'scope'. Such scopes giv...
[ 0.6667824983596802, 0.1077331081032753, 0.31539255380630493, 0.04867701232433319, -0.08218365162611008, 0.06149202585220337, 0.03179764375090599, 0.028962435200810432, 0.01639534719288349, -0.8674241304397583, 0.281852126121521, 0.13346697390079498, -0.538129448890686, 0.14650245010852814,...
able to use data URI's. I tested that, too, and for me it did not work. So I cache(d) the images in /tmp. Now you are able to see all recipes, and search for specific one's per title, but the image asociation is simply wrong. if you search for the 2.th , the recipe of the 2.th gets shown, but with the image of the f...
[ -0.09954128414392471, 0.25750020146369934, 0.27244651317596436, 0.04288410022854805, -0.01617957465350628, 0.049047574400901794, 0.05938723310828209, -0.10371999442577362, -0.2953735291957855, -0.9004895687103271, 0.060438062995672226, 0.4150063991546631, -0.1285010427236557, 0.12973779439...
think you have to save the state of each image somehow. **I would be pleased, if you have a solution that does not requiere to cache images.** The full source file can be viewed here: <http://bazaar.launchpad.net/~gotwig/lens-cooking/lens-cooking/view/head:/unity-scope-gourmet> So, here is the specific part of my co...
[ 0.36036521196365356, 0.08442137390375137, 0.5271129608154297, -0.2643614411354065, 0.2743654251098633, 0.26763468980789185, 0.1928098052740097, -0.2821968197822571, -0.14882035553455353, -0.8773272633552551, -0.14078456163406372, 0.7489092946052551, -0.2517176866531372, -0.1087609976530075...
uri) ``` I ended up solving the issue by giving the first component an *id* in MigLayout: `cell 0 0 1 1, push, grow, id myid` Then explicitly positioned the second component on top of the first using the first component's bounds (referenced using the id): `pos myid.x myid.y myid.x2 myid.y2`
[ -0.25051283836364746, 0.16505971550941467, 0.45948007702827454, -0.08048076182603836, -0.05762185901403427, 0.2957383394241333, -0.14373217523097992, -0.31340301036834717, 0.22233448922634125, -0.5656440854072571, 0.06046552211046219, 0.07929150015115738, -0.4418320059776306, 0.40291115641...
fairly simple question and I haven't seen anything asked with this exact scenario laid out. I have a form on a page. "Page 1" The form's action is calling a PHP document, and the target is set to \_blank. "Page 2" The PHP document processes the information, then sets the header info to a specific page. "Action 1" ---...
[ 0.32764932513237, -0.036677002906799316, 0.3055468499660492, 0.11035805195569992, -0.3102169930934906, 0.0066698892042040825, 0.006274860352277756, -0.24311435222625732, 0.056778330355882645, -0.44317105412483215, -0.09440498799085617, 0.42762836813926697, -0.29292917251586914, -0.35790649...
way of redirecting to *multiple* URLs, you'll need to implement your [feature](http://blogs.msdn.com/b/oldnewthing/archive/2006/11/01/922449.aspx) in JavaScript. Note that this is extremely likely to fail on mobile and exotic user agents, and it's a hassle to users in any case.
[ 0.35810983180999756, -0.059249524027109146, 0.35378628969192505, 0.0544176883995533, 0.1235952153801918, -0.3211047649383545, 0.5262842178344727, 0.13788141310214996, -0.43343251943588257, -0.6389957666397095, -0.20653969049453735, 0.45382508635520935, -0.21068865060806274, 0.1277252137660...
How can I change the route that triggers omniauth from using /auth/:provider to /myapp/auth/:provider ? I don't want to redirect either, because my server will send anything that's not in /myapp/ to the wrong place. You can change it via `:setup` option Source: <https://github.com/omniauth/omniauth/blob/e9978e377f1ac...
[ 0.17651991546154022, 0.1343412846326828, 0.6021000742912292, -0.01813194900751114, 0.46415793895721436, 0.08759099245071411, 0.42793336510658264, 0.01970442570745945, -0.3366136848926544, -1.0353070497512817, -0.19061841070652008, 0.5186670422554016, -0.23447972536087036, 0.278202056884765...
Are hashtables always faster than trees? Though Hashtables have O(1) search complexity but suppose if due to badly designed hash function lot of collisions happen and if we handle collisions using chained structure (say a balanced tree) then the worst case running time for search would be O(log n). So can I conclude fo...
[ -0.39052534103393555, -0.1102675050497055, 0.026374265551567078, 0.34236958622932434, -0.1629566103219986, -0.1432378888130188, 0.292148619890213, -0.050126198679208755, -0.6395584940910339, -0.7580965161323547, -0.0209985189139843, 0.4003138542175293, -0.42549043893814087, -0.197646081447...
not *always*. This depends on many things, such as the size of the collection, the hash function, and for some hash table implementations - also the number of delete ops. hash-tables are `O(1)` per op *on average* - but this is not always the case. They might be `O(n)` in *worst cases*. Some reasons I can think of at...
[ 0.23309326171875, -0.2745848000049591, 0.22410047054290771, -0.03325812891125679, 0.20958571135997772, -0.29874923825263977, 0.36419081687927246, 0.05565861612558365, -0.6885570883750916, -0.5691076517105103, -0.5962471961975098, 0.6026935577392578, -0.3988497853279114, 0.00552426977083087...
"similar" related to your hash function, and many elements hashed to the same locations [collisions] is not unprobable. [this can be sometimes solved by using a different hash function] 4. For relatively small collections - many times the hidden constant between hashtable's `O(1)` is much higher then the tree's - and u...
[ -0.23794271051883698, -0.0362008661031723, 0.1309475302696228, 0.2864799201488495, 0.05001955106854439, -0.19878067076206207, 0.145126074552536, -0.24989432096481323, -0.35629379749298096, -0.6559801697731018, -0.28094515204429626, 0.422120600938797, -0.04378223046660423, -0.00052261212840...
Let me start by saying I am very new to WPF so be gentle. It seems like this should be easy but I am just missing something. I have implemented INotifyPropertyChanged on a few classes/properties and started binding them to elements in XAML but now I have a little more complex binding to make then updating text or chan...
[ 0.3057304918766022, -0.27197572588920593, 0.3815375566482544, 0.17078977823257446, -0.10471713542938232, -0.19579842686653137, 0.17534200847148895, -0.28224900364875793, -0.05636486038565636, -0.6911986470222473, 0.2195121794939041, 0.48477688431739807, -0.3858259916305542, 0.1594654917716...
my control when the property is changed but since WPF hides how an element is "bound" to the model's property I am not sure how to wire that up. Is there a better way to perform this type of more complex response to a property change? If not are there any samples out there? I have not been able to find anything close t...
[ 0.28616252541542053, -0.20172038674354553, 0.08806575834751129, 0.21305103600025177, -0.15641112625598907, -0.24467241764068604, 0.3037012815475464, -0.38553786277770996, 0.015498834662139416, -0.19787098467350006, 0.06802331656217575, 0.5923824906349182, -0.35843625664711, 0.1994552463293...
any minor syntax errors) ``` class MyClass : INotifyPropertyChanged { //Presumably you've already done this part private object _myProperty = null; public object MyProperty { get { return _myProperty; } set { _myProperty = value; NotifyPropertyChanged...
[ -0.3199690878391266, -0.06565332412719727, 0.5214677453041077, -0.04245306923985481, 0.3977958858013153, 0.24544744193553925, 0.4452577829360962, 0.12566624581813812, -0.21490392088890076, -0.5315384268760681, -0.3999713361263275, 0.5411962866783142, -0.09797021746635437, 0.054767500609159...
} public MyClass() { this.PropertyChanged += My_PropertyChanged; } private void My_PropertyChanged( object sender, PropertyChangedEventArgs e) { if( e.PropertyName == "MyProperty" ) { //Do Something complicated } } ```
[ -0.002510314341634512, -0.015907559543848038, 0.40430912375450134, -0.018493909388780594, 0.36572062969207764, -0.20784299075603485, 0.330811470746994, 0.05796685442328453, -0.12225757539272308, -0.5144539475440979, -0.2656669318675995, 0.6525305509567261, -0.09309064596891403, 0.391943722...
I have a model with auto\_now, and auto\_now\_add set for Update and Create fields: ``` class HotelProfiles(models.Model): fe_result_id = models.AutoField(primary_key=True) fe_created_date = models.DateTimeField(verbose_name='Created', blank=True,
[ 0.15627890825271606, 0.12596732378005981, 0.8468095660209656, -0.2276623249053955, 0.5761547684669495, -0.02895052172243595, 0.14833799004554749, -0.4507409930229187, 0.06155538931488991, -0.6615700721740723, -0.1868324726819992, 0.604293942451477, -0.1447088122367859, 0.4714462459087372, ...
auto_now_add=True) fe_updated_date = models.DateTimeField(verbose_name='Updated', blank=True, auto_now=True) ``` In the Admin it displays both fields but leaves
[ 0.2302507758140564, -0.08152591437101364, 0.9193340539932251, -0.3270321786403656, 0.3116573989391327, -0.07907835394144058, 0.11299015581607819, -0.03588685020804405, 0.018602794036269188, -0.4042727053165436, -0.4234919548034668, 0.5986452102661133, -0.29802682995796204, 0.02024243585765...
them uneditable. They don't seem to be passed to my form to be rendered. I don't want them to be editable, but I would like to display at the top of my form. How can I do this? This is in my HotelProfilesAdmin class: ``` readonly_fields = ('fe_result_id', 'fe_created_date', 'fe_updated_date', 'fe_owner_uid') #date_hi...
[ 0.4220684766769409, 0.3499923348426819, 0.9555904269218445, -0.12599815428256989, 0.47421514987945557, -0.47413334250450134, 0.14256757497787476, -0.1709674745798111, -0.11718364804983139, -0.5983822345733643, -0.24417194724082947, 0.4068205952644348, -0.10834522545337677, 0.36811015009880...
if there is a better way, I'd be interested in hearing it. The view code is below. I wasn't sure if Django was not returning the fields from the query, and I found out that it was. So, something in the renderering of the form that I don't understand removed those fields so they couldn't be rendered. So, I copied them t...
[ 0.3514276146888733, 0.2566172778606415, 0.7566831111907959, -0.22021426260471344, 0.269136518239975, -0.056494954973459244, 0.14064837992191315, -0.1931784451007843, -0.3296484053134918, -0.7784340977668762, -0.25022563338279724, 0.7038531303405762, -0.25994622707366943, 0.1748068332672119...
f = HotelProfileForm() print 'rendering blank form' return render_to_response('hotels/hotelprofile_form.html', {'f' : f, 'read_only': read_only}, context_instance=RequestContext(request)) ```
[ -0.22959449887275696, 0.18000639975070953, 1.0750571489334106, -0.2663915455341339, 0.2550947964191437, 0.05678373575210571, 0.34675177931785583, -0.33465418219566345, 0.12597984075546265, -0.5253754258155823, -0.6825693249702454, 0.7685424089431763, -0.2641272246837616, 0.0954825133085250...
I am developing an iPhone-App that should run not only on new iphones, but on old devices as well. So for testing, I did load a provisioning profile to my old iPhone 3G (iOS 4.2.1) and connected it with my mac. In Xcode I also did set iOS Deployment Target to 3.0. With this settings, the app runs on an iPhone 4, but no...
[ 0.33092233538627625, 0.3395322561264038, 0.7943617105484009, -0.18311063945293427, 0.17960891127586365, 0.12740430235862732, 0.4631136357784271, -0.20165857672691345, -0.31805935502052307, -0.6208322644233704, -0.07256437093019485, 0.6324187517166138, -0.0939825177192688, -0.17027258872985...
apps on old devices? What values must I enter, and WHERE must I enter them? Do I need to download some addon for the actual SDK? We are testing applications on iOS 4 and 3 for some applications at my work and normaly the two key point are the arm achitecture and the deployment target as you already point out. First, i...
[ 0.4137260317802429, 0.3167904317378998, 0.7074071764945984, 0.019091051071882248, 0.29051798582077026, -0.013965551741421223, 0.35511693358421326, -0.17940108478069305, -0.32171744108200073, -0.6514140367507935, -0.21819297969341278, 0.681154727935791, -0.28005877137184143, -0.141561046242...
second line of the popup. Finally, do you have any warnings or message in you console when you try to lauch the application ?
[ 0.35806843638420105, -0.14199812710285187, 0.48526397347450256, 0.18234318494796753, 0.004116728436201811, 0.05214869976043701, 0.3404250144958496, 0.600965678691864, -0.19452227652072906, -0.46395787596702576, -0.2741638123989105, 0.4485427737236023, -0.13321073353290558, 0.10477294772863...
I have a download link, and after the user downloads it I want to remove the link to the download and change the text. I was able to get that going, but it does it so fast that the user would be unable to download the exe file. If I somehow delayed it would that be an solution? Is there a better way to do what I'm doin...
[ 0.2089393436908722, -0.03132796287536621, 0.5585618615150452, -0.14066873490810394, 0.10710043460130692, -0.09133779257535934, 0.33079251646995544, 0.06470497697591782, 0.1690397709608078, -0.6248563528060913, -0.2465062290430069, 0.6769586801528931, -0.3138542175292969, 0.2747770547866821...
} catch(err){ alert(err.message); } } ``` link ``` <a href="download.exe" title="Download" id="download" onclick="removeLink()">Download</a> ``` Also I know it's not a very 'secure' way of doing it since I'm just using javascript for it, but this is mostly just for the average user. Something like ...
[ 0.16836194694042206, -0.19888100028038025, 0.5181450247764587, -0.1677265763282776, 0.12803824245929718, -0.32635489106178284, 0.33947935700416565, 0.04636765271425247, -0.28176721930503845, -0.5218294262886047, -0.31401678919792175, 0.9249978065490723, -0.2166556864976883, 0.0467450581490...
i have a very big single class file ,and i want to break this too big class and distribute it's code in a multiple files,but **without** using the extend method,as i want to use only the same object for this class ex: file a: ``` class name { public function admin_logout(){ if(isset($_SESSION['wcddl_admin']...
[ 0.1886623650789261, 0.22201447188854218, 0.3736878037452698, -0.13880647718906403, 0.20206834375858307, -0.1732577383518219, 0.352053165435791, -0.12457573413848877, -0.13577674329280853, -0.6628139615058899, -0.26829519867897034, 0.4391382038593292, -0.5321516990661621, 0.2925671339035034...
let me ask you: do you really need an iframe? Loading a website in a website is something you should avoid unless there is literally no alternative. It's slow and typically causes problems across browsers a lot. If you are using this for a navigation, surely it would be possible to instead use AJAX to load the new con...
[ 0.2336915284395218, 0.051911599934101105, -0.1855921894311905, 0.29744693636894226, -0.3048054873943329, -0.3812987506389618, 0.26857322454452515, 0.5388747453689575, -0.29852697253227234, -0.686516523361206, 0.18709096312522888, 0.36835795640945435, -0.19906564056873322, -0.22389313578605...
It's simply a Javascript function which allows sending data to the server and then handling whatever it returns, after loading a page. It's also known as XML HTTP request. In any case a Javascript framework such as jQuery (http://jquery.com) or prototype (http://prototypejs.org/) should make your job a lot easier. If...
[ 0.21898998320102692, -0.03766926750540733, 0.5449293255805969, -0.10440512746572495, -0.28617796301841736, -0.14695417881011963, -0.11149516701698303, -0.17861901223659515, -0.08054010570049286, -0.8472826480865479, -0.28270503878593445, 0.09806457906961441, -0.26357710361480713, 0.0959457...
hide it below the other one. 3) Slide iframe out: Use a container div with `position:relative` in which you place the iframe with `position:absolute`. Let `javascript_function()` use a timer to change the iframe's css-property `top` from 0 to -500 (or whatever height your iframe has). This is particularly easy to acco...
[ -0.0948655754327774, 0.0028455061838030815, 0.4949016273021698, -0.09772129356861115, -0.11241120100021362, -0.2656804621219635, 0.03565523400902748, -0.17807365953922272, -0.18993252515792847, -0.6396130919456482, -0.3298532962799072, 0.4240835905075073, 0.14989884197711945, -0.0550080351...
you're not loading from external domains.
[ 0.4630925953388214, 0.11441022902727127, -0.31451380252838135, 0.2313905954360962, -0.2207963764667511, 0.12362492829561234, -0.12486514449119568, 0.2981364130973816, -0.4309658408164978, -0.46094968914985657, -0.13138389587402344, 0.48696333169937134, -0.2976667582988739, 0.22240924835205...
**Test One:** ``` class Entity { } $entities = array(); echo "START: ". number_format(memory_get_usage()) . "\n"; for($i = 0; $i < 100000; ++$i) { $entities[] = new Entity(); } echo "BEFORE UNSET: ". number_format(memory_get_usage()) . "\n"; unset($entities); echo "AFTER UNSET: ". number_format(memory_get_usage()...
[ 0.1950097531080246, 0.0647500529885292, -0.1520492136478424, -0.14531919360160828, -0.042348358780145645, 0.2393876165151596, 0.5016797184944153, -0.7509180307388306, -0.29794320464134216, -0.20398204028606415, -0.025242583826184273, 0.5558233857154846, -0.40918028354644775, 0.076542876660...
bit... So after that i wonder how does garbage collection really work: 1. Why does test **one** need more memory than test **two**? 2. Why does php keep memory after unsetting the array in test **one**? thx dave select id, value from foo is going to return the whole table. The 2-3 seconds you mention could include t...
[ 0.31784525513648987, -0.13000357151031494, 0.3924091160297394, 0.3166560232639313, -0.3805113434791565, -0.24744607508182526, 0.28009042143821716, -0.287930965423584, -0.19768014550209045, -0.4616958796977997, 0.1922844499349594, 0.40308231115341187, 0.054486822336912155, 0.086116157472133...
To see what I want, check out the regex I'm using. I'll try to explain it in English. I want to match `4444` or `444444444` or `444-44-4444`. Here's what i have and it does what I want. ``` ^[0-9]{9}$|^[0-9]{4}$|^[0-9]{3}-[0-9]{2}-[0-9]{4}$ ``` Is there a way to do it without the ORs? I thought about doing this ```...
[ -0.044723477214574814, 0.10291458666324615, 0.3527982234954834, 0.18762090802192688, 0.29578375816345215, -0.11848863959312439, -0.05383573845028877, 0.012810757383704185, -0.2905852198600769, -0.4075787365436554, -0.2652375102043152, 0.4717331826686859, -0.20632004737854004, -0.0396522767...
at the other position too. [**DEMO**](http://regexpal.com/?flags=m&regex=%5E%28?%3a%5B0-9%5D%7B3%7D%28-%29?%5B0-9%5D%7B2%7D%5C1%29?%5B0-9%5D%7B4%7D%24&input=4444%0A444444444%0A444-44-4444%0A222-222222%0A22222-2222)
[ -0.30043038725852966, -0.09736349433660507, 0.3275446891784668, 0.31047117710113525, 0.34190866351127625, 0.5382969975471497, 0.18405351042747498, -0.11791058629751205, -0.4942486584186554, -0.6089766025543213, -0.521202802658081, 0.35066038370132446, -0.050383444875478745, 0.1885373294353...
I have a function defined inside the script tags of head.(in a JSP) I want to declare a string variable in the JSP and pass it as a parameter to this function ``` <% String uname ="multiple"; %> <form action="ExampleServlet" method="post" onclick="pagetype(${uname});"><br> <input type="submit" name="Log in" value...
[ -0.03847295045852661, -0.0790853202342987, 0.5368509292602539, -0.1272331178188324, -0.3897440433502197, 0.056456271559000015, 0.18606556951999664, -0.43955641984939575, -0.051167525351047516, -0.581136167049408, 0.04915636405348778, 0.41240307688713074, -0.502846360206604, -0.045502215623...