text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
more info: [A question on SO relating](https://stackoverflow.com/questions/486621/when-should-one-use-a-www-subdomain#486763) [Dot rule stuff](http://my.opera.com/yngve/blog/show.dml/267415)
[ 0.44179046154022217, -0.6192936897277832, 0.3249681890010834, -0.20839108526706696, 0.1743665337562561, -0.5986757278442383, 0.3139324486255646, -0.013290614821016788, -0.37931692600250244, -0.3831683099269867, -0.19490502774715424, 0.4804767072200775, -0.2994571626186371, -0.1875032186508...
I'd like to work on a bbcode filter for a php website. (I'm using cakephp, it would be a bbcode helper) I have some requirement. **Bbcodes can be nested. So something like that is valid.** ``` [block] [block] [/block] [block] [block] [/block] [/block] [/block] ``` **...
[ 0.530636727809906, 0.10885906219482422, 0.5349683165550232, -0.17046283185482025, -0.13266737759113312, -0.06657501310110092, 0.14838151633739471, -0.25226935744285583, -0.019256461411714554, -0.5830256938934326, 0.0001227871107403189, 0.4545285999774933, -0.1897415667772293, 0.37865087389...
would be transformed to `[url:url="text"]text[/url]` or the video bbcode would be able to choose between youtube, dailymotion.... I think it cover most of my needs. I alreay done something with regex. But my biggest problem was to match parameters. In fact, I got nested bbcode to work and bbcode with 0 parameters. But...
[ 0.10264480859041214, 0.03891826793551445, 0.756853461265564, -0.1146647110581398, -0.30925849080085754, 0.050149090588092804, 0.2440151423215866, -0.4491487741470337, 0.06086299195885658, -0.6483858823776245, 0.2391463667154312, 0.8216730356216431, -0.4139644205570221, 0.24378980696201324,...
regex or something else. The only thing I can think of is to use the visitor pattern and to split my text with each possible tags this way, I can have a bit more of control over my text parsing and I could probably validate my document so if the input text doesn't have valid bbcode. I could Notify the user with a erro...
[ 0.38176846504211426, 0.1864280104637146, 0.28814569115638733, -0.09104026854038239, -0.5935484766960144, 0.022008925676345825, 0.3966723680496216, 0.10310854017734528, -0.16894540190696716, -0.5338653326034546, 0.23260556161403656, 0.48271435499191284, -0.22163860499858856, 0.0083081861957...
BBCode parsing library. Software's hard enough without reinventing years of work on your own. If neither of those are an option, I'd concentrate on turning the BBCode into a valid XML string, and then using your favorite XML parsing routine on that. Very very rough idea here, but 1. Run the code through htmlspecialch...
[ 0.34204551577568054, 0.22675208747386932, 0.6247457265853882, -0.30672359466552734, -0.3544006943702698, -0.14699864387512207, 0.26245206594467163, -0.333324134349823, 0.019577141851186752, -0.6636640429496765, 0.3737814426422119, 0.3200942277908325, -0.4761006534099579, -0.068644173443317...
(SimpleXML, DOMDocument, etc.)
[ -0.07888941466808319, -0.06675708293914795, 0.30109304189682007, 0.013223014771938324, 0.205463245511055, -0.4063356816768646, 0.13488321006298065, 0.09084409475326538, -0.17478212714195251, -0.3569927215576172, -0.7670081257820129, 0.4660210907459259, -0.4068984389305115, 0.29836478829383...
I use a MediaWiki instance on a thumb drive to keep track of a ton of stuff. In the past, I've been in a hurry so I haven't had the chance to look for a nice way to make tables, so this syntax has served my purposes well: ``` {| border=1 ... |} ``` Now I want something a little nicer; I'm used to using CSS to make n...
[ 0.039982255548238754, 0.15813642740249634, 0.5126531720161438, -0.011693435721099377, -0.2694672644138336, -0.21216055750846863, 0.20301587879657745, 0.2082284688949585, -0.41177642345428467, -1.1328566074371338, 0.18704216182231903, 0.423039972782135, -0.4346180260181427, 0.17251633107662...
<td style="border: 1px solid black">one</td> <td style="border: 1px solid black">two</td> </tr> </table> ``` Setting border on every cell is going to be difficult. My initial guess is I need to add a table class to a CSS file somewhere; if so, where might the appropriate file be located? As you wrote, you...
[ 0.6612769365310669, 0.03590793535113335, 0.44408735632896423, -0.10474169999361038, -0.11148616671562195, -0.361141175031662, 0.1484813690185547, -0.5407277941703796, -0.3773019313812256, -0.7627832293510437, 0.13944144546985626, 0.3497700095176697, -0.2643622159957886, -0.0068535055033862...
I need to do something like this but SQL Server 2008 doesn't like it. My query is actually more complex than this and I realize this isn't the best way to accomplish what I'm doing but my focus is on the functionality of the WITH statement and not the select and where statements. > WITH stuff1 AS ( > select name, sta...
[ 0.2372983694076538, 0.21298129856586456, 0.2737054228782654, -0.13379232585430145, -0.06927923858165741, -0.4304581582546234, 0.23976550996303558, -0.22698946297168732, -0.05141061171889305, -0.535724937915802, 0.12584099173545837, 0.2406764030456543, -0.16422177851200104, -0.1341924518346...
( SELECT name ,startdate ,id FROM employees WHERE startdate > 0 ) ,stuff2 AS ( SELECT name ,startdate ,id FROM stuff1 ) SELECT * FROM stuff2 WHERE id > 10 ``` As far as I can tell, I haven't reached a limit in CTEs. The only thing you can't do (which wo...
[ 0.6146293878555298, 0.0020006427075713873, 0.5811773538589478, -0.17126497626304626, 0.446804940700531, -0.5260958075523376, 0.17348143458366394, 0.004075777251273394, -0.3312573730945587, -0.45217040181159973, -0.138894185423851, 0.4635319709777832, 0.17868107557296753, 0.1133240237832069...
useful) is reuse CTEs in separate `SELECT`s: ``` WITH stuff1 AS ( SELECT name ,startdate ,id FROM employees WHERE startdate > 0 ) ,stuff2 AS ( SELECT name ,startdate ,id FROM stuff1 ) SELECT * FROM stuff2 WHERE id > 10 ; SELECT * FROM stuff2 WHERE id < 10...
[ 0.34847256541252136, -0.01811697892844677, 0.3976447284221649, 0.1723938137292862, 0.27414843440055847, -0.24993260204792023, -0.06555355340242386, -0.1484261453151703, -0.1429782509803772, -0.4877013564109802, -0.2674129903316498, 0.277577668428421, -0.20320425927639008, -0.01858074776828...
the entire CTE chain again.
[ 0.04541266709566116, -0.01978159323334694, 0.28331443667411804, -0.04915674403309822, -0.338824063539505, -0.337739497423172, 0.03385014086961746, -0.042972955852746964, -0.3853774070739746, 0.030645010992884636, -0.009406845085322857, 0.3623519539833069, -0.09212377667427063, 0.3263260424...
I'd like to set the timeout on a specific Session Variable in a .Net web application, but leave other Session variables alone. Is this possible? Example: I have 5 Session Variables Session(var1) Session(var2) Session(var3) Session(var4) Session(var5) I want to set it so that Session(var1) through Session(var4) have...
[ 0.3659992516040802, -0.09172774851322174, 0.48216986656188965, 0.01579747349023819, 0.0444691926240921, 0.26017361879348755, 0.16128434240818024, -0.4928092360496521, -0.2134900689125061, -0.48127928376197815, 0.15951001644134521, 0.3778376877307892, 0.0639578253030777, 0.07701136916875839...
is moderately intuitive. Think of calculating an average. 1. Initializer: set sum = 0; N = 0 2. Iterator: set sum += x; N++ 3. Combiner: set sum = sum1 + sum2; set N = N1 + N2 4. Finalizer: result = sum / N -- with N=0 (zero-divide) checks The combiner is used to combine intermediate results from parallel execution; ...
[ -0.2101437896490097, -0.14915278553962708, 0.16354498267173767, -0.22692163288593292, -0.11609264463186264, 0.29873397946357727, -0.08653850853443146, -0.704954206943512, 0.03348957747220993, -0.32887980341911316, 0.092294842004776, 0.28218474984169006, -0.25739768147468567, -0.19929093122...
[Show a one to many relationship as 2 columns — 1 unique row (ID & comma separated list)](https://stackoverflow.com/questions/715350/show-a-one-to-many-relationship-as-2-columns-1-unique-row-id-comma-separated) for a string-based GROUP\_CONCAT() function implemented in Informix.
[ -0.1902896612882614, -0.1677454113960266, 0.3436177372932434, 0.022002877667546272, -0.18581907451152802, -0.08395373821258545, 0.041502319276332855, -0.22109095752239227, -0.28207436203956604, -0.22779659926891327, -0.12411068379878998, 0.35333386063575745, -0.44073206186294556, -0.064761...
In some way I have managed to get this error when I try to access into MySQL via the command line: ``` [root@localhost ~]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) ``` I have tried resetting the password without any luck using this HowTo. I...
[ 0.11159766465425491, 0.1937585324048996, 0.1109888106584549, 0.18215356767177582, -0.021372005343437195, -0.1183764860033989, 0.7175518870353699, 0.41712069511413574, -0.2782250642776489, -0.9726201891899109, -0.05951223149895668, 0.8911282420158386, -0.18532277643680573, 0.096805579960346...
save themselves a few hours of "blood coughing" - when you uninstall MySQl completely delete everything that is left behind. If you don't do this, it will never be a FRESH install. If you actually have set a root password and you've just lost/forgotten it: 1. Stop MySQL 2. Restart it manually with the skip-grant-table...
[ 0.4287336766719818, 0.14085526764392853, 0.5624361038208008, -0.05956118553876877, 0.18977773189544678, 0.022509805858135223, 0.5294268131256104, 0.1732374131679535, -0.2729400098323822, -0.8960546255111694, -0.2970353066921234, 0.8064289689064026, -0.21488821506500244, 0.10559050738811493...
``` UPDATE mysql.user SET authentication_string=PASSWORD('password') WHERE User='root'; ``` 5. Flush the privileges with this MySQL command: `FLUSH PRIVILEGES;` From <http://www.tech-faq.com/reset-mysql-password.shtml> (Maybe this isn't what you need, Abs, but I figure it could be useful for people stumbling acros...
[ 0.03757011145353317, -0.11831393092870712, 0.28038692474365234, 0.1241077408194542, 0.30136609077453613, -0.25577443838119507, 0.3150346875190735, 0.04972046613693237, -0.28118735551834106, -0.6037685871124268, -0.2677854597568512, 0.8348462581634521, -0.1788562387228012, -0.19927832484245...
I have a small ASP.NET MVC application developed using the latest beta version. What would be an easy to follow step-by-step guide to upgrade to the RC [released yesterday](http://weblogs.asp.net/scottgu/archive/2009/01/27/asp-net-mvc-1-0-release-candidate-now-available.aspx)? What key changes would I have to apply t...
[ 0.5300306677818298, 0.0014312282437458634, 0.46753355860710144, -0.054068371653556824, 0.08046790957450867, -0.1993231326341629, 0.20527637004852295, -0.19289112091064453, -0.28185904026031494, -0.5054550170898438, 0.07563026994466782, 0.5763205885887146, -0.11989127099514008, -0.013761424...
the latest release, so we do not list every possible change. The following list describes some of the changes that you must make. * Update the references to the following assemblies to point to the RC versions: * System.Web.Abstractions.dll * System.Web.Routing.dll * System.Web.Mvc.d ll Note If you are running ASP....
[ 0.30814239382743835, 0.05314319580793381, 0.869255781173706, 0.03783009201288223, 0.05432036519050598, -0.16357725858688354, 0.2548793852329254, -0.16710695624351501, -0.4974234700202942, -0.8453237414360046, -0.26873713731765747, 0.5263463854789734, -0.15937140583992004, 0.082157701253890...
Web.config file In the Views folder to match the following example. (The changed elements are in bold.)
[ 0.2248356193304062, -0.31261083483695984, 0.4522538185119629, 0.250740110874176, 0.02166772447526455, -0.3132970333099365, -0.04513365402817726, 0.3450806438922882, -0.5397245287895203, -0.9317586421966553, -0.2580588459968567, 0.11519007384777069, -0.27827468514442444, 0.228215754032135, ...
I have taken over maintenance of a very large (>2M SLOC) software project, all written in C#. There is very little documentation. I am now wanting to make a change to a module that has public interfaces (about 400), but I don't know what all other modules (there are about 50 total) in the solution may be using this pub...
[ 0.40759384632110596, 0.17533071339130402, 0.09732583910226822, 0.07819552719593048, 0.12674899399280548, -0.12692011892795563, 0.35722702741622925, -0.16836178302764893, -0.3409860134124756, -0.6188733577728271, 0.05220930650830269, 0.5372152924537659, -0.09955651313066483, 0.1100441142916...
type of dependency analysis tree? I do not want to purchase any tools. The Visual Studio tools such as Class View don't seem to handle a project of this size very well. I have thought about writing my own sed/awk/perl-ish script that simply walks the source code and uses pattern matching to build my own dependency/int...
[ 0.4559471905231476, -0.13265222311019897, -0.2906050682067871, 0.14119860529899597, -0.2649003565311432, -0.28203606605529785, 0.17831242084503174, 0.235579714179039, -0.3047528862953186, -0.48022058606147766, 0.5372278094291687, 0.5363974571228027, -0.397499680519104, 0.23040518164634705,...
best bet. With a code base of that size, it won't take long for a $400 tool to pay for itself.
[ 0.34955552220344543, 0.2431461364030838, -0.1875319629907608, 0.45098933577537537, 0.332105427980423, 0.22437141835689545, 0.09653588384389877, 0.19560453295707703, 0.022067248821258545, -0.25892961025238037, 0.33580282330513, 0.6892409920692444, 0.6312223076820374, -0.2562905251979828, ...
I've got a mysql database and I'm trying to put a url and unique id into two seperate fields. One of the urls are sometimes more than 800 characters long. I tried to create a UNIQUE index of the id and url, so that I'm not linking to the same url/id combo more than once, but I get an error regarding field length for t...
[ 0.609626293182373, 0.182841494679451, 0.3408348262310028, 0.11861618608236313, -0.28031125664711, -0.08141323179006577, 0.20871815085411072, 0.15030603110790253, -0.16812635958194733, -0.4300985634326935, 0.2957291007041931, 0.5068708658218384, 0.032006725668907166, 0.5195838809013367, 0...
URL in another column, and create a unique index on the hash column.
[ 0.12526105344295502, 0.2500438392162323, 0.44887635111808777, 0.16548244655132294, -0.12667864561080933, -0.12409665435552597, -0.1388903111219406, 0.09672608226537704, 0.02021370641887188, -0.3550589084625244, -0.2884315252304077, 0.018724456429481506, -0.20240020751953125, 0.543475985527...
I am developing a winForm App in C# and I have come across something that has always bothered me. **Is it better practice to use a Label or a TextBox when displaying data to the user?** Things like Name, Phone #, etc. My gut says to use a TextBox and just set it to read-only until the time comes that I need to allow ...
[ 0.645621657371521, 0.28277409076690674, 0.1479233056306839, 0.027797002345323563, -0.11096689850091934, -0.18217982351779938, 0.19338734447956085, 0.1161748468875885, -0.07264505326747894, -0.7380147576332092, 0.201248437166214, 0.5437079668045044, 0.07451488077640533, -0.2039238065481186,...
am not thinking of? For data that the user can edit (whether it's enabled in the current context or not) I always use a text box which I enable/disable as needed. For data that is purely informational, i.e. the user will not be given the option in the current context to change it, then that's where I use a label.
[ 0.5800174474716187, 0.28644075989723206, 0.26793423295021057, -0.2064235359430313, -0.047396086156368256, -0.052956726402044296, 0.36562949419021606, 0.03363896533846855, -0.071895070374012, -0.4834427237510681, -0.3414117693901062, 0.17145784199237823, -0.2682092785835266, 0.2306634932756...
I'm trying to do something simple here. When I execute the following code in Visual Studio 2008 using the unicode character set, xmlString is correct. Unfortunately I need to convert the CString to a unsigned char\*. Using the code below, ucStr becomes "<" (i.e. the first character of xmlString). **How should I conv...
[ -0.21166463196277618, 0.05057656764984131, 0.6353800892829895, -0.2973562180995941, -0.12955579161643982, -0.1110900267958641, 0.20158442854881287, -0.16612420976161957, -0.14775899052619934, -0.7923024296760559, -0.2624768316745758, 0.6042629480361938, -0.31534403562545776, 0.078133024275...
pgIRequest->SendXmlData( "dgv/gateway.xml", ucStr, xmlString.GetLength() + 1) ; ``` I find the simplest is to use the CStringA constructor, like this: ``` CString xmlString; xmlString.Format( _T("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><gateway><config-read><%s /></config-read></gateway>"), "test"); ...
[ -0.5402950644493103, -0.21717077493667603, 0.7504300475120544, -0.033009253442287445, -0.08153805136680603, 0.13806289434432983, 0.2014690488576889, -0.25909823179244995, -0.06332937628030777, -0.5534838438034058, -0.14172464609146118, 0.3182426393032074, -0.46283063292503357, -0.007655272...
I have a bcb5 project group that I am trying to compile with make.exe. Make seems to run fine and generates a call to bcc32.exe, but that fails. Here is the call to bcc32.exe followed by the error. ``` M:\projects\Project>"D:\Program Files\Borland\CBuilder5\Bin\bcc32.exe" -Od -H=.\obj_files\vcl50.csm -Hc -Vx -Ve -X- -...
[ 0.07189545780420303, 0.5376293063163757, 0.22558647394180298, -0.15013380348682404, 0.17055727541446686, -0.15210817754268646, 0.39277732372283936, -0.215949147939682, -0.4614606201648712, -0.14981862902641296, -0.011002612300217152, 0.12302055954933167, -0.23169171810150146, 0.47590586543...
quotes around P:\bg\Gif Image. Changing them to single quotes fixes the problem. I believe this can be also be solved with FixMake: <http://www.grassvalleysoftware.com/>. FixMake takes a makefile and cleans up things such as trailing backslashes and escaped quotations.
[ 0.4918660819530487, -0.08108863979578018, 0.26745736598968506, -0.008247153833508492, -0.1703067123889923, 0.10079722851514816, 0.4481499493122101, -0.20890602469444275, -0.08718889206647873, -0.26751357316970825, 0.11064375191926956, 0.2945515811443329, -0.4795551002025604, -0.08549495041...
I have to be specific for this to make sense. In my application I have a model called theme which contains widget color theme information. We provide a few themes, but mainly rely on the user to create their own themes. So the question is: where do I store my themes? If I store them in the theme database, then anytime ...
[ 0.37006238102912903, -0.04960918799042702, 0.3964911699295044, 0.20642170310020447, 0.12348060309886932, -0.0500965341925621, -0.10107564926147461, 0.02950328029692173, -0.28514930605888367, -0.49450844526290894, 0.24548020958900452, 0.018315276131033897, -0.10169757157564163, 0.6356420516...
that is since each widget has a theme, each widget has a theme\_id, and there is no theme\_id for our provided themes because they are not stored in the database. I know that a solution to this issue is pretty simple, but I want to make sure my solution employs the best coding practices. Does anyone have any suggestio...
[ 0.6173071265220642, 0.21441657841205597, -0.138389453291893, 0.6074076890945435, 0.5882545113563538, -0.005993397906422615, -0.08524534851312637, 0.1798076331615448, -0.29435107111930847, -0.4658799469470978, 0.20017831027507782, 0.3049395680427551, -0.20635893940925598, 0.0730684027075767...
records is truly part of the proper initialization of your table, i.e. if your table simply will no do the job you need in your application without them, then they belong in the migration. Rake tasks are great for capturing data sets that you need to load into the application on command (for example for a demo), but if...
[ 0.1448592245578766, -0.23887252807617188, 0.20878365635871887, 0.3998832702636719, 0.3962087631225586, -0.06766238808631897, -0.26612263917922974, -0.11942245811223984, -0.4968275725841522, -0.7998917698860168, -0.03755953535437584, 0.1052742600440979, 0.1341390311717987, 0.025967286899685...
Why won't `vertical-align: middle` work? And yet, `vertical-align: top` *does* work. ```css span{ vertical-align: middle; } ``` ```html <div> <img src="https://via.placeholder.com/30" alt="small img" /> <span>Doesn't work.</span> </div> ``` Actually, in this case it's quite simple: apply the vertical align to t...
[ 0.11665836721658707, -0.0847143605351448, 0.7429467439651489, -0.11762654036283493, -0.07937975227832794, 0.1557546854019165, -0.06288324296474457, -0.4394311010837555, -0.30691009759902954, -0.768883228302002, -0.17946757376194, 0.5134726166725159, -0.3034227788448334, -0.1241840645670890...
<span style="">Works.</span> </div> ```
[ 0.27777695655822754, 0.09291592240333557, 0.5139068961143494, -0.07836451381444931, -0.12314005941152573, -0.13849057257175446, 0.0170256569981575, -0.36555805802345276, -0.2668328285217285, -0.7229788899421692, -0.4872407615184784, 0.57606041431427, -0.03899448364973068, -0.31382596492767...
I'm trying to understand the stategy or idea's for building spacial maps of related/common keywords or tags. Using SO as an example; if you go to <https://stackoverflow.com/tags> and type in "python" you will get all tags that have that word in it, but no tags that might be closely related ( WSGI, Google's App Engine, ...
[ 0.4324466288089752, 0.13635148108005524, 0.1913147121667862, 0.088751420378685, -0.12027508020401001, -0.13380292057991028, -0.15953746438026428, -0.29518499970436096, -0.19758225977420807, -0.5276474356651306, 0.0757937803864479, 0.31338953971862793, -0.4168041944503784, -0.03829400613903...
tags and still keep the system responsive? I've already watched this Google Tech-talk by David Weinberger which is a great tech talk that has gotten me thinking. <http://video.google.com/videoplay?docid=2159021324062223592&ei=qseASZvgI6e4qAP91a2PDg&q=google+tech+talk> Check the clustering concepts from O'Reilly's ["P...
[ 0.8823681473731995, -0.28635644912719727, -0.07475665956735611, 0.38574525713920593, 0.21659836173057556, 0.005533728748559952, -0.037597689777612686, -0.4523201882839203, -0.17054383456707, -0.379443496465683, -0.011651617474853992, 0.7179756760597229, -0.40601879358291626, -0.27854362130...
I have a requirement to pad all single digits numbers with a starting zero. Can some one please suggest the best method? (ex 1 -> 01, 2 -> 02, etc) I'd call [.ToString](https://learn.microsoft.com/en-us/dotnet/api/system.int32.tostring?view=netframework-4.7.2#System_Int32_ToString_System_String_) on the numbers, provi...
[ 0.18571726977825165, 0.030720824375748634, 0.5225239992141724, -0.16792790591716766, 0.1126568540930748, 0.02098216488957405, 0.11176678538322449, -0.3735174536705017, -0.11640028655529022, -0.474481999874115, -0.03605756536126137, 0.49932754039764404, -0.10449358075857162, -0.028111994266...
I am working on an asp page that verifies information in a text box after the user types it in. A “product number” is manually entered (free form). Using the after update event, I have the page post the data and lookup the product number to determine if it is valid. If not valid an error message is posted in the box, ...
[ 0.5901936292648315, 0.44728925824165344, 0.44653213024139404, -0.23177970945835114, -0.15848514437675476, 0.08262285590171814, 0.21908845007419586, -0.03978002443909645, -0.0748785138130188, -0.4668522775173187, -0.22771337628364563, 0.5328596830368042, -0.15398937463760376, 0.031895365566...
I want the focus to be returned to the next text box so the operator can type in the next piece of needed information. Note: So far I inserted a function that dynamically changes the “TABSTOP” numbering such that the “next” box is assigned the #1 after the validation lookup. This works on my browser (Firefox 3.05) bu...
[ 0.3461916148662567, -0.07802584767341614, 0.9667218327522278, -0.02340148389339447, -0.1240464448928833, -0.21839633584022522, 0.32411715388298035, 0.13115108013153076, -0.11859209835529327, -0.5779040455818176, -0.3763121962547302, 0.7183297872543335, -0.27845150232315063, -0.095525920391...
where near where I want it to be. I'd call [.ToString](https://learn.microsoft.com/en-us/dotnet/api/system.int32.tostring?view=netframework-4.7.2#System_Int32_ToString_System_String_) on the numbers, providing a [format string](https://learn.microsoft.com/en-us/dotnet/standard/base-types/formatting-types#FormatStrings)...
[ -0.005103772506117821, -0.008123179897665977, 0.9175136685371399, -0.2790966331958771, 0.42929133772850037, 0.09245459735393524, 0.006333911791443825, -0.35764622688293457, 0.10356458276510239, -0.6174766421318054, -0.18190018832683563, 0.42161738872528076, 0.011688129976391792, 0.02269301...
I've been trying to mug up on Glassfish and one thing that keeps coming up is the "how-to" on fronting Glassfish with Apache. Unfortunately, I have yet to find a description of why you would want to do this! From my experimentation, Glassfish seems like a pretty fully featured web server-type service; but I might be m...
[ 0.341562956571579, 0.10175098478794098, 0.020404769107699394, 0.0725250393152237, -0.26349812746047974, -0.331822007894516, 0.3455255329608917, 0.28621262311935425, -0.1710454672574997, -0.5681470632553101, 0.050632037222385406, 0.47235816717147827, -0.22126297652721405, 0.1203856989741325...
web server it is used to deliver static content. Like images, CSS files and so on. Glassfish serves the dynamic content (servlets, JSPs) in this scenario.
[ 0.11745977401733398, -0.10593853890895844, 0.23126259446144104, 0.24234916269779205, -0.14674155414104462, -0.07560355961322784, -0.12257545441389084, 0.3701116144657135, -0.5204411149024963, -0.5116125345230103, -0.49397337436676025, 0.13563205301761627, -0.47686290740966797, 0.2750484645...
When i try to compile this as part of an objective-c program it gives the warning: `warning: passing argument 1 of 'sqlite3_close' from incompatible pointer type` ``` sqlite3 *db; sqlite3_open("~/Documents/testdb.sqlite", &db); /*stuff*/ sqlite3_close(&db); ``` An almost identical error is given with nearly any o...
[ -0.020987482741475105, 0.5256760120391846, 0.07571399956941605, -0.49676287174224854, -0.2088911235332489, -0.40948382019996643, 0.5163282155990601, 0.04987437650561333, 0.15649524331092834, -0.14367873966693878, -0.19409939646720886, 0.618709146976471, -0.5757749080657959, 0.1634214222431...
I'm a Python newbie, so bear with me :) I created a file called test.py with the contents as follows: ``` test.py import sys print sys.platform print 2 ** 100 ``` I then ran `import test.py` file in the interpreter to follow an example in my book. When I do this, I get the output with the import error on the end. ...
[ 0.48306503891944885, 0.3402330279350281, -0.17716941237449646, -0.04079703614115715, -0.08047127723693848, 0.13915830850601196, 0.38024479150772095, -0.040419500321149826, -0.18329642713069916, -0.5203248858451843, -0.1067114993929863, 0.454304963350296, -0.16931389272212982, -0.1512665450...
Is there a built-in way of specifying asserts in Rails that will throw an exception if an invariant is broken during development and testing? Edit: Just to be clear, I'm looking for asserts that can be placed in models or controllers as opposed to asserts that you would use for unit tests. There are many assert functi...
[ 0.23936504125595093, 0.0694509968161583, -0.13483236730098724, 0.1416979432106018, -0.30269375443458557, -0.15800173580646515, 0.487350732088089, -0.5441620349884033, 0.02846221625804901, -0.09134039282798767, 0.11162029206752777, 0.7699901461601257, -0.153361976146698, 0.05159019306302070...
end end ``` and make it a no-op in your `environments/production.rb` so there is minimal overhead ``` def assert(message = 'assertion failed') end ``` Then, in your code, you can assert to your heart's content: ``` assert { value == expected_value } assert('value was not what was expected') { value == expected_va...
[ 0.10255011916160583, 0.14745110273361206, 0.07158486545085907, -0.1790345013141632, 0.1597663313150406, -0.07425199449062347, 0.3916815221309662, -0.2334001511335373, 0.32412588596343994, -0.1180444061756134, -0.20141741633415222, 0.691595733165741, -0.07794412970542908, 0.1046231389045715...
In a Flash game I am developing, there are some settings that are set by an external XML file. When I run the SWF file through the Flash IDE, it loads fine. If I run the same file as a projector (.exe) or the independent SWF file, it does not load the XML file. My (unexpected) fix was to assign an *error* event listen...
[ 0.08767741918563843, 0.2001614272594452, -0.010781009681522846, -0.1898878812789917, -0.18608173727989197, -0.3292522132396698, 0.1295265406370163, -0.034807585179805756, -0.03588942810893059, -0.42443978786468506, -0.08204440027475357, 0.8265022039413452, -0.5174104571342468, -0.223259389...
of code involved (~~with extraneous code and function calls removed~~): ``` public function getSettings():void { outputBox = getChildByName("output_box") as TextField; var xmlLoader:URLLoader = new URLLoader(); var xmlData:XML = new XML(); xmlLoader.addEventListener(Event.COMPLETE, loadXML, false, 0, t...
[ -0.07291912287473679, -0.29838183522224426, 0.3961709141731262, -0.30166804790496826, -0.0940018817782402, 0.13875889778137207, 0.2947230935096741, -0.5194979310035706, -0.11178915202617645, -0.4222922921180725, -0.5518864393234253, 0.5709197521209717, -0.4761814475059509, -0.1764846891164...
xmlData = new XML(e.target.data); var chances:String = xmlData.chances.text(); var dbURL:String = xmlData.database.text(); trace("Chances are set to: " + chances); trace("Database URL is set to: " + dbURL); outputBox.appendText("Chances are set to: " + chance...
[ 0.05814336985349655, -0.43895742297172546, -0.014763561077415943, -0.05656842887401581, -0.2935559153556824, 0.15141478180885315, 0.1880483329296112, -0.564211368560791, -0.0678141638636589, -0.4879530668258667, -0.11789733916521072, 0.3007085621356964, -0.4771263301372528, -0.083284467458...
{ outputBox.appendText(err.message); } checkChances(chances); dbPath = new URLRequest(dbURL); } ``` } Let me know if you have run into this, or if you can shed some light on what may be happening. Thanks! EDIT: Here is the code which does *not* work. (I also edi...
[ 0.34756672382354736, 0.00009050757216755301, 0.18281270563602448, -0.0843503400683403, -0.15349161624908447, -0.24102382361888885, 0.7469278573989868, -0.007319360505789518, -0.052713390439748764, -0.7784337997436523, -0.0704972892999649, 0.45729443430900574, -0.4340667724609375, 0.1314905...
I took out, just in case they might be effecting it): ``` public function getSettings():void { outputBox = getChildByName("output_box") as TextField; var xmlLoader:URLLoader = new URLLoader(); var xmlData:XML = new XML(); xmlLoader.addEventListener(Event.COMPLETE, loadXML, false, 0, true); /*xmlLoader...
[ 0.05614566057920456, -0.3924383223056793, 0.39269453287124634, -0.3697795867919922, -0.18554621934890747, 0.0776391476392746, 0.4205694794654846, -0.43120378255844116, -0.08899512887001038, -0.4232560694217682, -0.3501807153224945, 0.5012720227241516, -0.5368981957435608, -0.01755400002002...
xmlData = new XML(e.target.data); var chances:String = xmlData.chances.text(); var dbURL:String = xmlData.database.text(); trace("Chances are set to: " + chances); trace("Database URL is set to: " + dbURL); outputBox.appendText("Chances are set to: " + chance...
[ 0.13621287047863007, -0.4246797263622284, 0.023798733949661255, -0.0485110729932785, -0.3258309066295624, 0.17224566638469696, 0.09943629056215286, -0.5863016247749329, -0.0014145905151963234, -0.6044732928276062, -0.15643659234046936, 0.2272839993238449, -0.4738745391368866, -0.0559607557...
catch(err:Error) { outputBox.appendText(err.message); } checkChances(chances); dbPath = new URLRequest(dbURL); } ``` } On the first addEventListener you're telling it to use weak references (that last argument to the call). Your loadXML function is defined within y...
[ 0.22511041164398193, -0.3026233911514282, 0.6166151165962219, -0.256036639213562, -0.1777055263519287, -0.05460318922996521, 0.27471786737442017, -0.2594187557697296, -0.13330881297588348, -0.3939054012298584, 0.028511766344308853, 0.5123645663261414, -0.667183518409729, 0.1775231659412384...
is the event listener, but since you tell it to use a weak reference that will not prevent it from being garbage collected. So, by the time the event is raised the loadXML method is probably garbage collected. My guess is that when you define the other listener the anonymous method defined there keeps the getSettings(...
[ 0.08081074059009552, -0.2274097055196762, 0.13964428007602692, -0.041385501623153687, -0.3783026933670044, -0.4785497188568115, 0.1252831220626831, 0.021981963887810707, -0.5162761211395264, -0.24645951390266418, 0.07737432420253754, 0.6017376780509949, -0.25816741585731506, -0.00355679541...
would prevent the garbage collection you're seeing, as the method would stay in scope as long as the object does. If for some reason you don't want to make loadXML a member function then removing the weak reference flag should be enough to fix it. However, you may end up with a bit of a memory leak due to the way thos...
[ 0.19036950170993805, -0.15131759643554688, 0.17644207179546356, 0.28894519805908203, -0.19678230583667755, -0.5007458329200745, 0.5683371424674988, 0.1624528020620346, -0.3954879343509674, -0.19080185890197754, -0.07967163622379303, 0.516187310218811, -0.5191010236740112, 0.334386825561523...
Whenever I play Sudoko, I see the finished puzzle as an overspecified version of the original input. Like 8b/10b, Reed-Solomon codes, turbo codes, or low-density parity-check codes. With ECC the computer has to solve a puzzle to produce the correct data, and with Sudoku the human has to solve a puzzle to produce 81 dig...
[ -0.1554599404335022, 0.06759447604417801, 0.09766282141208649, 0.12508855760097504, -0.3845337927341461, -0.011815919540822506, 0.08488157391548157, -0.011086001992225647, -0.22462570667266846, -0.4788941442966461, -0.15962199866771698, 0.40387383103370667, 0.03881770744919777, -0.10617640...
you need a source that you trust. This means some server somewhere. Javascript can generally only make HTTP calls, and only to the server hosting the page in question (same origin policy). Thus that server has to be your source for GMT time. I would configure your webserver to use NTP to synchronize its clock with GMT...
[ 0.46578797698020935, 0.1470385491847992, 0.40155547857284546, 0.09494880586862564, -0.08047962933778763, -0.2175181657075882, 0.3602151572704315, 0.09087247401475906, 0.008382771164178848, -0.8969677686691284, 0.18953858315944672, 0.45417654514312744, -0.09038379043340683, 0.02739631570875...
the latency involved: the server determines the time, writes it to the response, the response travels over the network, and the javascript executes whenever the client's cpu gives it a timeslice, etc. On a slow link you can expect seconds of delay if the page is big. You might be able to save some time by determining h...
[ 0.021131591871380806, -0.30094465613365173, 0.6005716323852539, 0.15856948494911194, 0.02206192910671234, 0.004049130715429783, 0.2881126403808594, 0.08728566765785217, -0.44683167338371277, -0.6723383665084839, -0.03739386424422264, 0.45760583877563477, -0.08734593540430069, 0.07424994558...
PC then your offset is blown. Also keep in mind that the client can change the data so don't trust any timestamps they send you. **Edit**: [JimmyP's answer](https://stackoverflow.com/questions/489581/getting-the-current-gmt-world-time/489846#489846) is very simple and easy to use: use Javascript to add a `<script>` e...
[ 0.4139111638069153, 0.04399057477712631, 0.32828980684280396, 0.045113705098629, 0.18423211574554443, -0.2362176924943924, -0.2525443136692047, 0.1265370100736618, -0.37452152371406555, -0.529571533203125, -0.06919609010219574, 0.6787565350532532, -0.2563968300819397, -0.002841878682374954...
your user's pages. This means that if the operators of that site want to profile your users, or hijack their data, they can do that trivially. Even if you trust the operators you need to also trust that they have not been hacked or compromised. For a business site or any site with high reliability concerns I'd recommen...
[ 0.24691355228424072, -0.07029040902853012, 0.6154469847679138, 0.22767774760723114, 0.1680227667093277, -0.19107994437217712, 0.06984031945466995, 0.36014941334724426, -0.5038182139396667, -0.4275260269641876, -0.22211679816246033, 0.31736108660697937, -0.16192975640296936, 0.2371608614921...
yourself. However, it should be easy enough to add a page on your server which responds with the same format of data. Basically your server takes a query such as ``` http://json-time.appspot.com/time.json?tz=America/Chicago&callback=foo ``` and returns a string such as ``` foo({ "tz": "America\/Chicago", "hour":...
[ 0.33420416712760925, 0.3386826515197754, 0.4863065481185913, -0.19149881601333618, 0.19907116889953613, 0.09540148079395294, 0.3458925485610962, 0.0891537219285965, -0.08592560887336731, -0.615479052066803, -0.22656604647636414, 0.2903638482093811, -0.3749263882637024, -0.1763828843832016,...
this example is a separate question.
[ 0.09883127361536026, 0.06735517084598541, -0.1817076951265335, 0.005943540949374437, -0.15837454795837402, -0.027269933372735977, 0.08665049821138382, 0.00680076377466321, -0.30838143825531006, -0.2913375198841095, -0.3325915038585663, 0.23372827470302582, -0.02626635879278183, -0.04710824...
Can WinDbg can be used together with the [Visual C# 2008 Express Edition](https://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#Visual_C.23_Express)? Try a regexp with the global flag set: ``` var string = result.replace(/\r\n/g,'<br />'); ```
[ -0.3243727385997772, -0.11377916485071182, 0.2467971295118332, -0.08487660437822342, -0.34136858582496643, -0.009209114126861095, 0.038197681307792664, -0.3562423288822174, -0.09063577651977539, -0.34776386618614197, 0.04224412888288498, 0.4533883333206177, -0.2238408774137497, -0.47126689...
I'm having quite some trouble since I migrated my controllers from classical inheritance to use the annotations like @Controller and @RequestMapping. The problem is that I don't know how to plug in validation like in the old case. Are there any good tutorials about this? Have a look at [§13.11.x of the Spring MVC docum...
[ 0.15090471506118774, -0.17276157438755035, 0.4395311176776886, 0.17949222028255463, -0.11707013845443726, -0.35553884506225586, 0.11986391246318817, -0.22478443384170532, -0.40173831582069397, -0.3524607717990875, 0.19112959504127502, 0.4259488880634308, 0.018977675586938858, 0.16115806996...
My boss was in the past not really interested in Open-Source. He always was fine, if we developers used a library or framework, that came at no cost. But he was never interested in details. But some customers talked about Open-Source and so he got the idea, that such a thing exists. Recently he surprised us, because h...
[ 0.9018145203590393, 0.27171364426612854, -0.057437147945165634, 0.41336050629615784, 0.11211669445037842, -0.2167399674654007, -0.13411295413970947, 0.29423391819000244, -0.09569299221038818, -0.06536600738763809, 0.17524535953998566, 0.5455339550971985, -0.13113147020339966, 0.32988831400...
to third parties and really no one is allowed to change the code without our permission. So I said that's fine but not open-source and he was a little unhappy about that. The problem was, that he had really no idea, what open-source is. How do you would explain the concept of open-source to your boss? Edit: I think m...
[ 0.7908501029014587, 0.32825469970703125, -0.18719364702701569, 0.28144264221191406, -0.21682512760162354, -0.5152795910835266, 0.18117770552635193, 0.1820373237133026, -0.237504780292511, -0.203671395778656, -0.07863857597112656, 0.605600118637085, -0.4422319531440735, 0.19697724282741547,...
were products by Sun. And he looked confused, as I explained that I could take the code from the Apache webserver, change some bits and release this changed webserver as an own product (with other words: make a fork). I'm sure he don't really wants to release open-source, but he doesn't understand the idea of it, so I...
[ 0.7674393057823181, 0.2646046578884125, 0.07207968831062317, -0.035597316920757294, -0.327428936958313, -0.15294292569160461, -0.13213638961315155, 0.12899571657180786, -0.1021895557641983, -0.18929795920848846, 0.22183899581432343, 0.45579054951667786, -0.12697428464889526, 0.394247949123...
inspection, security auditing, etc. It can also be an alternative to putting source code in **escrow**. Some companies put copies of their code in storage, held by a third party so that in case your company goes bankrupt and disappears, the customer has some access to the code so they can take over maintenance in tha...
[ 0.6989406943321228, 0.23723280429840088, 0.1063263863325119, 0.42210692167282104, 0.5589003562927246, -0.5119333267211914, 0.2634459435939789, 0.034680258482694626, -0.3614232838153839, -0.08016178756952286, -0.30939605832099915, 0.5218186974525452, 0.02299823984503746, 0.27863144874572754...
has non-exclusive license to use and modify your code. Open-source is different, in that **everyone** has a non-exclusive license to use and modify your code, as soon as you publish it. Your company continues to be healthy in the meantime. The users have to adhere to the terms of the license of course, which could add...
[ 0.9006516933441162, 0.3796021640300751, 0.17891542613506317, 0.2163233458995819, -0.08190955966711044, -0.7158566117286682, 0.026001326739788055, 0.32820239663124084, -0.2958642244338989, -0.3187413215637207, -0.2797519862651825, 0.5990511775016785, -0.06959480792284012, 0.3273637294769287...
open source. Even GPL permits this. But it's a legitimate question, how can you control or enforce the license if the code is open source? The best solution is that your business value is based on **service** or **access**, instead of simply the code. That is, if the customers are paying a subscription to a news feed,...
[ 0.8425711393356323, 0.4611337184906006, 0.014689585193991661, 0.376395046710968, -0.25335294008255005, -0.746528685092926, 0.07414816319942474, 0.26783299446105957, -0.29878872632980347, -0.3733549416065216, -0.1562466323375702, 0.7188328504562378, -0.2747540771961212, 0.2531440854072571, ...
I have a website that I work on locally and is hosted with a web host on another server. How would I use SSH to automatically push my local files to the production server? Would it possible to setup a list of files that are on my local machine that I do not want uploaded and can I have it upload only the files that hav...
[ 0.7028352618217468, 0.01766609400510788, 0.16166961193084717, 0.11373142153024673, 0.010392710566520691, -0.11789940297603607, 0.045408740639686584, -0.03989524766802788, -0.7488742470741272, -0.6439587473869324, 0.14196321368217468, 0.34327319264411926, -0.14082388579845428, 0.06882675737...
I've recently switched to is using [git](http://git-scm.com/) for this purpose, which also works over ssh and gives us version control.
[ 0.35194262862205505, 0.06401925534009933, 0.3304024934768677, -0.28635406494140625, -0.1350547969341278, -0.6465959548950195, 0.20818252861499786, 0.4505379796028137, -0.20737437903881073, -0.818914532661438, -0.2525348365306854, 0.37114256620407104, -0.06343786418437958, 0.302453637123107...
I know it's not supported, and I know it's not even a terribly good idea. But, I want to have a WCF client inside a SQL Table Valued Function. I've (seemingly) registered the correct assemblies, but when running my client - I get a WCF error: ``` Msg 6522, Level 16, State 1, Line 1 System.ServiceModel.CommunicationO...
[ 0.026796657592058182, 0.28817227482795715, 0.650612473487854, -0.1266356259584427, 0.016887744888663292, -0.23671090602874756, 0.5556841492652893, -0.07169021666049957, -0.13243308663368225, -0.6846279501914978, 0.0006865712348371744, 0.6178991198539734, -0.622673511505127, 0.4373359084129...
SQL CLR issue, as I'm new to both..... Edit: I understand that the required System.ServiceModel and it's umpteen assemblies are outside of the vetted Sql CLR list. However, > "Unsupported libraries can still be called from your managed stored procedures, triggers, user-defined functions, user-defined types, and user...
[ 0.5446274876594543, 0.34907272458076477, 0.4058810770511627, 0.26718348264694214, 0.2075997292995453, -0.5904768109321594, -0.026738451793789864, 0.03394844010472298, -0.1864815354347229, -0.15227028727531433, -0.3132666349411011, 0.49036654829978943, -0.1736782342195511, 0.360873013734817...
true underlying exception is and to see how fatal it is: > [http://jdconley.com/blog/archive/2007/08/22/wcfclientwrapper.aspx](http://web.archive.org/web/20101230161606/http://www.jdconley.com/blog/archive/2007/08/22/wcfclientwrapper.aspx) (archive.org copy) As [David correctly says](https://stackoverflow.com/questio...
[ -0.25799310207366943, 0.25969892740249634, 0.14334186911582947, 0.002150007290765643, 0.10208941996097565, -0.14278505742549896, 0.47059354186058044, -0.19333739578723907, -0.19308194518089294, -0.2726917564868927, 0.09107483178377151, 0.4540388882160187, -0.48805779218673706, 0.2238981723...
trying to talk to.
[ -0.09122468531131744, 0.26605767011642456, -0.08980114012956619, 0.32084450125694275, -0.3222520053386688, 0.02492455206811428, 0.24394236505031586, 0.2400645762681961, -0.2543683350086212, -0.6652162671089172, -0.39797312021255493, 0.4301970303058624, -0.4031509459018707, -0.0437374562025...
I'm writing a new Windows Forms 2.0 application. This application is going to have a data file. The user will be able to open the data file, do some work and save it to disk. Then he'll be able to open it later, to continue working. Same thing as Microsoft Word and .doc files. I'd like to use SQLite for the data file....
[ 0.5097967982292175, 0.20989125967025757, 0.8515912294387817, -0.04167890548706055, 0.1866811066865921, -0.17793008685112, 0.08494284003973007, -0.04578026011586189, -0.19860096275806427, -1.2219537496566772, -0.006611166056245565, 0.4715319275856018, -0.19638772308826447, 0.083431214094161...
disk will be changed. In your opinion, what's the best way to do this? Should I load the contents of the SQLite DB into memory, maybe mapping it to objects, and write back to it when the user clicks "save"? Or... is there a way to work with the data file with SQL commands (no objects), but leaving the changes in mem...
[ 0.33186033368110657, 0.28205281496047974, 0.4869784414768219, 0.17702560126781464, -0.048054054379463196, -0.22916454076766968, -0.019527019932866096, 0.07631439715623856, -0.22532644867897034, -0.7023607492446899, -0.060136571526527405, 0.8769305348396301, -0.18094423413276672, 0.12463128...
working file. When the user clicks "Save", copy the working file over the original. 3) Delete the working file and goto step #1.
[ 0.052931543439626694, -0.10553750395774841, 0.3721068501472473, -0.15333192050457, 0.15814663469791412, -0.14669591188430786, 0.3947715163230896, -0.4724053740501404, -0.014267010614275932, -0.4199206233024597, -0.5400736331939697, 0.5299983620643616, -0.462344229221344, -0.017022483050823...
Well, as the title says, how can I set an image or anything else as the mouse cursor. I know you can use the built in ones that are part of the Cursors class, but I was wondering if there's a way to use your own image (preferably without P/Invoke, but either way is fine.) EDIT: I guess I didn't explain what I wanted c...
[ -0.19731196761131287, -0.03152884170413017, 0.4701341390609741, 0.3978902995586395, -0.01875663362443447, -0.08036782592535019, -0.09282153099775314, 0.21565252542495728, -0.38545915484428406, -0.5109394788742065, 0.07239171117544174, 0.6021413803100586, -0.27686551213264465, -0.0684200823...
I'd like would be to do something like this: ``` myForm.Cursor = new Cursor(Image.FromFile("foo.jpg")); ``` Possible? At the simplest, you just use: ``` form.Cursor = new Cursor(path); ``` But there are overloads to load from other sources (an unmanaged pointer, a raw stream, or a resx).
[ 0.24858379364013672, 0.015917763113975525, 0.3668729364871979, -0.017594950273633003, -0.06064586713910103, -0.24054725468158722, -0.004228909965604544, -0.14050757884979248, -0.03505801409482956, -0.8033216595649719, -0.19372646510601044, 0.6249409914016724, -0.3922678530216217, 0.0335773...
I am a Google Maps API (javascript) developer. I have noticed that Google uses a Javascript minifier that has the following features: 1. Shortens variables, properties, arguments, classes, function and method names, obfuscating the code. (eg. function1 -> a, function2 -> b, function3 -> c) 2. Some variables, classes, ...
[ 0.17980413138866425, 0.07773158699274063, 0.34394195675849915, -0.145403191447258, -0.24275727570056915, 0.0198426004499197, 0.03116890788078308, 0.1270582526922226, 0.014419433660805225, -0.6954042911529541, 0.07122743129730225, -0.059979766607284546, -0.29812854528427124, 0.0890298485755...
the whole internet a Javascript minifier with those features. Anyone knows one? Google has now opened up the [minifier](http://closure-compiler.appspot.com/home) they use along with some other internal javascript goodies. It's all under the name ["Closure Tools"](http://code.google.com/closure/) and was [announced](ht...
[ 0.35580629110336304, -0.06818743795156479, 0.5674708485603333, -0.017627980560064316, 0.05544821545481682, -0.31273365020751953, -0.05575525015592575, 0.6139556169509888, -0.4633205235004425, -0.5969522595405579, -0.12892860174179077, -0.017673471942543983, -0.30879083275794983, -0.0112619...
I'm making an interface to a DLL library, so i can use it with Java. I need my native function to modify the value of a jlong parameter. Like the parameter was passed by reference. My Java method must have the exact parameters as the native function MPUSBWrite shown down here. Example of actual not working code: The M...
[ -0.21042591333389282, 0.1417718082666397, 0.4829970896244049, -0.1203116849064827, -0.16291426122188568, 0.17379632592201233, 0.36275622248649597, -0.23142588138580322, -0.300810307264328, -0.43515387177467346, -0.12009353935718536, 0.5887285470962524, -0.33206692337989807, 0.2714908421039...
dwLen, jlong pLength, jint dwMilliseconds) { jniByteArray b(env, pData); DWORD res = MPUSBWrite((HANDLE)handle,b.getBytes(),dwLen,(PDWORD)pLength,dwMilliseconds); if (res) { return JNI_TRUE; } else { return JNI_FALSE; } } ``` Is there a way my C++ code modify the value of the pLeng...
[ 0.38653042912483215, -0.2850678861141205, 0.5879585146903992, -0.190678209066391, 0.037650637328624725, 0.19205918908119202, 0.3603648245334625, -0.5556612014770508, -0.21759957075119019, -0.3043864667415619, -0.3018311858177185, 0.7284991145133972, -0.0999024286866188, 0.18060395121574402...
to consider why you can't return the long from the method.
[ 0.3839860260486603, -0.05378641560673714, -0.002039123559370637, 0.34702908992767334, 0.04837360605597496, 0.025843370705842972, 0.059306494891643524, -0.33046942949295044, 0.02823028713464737, -0.3207947611808777, 0.1849718540906906, 0.26683321595191956, 0.20122604072093964, 0.15987956523...
i mean the HTTP/1.1 xxx yyyyyyy header i can modify all others with mod\_headers but want to be able to return a status 200 for 403 error pages to a particular user-agent that dosn't display the text of my 403 pages {it displays an alternate page} just asking if anyone knows an env-var or header name i can alter in ...
[ 0.40104278922080994, -0.17410598695278168, 0.15416370332241058, 0.11640337854623795, -0.336010217666626, 0.11477398872375488, 0.39532962441444397, 0.2820209860801697, 0.02419189177453518, -0.7021352052688599, 0.16796500980854034, 0.24551360309123993, -0.40208548307418823, 0.019944701343774...
in your .htaccess or Apache configuration file: `ErrorDocument 403 /path/to/your/error/script.php` And the following in said php file: ``` <?php if($_SERVER['HTTP_USER_AGENT'] == 'FooBot 1.2') { header("HTTP/1.0 200 OK"); } ?> ``` Or do the same thing in your preferred language.
[ 0.048436786979436874, 0.213283970952034, 0.18877224624156952, -0.20500002801418304, -0.07293447107076645, -0.15297725796699524, 0.8066719770431519, 0.02586897276341915, 0.004579538945108652, -0.4411519169807434, -0.4891240894794464, 0.6825699210166931, -0.413081556558609, -0.44743102788925...
I'm having the weirdest problem. I have two PlaceHolders in a Master Page; one contains controls for users who are logged-out, and the other for users who are logged-in. They are: `plhLoggedOut` `plhLoggedIn` During my Page\_Load (of the Master Page), I set their visibility like so: ``` //LOGGED-IN? ...
[ 0.04062315449118614, 0.1613401472568512, 0.5285429954528809, 0.16760516166687012, 0.2611999809741974, 0.13048598170280457, 0.19994956254959106, 0.22302789986133575, -0.5476371049880981, -0.8005930781364441, -0.045663923025131226, 0.20971883833408356, 0.02007869817316532, 0.1686624586582183...
at any given time. e.g., ``` plhLoggedOut.Visible == True; plhLoggedIn.Visible == False ``` Any ideas how this could happen (and how to fix it)? Thanks very much, Michael I just removed the old PlaceHolders and created two new ones with different IDs. Then it started working. I vaguely remember having weird beh...
[ 0.5111919641494751, -0.06059712544083595, 0.171927347779274, 0.10175667703151703, -0.0260593481361866, -0.19667868316173553, 0.2205296903848648, 0.14141936600208282, -0.3518809378147125, -0.7315700054168701, 0.16961362957954407, 0.29888230562210083, -0.19160906970500946, 0.0875870659947395...
You can nest a hidden control that remains hidden even if you set its container's visibility to true. Thanks, everyone, Michael
[ 0.5077125430107117, 0.12859749794006348, 0.013759461231529713, 0.605871319770813, 0.13332876563072205, -0.13594889640808105, 0.48590517044067383, 0.26007357239723206, -0.2851303517818451, -0.4065295159816742, -0.04073768109083176, 0.29548725485801697, 0.01400622446089983, -0.30260795354843...
I need to query this DB to get each row, but also the SUM of one of the column values of the results. I could use php to get the total value, but then I'd need to run two loops, one to get the total (which goes at the top above the results). So I'd prefer the query to catch it and just make a "total" row, but the only ...
[ 0.14583393931388855, 0.008847653865814209, 0.41011014580726624, 0.03347227722406387, -0.33492758870124817, 0.2269963026046753, 0.05820357799530029, 0.014201135374605656, -0.1034126877784729, -0.4330012798309326, 0.013975176960229874, 0.2672927975654602, -0.37271493673324585, 0.475974977016...
u.id, s.description, s.shiftstart, s.shiftend, (SELECT SUM( TIME_TO_SEC( TIMEDIFF( shiftend, shiftstart ) ) ) /3600 FROM shifts WHERE id = '$user' AND DATE( shiftstart ) BETWEEN '$start' AND '$end') total FROM shifts s INNER JOIN users u ON ( s.id = u.id ) WHERE s.id = '$user' AND DATE( s...
[ -0.13409453630447388, -0.0633557066321373, 0.795552134513855, -0.3862990438938141, 0.17900478839874268, 0.7540426254272461, -0.03689653053879738, -0.35699591040611267, -0.20891447365283966, -0.6346133947372437, -0.36822813749313354, 0.45860108733177185, -0.08710647374391556, 0.438849776983...
shiftend total Joe User joeuser Stuff 2009-01-05 07:45:00 2009-01-05 12:15:00 39.5000 Joe User joeuser Stuff 2009-01-05 13:00:00 2009-01-05 17:00:00 39.5000 Joe User joeuser Stuff 2009-01-06 07:45:00 2009-01-06 10:45:00 39.5000 Joe User joeuser Stuff
[ 0.02344575524330139, 0.17669075727462769, 0.5458713173866272, -0.06774939596652985, -0.5957887768745422, 0.2685161232948303, 0.4239606261253357, 0.07377436012029648, -0.35790854692459106, -0.28216657042503357, -0.2401939332485199, 0.5535857081413269, -0.29766345024108887, -0.18458722531795...
2009-01-06 10:45:00 2009-01-06 12:45:00 39.5000 Joe User joeuser Stuff 2009-01-06 13:30:00 2009-01-06 14:30:00 39.5000 Joe User joeuser Stuff 2009-01-06 14:30:00 2009-01-06 17:00:00 39.5000 Joe User joeuser Stuff 2009-01-07 09:45:00 2009-01-07 14:00:00 39.5000 Joe User...
[ 0.043158870190382004, 0.6576469540596008, 0.45235809683799744, -0.01609693095088005, -0.3721573054790497, 0.06645268201828003, 0.567645788192749, 0.11133671551942825, -0.5931141972541809, -0.3477150797843933, -0.06606461852788925, 0.3771660625934601, -0.14348715543746948, -0.25677201151847...
17:00:00 39.5000 Joe User joeuser Stuff 2009-01-08 08:00:00 2009-01-08 12:15:00 39.5000 Joe User joeuser Stuff 2009-01-08 13:15:00 2009-01-08 17:00:00 39.5000 Joe User joeuser Stuff 2009-01-09 07:45:00 2009-01-09 10:45:00 39.5000 Joe User joeuser Stuff 2009-01-09...
[ 0.14889594912528992, 0.7233260869979858, 0.3626966178417206, -0.06193196401000023, -0.39343973994255066, 0.16714368760585785, 0.5712204575538635, 0.19389866292476654, -0.6305493116378784, -0.31832632422447205, -0.14844101667404175, 0.3464563190937042, -0.13277576863765717, -0.2204475402832...
joeuser Stuff 2009-01-09 15:15:00 2009-01-09 17:00:00 39.5000 ``` Which is what I need, but probably not the best way to get it. MySQL supports a special group-by modifier called [ROLLUP](http://dev.mysql.com/doc/refman/5.1/en/group-by-modifiers.html). ``` SELECT CONCAT(u.firstname, ' ', u.lastname ) nam...
[ -0.02396012656390667, -0.09649737179279327, 0.9040428996086121, -0.11404111236333847, -0.005707554519176483, 0.2181748002767563, 0.4136575758457184, 0.057712674140930176, -0.4328572452068329, -0.24303115904331207, -0.31228965520858765, 0.5026640295982361, -0.22465325891971588, -0.119324393...