text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
82.016 78.257 L 51.895 69.533 L 27.617 89.351 L 26.621 58.058 L 0.231 41.132 L 29.749 30.52 L 37.714 0.241 L 56.944 24.978 L 88.261 23.181 L 70.631 49.083 Z"> <fxg:fill> <fxg:SolidColor color="#FFFFFF"/> </fxg:fill> <fxg:stroke> <fxg:SolidColorStroke caps...
[ -0.14661118388175964, -0.23147356510162354, 0.6942211985588074, -0.1526467353105545, 0.1518266797065735, 0.5329558253288269, -0.1596892774105072, -0.5460093021392822, -0.21441228687763214, -0.5587250590324402, 0.02468332275748253, 0.743533194065094, -0.25404587388038635, -0.057460818439722...
color="#4769C4" joints="miter" miterLimit="4" weight="20"/> </fxg:stroke> </fxg:Path> </fxg:Graphic> ``` When I however try to instansiate the FXG graphic through ActionScript (still in the same Flex mobile project), I get the compile error: ![enter imag...
[ 0.36305326223373413, -0.0558001846075058, 0.5795090794563293, -0.23785676062107086, -0.1435042917728424, 0.5012190937995911, 0.044508785009384155, -0.5687441825866699, -0.5967932343482971, -0.9020111560821533, 0.05642756447196007, 0.46113133430480957, -0.34876549243927, -0.3348219394683838...
here](https://i.stack.imgur.com/YBqRc.png) ``` Call to a possibly undefined method Star ``` **Home.mxml:** ``` <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:comps="assets.*" title="Home"> <fx:Sc...
[ -0.05016179382801056, 0.03561410307884216, 0.5780081152915955, -0.14596828818321228, -0.2622877359390259, 0.026864785701036453, 0.16017264127731323, -0.5268937945365906, -0.11149579286575317, -0.4725755751132965, -0.04276122525334358, 0.49060505628585815, -0.08894031494855881, -0.041754905...
comps.Star();** When I move the FXG file to **src/** and use **xmlns:comps="\*"** everything works. It is better for various reasons, including: * In most Swing components, custom painting is achieved by overriding the `paintComponent(Graphics)` method. Top-level Swing containers (e.g. `JFrame`, `JApplet`, `JWindow`)...
[ 0.4765148460865021, -0.2978595495223999, 0.7537258863449097, 0.03577996417880058, -0.16193118691444397, -0.10936400294303894, -0.16127249598503113, -0.26315584778785706, -0.5414201617240906, -0.5425736904144287, -0.29046431183815, 0.4033887982368469, -0.24251946806907654, -0.29263240098953...
you think your GUI is complete, the client says "Hey, wouldn't it be great to throw in a tool-bar & offer it as an applet as well?" The `JComponent` approach adapts easily to that. * As explained (complete with code!) by Richante, it is easier to calculate the co-ordinates required for painting the custom component, an...
[ 0.49570226669311523, -0.1428438425064087, 0.12530015408992767, -0.07466904819011688, 0.1173483207821846, 0.05722988396883011, 0.0812150090932846, -0.16408762335777283, -0.507805585861206, -0.6796267628669739, -0.1714302897453308, 0.7192214131355286, -0.15620926022529602, -0.450196921825408...
custom painted, it might be better to simply put a `BufferedImage` inside an `ImageIcon`/`JLabel` combo. Here is an example of [painting to an image](https://stackoverflow.com/a/10055672/418556). When it comes time to update it: 1. Call `getGraphics()` for a `Graphics` or `createGraphics()` for a `Graphics2D` 2. Dr...
[ 0.6673344373703003, -0.4103865623474121, 0.527569591999054, 0.07305782288312912, -0.21886910498142242, -0.035590555518865585, 0.08795367181301117, -0.23804661631584167, -0.3967289626598358, -0.8720139265060425, 0.08466088026762009, 0.8659068942070007, -0.17101146280765533, -0.0211831498891...
I received a return value from SQLite fetch ``` int primaryKey = sqlite3_column_int(statement, 0); ``` and I'm going to use it as a selector's object: ``` [[ABC alloc] performSelector:@selector(abcWithAAA:) withObject:[NSNumber numberWithInt:primaryKey]]; ``` the NSLog result for primarykey is a number 4: ``` N...
[ -0.1936926692724228, 0.24834254384040833, 0.5672166347503662, -0.24130436778068542, -0.07981856167316437, 0.23004227876663208, 0.30165448784828186, -0.29813921451568604, -0.15413761138916016, -0.5581995844841003, 0.060324620455503464, 0.45932328701019287, -0.018923405557870865, 0.353227227...
I need to bulk load huge xml files to SQL Server 2005. I decided to use SQLXMLBULKLOAD in my C# app, but I need to get valid xsd-schemas of those xml files to load them. Which is best way to generate xsd file? I tried MS VS xsd.exe, but it tries to load the file into memory, which causes OutOfMemory exception. Thanks!...
[ -0.14117766916751862, 0.12117219716310501, 0.5513169765472412, 0.02610129304230213, -0.459445595741272, 0.017828742042183876, 0.11280404031276703, -0.05895652994513512, -0.546642005443573, -0.5606913566589355, 0.19379109144210815, 0.6289569735527039, -0.22388388216495514, 0.117797769606113...
ASC; ```
[ 0.1377204805612564, 0.12009371072053909, 0.15515796840190887, -0.23464630544185638, -0.031959254294633865, 0.11342237144708633, -0.09700353443622589, 0.3889200985431671, -0.2877126932144165, -0.3609083294868469, -0.49824970960617065, 0.5746082067489624, 0.018135488033294678, 0.157254382967...
i have a complicated PHP conundrum. I have a constantly updating table in my database (Lets call it TABLE) with multiple records being added a second, these results will be posted using PHP on a page (page.php) using AJAX. The maximum amount of posts shown are 1 every three seconds, for which i have a relevancy algor...
[ 0.23992697894573212, -0.06966274231672287, 0.6503561735153198, 0.039814263582229614, -0.32832542061805725, 0.021346963942050934, 0.41443932056427, -0.13405628502368927, -0.5163783431053162, -0.6079179644584656, 0.09179794788360596, 0.21705833077430725, -0.15992164611816406, 0.1046741157770...
class='post'></div> <div id='4' class='post'></div> <div id='3' class='post'></div> <div id='2' class='post'></div> <div id='1' class='post'></div> ``` I don't know what to do with AJAX. Any help would be greatly appreciated, thanks If your question is simply how to slidedown the newest appended div, try this: HTM...
[ -0.37043988704681396, -0.09621036797761917, 0.06350758671760559, 0.1365983635187149, -0.4813275635242462, 0.020892303436994553, 0.22588422894477844, -0.2675646245479584, -0.039756614714860916, -0.8505381941795349, -0.26378652453422546, 0.4276134967803955, -0.013998960144817829, -0.24123138...
+ 1; $div = $("<div></div>").attr("id", id) .addClass("post") .text(dataFromAJAX) .css("display", "none") // change this to be a class - this is just to make it clear. .prependTo("#updatePanel") .slideDown(); } ``` [**Example fiddle**](http://jsfiddle.net/UQ246/)
[ -0.020211176946759224, -0.23418548703193665, 0.41314637660980225, -0.4152762293815613, -0.04492367431521416, 0.0237867571413517, 0.2586545944213867, -0.31021198630332947, -0.16513046622276306, -0.474345326423645, -0.408875435590744, 0.4161859154701233, -0.5028446912765503, 0.01730746217072...
Just wondering if the following is possible: (A) App loads a login page hosted on remote server using webview (Android) / browserfield (BBerry) (B) Authentication takes place at the web page housed in webview / browserfield (C) After successful login - some params are passed back from the webpage and used in subsequen...
[ 0.2638261914253235, -0.13130895793437958, 0.6723514199256897, -0.02024213969707489, 0.13596674799919128, 0.0018037371337413788, 0.43871182203292847, -0.29396384954452515, -0.46874895691871643, -0.471708744764328, -0.13630783557891846, 0.0362258218228817, -0.3585008382797241, -0.31754967570...
class _browserField.extendScriptEngine("makeblackberry.pass", new ScriptableFunction() { public Object invoke(Object thiz,final Object[] args) { // here args will give you params passed by javascript
[ 0.16721194982528687, -0.08126114308834076, 0.395325243473053, -0.09044481068849564, 0.09069707989692688, -0.03960592672228813, 0.6218292713165283, -0.3296535611152649, -0.2067197561264038, -0.5505884885787964, -0.3830670714378357, 0.3043658137321472, -0.5104016065597534, 0.1275586634874344...
//function // args[0] = Hello and args[1] = 1234
[ -0.17941449582576752, -0.1524638533592224, 0.43213456869125366, -0.4200969636440277, 0.08134805411100388, 0.4216855764389038, 0.2805615961551666, -0.12726327776908875, -0.19641032814979553, -0.18846340477466583, -0.07636752724647522, 0.47953182458877563, -0.421685129404068, -0.062184065580...
//TODO do your task here... return thiz; } }); ```
[ 0.11297103762626648, -0.18014292418956757, 0.1949448436498642, -0.3294800817966461, 0.14201539754867554, -0.12420040369033813, 0.4481331706047058, 0.08886296302080154, 0.25080350041389465, -0.31958043575286865, -0.24331150949001312, 0.9109880328178406, -0.3195143938064575, 0.10208775103092...
I have an array of IP networks ``` <?php $array = array( '217.192' => array( array( 'ip' => '217.192.133.52', 'id' => '1', ), array( 'ip' => '217.192.98.111', 'id' => '2',
[ 0.12925300002098083, 0.17420804500579834, 0.4594283401966095, 0.16507963836193085, 0.0449955053627491, 0.0004421728663146496, 0.11165126413106918, -0.2601010501384735, -0.10812828689813614, -0.7121999859809875, 0.28556129336357117, 0.1082715168595314, -0.25019654631614685, 0.23304235935211...
), ), '21.170' => array( array( 'ip' => '21.170.171.23', 'id' => '3', ), array( 'ip' => '21.170.212.22', 'id' => '4',
[ -0.05672752484679222, -0.021702466532588005, 0.38540369272232056, 0.16763797402381897, 0.17009183764457703, 0.19316522777080536, 0.111892469227314, -0.6595473289489746, -0.15899616479873657, -0.28834664821624756, -0.18128317594528198, 0.2434331178665161, -0.34116992354393005, 0.03181376308...
), ), '148.11' => array( array( 'ip' => '148.11.11.12', 'id' => '5', ), array( 'ip' => '148.11.122.33', 'id' => '6', ),
[ 0.015360315330326557, 0.014534144662320614, 0.2895890474319458, 0.22256916761398315, 0.2016759067773819, 0.2095170021057129, 0.08490464836359024, -0.5972260236740112, -0.07502882182598114, -0.3107312321662903, -0.18567435443401337, 0.25353482365608215, -0.2852688431739807, 0.12437884509563...
array( 'ip' => '148.11.22.89', 'id' => '7', ), ), '72.1' => array( array( 'ip' => '72.1.98.9', 'id' => '8', ),
[ -0.11387664079666138, -0.0326562374830246, 0.21678344905376434, 0.1670597493648529, 0.12938611209392548, 0.1787726730108261, -0.04504618048667908, -0.4751269221305847, -0.02082143723964691, -0.3646486699581146, -0.1230359598994255, 0.22960041463375092, -0.33516284823417664, 0.0236623287200...
), ); ``` I need to output this array ordering by count AND sort by subnetwork (key of array). `arsort($array)` doesn't work like I want. I need 148.11, 21.170, 217.192, 72.1 AND inside these so sort ips... Try this: ``` function sortHelper(array $a, array $b) { $aCnt = count($a); $bCnt = count($b); i...
[ -0.0770440548658371, -0.0550994910299778, 0.1344732791185379, -0.2179301381111145, 0.03341957554221153, 0.22247090935707092, 0.18680012226104736, -0.513513445854187, -0.3285664916038513, -0.2512354850769043, -0.23257189989089966, 0.41247376799583435, -0.7301006317138672, 0.2553915977478027...
1; } } uasort($array, 'sortHelper'); // UPDATE: sort inside by IP function ipSortHelper(array $a, $b) { $aIp = ip2long($a['ip']); $bIp = ip2long($b['ip']); if ($aIp == $bIp) { return 0; } else if ($aIp < $bIp) { return -1; } else { return 1; } } foreach ($array as...
[ -0.40397074818611145, 0.0009412756189703941, 0.39050498604774475, -0.2481619119644165, -0.05877354368567467, 0.3309735059738159, 0.2678644061088562, -0.6200991272926331, -0.15154102444648743, -0.4351728856563568, -0.5766368508338928, 0.17187054455280304, -0.5715543627738953, -0.03879262879...
I want to create a single **named** argument/option for symfony command. And want symfony to distinguish those 3 options: * `my:command`, which means something like `my:command --arg=null` * `my:command --arg`, which means `my:command --arg=defalutValue` * `my:command --arg=someValue`, which is fully explicit. I.e. I...
[ 0.16178815066814423, -0.07429887354373932, 0.25859352946281433, -0.06418802589178085, -0.010811877436935902, -0.02380423992872238, 0.18171574175357819, -0.08245459198951721, -0.23188476264476776, -0.6253137588500977, -0.08544208109378815, 0.824691891670227, -0.3750803470611572, -0.05359738...
where to start (i.e. "create subclass of ..." or "install a bundle named ..."), cause I'm not familiar with Symfony2's architecture. It is possible: ``` ->addOption('arg', 'a', InputOption::VALUE_NONE) ``` * my:command => `$input->getOption('arg') //false` * my:command --arg => `$input->getOption('arg') //true` * my...
[ 0.04030008986592293, 0.024539969861507416, 0.0720328763127327, -0.22550639510154724, 0.03181247040629387, 0.0034947411622852087, -0.09773515909910202, -0.19127658009529114, -0.13472995162010193, -0.6978597044944763, -0.3887330889701843, 0.31664925813674927, -0.2064868062734604, -0.05022963...
If we are migrating content from source Content Management System to Tridion, what is the best way of migrating customized metadata associated with the components(content) of source Content Management System into Tridion? Should we directly migrate it to the sql server or is there an option to migrate it in the form of...
[ 0.21551914513111115, 0.09745857864618301, 0.4069366455078125, 0.5512321591377258, -0.17382320761680603, -0.101770780980587, -0.43920648097991943, -0.11597847938537598, -0.24389521777629852, -0.5549241304397583, 0.02536468580365181, 0.6403558254241943, -0.21769264340400696, 0.27319145202636...
supported solution, and could lead to unpredictable results. You need to use the API, either the Core Service or the TOM.NET API (If you have Tridion 2011) or the old TOM API if not. A popular approach is to export all content into an XML format that you can then process with a .NET application. There's some good ...
[ 0.3272477388381958, -0.03508362919092178, 0.5502252578735352, 0.12354391068220139, -0.3447973132133484, 0.10749271512031555, 0.24426811933517456, -0.1519375890493393, -0.39864417910575867, -0.5280999541282654, -0.25866472721099854, 0.49163493514060974, -0.16112156212329865, 0.0307341236621...
I worked on both row mapper and resultset extractor call back interfaces.I found difference i.e., 1.Row mapper can be processing per row basis.But Resultset extractor we can naviagte all rows and return type is object. Is there any difference other than above?.How the works Rowmapper internal and return type is list?...
[ -0.3023986518383026, -0.23370027542114258, 0.4761466681957245, -0.038143329322338104, -0.3325764834880829, 0.12119758129119873, -0.21991601586341858, -0.49571600556373596, -0.12978696823120117, -0.5671209096908569, -0.04119867458939552, 0.4259873926639557, -0.3114805519580841, -0.000289655...
with row at a time. Most the time, `ResultSetExtractor` will loop the `ResultSet` and use `RowMapper`, snippet example of Spring `RowMapperResultSetExtractor`: ``` List<T> results = (this.rowsExpected > 0 ? new ArrayList<T>(this.rowsExpected) : new ArrayList<T>()); int rowNum = 0; while (rs.next()) { results.add(...
[ -0.3286127746105194, -0.3936458230018616, 0.5355981588363647, -0.1576264649629593, -0.1226252093911171, 0.11554091423749924, 0.20215556025505066, -0.645021915435791, -0.4724678099155426, -0.594832181930542, -0.36284950375556946, 0.45481517910957336, -0.2759770452976227, 0.05575962737202644...
As the title describes I need to run a **command** on a **remote server** and I do not have access to remote desktop! I head that this should be possible using **Powershell**, but I can't find any good tutorials on this. Recommendations? The easiest way is to use **psexec.exe** (Part of Microsoft Sysinternals). You c...
[ 0.3196684718132019, 0.16103103756904602, 0.19193719327449799, 0.30512484908103943, -0.010437586344778538, -0.2687782943248749, 0.46420741081237793, 0.08702148497104645, -0.1940390169620514, -0.6622531414031982, -0.09912028908729553, 0.6578301191329956, 0.09199821203947067, 0.29996514320373...
My program is well-suited for MPI. Each CPU does its own, specific (sophisticated) job, produces a single `double`, and then I use an `MPI_Reduce` to multiply the result from every CPU. But I repeat this many, many times (> 100,000). Thus, it occurred to me that a GPU would dramatically speed things up. I have google...
[ 0.302016943693161, 0.21409817039966583, 0.2748483419418335, -0.07639807462692261, -0.16538004577159882, 0.4189721941947937, 0.09716053307056427, -0.4243544042110443, -0.2996536195278168, -0.7740938663482666, 0.1410248726606369, 0.17276814579963684, -0.361185222864151, 0.11670465022325516, ...
want or need a full set of GPUs. I really just need a lot of CPUs, and then a single GPU to speed up the frequently-used `MPI_Reduce` operation. Here is a schematic example of what I'm talking about: Suppose I have 500 CPUs. Each CPU somehow produces, say, 50 `double`s. I need to multiply all 250,00 of these `double`...
[ 0.4266260862350464, 0.3496207892894745, 0.3532293438911438, 0.12175869196653366, 0.24738942086696625, 0.46970170736312866, 0.23195382952690125, -0.36430996656417847, -0.34098681807518005, -0.8963925242424011, -0.033999551087617874, 0.48041269183158875, -0.25321677327156067, 0.1307367235422...
CPUs would send their `double`s to the GPU. The GPU would then multiply the 250,000 `double`s together for each of the 1 million "states", producing 1 million `doubles`. These numbers are not exact. The compute is indeed very large. I'm just trying to convey the general problem. This isn't the way to think about the...
[ 0.3897246718406677, 0.022026825696229935, 0.19441582262516022, 0.3311042785644531, -0.08070576190948486, 0.3996783494949341, 0.04213957116007805, -0.1798541247844696, -0.4303964674472809, -0.5688477754592896, 0.05711698159575462, 0.1560555249452591, -0.4985501170158386, 0.19706504046916962...
within task. There is no MPI rank on a GPU. Regardless, Talonmies is right; this particular example doesn't sound like it would benefit much from a GPU. And it won't be helped by having tens of thousands of doubles per task; if you're only doing one or a few FLOPs per double, the cost of sending the data to the GPU w...
[ 0.3802233636379242, -0.24390999972820282, 0.11300244182348251, 0.29299819469451904, -0.1692405343055725, 0.18310222029685974, 0.3470911979675293, -0.39947009086608887, -0.516038179397583, -0.7151519656181335, 0.028094541281461716, 0.330630898475647, -0.261166512966156, 0.11893267929553986,...
I maintain that this is still the most useful way to think about things, with such things as RDMA to GPUs being an important optimization but conceptually a minor tweak.
[ 0.22128264605998993, 0.48643842339515686, 0.1920415759086609, -0.25487643480300903, -0.11723769456148148, -0.19792167842388153, 0.17118482291698456, -0.04696439206600189, -0.10421986877918243, -0.4903719425201416, 0.06641808897256851, 0.5350009799003601, 0.06309927254915237, -0.05264140665...
I'm writing a server application and having problems with `select`ing on the socket. The server side `select` always returns 0, even when the client tries to connect. when I comment the `select` and go straight to the `accept` line everything works (but my application is blocked) server code (in C): ``` int sockfd = ...
[ 0.19911408424377441, -0.015288017690181732, 0.9340101480484009, -0.3296535909175873, 0.10077119618654251, 0.13476906716823578, 0.8529887199401855, -0.5243202447891235, 0.0005723146023228765, -0.7897915244102478, -0.5235260725021362, 0.5577024817466736, -0.4601381719112396, 0.31695398688316...
tv.tv_usec = 0; FD_ZERO(&fds); FD_SET(sockfd, &fds); } unsigned int clilen = sizeof (cli_addr); int newsockfd = accept(sockfd, (struct sockaddr *) &cli_addr, &clilen); ``` client code ((in python): ``` s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((RemoteIP, Port)) ``` > ``` > retval...
[ 0.3744250237941742, -0.16165874898433685, 1.0140460729599, -0.22187189757823944, -0.03233444318175316, 0.07307892292737961, 0.22199922800064087, -0.33440619707107544, -0.17575804889202118, -0.9100069999694824, -0.42165184020996094, 0.689042866230011, -0.6211344599723816, 0.4399571120738983...
When using asm insertions in c++ (Visual Studio 2010), I get an "incompatible types" error when i try to move 16 bit variable of type short into the 32bit EAX register. However everything works fine if i use the 16 bit AX register. What is the logic behind this error? Thank you! ``` #include <iostream> int main() { ...
[ 0.03357114642858505, 0.10897664725780487, 0.30934005975723267, -0.3432987332344055, 0.0963945984840393, 0.2609838843345642, 0.4631679356098175, -0.4409424066543579, -0.15508905053138733, -0.266948401927948, -0.3112452030181885, 0.5833184719085693, -0.5363311767578125, -0.17316356301307678,...
} std::cout << sVar << "\n"; return 0; } ``` The logic is simple - `eax` is 32-bit and `short` is 16-bit, so you can't copy one into another because they are of different sizes. `ax` is 16-bit, so `short` can be copied there no problem. You can then use `movzx` or `movsx` to widen the 16-bit value to 32 bits wi...
[ 0.024603452533483505, 0.33309516310691833, 0.43838220834732056, -0.019713211804628372, 0.22850088775157928, -0.032364193350076675, 0.1680889129638672, -0.22124287486076355, -0.13670741021633148, -0.28303763270378113, -0.35310614109039307, 0.7503834962844849, -0.2581908404827118, -0.0872338...
How can we check user liked the facebook application or not? I am trying to create a Facebook app, in it there are two different pages , if user liked then page\_1 will be show, otherwise page\_2 show. ``` <?php $user = $facebook->getUser(); if ($user) { try{ $user_profile = $facebook->api('/me'); $likeID = $fac...
[ 0.6863343715667725, -0.030216805636882782, 0.579581618309021, -0.04220757260918617, -0.16323767602443695, -0.32019534707069397, 0.2072874754667282, -0.48295941948890686, 0.14388418197631836, -0.3804129362106323, 0.34862104058265686, 0.47448793053627014, -0.23710058629512787, -0.09412113577...
or URL using Facebook's API](https://stackoverflow.com/questions/5093398/check-if-user-liked-page) 4. [Facebook how to check if user has liked page and show content?](https://stackoverflow.com/questions/6246449/facebook-how-to-check-if-user-has-liked-page-and-show-content) 5. [Facebook Check if user "Liked" the page](h...
[ 0.33155620098114014, 0.06797810643911362, 0.5606308579444885, 0.2083204984664917, -0.32882359623908997, -0.3265761733055115, 0.25134381651878357, -0.05943656340241432, 0.06377370655536652, -0.14967569708824158, 0.03649718686938286, 0.2780439257621765, -0.071956105530262, -0.226385042071342...
I am using SQL Server 2008 R2 and I want to add a non-clustered index on a non-unique, nullable field. My index will also have one more column included in order to avoid accessing my clustered index: ``` CREATE INDEX IX_My_Index ON MyTable (myBasicField) INCLUDE (myIncludedField); ``` In the actual data of `myBasi...
[ -0.34185120463371277, 0.21923698484897614, 0.48907509446144104, -0.0388842336833477, -0.362600177526474, -0.16078877449035645, 0.13057765364646912, 0.13191258907318115, -0.11418072134256363, -0.6642246246337891, 0.10133005678653717, 0.4292336404323578, -0.39601945877075195, 0.2010306566953...
blog post here](http://blog.sqlauthority.com/2008/09/01/sql-server-2008-introduction-to-filtered-index-improve-performance-with-filtered-index/) - syntax would be: ``` CREATE INDEX IX_My_Index ON MyTable (myBasicField) INCLUDE (myIncludedField) WHERE myBasicField IS NOT NULL; ``` Any query that contains the same `...
[ -0.19414515793323517, 0.03842153027653694, 0.41870588064193726, 0.049052171409130096, -0.35758766531944275, -0.2997623383998871, -0.008691675961017609, 0.11330172419548035, -0.10890538990497589, -0.4269271790981293, -0.09946859627962112, 0.09359753876924515, -0.4905868172645569, 0.04478557...
Android 2.2. I need to debug my **signed** APK on my Nexus S. How can this be done using Eclipse? I start the app on my phone and then...? Set the `debuggable=true` in the manifest, export, install and sign the the app. Connect the device via USB, enable USB debugging. Then open the DDMS perspective, select the device...
[ 0.3301292955875397, 0.09266667813062668, 0.6217259764671326, -0.21615810692310333, -0.10737548768520355, 0.18155883252620697, 0.2892785370349884, -0.247584268450737, 0.15117578208446503, -0.9153200387954712, -0.17212840914726257, 0.865537703037262, -0.5620876550674438, -0.1144552230834961,...
This might be a dumb question. But does ADO.net support updating to a database without having to write SQL commands? **Example:** I have a method that reads from database and keeps the rows in memory. I then modify some of the rows. Is it then possible to make ADO.net update the newest changes to the database without ...
[ 0.37219229340553284, 0.3671422600746155, 0.3242122232913971, -0.010307388380169868, -0.15451017022132874, -0.05982664227485657, 0.07595527172088623, -0.19124439358711243, -0.19666102528572083, -0.5779919028282166, 0.3457377851009369, 0.4739820063114166, -0.40730664134025574, 0.212736219167...
updates instead of just one big one which would take longer time. What you need is some sort of [ORM](http://en.wikipedia.org/wiki/Object-relational_mapping), and ADO is not an ORM. So, no. You must write the SQL. You could maybe simplify things by writing a stored procedure, though. Then you can use ADO parameters If...
[ 0.13244742155075073, -0.027167579159140587, 0.6253741383552551, 0.3225748538970947, 0.19070294499397278, -0.2366809844970703, -0.019100598990917206, 0.11251523345708847, -0.49489638209342957, -0.7852833271026611, -0.0569363497197628, 0.7184476256370544, -0.4502290189266205, -0.007970593869...
ORM
[ -0.25726377964019775, 0.39914900064468384, 0.34520137310028076, -0.3933730721473694, 0.10199810564517975, -0.14397673308849335, 0.14178070425987244, -0.02681870386004448, -0.5392001271247864, -0.2577349543571472, -0.20422881841659546, 0.4132632613182068, 0.3245326280593872, 0.0923543125391...
I have a class in a WPF MVVM application which I would like to display in a popup form and manage some of its members. ``` public class Route { public string Name { get; set; } public List<RouteSegment> MandatorySegments { get; set; } } public class RouteSegment { public decimal Id { get; set; } public ...
[ 0.39362049102783203, -0.03609449416399002, 0.2701182961463928, -0.019079776480793953, 0.12760098278522491, -0.2884252667427063, 0.12544026970863342, -0.37399014830589294, -0.24169135093688965, -0.8265621066093445, -0.24295085668563843, 0.29846450686454773, -0.3233608603477478, -0.075236231...
datagrid so I can add and remove new members easily. This is the code I have so far: In my ViewModel ``` public RouteTest SelectedRoute { get; set; } public ObservableCollection<RouteSegment> AllRouteSegments { get; private set; } public RouteSegment SelectedMandatorySegment { get; set; } ``` In my View ``` <Data...
[ -0.16344428062438965, -0.1829524040222168, 0.6168974041938782, -0.05165952444076538, 0.13299360871315002, 0.10089265555143356, 0.2531639337539673, -0.48758813738822937, -0.19895032048225403, -0.8124074339866638, -0.1885068118572235, 0.3604813516139984, -0.026640187948942184, 0.067279472947...
CanUserAddRows="{StaticResource False}" SelectionMode="Single" SelectedItem="{Binding SelectedMandatorySegment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> <DataGrid.Columns> <DataGridTemplateColumn Header="Route Segment"> <DataGridTemplateColumn.CellT...
[ -0.3435429036617279, -0.15287859737873077, 0.06620288640260696, -0.038044366985559464, 0.39162325859069824, 0.04892265424132347, 0.13532410562038422, -0.3119136393070221, -0.08073185384273529, -0.8093253970146179, 0.008500071242451668, 0.11721499264240265, -0.4258189797401428, 0.1011756435...
<DataTemplate> <ComboBox ItemsSource="{Binding DataContext.AllRouteSegments, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" ItemTemplate="{StaticResource CboxItemTemplate}"/>
[ -0.08795687556266785, 0.09110833704471588, 0.21114258468151093, -0.05784734711050987, 0.10171110183000565, 0.3093916177749634, -0.03971999138593674, -0.39936426281929016, -0.1832619607448578, -0.7232756018638611, -0.20355486869812012, -0.0064739640802145, -0.14323651790618896, 0.3580586016...
</DataTemplate> </DataGridTemplateColumn.CellTemplate> </DataGridTemplateColumn> </DataGrid.Columns> </DataGrid> ``` What I'm missing is the `SelectedValue` or `SelectedItem` on the combobox in the
[ -0.13002321124076843, 0.0664086863398552, 0.08019261062145233, 0.007820970378816128, 0.24735695123672485, 0.005698848515748978, -0.32709187269210815, -0.2620455026626587, -0.10517718642950058, -0.6214120984077454, -0.028628727421164513, 0.09618928283452988, -0.10546864569187164, -0.0917743...
templated grid column. Now, in the grid I have the same number of rows as elements in my list and the `ItemsSource` of the combobox binds properly, because I can choose from all the `RouteSegment` elements. But the initial value is always empty for all the rows in the datagrid. What should the `SelectedValue` of the co...
[ 0.28186994791030884, -0.3234553933143616, 0.4059637188911438, -0.1781376451253891, -0.19745057821273804, 0.10752689093351364, -0.06255416572093964, -0.6470646262168884, 0.1647946685552597, -1.0555448532104492, -0.11008051037788391, 0.2938311994075775, -0.4364025592803955, -0.02083229832351...
</solid> <stroke android:width="2dp" android:color="#C4CDE0" > </stroke> <padding android:left="5dp" android:top="5dp" android:right="5dp" android:bottom="5dp" > </padding> <corners android:radius="11dp" > </corners> </shape> ``` ...
[ -0.21833652257919312, -0.11974956840276718, 0.7267435789108276, -0.031561147421598434, -0.10682475566864014, 0.43947553634643555, 0.06286326795816422, -0.7703545093536377, -0.19439655542373657, -0.6900555491447449, -0.3722187578678131, 0.43763816356658936, 0.007277526892721653, -0.34468841...
your `whatever_layout_name.xml`: ``` <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_margin="5dp" android:background="@drawable/shape" > </LinearLayout> ``` This is what I usually do in my apps.
[ 0.014450974762439728, -0.030508778989315033, 0.8867335915565491, -0.2858444154262543, 0.21488229930400848, 0.1627672016620636, -0.2747609615325928, -0.09587609022855759, -0.07647702097892761, -0.48464658856391907, 0.22793564200401306, 0.5300736427307129, 0.1130267009139061, -0.088592961430...
I'm making a chat responder for a game and i want know if there is a way you can compare two strings and see if they are approximatley equal to each other for example: if someone typed: "Strength level?" it would do a function.. then if someone else typed: "Str level?" it would do that same function, but i want it s...
[ 0.19719314575195312, -0.3200377821922302, 0.16651074588298798, 0.1808495968580246, -0.3803631365299225, 0.060217827558517456, -0.014317426830530167, -0.1646866500377655, 0.0212085098028183, -0.5139874219894409, 0.26241084933280945, 0.5452430844306946, -0.3819487690925598, 0.041759811341762...
a big giant irritating function to check the Strings? if you've been baffled by my explanation (Not really one of my strong points) then this is basically what I'm asking. How can I check if two strings are similar to each other? See this question and answer: [Getting the closest string match](https://stackoverflow.c...
[ -0.047829609364271164, -0.04508722946047783, 0.20129048824310303, 0.113988496363163, -0.18611134588718414, -0.1756936013698578, 0.20983554422855377, 0.20627278089523315, -0.2624765634536743, -0.4496113359928131, 0.11763475835323334, 0.6551875472068787, -0.5332913398742676, -0.0499291978776...
I am new to wcf. I have developped a wcf service application(not a library). Can someone tell me how to deploy it other than iis. And how to access the service as a webservice. is this possible and how? See this question and answer: [Getting the closest string match](https://stackoverflow.com/questions/5859561/getting-...
[ 0.3105398416519165, 0.060933321714401245, 0.40644511580467224, -0.11635127663612366, -0.21768347918987274, -0.3186751902103424, 0.27278950810432434, -0.38642874360084534, 0.08625807613134384, -0.8617312908172607, 0.23415032029151917, 0.3842759430408478, -0.10911660641431808, 0.152065411210...
I have been making good use of custom properties withing custom controls. Is there such thing as custom methods? Say I want something to happen in a CC. A good example is the show method of the dialog box extension. If I have a cc with a extension dialog inside, I want my custom control to have a Show method which insu...
[ 0.8952496647834778, 0.10454631596803665, 0.3574965298175812, 0.159150630235672, -0.09047146886587143, -0.5866022706031799, -0.057082582265138626, -0.1838972270488739, -0.34960389137268066, -0.2582955062389374, 0.08031066507101059, 0.33526182174682617, -0.4250863194465637, 0.353055149316787...
against any given control instance, but there is no way to specify custom methods, as opposed to custom properties. There are, however, at least two ways you could achieve the result you're after: 1. Convert your Custom Control to a component ([this NotesIn9 episode](http://notesin9.com/index.php/2012/04/04/notesin9-...
[ 0.07955353707075119, -0.32269397377967834, 0.28330889344215393, 0.13352122902870178, -0.03958221897482872, 0.053698886185884476, 0.1492501050233841, -0.4501644968986511, -0.3722521662712097, -0.3504828214645386, 0.00010625043796608225, 0.5707914233207703, -0.4735132157802582, 0.30895748734...
"composite components", you could also create a component from scratch that has the same behavior as your existing Custom Control but also supports custom behavior. Note that either approach does not necessarily require that you create an OSGi library... you can define these components directly in an NSF; you only need...
[ 0.31052136421203613, -0.1324400007724762, 0.028230248019099236, 0.28726187348365784, -0.07891173660755157, 0.17408040165901184, -0.057550687342882156, -0.6397612690925598, -0.4516788125038147, -0.6687005162239075, 0.22268934547901154, 0.408914715051651, -0.4640631377696991, 0.1239532455801...
Java class or SSJS object) that supports the custom methods you wish to define, and pass *that* object to the control. You could then call those methods by getting a handle on the object via the CC's property map. For example: ``` <myCC id="myCustomControl" API="#{someObject}" /> ``` Assuming whatever #{someObject}...
[ 0.3090372085571289, -0.06316936016082764, 0.3263556659221649, 0.003324144519865513, 0.10172100365161896, -0.21509617567062378, 0.06645836681127548, -0.2989951968193054, -0.2933111786842346, -0.41762489080429077, -0.24116694927215576, 0.38890883326530457, -0.4844011664390564, 0.148608416318...
Custom Control it was passed to. So if that method needs to get a handle on its children to toggle their rendered property, for example, then it needs some other way of determining its context.
[ 0.022977296262979507, -0.2698011100292206, 0.4308975338935852, 0.3730986714363098, 0.03378903120756149, 0.16695886850357056, -0.2768365740776062, -0.14125236868858337, -0.407705157995224, -0.3416723310947418, -0.024611853063106537, 0.39962124824523926, -0.045191969722509384, 0.166581869125...
I am learning APUE.2e (Advanced Programming in the UNIX® Environment, Second Edition) these days and have got to the chapter 16 Network IPC: sockets. When I run the program `ruptime` (for the client end) and `ruptimed` (for the server end), something weird happened. The client program shows a client command that commun...
[ 0.12724344432353973, -0.06809595227241516, 0.43738406896591187, 0.05742267519235611, 0.2683618664741516, -0.19140174984931946, 0.04181865602731705, 0.022254416719079018, 0.1002785935997963, -0.6858831644058228, -0.057368192821741104, 0.5485774874687195, -0.22770600020885468, 0.389766722917...
file `/etc/service` which means the service `ruptime` binds to the port `4000/tcp`. I ran the two programs on the same machine (Ubuntu 11.04) and the `ruptimed` first (of course): ``` $ ./ruptimed $ ./ruptime 127.0.0.1 21:35:48 up 13:06, 3 users, load average: 0.56, 0.85, 0.94 ``` The output is what I have expec...
[ 0.03148311749100685, 0.2235565036535263, 0.43030595779418945, -0.06611953675746918, 0.2770680785179138, 0.23636019229888916, 0.45749709010124207, -0.07915591448545456, -0.19484874606132507, -0.8075280785560608, 0.04283793270587921, 0.47481080889701843, -0.41929155588150024, 0.4911171793937...
named `ruptime` in the `/etc/init.d/` directory. Here it is: ``` #! /bin/sh ### BEGIN INIT INFO # Provides: ruptimed # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: ruptime ### END INIT INFO start() { echo "...
[ 0.23612473905086517, 0.014994210563600063, 0.29704806208610535, -0.3624142110347748, 0.3262731432914734, 0.2722820043563843, 0.6842203140258789, -0.5050165057182312, -0.11254990100860596, -0.33152300119400024, -0.3067111670970917, 0.29562532901763916, -0.5057392716407776, 0.412419676780700...
;; restart) stop start ;; *) echo "usage: $0 start|stop|restart" exit 0; esac ``` However, it didn't work and I don't know why. I also set the ufw enabled and allowed ruptime like this: ``` sudo ufw allow ruptime ``` It didn't work either. The source code for `ruptime` and `ruptimed` ar...
[ 0.0084475576877594, -0.11815507709980011, 0.4202063977718353, -0.1044507771730423, 0.3548995852470398, 0.09621880203485489, 0.47271493077278137, -0.3664063811302185, -0.15297216176986694, -0.5696913599967957, -0.2860398292541504, 0.7070031762123108, -0.5031306743621826, 0.1618552953004837,...
(nsec = 1; nsec <= MAXSLEEP; nsec <<= 1) { if (connect(sockfd, addr, alen) == 0) { return (0); } if (nsec <= MAXSLEEP/2) sleep(nsec); } return (-1); } ``` ### init\_server() ``` // the initserver function #include "apue.h" #include <errno.h> #include <sys/socket.h> int initserver(int ty...
[ -0.11973556876182556, -0.297626256942749, 0.569095253944397, -0.3490074872970581, 0.21269918978214264, 0.33870023488998413, 0.4193597435951233, -0.44599494338035583, -0.3096383810043335, -0.7138253450393677, -0.5584189295768738, 0.5040233135223389, -0.4363640248775482, -0.04092482477426529...
< 0) { err = errno; goto errout; } if (type == SOCK_STREAM || type == SOCK_SEQPACKET) { if (listen(fd, qlen) < 0) { err = errno; goto errout; } } return(fd); errout: close(fd); errno = err; return (-1); } ``` ### The client end ``` // the client end i.e. ruptime.c #include...
[ -0.23301056027412415, -0.33240455389022827, 0.6364269256591797, -0.5605839490890503, 0.1126466765999794, 0.4486537575721741, 0.5163595080375671, -0.7984405755996704, -0.0677018091082573, -0.42918169498443604, -0.3425285816192627, 0.8548159003257751, -0.4681442677974701, -0.1019225046038627...
((n = recv(sockfd, buf, BUFLEN, 0)) > 0) write(STDOUT_FILENO, buf, n); if (n < 0) err_sys("recv error"); } int main(int argc, char *argv[]) { struct addrinfo *ailist, *aip; struct addrinfo hint; int sockfd, err; if (argc !=2 ) err_quit("usage: ruptime hostname"); hint.ai_flags ...
[ -0.25461453199386597, -0.2869364023208618, 0.36817455291748047, -0.3101728558540344, 0.23091192543506622, 0.13615648448467255, 0.7096039652824402, -0.18905258178710938, -0.16276320815086365, -0.5873249173164368, -0.3909895122051239, 0.6371269226074219, -0.41292163729667664, 0.3221440315246...
if ((err = getaddrinfo(argv[1], "ruptime", &hint, &ailist)) != 0) err_quit("getaddrinfo error: %s", gai_strerror(err)); for (aip = ailist; aip != NULL; aip = aip->ai_next) { if ((sockfd = socket(aip->ai_family, SOCK_STREAM, 0)) < 0) err = errno; if (connect_retry(sockfd, aip->ai_addr, aip->ai_addrle...
[ -0.3203533887863159, -0.3329481780529022, 0.39240390062332153, -0.19217608869075775, 0.24512608349323273, 0.00934878271073103, 0.5495983958244324, -0.3464929759502411, -0.09656941145658493, -0.4999603033065796, -0.611819863319397, 0.9086551070213318, -0.42222821712493896, -0.00604837946593...
strerror(err)); exit(1); } ``` ### The server end ``` //the server end i.e. ruptimed is as follows: #include "apue.h" #include <netdb.h> #include <errno.h> #include <syslog.h> #include <sys/socket.h> #define BUFLEN 128 #define QLEN 10 #ifndef HOST_NAME_MAX #define HOST_NAME_MAX 256 #endif extern int initserver(...
[ -0.28103119134902954, -0.10036221146583557, 0.8594688177108765, -0.5900560021400452, -0.061564695090055466, 0.378278523683548, 0.4870888590812683, -0.5594714283943176, -0.1124383956193924, -0.5794370770454407, -0.37681904435157776, 0.6188815832138062, -0.4004470705986023, 0.144004285335540...
if ((fp = popen("/usr/bin/uptime", "r")) == NULL) { sprintf(buf, "error: %s\n", strerror(errno)); send(clfd, buf, strlen(buf), 0); } else { while (fgets(buf, BUFLEN, fp) != NULL) send(clfd, buf, strlen(buf), 0); pclose(fp); } close(clfd); } } int main(int argc, char *argv[]) ...
[ -0.40789276361465454, -0.29396769404411316, 0.5188480615615845, -0.49176058173179626, 0.3104209303855896, 0.3105335533618927, 0.2378024309873581, -0.2286258190870285, 0.03063863329589367, -0.33954760432243347, -0.6846035122871399, 0.4793667495250702, -0.45107853412628174, -0.06618511676788...
sockfd, err, n; char *host; if (argc != 1) err_quit("usage: ruptimed"); #ifdef _SC_HOST_NAME_MAX n = sysconf(_SC_HOST_NAME_MAX); if (n < 0) #endif n = HOST_NAME_MAX; host = malloc(n); if (host == NULL) err_sys("malloc error"); if (gethostname(host, n) < 0) err_sys("gethostname e...
[ -0.2213277667760849, -0.26687631011009216, 0.5198753476142883, -0.20420560240745544, 0.11491408944129944, 0.023330656811594963, 0.74606853723526, -0.0936368852853775, -0.34135180711746216, -0.6431041359901428, -0.4156157672405243, 0.5407357811927795, -0.4029509127140045, 0.3257462680339813...
NULL; if ((err = getaddrinfo(host, "ruptime", &hint, &ailist)) != 0) { syslog(LOG_ERR, "ruptimed: getaddrinfo error: %s", gai_strerror(err)); exit(1); } for (aip = ailist; aip != NULL; aip = aip->ai_next) { if ((sockfd = initserver(SOCK_STREAM, aip->ai_addr, aip->ai_addrlen, ...
[ -0.28327247500419617, -0.3458164930343628, 0.30610111355781555, -0.39767563343048096, 0.2244938462972641, 0.07675577700138092, 0.5826343894004822, -0.1824164092540741, -0.19672180712223053, -0.8179600834846497, -0.5965045690536499, 0.5318965315818787, -0.5569225549697876, 0.183249890804290...
Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
[ 0.13227280974388123, 0.13885468244552612, 0.2745773196220398, 0.09345568716526031, 0.16506102681159973, -0.014724072068929672, 0.12875108420848846, 0.29419592022895813, -0.13568882644176483, -0.9369021654129028, -0.1391659677028656, 0.26957473158836365, -0.2787475883960724, 0.4293169081211...
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:4000 0.0.0.0:*
[ 0.06422536075115204, 0.3094167411327362, 0.523929238319397, 0.07990060746669769, -0.03883786126971245, 0.0523487813770771, 0.34700125455856323, -0.05868292972445488, -0.24678461253643036, -0.3619934320449829, 0.16573509573936462, 0.6357740163803101, -0.4632578194141388, 0.5034725069999695,...
LISTEN 2252/ruptimed tcp 0 13033 192.168.1.221:47380 91.189.89.114:443 LAST_ACK - tcp 74 0 192.168.1.221:43914 91.189.89.76:443 ESTABLISHED 1846/python tcp 0
[ 0.16371449828147888, -0.03499924764037132, 0.1978277862071991, -0.1717066764831543, 0.01343079935759306, 0.005831653717905283, 0.4480137228965759, -0.09380083531141281, -0.2861374020576477, 0.12774519622325897, -0.07220778614282608, 0.2577499747276306, -0.6873962879180908, 0.27208158373832...
0 127.0.0.1:4000 127.0.0.1:56344 TIME_WAIT - tcp 0 1 192.168.1.221:35442 192.168.1.89:24800 SYN_SENT 1478/synergyc tcp 0 0 192.168.1.221:34957 74.125.71.125:5222 ESTABLISHED
[ -0.26146751642227173, -0.2407059520483017, 0.4234234392642975, 0.0390685573220253, -0.13204163312911987, 0.05635716766119003, 0.21475499868392944, -0.1660570651292801, -0.13200418651103973, -0.18076497316360474, -0.22423680126667023, 0.08071549981832504, -0.6903666853904724, 0.342824161052...
1618/chrome tcp 0 0 192.168.1.221:57795 203.208.46.163:443 ESTABLISHED 1618/chrome tcp6 0 0 :::22 :::* LISTEN - ``` The 3th
[ -0.11751024425029755, 0.22787593305110931, 0.8447006344795227, -0.35801687836647034, -0.3986397981643677, 0.20432394742965698, 0.13816136121749878, -0.1811118870973587, -0.34439992904663086, -0.4319537580013275, -0.07769639790058136, 0.13881506025791168, -0.3207279443740845, 0.272369235754...
record is my service ruptime. Is it something wrong? I don't know much about its meanig. I'm not a C expert but I know one thing: your daemon is probably binding to just one address/interface, and is accepting connections only from it. Use `netstat -nap` to check to which address the daemon is binding to. If it is l...
[ 0.4844608008861542, 0.13749189674854279, 0.27862122654914856, 0.10538686811923981, 0.0664030984044075, -0.3514738082885742, 0.2287689745426178, 0.28600385785102844, -0.6666889190673828, -0.7262148261070251, 0.2984512448310852, 0.4389183819293976, -0.4465179443359375, 0.6015445590019226, ...
The question is worded a bit strangely, but I couldn't figure out any other way. I'd like to know if there is a better model for doing this. Here's what I have now: Say I'm editing a user on my application. I submit the form, and it POSTs to `apply.php?ref=edituser`. Then on `apply.php`, it has a large conditional to ...
[ 0.39112338423728943, 0.24645991623401642, 0.6807639002799988, -0.0381166934967041, -0.18972578644752502, 0.06420203298330307, 0.17165924608707428, -0.19141638278961182, 0.10465607047080994, -0.607907772064209, -0.016555994749069214, 0.4303136467933655, -0.06221894919872284, 0.0611370466649...
the error code. That page checks to see if the error code is set, and displays and unsets it if it is. I feel like I might have too much in a single script. Any opinions on this? Do multiple forms submit to it? As a general rule a form doesn't submit to a model a form submits to a controller in the MVC structure. The...
[ 0.47030743956565857, 0.0869671031832695, 0.4849769175052643, 0.1807968020439148, -0.08301476389169693, -0.16834260523319244, 0.14296294748783112, -0.15506453812122345, -0.20336033403873444, -0.5177878737449646, 0.22962108254432678, 0.6101300120353699, -0.19224011898040771, 0.05081609264016...
I've made an app that displays a menu of a restaurant (in a tableview). What I want to do is let users add items to an order and (text or email) it to the restaurant. I am just not sure what approach to use. Should I create an array when they click a row in the table? and then send that array as sms? or is there anot...
[ 0.5760318040847778, 0.14829319715499878, 0.204574853181839, -0.19317415356636047, 0.05777459219098091, 0.3774932622909546, -0.14755713939666748, 0.2576565444469452, -0.43012771010398865, -0.6990712285041809, 0.2735724151134491, 0.3167608082294464, -0.1723753958940506, -0.064262755215168, ...
case, you probably need two: one for getting menus and the other one for submitting orders. 2. I would use objects no matter whether it is JSON, XML or others of the information. In your app side, you can create a class, say order, contains two fields, Item Id and Item count. So when submitting your order, the web serv...
[ 0.23116928339004517, -0.17565923929214478, 0.05472946912050247, 0.13806548714637756, -0.3080030679702759, 0.24999719858169556, -0.11456172913312912, -0.0680358037352562, -0.26087892055511475, -0.7154390215873718, 0.050486933439970016, 0.6117064952850342, -0.3932662606239319, -0.26205813884...
different. Hope this helps.
[ 0.6233529448509216, -0.27609652280807495, 0.04196305572986603, 0.1805264949798584, 0.15225645899772644, 0.2847144901752472, 0.34790289402008057, 0.15915843844413757, -0.22629563510417938, -0.9100728631019592, 0.24779899418354034, 0.23951955139636993, -0.03541869297623634, 0.218389391899108...
I need help reading the contents of a webpage. Currently i am using the following method to read the contents ``` BufferedReader in = new BufferedReader(new InputStreamReader(page.openStream())); String inputLine; while ((inputLine = in.readLine()) != null) {Content = Content + inputLine;} ``` However with this met...
[ -0.05212099105119705, 0.22327624261379242, 0.6209313869476318, -0.07174863666296005, -0.2303263545036316, -0.21254965662956238, 0.3083723485469818, -0.26111894845962524, -0.08041951805353165, -0.9439476132392883, -0.201170414686203, 0.41901618242263794, -0.3394763171672821, 0.1532157212495...
just get ``` <div class="update"></div> ``` although on the screen this class has a value. Now however if i save the page first (by clicking save as in Firefox) then the values appended in the CSS class by jquery are also visible. Is there a method or a way on how i could read the values or obtain the values like fi...
[ 0.23805612325668335, 0.02348559908568859, 0.44862645864486694, 0.1907002478837967, -0.0933760553598404, -0.2704974114894867, 0.21594130992889404, 0.16562189161777496, -0.18375766277313232, -1.0536231994628906, -0.05114034563302994, 0.7299904823303223, -0.09236755222082138, -0.0457348190248...
to know does firefox have any apis that might help ? Any suggestions would be appreciated. You may find the following project useful: * [HTMLUnit](http://htmlunit.sourceforge.net/gettingStarted.html) Here is also a [very informative blog post](http://blog.databigbang.com/web-scraping-ajax-and-javascript-sites/) from ...
[ 0.4192555546760559, -0.022618846967816353, -0.0017359493067488074, 0.29458779096603394, -0.09240395575761795, -0.7576361894607544, -0.0014859950169920921, 0.38442376255989075, -0.340136855840683, -0.20963424444198608, -0.025162972509860992, 0.32589399814605713, 0.051659341901540756, -0.020...
My boss has given a code for testing PCI express on an Altera board. The code consist of several c code files having instructions such as reading Bios, setting some registers, writing to buffers etc. My job at present is to see the functionality of the code by running it. I am new to FPGA and I am unable to understand ...
[ 0.46148189902305603, 0.3345974385738373, 0.11983533203601837, 0.2282593846321106, 0.062353696674108505, -0.05818331986665726, 0.05381062999367714, -0.016552887856960297, 0.12974359095096588, -0.5680829882621765, 0.2646213173866272, 0.5404316186904907, -0.06496883928775787, 0.00403657462447...
compilers are available for compiling C code for testing various interfaces of an FPGA? Thanks and regards H You may find the following project useful: * [HTMLUnit](http://htmlunit.sourceforge.net/gettingStarted.html) Here is also a [very informative blog post](http://blog.databigbang.com/web-scraping-ajax-and-jav...
[ 0.301914244890213, 0.07490160316228867, -0.2762925624847412, 0.442380428314209, -0.5470340847969055, -0.3628331422805786, 0.02837665192782879, 0.46995317935943604, -0.43825098872184753, -0.32844698429107666, -0.06482092291116714, 0.33746686577796936, -0.05048830062150955, 0.054811842739582...
<https://github.com/alexreisner/geocoder> I can't find documentation to show the visitor's city from ip address? I know how to with HTML5, but I would like to use the value geocoder has. Thanks It took a couple of hours for me to realize that the answer is pretty simple: ``` request.location.city ``` [Geocoder page...
[ 0.47950074076652527, 0.08157352358102798, 0.4599328935146332, 0.13318368792533875, -0.25273051857948303, -0.28498491644859314, 0.2587776184082031, -0.011696971952915192, -0.13132037222385406, -0.8698086142539978, 0.04756757244467735, 0.3575790226459503, -0.08148271590471268, 0.204782173037...
I'm quite new to django, and moved to it from Drupal. In Drupal is possible to define module-level variables (read "application" for django) which are stored in the DB and use one of Drupal's "core tables". The idiom would be something like: ``` variable_set('mymodule_variablename', $value); variable_get('mymodule_va...
[ 0.4890713691711426, 0.31708765029907227, 0.4680289626121521, -0.21282677352428436, -0.2672138810157776, -0.2617079019546509, -0.16830722987651825, -0.13791921734809875, -0.1412288397550583, -0.5017807483673096, 0.08243529498577118, 0.5847050547599792, -0.0972822904586792, 0.100657947361469...
I thought to turn to SO community to **check if there is a typical/standard/idiomatic way that django devs use to solve this problem**. (BTW: the value is not a constant that I could put in a settings file. It's a value that should be refreshed daily, and should be read at each request). There are apps to achieve this...
[ 0.30815503001213074, 0.13342756032943726, 0.23966892063617706, -0.020017389208078384, -0.26561981439590454, -0.3129290044307709, 0.4385761022567749, 0.19397060573101044, -0.16889941692352295, -0.7989394068717957, 0.08233851194381714, 0.6201274991035461, -0.14557361602783203, 0.017767729237...
It's invalidated only when > it needs to be (both in process and based on CACHE\_BACKEND).
[ -0.04382706433534622, 0.44989481568336487, 0.1283213049173355, 0.011310357600450516, 0.3032006621360779, -0.22235891222953796, 0.5080194473266602, 0.07805746793746948, 0.07413624227046967, -0.545918881893158, -0.3208238482475281, 0.26710250973701477, -0.24016821384429932, 0.418325364589691...
I all.. I have always used int(10) for everything, but couple days ago, I started a new project, and was hoping to do this 100% optimized ;) So I am wondering, how many; user\_id => int(6) vs. mediumint (8) or similar will be possible to create/add group\_id => tinyint(1) vs tinyint (4) or similar will it be possib...
[ 0.41105908155441284, 0.07497486472129822, 0.5010722279548645, -0.10350789874792099, -0.3055609166622162, 0.1659083217382431, 0.27682825922966003, -0.13052912056446075, -0.47798144817352295, -0.7818354368209839, 0.0036195290740579367, 0.422644704580307, -0.3057972192764282, 0.23274213075637...
the (X) is the width of the field The optional number in parens is the *display* width. It has nothing to do with how many unique values are in the range of the integer or how much storage space the integer needs. [Application code is free to ignore your hint](http://dev.mysql.com/doc/refman/5.6/en/numeric-type-attrib...
[ -0.0893276035785675, 0.20043310523033142, 0.5750852227210999, -0.16917744278907776, -0.3234679698944092, 0.3502679765224457, -0.056884557008743286, -0.052202414721250534, -0.4376792013645172, -0.5906392335891724, -0.10201402753591537, 0.31379446387290955, -0.16590099036693573, 0.3185457885...
(~ 16 million unique values) to identify your full domain of values you potentially save 1 byte per row over a 4-byte integer. (*Potentially*, because some platforms require padding to the next word boundary. For 32-bit systems, that would be 4 bytes, so no actual space savings. I don't know whether MySQL does that.) F...
[ -0.027201958000659943, 0.1715051531791687, 0.37319377064704895, 0.11065560579299927, -0.13907544314861298, 0.2858472466468811, 0.22334523499011993, 0.016632255166769028, -0.512917160987854, -0.6634811758995056, 0.08756513148546219, 0.32840409874916077, 0.07562022656202316, 0.09187269210815...
Here is my code to get Notes from AddressBook. ``` +(NSString*)getNote:(ABRecordRef)record { return ABRecordCopyValue(record, kABPersonNoteProperty); } ``` But in above implementation I have memory leak. So to remove memory leak I wrote following code ``` +(NSString*)getNote:(ABRecordRef)record { NSSt...
[ -0.019289113581180573, 0.3700637221336365, 0.6937146782875061, -0.22304370999336243, -0.07045313715934753, -0.1621762365102768, 0.5976471900939941, -0.4431666135787964, -0.21583035588264465, -0.7183658480644226, -0.01103653572499752, 0.34234070777893066, -0.3673664927482605, -0.02130266465...
ownership rule: [Memory Management Rules](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html "Memory Management Rules") Which is to say, the API call you're using contains "Copy", but you're treating it like an autoreleased object. Given that you're returning an ...
[ 0.030672233551740646, 0.3181381821632385, 0.37337079644203186, 0.09431469440460205, 0.44569793343544006, -0.24106933176517487, 0.04087286442518234, -0.36802345514297485, -0.5990610122680664, -0.1568571776151657, -0.3232130706310272, 0.7351917028427124, -0.04588073864579201, 0.1635444611310...
]; /* ... use note ... */ /* we retained the object, we must also release it when done with it. */ [ note release ]; ```
[ 0.0753777027130127, 0.4063831865787506, 0.4046311676502228, -0.12264398485422134, 0.15107029676437378, -0.18876469135284424, 0.130906343460083, -0.2695099711418152, -0.13159596920013428, -0.13319164514541626, -0.6126689910888672, 0.5405130386352539, -0.3199928104877472, 0.30042773485183716...