text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
'x'. console.log(x); } /* Will display: 0 1 2 3 4 foo */ ```
[ 0.15265828371047974, 0.3488859534263611, 0.5836940407752991, -0.35268089175224304, 0.3147340416908264, 0.12163460999727249, 0.2779351472854614, 0.06811895221471786, 0.03153560683131218, -0.5953653454780579, -0.31127646565437317, 0.5824365019798279, -0.40568241477012634, 0.2678442597389221,...
I have a fairly large program written in C. It spans several files, and has a bit of retooling in order to attempt to compensate for platform issues. Specifically, I have header files for different OSes, architectures, and compilers that define macros that it uses to handle things. As an example, the `-v` flag prints v...
[ 0.8050123453140259, 0.39075005054473877, 0.08996318280696869, -0.11759418994188309, 0.10878832638263702, -0.096222884953022, -0.102764792740345, 0.28576964139938354, -0.08151916414499283, -0.5077125430107117, -0.0782124325633049, 0.31539249420166016, -0.12962636351585388, 0.289247125387191...
for which it simply makes a system call to whatever compiler *it* was built with. It also has support for the GNU Readline library (or the BSD Editline library - same thing) if it is found on your system, as well as an equivalent without all the nice Readline features that is pure ANSI if you don't have it. The botto...
[ 0.4037051200866699, 0.11611808836460114, 0.10029519349336624, 0.07577122747898102, 0.06344524770975113, -0.3754028081893921, 0.16508863866329193, 0.1990794986486435, -0.04946833476424217, -0.3475804030895233, -0.1386401653289795, 0.6838698983192444, -0.27263396978378296, 0.0820424184203147...
install it with a standard `./configure`, `make` and `make install` interface. Currently I'm using a sorry handmade shell script for `configure` that creates the Makefile from scratch, and determines which header files to include based on your OS/architecture/compiler. I'd like a more efficient approach, and I'd like ...
[ 1.130475640296936, -0.11164689809083939, 0.04122024402022362, 0.04416707530617714, 0.4373077154159546, -0.3718757629394531, 0.01209348626434803, 0.0033010041806846857, 0.28812432289123535, -0.6870104670524597, -0.0537274107336998, 0.7869260907173157, -0.22849473357200623, -0.06528636813163...
from a homebrew build system to GNU Autotools? 2) What good tutorials are there for getting started with GNU Autotools? 3) How can I make this a relatively painless process? First thing, you can run *autoscan* in the project's root directory. It will scan the project tree and generate *configure.scan*, while trying to ...
[ 0.6567730903625488, 0.027596373111009598, -0.005754551384598017, 0.03619203716516495, -0.04168499633669853, -0.1302836686372757, 0.055531393736600876, -0.1431531012058258, 0.047031696885824203, -0.9111497402191162, -0.08759886771440506, 0.8659350275993347, -0.19398950040340424, -0.25729146...
I was reading an article that shows [how bad CodePlex uses UpdatePanels](http://encosia.com/2008/12/03/have-you-ever-wondered-why-codeplex-is-so-slow/) and how nice is StackOverflow on this matter when, for example, a user upvotes an answer/question. I wonder if someone can point a tutorial on how to do such action. ...
[ 0.20734427869319916, 0.03016659803688526, 0.22508002817630768, -0.03628964349627495, -0.3950331509113312, -0.23907770216464996, 0.22356195747852325, -0.31138551235198975, -0.2590949833393097, -0.597858190536499, 0.0008470736793242395, 0.5285270810127258, -0.3290654718875885, -0.19323927164...
maybe Jeff) point to a nice "how-to" since scratch? Thank you. Before you dismiss the UpdatePanel I suggest you have a read of this post I did - <http://www.aaron-powell.com/blog/august-2008/optimising-updatepanels.aspx>. It looks at how to optimise UpdatePanels and it can lead to some performance increases if done wel...
[ 0.32733842730522156, 0.2308158278465271, 0.022958936169743538, 0.28529343008995056, -0.4538959562778473, -0.060905955731868744, 0.17720089852809906, -0.09601297974586487, -0.06415069103240967, -0.4524598717689514, 0.33685168623924255, 0.49801796674728394, 0.15424233675003052, -0.3848388195...
be of use - <http://www.asp.net/learn/ajax-videos/video-82.aspx>. It's on how to extend web services for script service capabilities.
[ 0.5457645654678345, -0.19897747039794922, 0.18963344395160675, 0.11185017973184586, 0.15684480965137482, -0.4634934961795807, -0.1240621954202652, 0.09337859600782394, 0.044485922902822495, -0.7026044130325317, -0.054267920553684235, 0.269508957862854, 0.40310007333755493, -0.3918733298778...
I have a generator and I would like to know if I can use it without having to worry about StopIteration , and I would like to use it without the **`for item in generator`** . I would like to use it with a while statement for example ( or other constructs ). How could I do that ? Use this to wrap your generator: ``` cl...
[ 0.390417218208313, -0.22385583817958832, -0.014612538740038872, 0.08697789907455444, 0.04584226384758949, -0.11336095631122589, 0.21293674409389496, -0.25067245960235596, -0.0043409597128629684, -0.5021774172782898, 0.11529161036014557, 0.7277267575263977, -0.3518041968345642, -0.035247258...
return self def next(self): for o in self.generator: return o raise StopIteration # If you don't care about the iterator protocol, remove this line and the __iter__ method. ``` Use it like this: ``` def example_generator(): for i in [1,2,3,4,5]: yield i gen = Gen...
[ -0.22632746398448944, -0.1780163198709488, 0.29464876651763916, -0.4193621575832367, 0.04966185614466667, 0.2345554232597351, 0.31749504804611206, -0.39060482382774353, 0.035147182643413544, -0.7186309099197388, 0.08933821320533752, 0.8713638186454773, -0.5142679810523987, -0.1054138019680...
answer below because it is much better than this one.
[ 0.07560998201370239, 0.13505464792251587, 0.17846480011940002, 0.17338500916957855, -0.30629608035087585, -0.09940826892852783, 0.11178930103778839, -0.23607303202152252, -0.12921273708343506, -0.6419315338134766, 0.035490211099386215, 0.5978285670280457, 0.1256651133298874, -0.01748051308...
I was reading Ivor Horton's Beginning Visual C++ 2008 and many of its CLR examples have this definition for main: ``` int main(array<System::String ^> ^args) ``` I went back, page by page, to the beginning of the book to find the first such instance with an explanation what it really means, but couldn't find one. O...
[ -0.30873769521713257, 0.42248839139938354, 0.3844972550868988, -0.3813001215457916, -0.34458503127098083, 0.20246712863445282, 0.15056374669075012, 0.16842103004455566, -0.1828247308731079, -0.259046733379364, 0.04745100811123848, 0.2566154897212982, -0.49748364090919495, 0.101435028016567...
a pointer to an object that is unmanaged, ^ points to a garbage collected object (handled by the framework). Read [this](http://msdn.microsoft.com/en-us/library/cxx6f46y.aspx) for more information about the way pointers are handled in .NET.
[ 0.017675351351499557, -0.11499688774347305, 0.20417426526546478, 0.18916158378124237, -0.06181567907333374, -0.16627585887908936, 0.1374947428703308, 0.11393937468528748, -0.3925672471523285, -0.6381908655166626, -0.38343316316604614, 0.23069192469120026, -0.3864220380783081, 0.21021671593...
Any replacement for the AS3 [ByteArray](http://livedocs.adobe.com/flex/2/langref/flash/utils/ByteArray.html) where you can read **raw binary data** via any medium? Maybe load a TXT file and access the **characters** byte-by-byte? Any ideas? search for **base64** - that's how to do it.
[ 0.20236656069755554, -0.3987726867198944, 0.3469209671020508, 0.10793279111385345, -0.17689576745033264, -0.03610479086637497, -0.051814306527376175, -0.08189807087182999, -0.5880863666534424, -0.6441836357116699, -0.19440823793411255, 0.5750873684883118, -0.11004852503538132, -0.363477349...
What is the difference between Object Literals and Array Literals in JavaScript? I know it has something to do with the length method but i don't fully understand it. [Mozilla.org](https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Core_Language_Features#Literals) has very good explanation of the different lite...
[ 0.4073776304721832, 0.041910722851753235, 0.06350676715373993, 0.08186596632003784, -0.2726752758026123, 0.11758701503276825, 0.23526260256767273, -0.38557329773902893, -0.1548372060060501, -0.3316666781902313, -0.05001223832368851, 0.5302242636680603, -0.4817142188549042, -0.1509967148303...
> > An object literal is a list of zero or > more pairs of property names and > associated values of an object, > enclosed in curly braces ({}). You > should not use an object literal at > the beginning of a statement. This > will lead to an error or not behave as > you expect, because the { will be > interpreted as t...
[ 0.4473685026168823, 0.03828420862555504, 0.11962851881980896, 0.13994312286376953, -0.27566608786582947, -0.13131023943424225, 0.3891693651676178, -0.2009877860546112, 0.16225527226924896, -0.41889503598213196, -0.12720206379890442, 0.31675973534584045, -0.5044369697570801, 0.0801296010613...
Is there a way to use an `alt` / `option` key as a meta key but still be able to use it to make some characters which need it? For example, in my local keyboard layout: * `@` is `alt` + `2` * `\` is `alt` + `shift` + `7` * `|` is `alt` + `7` * etc. So, if I set `alt` as a meta key, I can't make those characters anym...
[ -0.22885316610336304, 0.05104875564575195, 0.4125664234161377, 0.027900783345103264, 0.10478170961141586, 0.30114325881004333, 0.3204095661640167, -0.12542657554149628, -0.11747333407402039, -0.622907817363739, -0.013518312014639378, 0.6247038245201111, -0.1300520896911621, -0.073794543743...
tips you might have! :) **Edit:** It appears that I can set `alt` as a meta key and then add these kind of settings in inputrc: `"\e2": "@"` This works in the bash shell but it still won't work with Emacs though, so no good. Think about using a full featured Emacs for Mac OS X. I use Carbon Emacs but I believe other...
[ 0.37174633145332336, 0.0471758097410202, 0.5545923113822937, 0.2665892541408539, -0.02408077009022236, -0.038120634853839874, -0.14466819167137146, -0.1990887075662613, -0.05064864456653595, -0.5124564170837402, 0.4489692151546478, 1.055145502090454, -0.12903548777103424, -0.29374918341636...
possibilities. See <http://www.emacswiki.org/emacs/EmacsForMacOS>
[ 0.15978077054023743, -0.16843178868293762, 0.04378361999988556, 0.31691575050354004, 0.34846094250679016, 0.475607305765152, 0.43667563796043396, 0.4658856689929962, -0.4946659803390503, -0.4032602608203888, -0.3749903440475464, 0.26018208265304565, -0.09148899465799332, 0.1560716032981872...
Just wanted opinions on a design question. If you have a C++ class than owns other objects, would you use smart pointers to achieve this? ``` class Example { public: // ... private: boost::scoped_ptr<Owned> data; }; ``` The 'Owned' object can't be stored by value because it may change through the lifetime of t...
[ 0.5185856819152832, -0.006837591994553804, 0.026288658380508423, 0.09062513709068298, 0.10224542766809464, -0.14382046461105347, 0.12939174473285675, 0.02940160222351551, -0.3322714567184448, -0.4376469850540161, -0.03507306054234505, 0.6383700370788574, -0.26607516407966614, 0.18709087371...
thanks for all your answers. Thanks for the heads-up about auto\_ptr leaving the other object with a NULL pointer when the whole object is copied, I have used auto\_ptr extensively but had not thought of that yet. I make basically all my classes boost::noncopyable unless I have a good reason, so there's nothing to worr...
[ 0.257803350687027, 0.08236201107501984, -0.12198616564273834, 0.6304898262023926, -0.24728289246559143, -0.09103293716907501, 0.6072187423706055, 0.6561024188995361, -0.18183909356594086, -0.2636967599391937, 0.13654661178588867, 0.47500747442245483, 0.325666606426239, -0.10894773155450821...
a problem. I just had another question though. What I wanted when I asked this question was to know whether anyone actually did this, and you all seem to mention that it's a good idea theoretically, but no one's said they actually do it. Which surprises me! Certainly one object owning a pointer to another is not a new...
[ 0.5418239831924438, 0.23833337426185608, 0.2054898887872696, 0.34445515275001526, -0.07899689674377441, -0.3127903342247009, 0.3091137707233429, 0.01035065483301878, -0.5972409248352051, -0.23476286232471466, 0.31867870688438416, 0.2996462285518646, 0.021510202437639236, 0.3033760488033294...
the previous one gets destroyed properly. You have to remember that scoped\_ptr is noncopyable, though, which makes your class noncopyable by default until/unless you add your own copy constructor, etc. (Of course, using the default copy constructor in the case of raw pointers would be a no-no too!) If your class has...
[ 0.17262771725654602, -0.04702213779091835, 0.1887604296207428, 0.019812578335404396, 0.17554499208927155, -0.3471178710460663, 0.1864408254623413, -0.21913491189479828, -0.2530916631221771, -0.4702184796333313, -0.3770595192909241, 0.5923031568527222, -0.39570337533950806, 0.24658015370368...
Owned" throws an exception (out-of-memory, for example). o1 will be leaked, because C::~C() (the destructor) won't get called, because the object has not been completely constructed yet. The destructor of any completely constructed member field *does* get called though. So, using a scoped\_ptr instead of a plain pointe...
[ 0.2635425925254822, 0.05984488129615784, 0.2558116614818573, 0.21928296983242035, 0.36814752221107483, -0.5895431637763977, 0.21967941522598267, -0.18140822649002075, -0.10575582087039948, -0.25673818588256836, -0.281352162361145, 0.36915287375450134, -0.13402189314365387, 0.21576967835426...
I would like to know if there are any tools that can help me model C applications i.e. Functional programming. E.g. I'm currently building a shared library. But to communicate my design visually, I need something like UML. I would like to do this so that the person reviewing my design need not read through 100s of page...
[ 0.500485897064209, 0.25537583231925964, 0.22758550941944122, 0.11594626307487488, -0.22337676584720612, -0.07467707246541977, 0.007502956315875053, 0.1610843986272812, -0.21175995469093323, -0.7688159942626953, 0.03358013555407524, 0.5936407446861267, 0.006164027843624353, 0.00262731849215...
text, because it takes time and is difficult for the reviewers. Any help in this area from the experts here would be much appreciated. Thanks. A well written text documentation brings you a far. Much further than any UML diagram could ever achieve.
[ -0.06307685375213623, -0.051566749811172485, 0.20982785522937775, 0.2682892382144928, -0.04547389969229698, -0.16048964858055115, 0.2796429991722107, 0.1974194049835205, -0.23884142935276031, -0.826227605342865, -0.018611310049891472, 0.2755095958709717, 0.33645111322402954, 0.075129896402...
Often when beginning a new project, I start out with what I believe to be the best of intentions in terms of how to structure the codebase. I love the idea of numerous small modules that do one thing well, are de-coupled from other parts of the codebase, and could potentially be reused by myself in other (similar) proj...
[ 0.69717937707901, 0.27341195940971375, -0.22056196630001068, -0.0805099755525589, 0.08865100890398026, -0.04798491299152374, 0.2348058521747589, 0.12009122967720032, -0.3823995590209961, -0.5881549119949341, -0.21254724264144897, 0.34526804089546204, 0.057803377509117126, 0.198294386267662...
an overhead (despite good documentation and deploy methodology). On those times I've simply changed tack and bundled all the modules into one repository and managed it all as one codebase, meaning I can track everything together through different branches, deploying to staging and test environments, etc... What are th...
[ 0.46033191680908203, 0.054390374571084976, 0.13830630481243134, 0.11857818812131882, 0.10712568461894989, -0.20039328932762146, 0.1869686096906662, -0.40647169947624207, -0.43773457407951355, -0.68626469373703, -0.34914466738700867, 0.48428016901016235, -0.13082826137542725, -0.01246189139...
module does one thing well) I do not see the opposites as much as you do. Taking a .NET experience as an example, I can ensure parts of my code are geared towards well-defined responsibilities, I can structure my codebase into namespaces, ensuring that the touching points of the namespaces are well defined and that cla...
[ 0.7354165315628052, -0.10169865190982819, 0.16926570236682892, 0.0869593471288681, -0.15399062633514404, -0.22934117913246155, 0.2900960445404053, -0.33716461062431335, -0.3582255244255066, -0.6418821215629578, -0.01948213018476963, 0.47107794880867004, -0.07706534117460251, -0.00016052542...
crystallize and that would be the point where you may decide to introduce a new unit of code, with its own deployment artefact, source control branch, etc.
[ 0.3582431375980377, -0.009195392020046711, 0.36194688081741333, 0.10675829648971558, -0.0412641242146492, -0.12055330723524094, 0.2332908660173416, -0.33378851413726807, -0.28452879190444946, -0.35228657722473145, -0.20300725102424622, 0.304550439119339, -0.1159646213054657, 0.067854724824...
Does anyone know how to stop a UIWebView from bouncing vertically? I mean when a user touches their iphone screen, drags their finger downwards, and the webview shows a blank spot above the web page I had loaded? I've looked at the following possible solutions, but none of them worked for me: <http://www.iphonedevsdk...
[ 0.1349346786737442, 0.1167323887348175, 0.9028183817863464, -0.14902426302433014, -0.044990211725234985, -0.08387431502342224, 0.3732394874095917, -0.224042147397995, -0.5329075455665588, -0.2379370778799057, 0.15430384874343872, 0.35025790333747864, -0.06242085620760918, -0.28719180822372...
your code can look like this: ``` webView.scrollView.bounces = NO; ``` Same goes for `WKWebView`.
[ 0.4318505823612213, -0.14453701674938202, 0.3546852469444275, 0.02959022857248783, -0.12254740297794342, -0.4026629328727722, 0.2806988060474396, 0.10728274285793304, -0.25545674562454224, -0.6089367866516113, 0.06339952349662781, 0.5004968047142029, -0.19035369157791138, 0.109890058636665...
How can I change values in string from 0,00 to 0.00? - only numeric values, not all chars "," to "." FROM ``` string myInputString = "<?xml version=\"1.0\"?>\n<List xmlns:Table=\"urn:www.navision.com/Formats/Table\"><Row><HostelMST>12,0000</HostelMST><PublicMST>0,0000</PublicMST><TaxiMST>0,0000</TaxiMST><ParkMST>0,00...
[ -0.14671151340007782, 0.0946226492524147, 0.7150554656982422, 0.12521417438983917, 0.21889235079288483, 0.14479872584342957, 0.35316404700279236, -0.5527620315551758, -0.08630147576332092, -0.7629857063293457, 0.1182132363319397, 0.3094804883003235, -0.12318099290132523, 0.1415578424930572...
identify numbers 3. Use XmlWriter to write a new XML 4. Use CultureInfo.InvariantCulture to write the numbers on that XML
[ 0.6655839681625366, -0.1704011857509613, 0.38570529222488403, 0.30998262763023376, -0.30869951844215393, -0.08332031965255737, 0.03777986019849777, -0.4790555536746979, -0.02183762565255165, -0.5647917985916138, 0.041785288602113724, 0.023345714434981346, -0.2857208251953125, -0.2221318632...
In Python, I can compile a regular expression to be case-insensitive using `re.compile`: ``` >>> s = 'TeSt' >>> casesensitive = re.compile('test') >>> ignorecase = re.compile('test', re.IGNORECASE) >>> >>> print casesensitive.match(s) None >>> print ignorecase.match(s) <_sre.SRE_Match object at 0x02F0B608> ``` Is t...
[ 0.11183988302946091, 0.21394102275371552, 0.11675017327070236, -0.2645121216773987, -0.449520468711853, -0.022549139335751534, 0.3314952254295349, -0.40912577509880066, 0.039419498294591904, -0.3586430847644806, -0.4101882576942444, 0.5198529958724976, -0.3668469190597534, -0.2438484579324...
I am very new to C and I have some problems learning about pointers. I experimented swapping and that's all what I can do with them :) I know that every variable has its own address in memory cells (this is what my lecturer told us) and every variable's value can be obtained by going to its associated address and then ...
[ 0.17854873836040497, 0.2604961693286896, 0.041042111814022064, 0.013532311655580997, -0.061023347079753876, -0.14621096849441528, 0.031476281583309174, -0.29185763001441956, 0.022987347096204758, -0.39880648255348206, 0.1520218402147293, 0.5933493375778198, -0.2724575102329254, 0.152726486...
that they are closely related to arrays ``` arr = &arr[0]; ``` That's all what I know about pointers and I wonder how I can deepen my vision upon pointers. I searched the net and I could not find any useful cheatsheet covering pointers. And I also want to know why they are so important and is there any way to unders...
[ 0.37726590037345886, 0.5151993036270142, 0.04498738422989845, 0.09555646777153015, -0.04531106725335121, 0.09224268794059753, 0.10567265003919601, -0.04020007699728012, -0.41619443893432617, -0.34358441829681396, 0.0018316060304641724, 0.7002245187759399, -0.3511083126068115, -0.0432073324...
pointers faster, watch them change as you step, and so on. If you're familiar with "shortcuts" in Windows, or soft links in linux filesystems, then it might help, just as you're getting started, to think of a pointer as a shortcut (softlink) to another object (whether that object is a struct, a built-in type, another ...
[ -0.015833867713809013, -0.3243766725063324, 0.3615352213382721, 0.1647838056087494, -0.05617469921708107, -0.003758874023333192, -0.1705026477575302, 0.09323075413703918, -0.5776861906051636, -0.7415364980697632, -0.10012303292751312, 0.22451820969581604, -0.16403520107269287, 0.0516361147...
object which occupies memory, contains the address of another memory location, and can be changed to contain a different address just by assigning to it. One difference is if you double-click a shortcut, it behaves as if you'd double-clicked the thing it points to. That's not the case with pointers - you always have t...
[ -0.033322133123874664, 0.0670417845249176, 0.1106952354311943, 0.0719141811132431, -0.22639192640781403, -0.22132791578769684, 0.2880939841270447, -0.11536145955324173, -0.20349125564098358, -0.6316654086112976, -0.05061575770378113, 0.3966238498687744, -0.31143516302108765, 0.420366704463...
means "a function called doSomething, which returns an integer, and takes as a parameter a pointer to pointer a char". The crucial point is that "`char ** hihi`" means "a pointer-to-pointer-to-char. We will call the pointer-to-pointer-to-char hihi". You say that the "type" of hihi is char\*\*, and that the "type" of \*...
[ 0.026182478293776512, 0.0900137722492218, 0.10653803497552872, -0.16437384486198425, -0.2516053318977356, 0.011401759460568428, 0.08036940544843674, -0.29132914543151855, 0.18054357171058655, -0.23236311972141266, -0.3566078245639801, 0.3906395435333252, -0.32896897196769714, 0.13991275429...
it doesn't have to. It might just mean a pointer to one char. A bit like a shortcut to a 1-byte file in Windows (well, with FAT32 anyway), a pointer to a char in C is actually bigger than the thing it points to :-) Likewise, a char\*\* often means not just a pointer to one string-pointer, but to an array of string-poi...
[ 0.14652365446090698, 0.13010288774967194, 0.04209558293223381, 0.09938060492277145, 0.038959525525569916, -0.0004095000622328371, 0.07775066047906876, 0.17573803663253784, -0.45911678671836853, -0.5481314659118652, -0.11392546445131302, 0.33775752782821655, -0.21883833408355713, 0.08046030...
________ _________ _______ |____| -----> |____| *hihi ---> |___A____| |___B_____| |___C___| |____| *(hihi+1) ------------------^ ^ |____| *(hihi+2) ---------------------------------|
[ -0.5841165781021118, 0.47256770730018616, 0.2123490571975708, -0.06717714667320251, -0.43994081020355225, 0.5392444133758545, 0.22592461109161377, -0.5513135194778442, 0.17121374607086182, -0.44408366084098816, -0.46821287274360657, 0.4131966233253479, -0.21146641671657562, 0.0186082664877...
| ...| etc. ``` hihi points to the tower-block effort, which is my way of representing an array of pointers. As you already noted, I could have written hihi[0] in place of \*hihi, hihi[1] in place of \*(hihi+1), and so on. This is a contiguous block of memory, and each pointer-sized chunk of it contains the addre...
[ -0.09824975579977036, 0.5245052576065063, 0.005525815300643444, -0.2114887684583664, -0.2997911870479584, 0.27784445881843567, 0.15253257751464844, -0.4938622713088989, -0.07933301478624344, -0.27163994312286377, -0.005441328510642052, 0.04310765117406845, -0.1543750762939453, 0.1077979058...
is the address of the first char of string B. If hihi doesn't point to an array, just a single pointer, then the tower block is a bungalow. Likewise if \*hihi doesn't point to a string, just one char, then the long thin block is a square. You might ask, "how do I know how many floors the tower block has?". That's a bi...
[ 0.7223082780838013, 0.15893514454364777, 0.5183552503585815, -0.023729078471660614, -0.13001343607902527, -0.09273456037044525, 0.21503877639770508, -0.49273282289505005, -0.40639716386795044, -0.16881725192070007, -0.14274844527244568, 0.06437863409519196, 0.11766895651817322, 0.194877132...
floors as an extra parameter, or else the documentation would tell you that the array is "NULL terminated", meaning that it will keep reading until it sees the address/value NULL, and then stop. The main function actually does both the second and third thing - argc contains the number of arguments, *and* just to be on ...
[ 0.23554174602031708, 0.017283892259001732, 0.6516067981719971, 0.48097503185272217, 0.1738799810409546, -0.1318209171295166, 0.15685701370239258, -0.23660911619663239, -0.7871630191802979, -0.3447365462779999, 0.054961197078228, 0.26107147336006165, -0.26475924253463745, 0.1211521178483963...
aren't careful about this, you will create a kind of bug called "buffer overflow", where a function is expecting a pointer to a large array, you give it a pointer to a small array, and it scribbles off the end of what you gave it and starts corrupting memory.
[ 0.20661169290542603, -0.15076550841331482, -0.1699759066104889, 0.11341684311628342, 0.2493881732225418, -0.10381064563989639, 0.3687317967414856, 0.4656640887260437, -0.30780869722366333, -0.3835293650627136, 0.023441357538104057, 0.3289833962917328, -0.5154904723167419, 0.096482820808887...
How would you generate an JPG image file containing data fields that are stored and updated within a database table? The image would then be regenerated every hour or so reflecting the latest values within the database table. You would start with a basic background image, and then the generated image should contain da...
[ 0.629700243473053, -0.21094095706939697, 0.4154440462589264, 0.45814475417137146, -0.13549058139324188, 0.06042137369513512, 0.2635400891304016, 0.015263588167726994, -0.14118866622447968, -0.7367196679115295, -0.03517177700996399, 0.3624744117259979, -0.062263790518045425, 0.0260220821946...
on how best to work with overlaying images (i.e. icons) over a background image. Would the basic Java API be best for this case? TIA! Check out the [**Java Tutorial on 2D Graphics**](http://java.sun.com/docs/books/tutorial/2d/index.html). You could load your background image as a [`BufferedImage`](http://java.sun.com/...
[ 0.24444548785686493, -0.1675177812576294, 0.3614431917667389, 0.028026169165968895, 0.07403174787759781, 0.18799170851707458, -0.009263523854315281, -0.2748059630393982, -0.11938313394784927, -0.7763465046882629, -0.01963413879275322, 0.7244324088096619, -0.2565455436706543, -0.48096811771...
For the following block of code: ``` For I = 0 To listOfStrings.Count - 1 If myString.Contains(lstOfStrings.Item(I)) Then Return True End If Next Return False ``` The output is: **Case 1:** ```none myString: C:\Files\myfile.doc listOfString: C:\Files\, C:\Files2\ Result: True ``` **Case 2:** ```...
[ -0.08679196983575821, 0.23227612674236298, 0.5933734178543091, -0.3123530447483063, -0.03840481862425804, 0.0697394385933876, 0.31753870844841003, -0.6631096601486206, -0.2295556217432022, -0.549156129360199, -0.36419913172721863, 0.6489750742912292, -0.4236154556274414, -0.016599982976913...
= listOfStrings.Any(myString.Contains); ``` If you were testing equality, it would be worth looking at `HashSet` etc, but this won't help with partial matches unless you split it into fragments and add an order of complexity. --- update: if you really mean "StartsWith", then you could sort the list and place it int...
[ 0.08898364752531052, -0.18365900218486786, -0.010353082790970802, -0.16027656197547913, -0.14815065264701843, -0.302869588136673, 0.19164225459098816, -0.24356187880039215, -0.13456524908542633, -0.48796260356903076, -0.22528064250946045, 0.45360204577445984, -0.2521919310092926, -0.036077...
So, In our appDelegate we're all used to creating a uinavigationcontroller outlet and linking it to a uinavigationcontroller in the XIB. However in subsequent viewcontrollers I can only add uibarbuttonitems programatically by accessing the uinavigationcontroller. Is there a way to add buttons to applications uinavigat...
[ 0.0030540996231138706, 0.08134151250123978, 0.6736533641815186, 0.19581745564937592, -0.14894860982894897, 0.29589954018592834, 0.101747527718544, -0.12093374133110046, -0.26419973373413086, -0.7306472063064575, -0.09556521475315094, 0.5360909104347229, -0.3994016945362091, -0.310911536216...
would be worth looking at `HashSet` etc, but this won't help with partial matches unless you split it into fragments and add an order of complexity. --- update: if you really mean "StartsWith", then you could sort the list and place it into an array ; then use `Array.BinarySearch` to find each item - check by lookup ...
[ 0.14562326669692993, -0.21263061463832855, -0.06789388507604599, 0.14049723744392395, -0.07503800094127655, -0.2585607171058655, 0.03281312435865402, -0.024107614532113075, -0.08027448505163193, -0.6283747553825378, -0.2650558054447174, 0.5195068120956421, -0.05211348459124565, -0.06028173...
I have a table with a code like this: ``` <table cellpadding="6" rules="groups" frame="no"> <thead> <tr><th>Date</th><th>Length</th><th>Time</th></tr> </thead> <tbody> <tr><td>31. January1</td><td>28 km</td><td>3 hours</tr> </tbody></table> ``` The problem is that in IE the table has frame and a tableborder = 1. ...
[ 0.061542171984910965, 0.2038976103067398, 0.6138529777526855, -0.11556826531887054, -0.049402665346860886, -0.21807914972305298, 0.41360631585121155, -0.503743588924408, -0.18857485055923462, -1.0827865600585938, 0.05621130391955376, 0.14499536156654358, 0.0038162539713084698, 0.0543766766...
{ border-bottom: solid 1px black; } table.groups th, table.groups td { padding: 6px; } </style> </head> <body> <table class="groups"> <thead>
[ 0.17059637606143951, 0.13119696080684662, 0.5275315046310425, 0.04955466836690903, -0.009218592196702957, 0.20533537864685059, 0.07703763246536255, -0.4726267457008362, -0.11122722178697586, -0.650248646736145, -0.3561539351940155, 0.18130749464035034, -0.0543900802731514, -0.1220751032233...
<tr><th>Date</th><th>Length</th><th>Time</th></tr> </thead> <tbody> <tr><td>31. January1</td><td>28 km</td><td>3 hours</td></tr> </tbody> </table> </body> </html> ``` A couple of specific things to note: * Using a DOCTYPE to prevent quirks mode. (this is the HTML5 DOCTYPE - ...
[ 0.3017013370990753, -0.23232775926589966, 0.4967556595802307, 0.19487401843070984, -0.02432636171579361, -0.27170705795288086, 0.6706369519233704, -0.463844358921051, -0.28681543469429016, -0.3847169280052185, -0.025344280526041985, 0.3368726074695587, 0.11097218841314316, -0.1484654247760...
I want to create an array/list of strings of the Comma seperated strings (file extensions) that are entered in a Textbox. For the following block of code: ``` Dim csv As String = Textbox1.Text + "," While csv.IndexOf(".") <> -1 lstOfStrings.Add(csv.Substring(0, csv.IndexOf(","...
[ 0.4653526544570923, -0.08408786356449127, 0.7025762796401978, -0.2172698676586151, 0.19676315784454346, 0.024456432089209557, -0.07771503925323486, -0.2603702247142792, -0.30876341462135315, -0.575856626033783, -0.08094798028469086, 0.20767244696617126, -0.4891209602355957, 0.2354661971330...
End While ``` The output is: Textbox1.Text = ".exe,.php" listOfStrings = { ".exe", ".php" } Is there a better way to write this code? A better way would be to use the [Split](http://msdn.microsoft.com/en-us/library/system.string.split.aspx) method: ``` Dim lstOfStrings() As String = Textbox1.Text.Split(","c) ```
[ 0.2572786808013916, -0.014422181993722916, 0.6195809245109558, -0.2564549744129181, 0.41932594776153564, -0.16122965514659882, 0.13733641803264618, -0.02635829523205757, -0.10866664350032806, -0.27487775683403015, -0.3858773410320282, 0.5312808752059937, -0.2612936198711395, 0.193003714084...
Is there any kind of guide about shortcuts in Android? I have the typical CRUD and I want to assign familiar shortcuts. The last time I checked, the answer was **no**.
[ 0.31028538942337036, 0.10190224647521973, 0.1376638412475586, 0.203862264752388, -0.0840783640742302, 0.23979070782661438, 0.4329598844051361, 0.4511471092700958, -0.3319897949695587, -0.5081197619438171, 0.23499110341072083, 0.26719969511032104, -0.0222210381180048, -0.20469024777412415, ...
In Microsoft Sql it is possible to encrypted stored procedures with ``` CREATE PROCEDURE dbo.foo WITH ENCRYPTION AS BEGIN SELECT 'foo' END ``` This stops people looking at stored procedures code. How can I do this in **MySql** 5.0.x ? You can not do this in MySQL. See bug #[4210](http://bugs.mysql.com/bug...
[ 0.1844707876443863, 0.400431752204895, 0.06265638768672943, 0.06932933628559113, -0.04438496381044388, -0.10731448978185654, 0.41850683093070984, -0.05835721641778946, -0.2884904742240906, -0.24118347465991974, -0.05602734535932541, 0.2891068756580353, -0.34487423300743103, 0.0788606554269...
won't > bother with "security by obscurity" or > even worse "intellectual asset > protection" (as described in the bug > 4210).
[ 0.4750673174858093, 0.37215813994407654, 0.2510099411010742, 0.17777961492538452, 0.545013964176178, -0.6333599090576172, 0.5729067325592041, 0.1896883249282837, -0.010280177928507328, -0.7047892212867737, -0.7194918990135193, 0.4534907042980194, -0.24054960906505585, -0.06495049595832825,...
``` template<class Y> operator auto_ptr_ref<Y>() throw() { return auto_ptr_ref<Y>(release()); } ``` It is part of implementation of class auto\_ptr in standard library. What does this means to do? Why there is an "auto\_ptr\_ref" between "operator" and "()"? That is the conversion operator in action, casting f...
[ 0.13565516471862793, -0.09668365865945816, 0.06834439933300018, -0.25379297137260437, -0.02225005067884922, -0.20844128727912903, 0.1055147796869278, -0.47848954796791077, 0.09279674291610718, -0.43184807896614075, -0.31269073486328125, 0.674616813659668, -0.4284934103488922, -0.0634611770...
my main language is vb/c#.net and I'd like to make a console program but with a menu system. If any of you have worked with "dos" like programs or iSeries from IBM then thats the style I am going for. ![alt text](https://media.techtarget.com/digitalguide/images/Misc/qe_iseries.gif) so, was wondering if anyone knows o...
[ 0.3489815294742584, 0.35924476385116577, 0.27815353870391846, -0.06111442297697067, -0.3323109447956085, -0.0887579545378685, 0.40135765075683594, 0.40182071924209595, 0.17558275163173676, -0.8958926796913147, 0.028933074325323105, 0.640692412853241, -0.2669167220592499, -0.151207938790321...
even iSeries. All sorts of widgetry! Windows is not really supportive of text interfaces whether on purpose or not so are out of luck. But ... Well, how about [MonoCurses](http://www.mono-project.com/MonoCurses)? I don't know if it will work though. Also look at [PDCurses](http://pdcurses.sourceforge.net/). An...
[ 0.13459493219852448, 0.002433950547128916, 0.16783185303211212, 0.20199494063854218, -0.2407619208097458, -0.018816526979207993, 0.19790059328079224, 0.24487215280532837, -0.22272950410842896, -0.5981088280677795, -0.19520583748817444, 0.594893217086792, -0.3243638873100281, -0.11998527497...
Has anybody any successful remarks about having a team working via Remote Desktop? In many workplaces, we put end users via Citrix and the applications on a central, powerful server. Sometimes the clients are in the same building as the server, but often, they are remote. There could be some huge benefits for me to p...
[ 0.5339826345443726, 0.4361635744571686, 0.17483334243297577, 0.26042473316192627, 0.17557810246944427, -0.2347477376461029, 0.16276457905769348, 0.07717709243297577, -0.582866907119751, -0.46272435784339905, -0.10549159348011017, 0.46455416083335876, -0.08962927013635635, 0.005985107738524...
people out there that have had success? I have seen a situation where the attempt was made to do this with a sattelite office. It was done for a java development team using various java IDE tools. The result wasn't regarded as a success, and the company brought the team back into a central London office at considerable...
[ 0.575664222240448, 0.13900892436504364, 0.21483492851257324, -0.10614906996488571, 0.01327467244118452, -0.20154203474521637, 0.15705297887325287, 0.2789117395877838, -0.3330949544906616, -0.23440276086330414, -0.18820728361606598, 0.3351588249206543, 0.23113583028316498, 0.004908665083348...
going over a 128 Kbit DSL link (of a type that was prevalent in New Zealand at the time) and could do work on an Oracle-based data warehouse at a remote location quite readily. The level of interactivity required by the tooling made them much less sensitive to the slow link than a Windows-based IDE. So, I'll invoke th...
[ 0.4821128845214844, -0.3415818512439728, 0.05935169756412506, 0.38069039583206177, -0.045712634921073914, -0.300236314535141, 0.11366783082485199, -0.12609168887138367, -0.04570961371064186, -0.48875147104263306, -0.02671525999903679, 0.5367313623428345, 0.13431525230407715, -0.29578185081...
made to work quite well. These user interfaces are much less sensitive to latency than a direct-manipulation user interface. I'm something of a believer in the 'best tools' principle. Going out of your way to give a second-rate user interface to a development team will give off negative signals. The cost saving from d...
[ 0.692958414554596, -0.01804235577583313, 0.1132025346159935, 0.19868072867393494, 0.30658093094825745, 0.228173166513443, 0.2668766677379608, -0.006209041923284531, 0.08392992615699768, -0.524809718132019, 0.09181768447160721, 0.6917752623558044, 0.01916070654988289, -0.14867821335792542, ...
of your key development staff.
[ 0.09629882127046585, 0.32025396823883057, -0.07808413356542587, -0.11754276603460312, 0.13105125725269318, -0.12403938174247742, -0.21473178267478943, -0.04034609720110893, -0.18293412029743195, -0.25136491656303406, -0.4094931185245514, 0.5499559044837952, 0.05050850659608841, -0.08028122...
My Macbook was stuck yesterday, when I tried to paste 1200 lines of 80 characters to Vim. It was much faster to download the file, and not to paste the text. I have thought that this problem might be the reason, why internet operators allow slower uploading than downloading. If you paste it into a terminal window, Vim...
[ 0.4756145477294922, 0.35056158900260925, 0.5205042958259583, -0.10917452722787857, 0.051856350153684616, 0.1846911758184433, 0.11402662843465805, 0.2114848643541336, -0.14768080413341522, -0.7928360104560852, -0.011922100558876991, 0.6837379932403564, -0.27563226222991943, 0.03463425487279...
pbpaste | vim - ``` If you were using GUI Vim, you would use the `"*` register to paste (this is what the context menu does): ``` "*P <- in normal mode ``` Pasting into the terminal window is usually a bad idea, try and use `pbpaste` where you can.
[ -0.16939042508602142, -0.08020797371864319, 0.503695011138916, -0.37563830614089966, 0.15452486276626587, 0.21365681290626526, 0.09627298265695572, 0.6743336915969849, 0.023934144526720047, -0.7665800452232361, -0.29995331168174744, 0.3276001214981079, -0.4141094982624054, 0.07468131184577...
Using the tcsh shell on Free BSD, is there a way to recursively list all files and directories including the owner, group and relative path to the file? ls -alR comes close, but it does not show the relative path in front of every file, it shows the path at the top of a grouping i.e. ``` owner% ls -alR total 0 drwxr-...
[ 0.10103625804185867, 0.19128558039665222, 0.7679433226585388, -0.2933415472507477, -0.3112177848815918, 0.05787033215165138, 0.28857171535491943, -0.6279205679893494, -0.18149015307426453, -0.3087801933288574, -0.2816523611545563, 0.6584814786911011, -0.2452438920736313, 0.292446106672287,...
group 170 Feb 1 10:50 . drwxr-xr-x 3 owner group 102 Feb 1 10:50 .. -rw-r--r-- 1 owner group 0 Feb 1 10:50 file1 -rw-r--r-- 1 owner group 0 Feb 1 10:50 file2 ``` What I would like is output like: ``` owner group ./relative/path/to/file ``` The [accepted answer to this question](https://stacko...
[ -0.06868880987167358, 0.13475459814071655, 0.883786141872406, -0.23426443338394165, -0.041763968765735626, -0.057707399129867554, 0.018957223743200302, -0.42065706849098206, -0.2890946567058563, -0.38513198494911194, -0.32897284626960754, 0.6355766654014587, -0.2509061396121979, 0.01019086...
This question is related to [the post](https://stackoverflow.com/questions/501213/how-can-i-have-my-abstract-at-the-titlepage-in-latex) about having abstract at the titlepage. I want to reset the page numbering at the given section. You can also reset page number counter: ``` \setcounter{page}{1} ``` However, with ...
[ 0.053679291158914566, 0.1125015839934349, 0.35885462164878845, 0.00556533457711339, -0.042498696595430374, -0.2946355938911438, -0.060966674238443375, -0.017424147576093674, -0.3713722825050354, -0.5098915696144104, 0.11255912482738495, 0.32600337266921997, -0.0289907269179821, 0.084254138...
I'm merging in a remote branch that may have a lot of conflicts. How can I tell if it will have conflicts or not? I don't see anything like a `--dry-run` on `git-merge`. As noted previously, pass in the `--no-commit` flag, but to avoid a fast-forward commit, also pass in `--no-ff`, like so: ``` $ git merge --no-commi...
[ -0.03466768190264702, 0.018468154594302177, 0.24869181215763092, 0.0009507238864898682, 0.20840618014335632, -0.021852361038327217, 0.5723398327827454, 0.19062788784503937, -0.1360558420419693, -0.981904923915863, -0.20373916625976562, 0.4863213002681732, -0.28743666410446167, 0.4795703291...
When I go to File > New Website there isn't a template for MVC. I googled "how to use MVC with vwd?" and these links came up [Link](https://web.archive.org/web/20170119043903/http://geekswithblogs.net:80/jwhitehorn/archive/2007/12/10/117569.aspx) <http://jerusahat.wordpress.com/2007/12/12/aspnet-mvc-template-for-vi...
[ 0.12743663787841797, 0.0729043185710907, 0.49088233709335327, -0.3214249014854431, -0.2352733016014099, -0.11075594276189804, 0.6271254420280457, -0.450618714094162, -0.17043524980545044, -0.47917070984840393, -0.04925687983632088, 0.7057315111160278, -0.5448216795921326, -0.04315589368343...
have the same problem i had when i first went looking for MVC in the vwd menu. try going to 'Tools' -> 'Import and Export Settings' and then 'Reset all settings.' after that, you need to create a new project and select the MVC template. (don't create a new web site).
[ 0.5583106279373169, 0.08871687203645706, 0.12292658537626266, 0.0379195399582386, -0.058188751339912415, -0.27924346923828125, 0.26239368319511414, -0.052187249064445496, -0.30964669585227966, -0.6082629561424255, -0.09858313202857971, 0.9283474087715149, -0.5168536305427551, 0.12141656875...
I have to replace the content of this xml string through java ``` <My:tag>value_1 22&#xA;value_2 54&#xA;value_3 11</My:tag> ``` so, this string has been taken from an xml and when I acquire it I have this result: ``` <My:tag>value_1 22 value_2 54 value_3 11</My:tag> ``` If I try to replace the content by this way...
[ 0.09064929187297821, 0.2960873246192932, 0.5120992660522461, -0.08358462154865265, 0.0050548226572573185, -0.18875840306282043, 0.5663943290710449, -0.23890812695026398, -0.08086468279361725, -0.6189078688621521, -0.25417062640190125, 0.627226710319519, -0.31976765394210815, 0.126376181840...
try to simply remove your brackets, since you're replacing the entire expression, and not extracting anything. What might be causing it though is if your entity is actually translated to a new-line, it might be the case that your regex won't catch it unless you're explicitly doing a multiline match. You could also try...
[ 0.5482550263404846, -0.0965617299079895, 0.1529461294412613, 0.10487980395555496, -0.1997261643409729, -0.31958431005477905, 0.39647766947746277, -0.10923856496810913, 0.010170910507440567, -0.555658221244812, 0.33355820178985596, 0.7106955647468567, -0.47146689891815186, 0.084458552300930...
for the next opening angle bracket, like so: ``` [^<]* ``` **EDIT:** As you suggested, i tried your link and the following worked perfectly: Expression: ``` <My:tag>[^<]*</My:tag> ``` Replacement: ``` <My:tag> new_stuff </My:tag> ``` Test string: ``` <My:tag>value_1 22&#xA;value_2 54&#xA;value_3 11</M...
[ 0.18964290618896484, 0.10989825427532196, 0.4255695343017578, -0.08466076105833054, -0.08965015411376953, 0.05026480183005333, 0.013965241611003876, -0.6378394365310669, 0.25060704350471497, -0.677757978439331, 0.15020246803760529, 0.8995498418807983, -0.15358753502368927, -0.2404230535030...
[SharpNEAT](http://sharpneat.sourceforge.net/index.htm) is a [NeuroEvolution of Augmenting Topologies](http://en.wikipedia.org/wiki/NeuroEvolution_of_Augmented_Topologies) (NEAT) library in C#. The whole thing sounds pretty exciting but I can't find a damn sample/tutorial anywhere! Any help appreciated! I just wrote ...
[ 0.29249536991119385, -0.45502766966819763, 0.08776304125785828, 0.15176549553871155, -0.059255603700876236, -0.18226388096809387, 0.10473373532295227, -0.3875584602355957, 0.3031937777996063, -0.3165387511253357, 0.023921702057123184, 0.7854182720184326, 0.023759623989462852, 0.04116285964...
OK, *[info break](https://sourceware.org/gdb/onlinedocs/gdb/Set-Breaks.html)* lists the breakpoints, but not in a format that would work well with reusing them using the --command [as in this question](https://stackoverflow.com/questions/500967/gdb-breakpoints). Does GDB have a method for dumping them into a file accep...
[ 0.2275523543357849, 0.03713589161634445, 0.09910415858030319, 0.09669719636440277, 0.09091167151927948, -0.38999512791633606, 0.08762241154909134, -0.1469586193561554, -0.4366750419139862, -0.12185148149728775, -0.4790133833885193, 0.46571221947669983, -0.44694992899894714, 0.0614302866160...
Disp Enb Address What 1 breakpoint keep y 0x08048517 <foo::bar(void)+7> ``` As of GDB 7.2 (2011-08-23) you can now use the *[save breakpoints](https://sourceware.org/gdb/onlinedocs/gdb/Save-Breakpoints.html)* command. ``` save breakpoints <filename> Save all current breakpoint definitions to a file suita...
[ 0.005664908792823553, 0.02306748740375042, 0.5833700895309448, -0.02166159078478813, -0.18930183351039886, -0.13085804879665375, 0.2239406257867813, 0.07866894453763962, -0.264220654964447, -0.47614702582359314, -0.4297946095466614, 0.40697234869003296, -0.3593028783798218, 0.1377731710672...
Given the following code,the hover function works correctly, but when clicked, loses the `clicked_no_event_box` class. Not sure where I'm going wrong... ``` /* On document.ready.. */ $(function(){ $(".no_event_box").hover( function(){$(this).addClass("clicked_no_event_box");}, functio...
[ -0.013100361451506615, 0.009485392831265926, 0.7445273399353027, -0.26441800594329834, 0.29802942276000977, 0.07691211998462677, -0.1243787407875061, -0.045772895216941833, -0.0037465812638401985, -0.5637489557266235, -0.11313919723033905, 0.6031826138496399, -0.05032160133123398, 0.146193...
); }); ``` it works exactly as you told it to. if you want to have class to stick you can add an alias to that class name in css. ``` .clicked_no_event_box, .new_name_to_be_used_in_click_function { /* definition */ } ```
[ 0.2057516723871231, -0.2994593381881714, 0.3686716556549072, -0.08901803195476532, 0.15144973993301392, -0.2848539650440216, 0.11702868342399597, 0.1465834677219391, -0.21175040304660797, -0.6008108854293823, -0.08597233891487122, 0.4381473660469055, -0.35838764905929565, 0.214814141392707...
First of all, I am a complete Java NOOB. I want to handle multiple button presses with one function, and do certain things depending on which button was clicked. I am using Netbeans, and I added an event with a binding function. That function is sent an ActionEvent by default. How do I get the object that was clicked...
[ 0.08730834722518921, -0.42596983909606934, 0.12105725705623627, -0.10700464993715286, -0.13058269023895264, -0.0781145989894867, 0.07975810766220093, -0.24422094225883484, -0.3090490996837616, -0.5695270895957947, 0.08908084034919739, 0.6920936107635498, -0.40734580159187317, -0.1426386535...
for separate events.
[ 0.2525116801261902, -0.1895110160112381, 0.28059715032577515, 0.01337665505707264, 0.05789291113615036, -0.027788501232862473, 0.3085915744304657, 0.06186837702989578, -0.42954114079475403, 0.04668595269322395, -0.15047380328178406, 0.1258070170879364, -0.03370075300335884, -0.056333236396...
Does anyone have any suggestions as to how to version an iphone application aside from using the "Bundle Version" and "Bundle Version short string". I'm finding difficulty relying on these values to version control my application b/c I have multiple variations (lite, paid) of the same app. Also the current implementati...
[ 0.44858571887016296, 0.05441267043352127, 0.3450528383255005, -0.02603110671043396, 0.15647318959236145, -0.03770000487565994, 0.24087558686733246, 0.15536408126354218, -0.541774570941925, -0.4185498356819153, -0.050193268805742264, 0.5892742276191711, -0.29529890418052673, 0.0709869340062...
the info.plist file, but I'm not sure if I am allowed to add new key-value pairs into the info.plist. The other alternative I can think of is to create my own plist for app settings. If there are better ways to achieve this, I'm open to hear them. Thanks! You can definitely add your own key/value pairs to the info.pl...
[ 0.4632377326488495, 0.031402286142110825, 0.27878570556640625, 0.42921966314315796, 0.08419545739889145, -0.04998338595032692, 0.32068583369255066, 0.20173977315425873, -0.295002818107605, -0.6967162489891052, 0.1312619298696518, 0.6089311838150024, -0.004883879330009222, -0.05964064598083...
I'm trying to make a method that returns a string of words in opposite order. IE/ "The rain in Spain falls mostly on the" would return: "the on mostly falls Spain in rain The" For this I am not supposed to use any built in Java classes just basic Java. So far I have: ``` lastSpace = stringIn.length(); fo...
[ 0.012944615446031094, 0.23605091869831085, 0.6569623351097107, -0.32579419016838074, -0.21416154503822327, 0.058034393936395645, 0.643710196018219, 0.14330460131168365, -0.4161471426486969, -0.030529199168086052, -0.21026021242141724, 0.42870500683784485, 0.15563657879829407, -0.1085145100...
word = stringIn.substring(i + 1, lastSpace); stringOut.concat(word); lastS = i; } } word = stringIn.substring(0,lastSpace); stringOut.concat(word); return stringOut; ``` My problem is when `stringOut` is returned to its caller it always is a blank string. Am I doing s...
[ -0.19260092079639435, -0.1520371437072754, 0.3295768201351166, -0.5221824645996094, 0.10788916051387787, -0.14909185469150543, 0.7401301264762878, -0.07988972216844559, -0.3892936110496521, -0.5008186101913452, -0.2578602731227875, 0.5234253406524658, -0.34780624508857727, 0.21188473701477...
new string with the concatenation. So you want something like this: ``` stringOut = stringOut.concat(word); ``` or ``` stringOut += word ``` as Ray notes, there are more succinct ways to do this though.
[ 0.15448623895645142, -0.17461827397346497, 0.1299160122871399, -0.1959986835718155, -0.1544155329465866, -0.3367009162902832, 0.10467326641082764, 0.0928371399641037, -0.1616089642047882, -0.4592350721359253, -0.0765165239572525, 0.46178102493286133, -0.4574524164199829, 0.2329769879579544...
Currently I'm using the auto-tools to build/install and package a project of mine, but I would really like to move to something that feels more "pythonic". My project consists of two scripts, one module, two glade GUI descriptions, and two .desktop files. It's currently a pure python project, though that's likely to c...
[ 0.7370449900627136, -0.13975337147712708, -0.014135283417999744, 0.05611170083284378, -0.11463221162557602, -0.08199603110551834, 0.23622670769691467, 0.13917531073093414, -0.31375056505203247, -0.877678632736206, -0.03544158115983009, 0.7078903913497925, 0.004174794536083937, -0.098338432...
feels to me more like a *workaround*.** Don't know what's the preferred way to handle this... I used the following `setup.py` file (full version is [here](https://gist.github.com/brutus/e4bdb1d2c1705558b2ff)): ``` from setuptools import setup setup( # ... data_files=[ ('share/icons/hicolor/scalable/apps', ...
[ 0.4141305088996887, 0.1878422051668167, 0.6359263062477112, -0.22097711265087128, 0.19719509780406952, -0.1683177649974823, -0.027558021247386932, -0.32477423548698425, -0.17471455037593842, -0.8901863098144531, -0.1431814730167389, 0.8396405577659607, -0.07009309530258179, -0.126798734068...
right place and the `.desktop` file is recognized by Gnome.
[ -0.28109100461006165, 0.18951649963855743, 0.5392495393753052, -0.08834601193666458, 0.3342849612236023, -0.2977027893066406, 0.23169156908988953, 0.6434014439582825, -0.22825591266155243, -0.6367183327674866, -0.46301987767219543, 0.3619404435157776, -0.052681852132081985, 0.2852968573570...
Whenever I create a new Java file in Eclipse and check off the option to add `public static void main(String args[])`, this code is generated: ``` public class Test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub } } ``` How do i: *...
[ 0.4619784653186798, 0.19227536022663116, 0.1988172084093094, -0.15955226123332977, -0.4426012933254242, 0.14632833003997803, 0.311924010515213, -0.580184817314148, 0.03964562714099884, -0.31258624792099, -0.02449805848300457, 0.3366599678993225, -0.38624417781829834, -0.058480191975831985,...
while the comments is a template issue. The templates are in **Window -> Preferences -> Java -> Code Style -> Code Templates**. Browse all of them and look for the things you would like to change. The Formatter is a little bit more complicated. You find it under **Window -> Preferences -> Java -> Code Style -> Format...
[ 0.32076478004455566, -0.05301081761717796, 0.19366103410720825, 0.23863060772418976, -0.09659674763679504, 0.13437718152999878, 0.022894084453582764, 0.00046027248026803136, -0.12456054240465164, -0.9456073641777039, 0.21580679714679718, 0.5461893081665039, -0.2353113293647766, -0.07228863...
everything
[ -0.08057315647602081, 0.33137425780296326, -0.0905386433005333, -0.029029468074440956, 0.20507101714611053, -0.13099537789821625, 0.0781690776348114, 0.0976005271077156, -0.11186607927083969, -0.1390601098537445, -0.19951948523521423, 0.2712878882884979, -0.10173840075731277, 0.25436767935...
I provided some of my programs with a feedback function. Unfortunately I forgot to include some sort of spam-protection - so users could send anything they wanted to my server - where every feedback is stored in a huge db. In the beginning I periodically checked those feedbacks - I filtered out what was usable and de...
[ 0.435398131608963, 0.6839257478713989, 0.11321324110031128, -0.18926747143268585, -0.48266759514808655, 0.026367688551545143, 0.6306313872337341, 0.19441719353199005, -0.11301974207162857, -0.36914724111557007, 0.13915948569774628, 0.36852726340293884, -0.2616008520126343, 0.27944865822792...
I installed a filter to delete any feedback containing "asdf", "qwer" etc... -> only 700 per day 2. I installed a word filter to delte anything containing bad language -> 600 per day (don't ask - but there are many strange people out there) 3. I filter out any messages containing letters not being used in my language -...
[ 0.25972238183021545, 0.1605115830898285, 0.27921223640441895, -0.043725885450839996, -0.5700260400772095, 0.06789132207632065, 0.7707617878913879, -0.05689757689833641, -0.05254590883851051, -0.7381917238235474, -0.01822364702820778, 0.6014663577079773, -0.16507980227470398, 0.025465106591...
existing implementation of a bayesian spam filter instead of implementing your own. I have had good results with DSpam
[ 0.17692115902900696, -0.2368304282426834, 0.017578603699803352, 0.06354092806577682, -0.15961854159832, -0.3975200057029724, 0.23036448657512665, -0.2369828224182129, -0.09861322492361069, -0.5673547387123108, 0.04078516364097595, 0.35597604513168335, -0.2869623303413391, 0.156428232789039...