text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have this code from an HTML form: ``` <select name="history12"> <option value="Gov/Econ">Government &amp; Economics</option> <option value="AP Gov/Econ">AP Government &amp; Economics</option> </select> ``` ...and this code, in a mailer form: ``` $history12 = $_REQUEST['history12'] ; ``` However, when I ...
[ 0.6735711693763733, 0.18803976476192474, 0.35080525279045105, 0.01734219491481781, 0.09256575256586075, -0.04103726148605347, 0.21029703319072723, -0.22260527312755585, -0.4024125635623932, -0.5540800094604492, -0.0815192312002182, 0.34709110856056213, -0.3390795588493347, 0.13098594546318...
value anywhere in [`get_defined_vars()`](http://is.php.net/manual/en/function.get-defined-vars.php)
[ -0.10591728985309601, -0.2902255356311798, 0.4877915382385254, -0.2431580275297165, -0.010315971449017525, 0.12580506503582, 0.16276413202285767, -0.10152513533830643, -0.24326232075691223, -0.19131878018379211, -0.34629207849502563, 0.45558658242225647, -0.09126602113246918, -0.1130272895...
I was following some examples on [F# Wikibook on High Order Functions](http://en.wikibooks.org/wiki/F_Sharp_Programming/Higher_Order_Functions). Second code snippet under title, *Composition Function* has following code snippet. ``` #light open System let compose f g x = f (g x) let xSquared x = x*x let negXPlusFiv...
[ -0.018134163692593575, 0.043926749378442764, 0.604892909526825, -0.27713698148727417, -0.2838202118873596, -0.07025983184576035, 0.13720080256462097, -0.18365198373794556, -0.10333306342363358, -0.7133496403694153, -0.07257327437400818, 0.5858027338981628, -0.4993547797203064, 0.1718193888...
compose : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b val xSquared : float -> float val negXPlusFive : float -> float val fog : (float -> float) ``` Why does `xSquared` takes `float` and returns `float`? With more information, F# can determine that xSquared is called with float arguments. If you change negXPlusFive to somet...
[ -0.18339194357395172, -0.04517977312207222, 0.717726469039917, -0.17369765043258667, -0.18815171718597412, 0.013084161095321178, 0.0011098765535280108, -0.31741270422935486, 0.16452932357788086, -0.07214374840259552, -0.10657166689634323, 0.42600536346435547, -0.32163524627685547, 0.050227...
I am using the sqlite3.c library. It compiles with 140 something conversion warnings. What's wrong with my set-up? Thanks. ``` sqlite3.c c:\Projects\Lib\sqlite3.c(11311) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(11312) : warning C4244: '=' : conv...
[ 0.1859545260667801, 0.425715833902359, 0.3071384131908417, -0.2495129555463791, -0.006405942607671022, 0.13486839830875397, 0.8627525568008423, -0.2891177535057068, -0.19088850915431976, -0.899927020072937, -0.16257263720035553, 0.2062392681837082, -0.6569769978523254, 0.2411940097808838, ...
to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(11434) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(11435) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(11436) : warning C4244: '=' : conver...
[ -0.045500144362449646, 0.1446342170238495, -0.09269493073225021, -0.3282419741153717, 0.05772536247968674, 0.5558443069458008, 0.6101235151290894, -0.37263649702072144, -0.40349793434143066, -0.7364756464958191, -0.2686626613140106, 0.42103734612464905, -0.6389689445495605, 0.2606613039970...
possible loss of data c:\Projects\Lib\sqlite3.c(11505) : warning C4244: '=' : conversion from 'double' to 'time_t', possible loss of data c:\Projects\Lib\sqlite3.c(11547) : warning C4244: 'return' : conversion from 'sqlite3_int64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(11607) : warning C4244: '=' : c...
[ -0.31811609864234924, 0.4304467737674713, 0.1486603021621704, -0.24535644054412842, 0.36014437675476074, 0.4639401137828827, 0.7377949357032776, -0.28449881076812744, -0.4033258259296417, -0.6523513197898865, -0.24556437134742737, 0.4703259766101837, -0.5122605562210083, 0.3377807736396789...
of data c:\Projects\Lib\sqlite3.c(11726) : warning C4244: '+=' : conversion from 'double' to 'sqlite3_int64', possible loss of data c:\Projects\Lib\sqlite3.c(11730) : warning C4244: '+=' : conversion from 'double' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(11736) : warning C4244: '=' : conversion from 'd...
[ -0.30393579602241516, 0.3271893262863159, 0.4018135666847229, -0.2561084032058716, 0.19771495461463928, 0.5611177086830139, 0.702450692653656, -0.38476186990737915, -0.3723216950893402, -0.7651290893554688, -0.3863568603992462, 0.6256332397460938, -0.6104038953781128, 0.1364319920539856, ...
: warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(11984) : warning C4244: '=' : conversion from 'sqlite3_int64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(12007) : warning C4244: '=' : conversion from 'sqlite3_int64' to 'char', possible loss of data...
[ -0.3162054419517517, 0.31307825446128845, -0.01570269465446472, -0.424259752035141, 0.05392928421497345, 0.37511053681373596, 0.7510899305343628, -0.2594074308872223, -0.38116323947906494, -0.6393832564353943, -0.22573880851268768, 0.4878793954849243, -0.5880935192108154, 0.346020281314849...
C4244: '=' : conversion from 'u64' to 'unsigned char', possible loss of data c:\Projects\Lib\sqlite3.c(19313) : warning C4244: '=' : conversion from 'u64' to 'unsigned char', possible loss of data c:\Projects\Lib\sqlite3.c(19320) : warning C4244: '=' : conversion from 'u64' to 'u8', possible loss of data c:\Projects\Li...
[ -0.47079700231552124, 0.3082268536090851, -0.13283762335777283, -0.4011367857456207, 0.1609327346086502, 0.5092685222625732, 0.5311635136604309, -0.3797307312488556, -0.38490480184555054, -0.6017346382141113, -0.3271472752094269, 0.37253624200820923, -0.57159823179245, 0.3860543668270111, ...
C4244: 'initializing' : conversion from 'sqlite3_int64' to 'LONG', possible loss of data c:\Projects\Lib\sqlite3.c(25736) : warning C4244: 'initializing' : conversion from 'sqlite3_int64' to 'LONG', possible loss of data c:\Projects\Lib\sqlite3.c(28785) : warning C4018: '>=' : signed/unsigned mismatch c:\Projects\Lib\s...
[ -0.47759395837783813, 0.09568575769662857, 0.03190542384982109, -0.3328143358230591, 0.2671820819377899, 0.5017431974411011, 0.5271212458610535, -0.5101881623268127, -0.19393542408943176, -0.6015318632125854, -0.35705938935279846, 0.5357356071472168, -0.5853713154792786, 0.3948104977607727...
loss of data c:\Projects\Lib\sqlite3.c(29887) : warning C4244: '=' : conversion from 'i64' to 'u32', possible loss of data c:\Projects\Lib\sqlite3.c(30081) : warning C4018: '>' : signed/unsigned mismatch c:\Projects\Lib\sqlite3.c(30360) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data c:\Pro...
[ -0.8249400854110718, 0.4339985251426697, 0.25111138820648193, -0.030268292874097824, 0.2363433688879013, 0.4461226165294647, 0.6379941701889038, -0.21948140859603882, -0.4239880442619324, -0.5899944305419922, -0.15388450026512146, 0.44040602445602417, -0.4578503668308258, 0.270066916942596...
from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(33809) : warning C4244: 'function' : conversion from 'i64' to 'u32', possible loss of data c:\Projects\Lib\sqlite3.c(34527) : warning C4244: '=' : conversion from 'u16' to 'unsigned char', possible loss of data c:\Projects\Lib\sqlite3.c(34623) : warni...
[ -0.5497141480445862, 0.346472829580307, 0.09806312620639801, -0.40399038791656494, -0.0002771554281935096, 0.6700245141983032, 0.7316098213195801, -0.3592325747013092, -0.25097978115081787, -0.7047638297080994, -0.3135105073451996, 0.6782664656639099, -0.4429171085357666, 0.335267275571823...
from 'i64' to 'u32', possible loss of data c:\Projects\Lib\sqlite3.c(36887) : warning C4018: '>' : signed/unsigned mismatch c:\Projects\Lib\sqlite3.c(37265) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(37267) : warning C4244: 'function' : conversion from ...
[ -0.6218178868293762, 0.2510608732700348, 0.1879727840423584, -0.3831128776073456, 0.02380995824933052, 0.5151025652885437, 0.7609233260154724, -0.35970500111579895, -0.28139442205429077, -0.7391566038131714, -0.3830045759677887, 0.7608877420425415, -0.5101696252822876, 0.3024401366710663, ...
warning C4018: '>' : signed/unsigned mismatch c:\Projects\Lib\sqlite3.c(37962) : warning C4244: '+=' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(37964) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(38070) : warning C4244: '='...
[ -0.6116855144500732, 0.19709071516990662, 0.11714107543230057, -0.1803099513053894, 0.20882859826087952, 0.5018979907035828, 0.5684837102890015, 0.05858572572469711, -0.5243044495582581, -0.5814252495765686, -0.2451842576265335, 0.5081020593643188, -0.5077688097953796, 0.1486274003982544, ...
'initializing' : conversion from 'sqlite3_int64' to 'Pgno', possible loss of data c:\Projects\Lib\sqlite3.c(40671) : warning C4244: 'initializing' : conversion from 'i64' to 'Pgno', possible loss of data c:\Projects\Lib\sqlite3.c(41144) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data c:\Pro...
[ -0.3628453016281128, 0.041769251227378845, 0.1397077888250351, -0.34952855110168457, 0.07467413693666458, 0.6411816477775574, 0.4575287103652954, -0.25695210695266724, -0.49370697140693665, -0.5984870195388794, -0.45225727558135986, 0.5743396878242493, -0.7301363348960876, 0.13990442454814...
: conversion from 'const i64' to 'double', possible loss of data c:\Projects\Lib\sqlite3.c(42031) : warning C4244: 'return' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(43995) : warning C4244: 'return' : conversion from 'i64' to 'u32', possible loss of data c:\Projects\Lib\sqlite3.c...
[ -0.2547622621059418, 0.23373331129550934, 0.1382289081811905, -0.5135440826416016, 0.053057678043842316, 0.5646315217018127, 0.7822038531303406, -0.5479011535644531, -0.28154394030570984, -0.7000465393066406, -0.40697839856147766, 0.7128450274467468, -0.6194683909416199, 0.1714423298835754...
conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(44489) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(44827) : warning C4244: 'return' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(45006) :...
[ -0.4928933084011078, 0.09891661256551743, 0.10801582783460617, -0.5926731824874878, -0.0398406907916069, 0.7005307078361511, 0.7391928434371948, -0.5082259774208069, -0.2162417471408844, -0.7300341725349426, -0.4287636876106262, 0.7628684639930725, -0.6534168124198914, 0.09760617464780807,...
'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(47071) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(47168) : warning C4244: '=' : conversion from 'i64' to 'double', possible loss of data c:\Projects\Lib\sqlite3.c(47961) : warning C4244: '=' : con...
[ -0.22915805876255035, 0.16341178119182587, -0.015661165118217468, -0.5514911413192749, -0.012617177329957485, 0.6133444905281067, 0.6961389780044556, -0.4387262463569641, -0.39416268467903137, -0.65865159034729, -0.4094466269016266, 0.6583228707313538, -0.6841669678688049, 0.19103011488914...
'int', possible loss of data c:\Projects\Lib\sqlite3.c(48270) : warning C4244: 'function' : conversion from 'u64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(48275) : warning C4244: '=' : conversion from 'u64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(48493) : warning C4244: '=' : conversi...
[ -0.6497976779937744, 0.20374460518360138, 0.12412162125110626, -0.3763168454170227, 0.13389168679714203, 0.6364727020263672, 0.6981026530265808, -0.36672669649124146, -0.25298625230789185, -0.7696337103843689, -0.3516558110713959, 0.6918632388114929, -0.522824227809906, 0.23088081181049347...
loss of data c:\Projects\Lib\sqlite3.c(49567) : warning C4018: '>' : signed/unsigned mismatch c:\Projects\Lib\sqlite3.c(50183) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(50189) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data...
[ -0.7356642484664917, 0.3837200403213501, 0.13592658936977386, -0.1566295176744461, 0.24490809440612793, 0.4548753499984741, 0.7349653840065002, -0.28623059391975403, -0.2697726786136627, -0.6437027454376221, -0.2116381824016571, 0.5337888598442078, -0.42495232820510864, 0.32173335552215576...
from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(63512) : warning C4244: 'initializing' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(63513) : warning C4244: 'initializing' : conversion from 'i64' to 'int', possible loss of data c:\Projects\Lib\sqlite3.c(63514) : ...
[ -0.24936003983020782, 0.20859627425670624, 0.14293663203716278, -0.3716195225715637, -0.03068421594798565, 0.25008049607276917, 0.5695639252662659, -0.2426755726337433, -0.13971488177776337, -0.5796608328819275, -0.2545533776283264, 0.3877709209918976, -0.5334808826446533, 0.14073853194713...
eliminate all warnings because benign > warnings mask real warnings that might > arise in future changes. This is true > enough. But in reply, the developers > observe that all warnings have already > been fixed in the compilers used for > SQLite development (various versions > of GCC). Compiler warnings only ar...
[ 0.2623603641986847, 0.3698888421058655, 0.27390170097351074, -0.19724947214126587, 0.1679481714963913, -0.45525819063186646, 0.40081948041915894, -0.11691955476999283, -0.19043287634849548, -0.2776845395565033, -0.4261842966079712, 0.42802363634109497, -0.7879000306129456, 0.03300617635250...
OK, I'm stumped. I have a Java tree that looks like a fairly typical Eclipse Java build: ``` myproject src com example test // Java files in com.example.test here bin com example test // Compiled class files will go here ``` Now I have a `MyClass.propertie...
[ 0.509394109249115, 0.6257481575012207, -0.13768018782138824, -0.18691696226596832, -0.186069518327713, -0.2728606164455414, 0.24256746470928192, -0.02061508037149906, -0.08014125376939774, -0.663806676864624, 0.13188311457633972, 0.3538986146450043, 0.05120550096035004, 0.2078535258769989,...
How can I write an appropriate ant task to copy all the changed .properties files in the source tree, to their corresponding places in the build (`myproject/bin`) tree? (The easier half of this is to do the actual copy; the harder half of this I'm guessing is checking for dependencies) How about: ``` <copy todir="my...
[ 0.21627451479434967, 0.10050517320632935, 0.21557080745697021, 0.05032223463058472, 0.22422507405281067, 0.019320204854011536, 0.29307442903518677, -0.3223509192466736, -0.09499932825565338, -1.051576018333435, 0.050681401044130325, 0.4688575863838196, -0.19309690594673157, -0.029193595051...
The lastest release (0.9 Stable) of the Dynamic Language Runtime contains IronPython and IronRuby, but it doesn't contain Managed JScript. Does anyone know where I can download the latest release of Managed JScript for use with ASP.NET and/or WPF? In case you aren't aware, JScript.NET and Managed JScript are too diff...
[ 0.0034747656900435686, 0.07337237149477005, 0.3520168364048004, -0.12030025571584702, -0.4680759310722351, -0.0379708968102932, 0.5058227777481079, -0.17758342623710632, -0.23685714602470398, -0.30040013790130615, 0.1669863909482956, 0.22852645814418793, -0.37137070298194885, -0.0548514313...
[Dynamic Language Runtime](http://dlr.codeplex.com) forum, had the following to say: > The DLR JScript was experimental for > informing the design of the DLR > (expression trees, interop, callsites, > hosting, etc.). The JS we released > with asp futures and the Silverlight > dynamic sdk became very old and > un...
[ 0.07414205372333527, -0.32337698340415955, 0.41840487718582153, -0.01873147301375866, -0.36230090260505676, -0.12707887589931488, 0.3467896282672882, 0.11718393862247467, -0.2477440983057022, -0.3578670918941498, -0.17308881878852844, 0.524205207824707, -0.5740352272987366, 0.0107253175228...
using native Jscript > (jscript.dll) with IActiveScript. > They’ll also continue to service > Jscript.NET, but they aren’t making > other commitments at this point. > > > Bill Considering the JScript.NET scripting API's are now all obsolete (though they are still present in .NET 2.0), there therefore appears to...
[ 0.6561004519462585, -0.05620408058166504, 0.4981909990310669, -0.134276881814003, -0.4011380970478058, -0.2313041388988495, 0.42904216051101685, -0.2263188362121582, -0.25457963347435, -0.6898203492164612, -0.11693044751882553, 0.733185887336731, -0.15717294812202454, 0.2901349663734436, ...
Other than MongoDB and Memcached, what key-value stores run on Windows? Most of the ones I've seen seem to only run on Linux (Hypertable, Redis, Lightcloud). Related links: [Is there a business proven cloud store / Key=>Value Database? (Open Source)](https://stackoverflow.com/questions/639545/is-there-a-business-p...
[ 0.2603292763233185, -0.27513107657432556, 0.08737547695636749, 0.3518471121788025, -0.05791274458169937, -0.11745074391365051, -0.06869599223136902, 0.02282515913248062, -0.49730944633483887, -0.4214639663696289, -0.16598019003868103, 0.4929358959197998, -0.3631102442741394, 0.306650340557...
I have this code that edits addresses in a game to get unlimited ammo and what not, and I found out that the addresses are different for every computer, sometimes every time you restart the game, so how would I manage making this work still even though they change. If you get the address you're looking for, and then se...
[ 0.5362812876701355, 0.31316614151000977, -0.01832403801381588, 0.29896578192710876, 0.3418411314487457, 0.15314587950706482, 0.09083513170480728, -0.10216807574033737, -0.26564887166023254, -0.6219581365585327, 0.28844425082206726, 0.4587748944759369, -0.018366029486060143, 0.1502293199300...
an address that does not change. Then, at runtime, you can use that as a starting point and dereference it to find the location you're looking for. Of course, that all depends on how the data is laid out internally. It can get very complicated.
[ 0.1633601039648056, 0.05243474990129471, 0.31441789865493774, 0.3217107951641083, 0.5014638304710388, -0.0782042145729065, 0.14827416837215424, 0.20157380402088165, -0.10893239080905914, -0.7380713820457458, -0.41463515162467957, 0.1001761183142662, 0.020317725837230682, 0.343306303024292,...
``` Imports System.Reflection Public Class Test Private Field As String End Class Module Module1 Sub Main() Dim field = GetType(Test).GetField("Field", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Instance) Dim test = New Test Dim GetValue = New Func(Of Test, String)(...
[ 0.1704902946949005, -0.16954772174358368, 0.3187201917171478, -0.26977303624153137, -0.05125276371836662, -0.008065817877650261, 0.4868430495262146, -0.5750532746315002, 0.060241274535655975, -0.17388328909873962, -0.5654339790344238, 0.7008622884750366, -0.5444456338882446, -0.05945093929...
value)) End Sub End Module Module Module2 Dim field = GetType(Test).GetField("Field", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Instance) 'Is Shared (Module) Sub Main2() Dim test = New Test Dim GetValue = New Func(Of Test, String)(Function(t As Test) field.GetValue(test)...
[ 0.2439977377653122, -0.22647126019001007, 0.6506494879722595, -0.2876265048980713, -0.021475128829479218, -0.27131351828575134, 0.5239243507385254, -0.7922772765159607, -0.08591961115598679, -0.22185251116752625, -0.4751477837562561, 0.7964946627616882, -0.4123375713825226, -0.139939084649...
does not compile is an issue of type inference and late binding. In the first example field is a local variable and hence can participate in type inference. The compiler will correctly deduce the type to be FieldInfo. This means the SetValue call is a statically typed call. It is a void returning method and is hence in...
[ 0.15996484458446503, -0.12062046676874161, 0.28639858961105347, -0.09846080839633942, -0.0402369424700737, -0.38199329376220703, 0.2563536465167999, -0.0650041401386261, 0.04314732179045677, -0.14193269610404968, -0.2622867524623871, 0.5346230268478394, -0.7591502070426941, 0.2928413152694...
is object, the SetValue call becomes a late bound call. All late bound calls are assumed to point to a function that has a return type of Object. At runtime if the function returns void, Nothing will actually be returned. So in this context it is a non-void returning expression and hence compiles. One option you have ...
[ -0.0952920988202095, -0.37866446375846863, 0.38558855652809143, -0.07356779277324677, 0.07233943045139313, -0.3104395866394043, 0.20993772149085999, -0.10409419238567352, 0.02662263996899128, -0.5370610952377319, -0.44266897439956665, 0.5864968299865723, -0.6548060178756714, 0.275721222162...
I have the following LINQ query: ``` DataClassesDataContext dc = new DataClassesDataContext(); var query = from contact in dc.Contacts select new { ContactId = contact.ContactId, LastName = contact.LastName, FirstName = contact.FirstName,
[ -0.1773010939359665, -0.05585412308573723, 0.5784088373184204, -0.0012034930987283587, 0.3006299138069153, -0.06260980665683746, -0.03770048916339874, -0.3791780173778534, -0.012328566052019596, -0.7477144002914429, -0.05648358166217804, 0.5168305039405823, -0.11345075815916061, 0.46306160...
Addresses = contact.Addresses, Phones = contact.Phones, DOB = contact.BirthDate, LastNote = contact.Notes.Max(n => n.Created), //this line causes the error Status = contact.ContactStatus.ContactStatusName,
[ -0.06137566268444061, -0.03576258569955826, 0.30326247215270996, -0.0086582712829113, 0.6399192214012146, 0.28626522421836853, 0.2506469190120697, 0.2453026920557022, -0.22414498031139374, -0.7060383558273315, 0.08650639653205872, 0.22176741063594818, -0.29818758368492126, 0.31035676598548...
EmailAddress = contact.Emails }; ``` The line where I get the maximum created date for the notes collection causes the following exception to be thrown: > Exception: The null value cannot be assigned to a > member with type System.DateTime which > is a non-nullable value type. How do I write the query...
[ -0.12163159251213074, 0.0971432775259018, 0.6071703433990479, -0.29199913144111633, -0.007533671334385872, -0.1294177770614624, 0.26151055097579956, -0.08037624508142471, -0.2147538959980011, -0.4547528624534607, -0.04077228158712387, 0.13713447749614716, -0.1926891803741455, 0.16925711929...
to a nullable DateTime it seems to eliminate the exception. The following change worked for me: ``` LastNote = (Nullable<DateTime>)contact.Notes.Max(n => n.Created) ``` As others have pointed out, it can also be written using the shorthand notation for a nullable DateTime as follows: ``` LastNote = (DateTime?) cont...
[ -0.1458638608455658, -0.06769268214702606, 0.34575602412223816, -0.2802306115627289, 0.03610539808869362, -0.27619606256484985, 0.22940334677696228, 0.49418163299560547, -0.3926493227481842, -0.42062100768089294, -0.06301751732826233, 0.0491563081741333, -0.4590635895729065, 0.431938707828...
Distilling this project down to the simplest of terms; 1. Users click a button, a record is made with a timestamp of NOW(). 2. NOW() of course equals the time on the server of record creation. 3. I need to show them stats based on their timezone, not mine. What is the best method for dealign with time zone offsets in...
[ 0.6008828282356262, 0.08846798539161682, 0.4716011583805084, 0.11936433613300323, 0.11460570245981216, 0.028826389461755753, -0.2101956456899643, -0.18325252830982208, -0.23089684545993805, -0.41459646821022034, 0.21522213518619537, 0.1911052167415619, 0.11808478832244873, 0.31580051779747...
WHERE (b_stamp >= DATE_SUB(NOW(), INTERVAL 7 DAY)) AND (user_id = '$user_id') GROUP BY week_day ORDER BY b_stamp DESC ``` I would rather not ask the user what time zone they are in, I assume JS is the only way to pull this data out of the browser. Maybe if they are on a mobile device, and this is not a we...
[ 0.5144132971763611, 0.09969533979892731, 0.7008338570594788, 0.01660788804292679, 0.2501364052295685, -0.12949219346046448, 0.0025163053069263697, -0.12113639712333679, -0.28855466842651367, -0.5555152297019958, -0.11072837561368942, -0.07462470233440399, 0.014858019538223743, 0.1919332891...
and set a variable to "server\_time" +/- their\_offset. This makes it appear as if the server is in a different location. I believe this would be best, as there would be no additional +/- logic I need to add to the code, muddying it and making it ugly. On the other hand, that puts the data in the database with time s...
[ 0.39194801449775696, -0.19347049295902252, 0.3170229494571686, -0.036282941699028015, 0.19027432799339294, -0.043887775391340256, 0.11481783539056778, 0.06908532977104187, -0.06841564178466797, -0.7900139093399048, 0.07108984142541885, 0.23823580145835876, -0.254848450422287, 0.34192273020...
I'm looking for a good character that means "end-of-story" in unicode. I remember seeing one once that looked like a fractal and was really cool. Does anyone know where I can find this character? More importantly, where can I go to find a unicode character with a special meaning when I don't know it's names? Google was...
[ 0.06944617629051208, 0.18778781592845917, 0.009498661383986473, 0.39937424659729004, -0.18990546464920044, -0.12685346603393555, 0.29718101024627686, 0.5179947018623352, -0.2368641495704651, -0.2235223799943924, -0.24213896691799164, 0.007964270189404488, -0.06294961273670197, 0.3597458600...
old books at the end of a verse in a poem, the end of a chapter or at the end of a story.* > > > Compare to U+17DA Khmer Sign Koomuut Btw: I found this with a Google Image Search on **`"end of story" unicode`**--It was the 4th result. That's probably the best way to search for any kind of symbol. Though without ...
[ 0.0391899049282074, 0.4056735634803772, 0.3707970380783081, 0.4778614044189453, -0.061519838869571686, -0.13827116787433624, 0.2666899859905243, 0.4263029098510742, -0.26444822549819946, -0.6259511709213257, -0.39528411626815796, 0.004988011438399553, 0.06196273863315582, 0.258936762809753...
I am just starting to lean MIPS assembly, and I am trying to write a simple `while` loop. It will be equivilent to the C code: `int A[5];` `for(i=0;i<5;i++) A[i]=i;` So I know I can use `beq` to make a `while` loop, but I don't know how to increment the memory address each time to go to the next register. I think ma...
[ 0.19388733804225922, 0.00450888741761446, 0.5522988438606262, -0.5510146021842957, 0.23522895574569702, 0.22911301255226135, 0.5351142883300781, 0.008705195039510727, 0.2118571251630783, -0.3462091386318207, -0.11668136715888977, 0.45686569809913635, -0.24900910258293152, 0.125096037983894...
$5, $6 ;add 1 to our counter bne $7, $6, loop ;we will stop at 5 ```
[ 0.4674229621887207, 0.2095174789428711, 0.6024511456489563, 0.006482942495495081, 0.04060805216431618, 0.4835180342197418, 0.20557790994644165, -0.1313791573047638, -0.25496092438697815, -0.3064730763435364, -0.027204623445868492, 0.3424973487854004, -0.24867121875286102, 0.307337671518325...
I'm in the process of writing a python script, and I want to find out information about a file, such as for example a mime-type (or any useful depiction of what a file contains). I've heard about python-magic, but I'm really looking for *the* solution that will allow me to find this information, without requiring the ...
[ 0.8666361570358276, 0.2132028192281723, -0.09773703664541245, -0.04798375442624092, -0.07611902803182602, -0.18136316537857056, 0.3733586370944977, 0.18494178354740143, -0.39048415422439575, -0.3556385636329651, 0.055281154811382294, 0.6391878128051758, 0.00967913493514061, -0.134917378425...
if you want to know mime type from file extension mimetypes module will be sufficient ``` >>> import mimetypes >>> mimetypes.init() >>> mimetypes.knownfiles ['/etc/mime.types', '/etc/httpd/mime.types', ... ] >>> mimetypes.suffix_map['.tgz'] '.tar.gz' >>> mimetypes.encodings_map['.gz'] 'gzip' >>> mimetypes.types_map['....
[ 0.26624739170074463, 0.10279561579227448, 0.07649800926446915, 0.0156567245721817, 0.08528248220682144, 0.23181778192520142, 0.2295951247215271, -0.27302369475364685, 0.01973850093781948, -0.798370361328125, -0.26952695846557617, 0.3838692605495453, -0.42304280400276184, -0.053743608295917...
According to everything I've seen, the following C++ program should be displaying a balloon tool tip from the tray icon when I left-click in the application window, yet it's not working. Can anyone tell me what I'm missing? This is on XP with version 6.0 of Shell32.dll (verified with DllGetVersion). Thanks! ``` ...
[ 0.09254691749811172, 0.07903239876031876, 0.5522591471672058, 0.17957423627376556, 0.01931505836546421, -0.1348341852426529, 0.3269110918045044, -0.2427954226732254, -0.3830548822879791, -0.447934091091156, -0.05099229887127876, 0.6318239569664001, -0.4419660270214081, 0.17776279151439667,...
WNDCLASS wc; memset(&wc, 0, sizeof(wc)); wc.lpfnWndProc = WndProc; wc.hInstance = hInstance; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wc.lpszClassName = "sysTrayTest"; RegisterClass(&wc); HWND hWnd = CreateWin...
[ -0.22672373056411743, -0.21039943397045135, 0.5516886115074158, -0.21345749497413635, 0.3097754120826721, -0.03445027396082878, 0.2675914466381073, -0.6017329096794128, -0.26706627011299133, -0.42412450909614563, -0.21210357546806335, 0.6110385060310364, -0.4334043860435486, 0.243422761559...
WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, 500, 500, NULL, NULL, hInstance, NULL); if
[ -0.15730232000350952, -0.22476541996002197, 0.4176448583602905, -0.14724114537239075, 0.17141121625900269, 0.1852044016122818, 0.25725221633911133, -0.40838658809661865, -0.21653927862644196, -0.19973841309547424, -0.16353774070739746, 0.24018900096416473, -0.2933982312679291, 0.3212848603...
(hWnd) { ShowWindow(hWnd, nCmdShow); while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); }
[ -0.1741524338722229, -0.20392930507659912, 0.4668922424316406, -0.30704742670059204, 0.07903912663459778, -0.19476917386054993, 0.6352692246437073, -0.09555256366729736, 0.23295173048973083, -0.6111521124839783, -0.5472595691680908, 0.30364274978637695, -0.48183673620224, 0.243258908390998...
} return 0; } LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_DESTROY: { NOTIFYICONDATA nid;
[ -0.02736908756196499, -0.47606557607650757, 0.1369321346282959, -0.19506944715976715, 0.371329665184021, -0.13255926966667175, 0.31759577989578247, -0.27095699310302734, 0.04924028366804123, -0.5299215912818909, -0.20219489932060242, 0.6025986671447754, -0.4269426465034485, 0.3124057948589...
memset(&nid, 0, sizeof(NOTIFYICONDATA)); nid.cbSize = sizeof(NOTIFYICONDATA); nid.hWnd = hWnd; nid.uID = 1; Shell_NotifyIcon(NIM_DELETE, &nid); PostQuitMessage(0);
[ -0.21018947660923004, -0.1911095678806305, 0.31460532546043396, -0.11239183694124222, 0.4733422100543976, -0.1721610426902771, 0.3728457987308502, -0.20957902073860168, 0.0012234372552484274, -0.5203214883804321, -0.4739322066307068, 0.4563449025154114, -0.18453359603881836, 0.360032349824...
} break; case WM_CREATE: { NOTIFYICONDATA nid; memset(&nid, 0, sizeof(NOTIFYICONDATA)); nid.cbSize = sizeof(NOTIFYICONDATA);
[ 0.10669806599617004, -0.3196236789226532, 0.020951680839061737, -0.09578802436590195, 0.5371960997581482, -0.2530757784843445, 0.6019812822341919, -0.24867944419384003, -0.18438272178173065, -0.4081597924232483, -0.3631429970264435, 0.2767780125141144, -0.24167338013648987, 0.2932257056236...
nid.hWnd = hWnd; nid.uID = 1; nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP; nid.uCallbackMessage = WM_USER + 200; nid.hIcon = LoadIcon(NULL, IDI_INFORMATION);
[ -0.3550148010253906, -0.4170694649219513, 0.6954375505447388, -0.01509323250502348, 0.0017802197253331542, 0.06723117083311081, 0.08240165561437607, -0.31630194187164307, -0.06485819816589355, -0.6363837718963623, -0.5387111902236938, 0.5327222347259521, -0.30839163064956665, 0.21117739379...
lstrcpy (nid.szTip, "Test Tip"); Shell_NotifyIcon(NIM_ADD, &nid); } break; case WM_LBUTTONDOWN: { NOTIFYICONDATA nid;
[ 0.07503620535135269, -0.4193112850189209, 0.21254616975784302, -0.19710072875022888, 0.48275062441825867, -0.217548206448555, 0.33160868287086487, -0.4443678557872772, 0.17421218752861023, -0.26268911361694336, -0.39903849363327026, 0.6679412722587585, -0.3008773624897003, 0.01443544868379...
memset(&nid, 0, sizeof(NOTIFYICONDATA)); nid.cbSize = sizeof(NOTIFYICONDATA); nid.hWnd = hWnd; nid.uID = 1; nid.uFlags = NIF_INFO;
[ -0.06258849799633026, -0.21591390669345856, 0.6454946398735046, 0.034359876066446304, 0.24739760160446167, -0.035331226885318756, 0.2497026026248932, -0.12901213765144348, -0.07463491708040237, -0.7290042042732239, -0.6231999397277832, 0.23711654543876648, -0.23140983283519745, 0.334999501...
lstrcpy(nid.szInfo, "Test balloon tip"); lstrcpy(nid.szInfoTitle, "Test Title"); nid.dwInfoFlags = NIIF_INFO; nid.uTimeout = 15000; Shell_NotifyIcon(NIM_MODIFY, &nid); }
[ 0.1642918884754181, -0.23137977719306946, 0.5349956750869751, 0.1556786596775055, 0.40665170550346375, 0.07517341524362564, 0.01977255381643772, -0.2968137860298157, 0.14060352742671967, -0.39265429973602295, -0.5893599390983582, 0.592917263507843, -0.18715757131576538, 0.20750725269317627...
break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; } ``` Bah, I figured it out. For some reason with the headers I have... sizeof(NOTIFYICONDATA) == 508 whereas... NOTIFYICONDATA`_`V3`_`SIZE == 504 NOTIFYICONDATA`_`V2`_`SIZE == 488 ...
[ 0.42780816555023193, -0.12562640011310577, 0.8094318509101868, 0.044916681945323944, 0.14235924184322357, -0.18058991432189941, 0.21179409325122833, -0.6481566429138184, -0.21930210292339325, -0.08802374452352524, 0.04149307683110237, 0.5349469184875488, -0.1297813355922699, -0.23128463327...
So i'm kinda into MS-DOS and such again, but i came to ask myself, How can i minimize a DOS window? Any kind would be ok, minimalize, shrink to a tiny blue block. I just can't seem to find a way to let it work on my Windows XP computer, is realy evrything excluded in XP?! One thing you could do is create a windows pro...
[ 0.07841788232326508, 0.027110330760478973, 0.4564512372016907, -0.13669715821743011, -0.18923628330230713, -0.10755180567502975, 0.17387908697128296, 0.08820758014917374, -0.07324378192424774, -0.9608801603317261, 0.13781937956809998, 0.550022304058075, -0.034028299152851105, 0.39157441258...
Something like this *totally untested* program: ``` int main(int argc, char** argv) { HWND wnd = FindWindow( NULL, argv[1] ); CloseWindow(wnd); return 0; } ``` Within the cmd window you could set the title to some string that you define (to avoid ambiguities) and then pass ...
[ 0.11252979189157486, -0.14403250813484192, 0.4736766517162323, 0.047157514840364456, 0.20004495978355408, -0.30015239119529724, 0.2313416749238968, 0.02054009400308132, -0.0627504512667656, -0.4575747847557068, -0.22947147488594055, 0.4714839458465576, -0.08039000630378723, 0.5437421202659...
> Duplicate > --------- > > > * [Managing date formats differences between PHP and MySQL](https://stackoverflow.com/questions/415092/managing-date-formats-differences-between-php-and-mysql) > * [PHP/MySQL: Convert from YYYY-MM-DD to DD Month, YYYY?](https://stackoverflow.com/questions/744010/php-mysql-convert-from-yy...
[ 0.023155363276600838, 0.20714043080806732, 0.9186399579048157, -0.16747808456420898, -0.39830800890922546, 0.22009094059467316, 0.0952523946762085, -0.007037721574306488, -0.3177868723869324, -0.5567554235458374, -0.06753303855657578, 0.2873644232749939, 0.005055139772593975, 0.47679245471...
$dateFormat='m/d/Y' Can any one guide me Thanks in advance Use `strtotime` to convert the strings into a Unix timestamp, then use the `date` function to generate the correct output format. Since you're using the UK date format "d/m/Y", and strtotime expects a US format, you need to convert it slighly differently: ...
[ 0.15574580430984497, -0.36611858010292053, 1.2418193817138672, -0.21750134229660034, 0.213837131857872, -0.06208900734782219, 0.0486193485558033, 0.001097850501537323, 0.21829211711883545, -0.4887044131755829, -0.3148379623889923, 0.3019309341907501, -0.1403317004442215, 0.2577906847000122...
I am involved with a software project written in Qt and built with qmake and gcc on Linux. We have to link to a third-party library that is of fairly low quality and spews tons of warnings. I would like to use -W -Wall on our source code, but pass -w to the nasty third-party library to keep the console free of noise an...
[ 0.7184059619903564, 0.34123072028160095, -0.19453459978103638, 0.06883442401885986, -0.07231158018112183, -0.4405483305454254, 0.18181602656841278, 0.34211769700050354, -0.08987501263618469, -0.3065478801727295, 0.22977986931800842, 0.5068295001983643, -0.36344629526138306, 0.1611593961715...
from 3rd party libraries, and you want to switch off the warnings for the latter. Kevin, i think you can use pragmas to control warnings : [gcc diagnostic pragmas](http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas "gcc diagnostic pragmas") You could add these before and after any ...
[ 0.28787994384765625, 0.17370735108852386, -0.13582316040992737, 0.2666243314743042, -0.19635896384716034, -0.24624194204807281, 0.10752330720424652, -0.08372606337070465, -0.34508761763572693, -0.2942369282245636, -0.042931340634822845, 0.733563244342804, -0.5678590536117554, -0.1468243151...
I work in a company doing C++ development on VC6, and we're considering a move to VS 2008. What are the benefits of upgrading? What are the cons? Any guides/steps on migrating project files, or gotchas I should be aware of? Are people ok with moving to the different development interface? For me, the biggest reason...
[ 0.2560725808143616, 0.21287906169891357, 0.5144833326339722, 0.0793403908610344, -0.28558430075645447, -0.2100529819726944, 0.25624901056289673, -0.06299497187137604, -0.15742798149585724, -0.6356869339942932, -0.013180789537727833, 0.933049738407135, 0.08592313528060913, 0.051679357886314...
upgrading. For example, improved standards compliance means that it may break some of your code which depended on non-standard behavior. No specific examples come to mind but I'm sure they're out there.
[ 0.556220293045044, 0.2096957415342331, 0.12547966837882996, 0.28491127490997314, -0.044874243438243866, 0.04720056429505348, 0.49681591987609863, 0.19588200747966766, -0.1954820603132248, -0.4313100278377533, 0.1972149908542633, 0.7231835126876831, 0.15136590600013733, -0.2127668261528015,...
Data in Table : ``` ItemCode ItemName ItemGroup SFD Softdrink NULL CCL Coco Cola SFD FNT Fanta SFD SPR Sprite SFD ACL
[ -0.16018836200237274, -0.0849602222442627, 0.19406798481941223, 0.14792264997959137, -0.36738401651382446, -0.012593909166753292, -0.23232907056808472, 0.35619306564331055, -0.2762220501899719, -0.09170866012573242, -0.5768987536430359, 0.15163089334964752, -0.4763278365135193, 0.102338925...
Alchol TQL Tequila ACL VDK Vodka ACL ``` When user find "Softdrink" then the result will be: ``` ItemCode ItemName SFD Softdrink CCL
[ -0.07799933850765228, 0.4058699309825897, 0.9872665405273438, 0.0012969122035428882, -0.42060962319374084, -0.09333605319261551, -0.389536052942276, 0.2016213983297348, -0.09476965665817261, 0.19517482817173004, -0.26330164074897766, 0.5052393674850464, 0.15419445931911469, 0.2814611494541...
Coca Cola FNT Fanta SPR Sprite ``` How could I do it? Thank you. Using thread-specific hooks via GetCurrentThreadId() and SetWindowsHookEx(), you can
[ 0.7098210453987122, 0.1687367707490921, 0.6264188289642334, 0.561654806137085, -0.36682799458503723, -0.23120492696762085, -0.12895189225673676, 0.44718626141548157, -0.1697201281785965, -0.2405824363231659, 0.2511831223964691, 0.4261339604854584, -0.21865104138851166, 0.2794228792190552, ...
hook the messages that MessageBox() receives internally, as well as gain access to the dialog's main window handle, which then gains you access to all of the child controls of the dialog. You can then customize the dialog and its control as needed. This technique is commonly used for implementing self-closing dialogs (...
[ 0.40597203373908997, -0.674094557762146, 0.35927698016166687, -0.20528459548950195, 0.23921465873718262, 0.3063685894012451, -0.1752496212720871, -0.19567228853702545, -0.29994910955429077, -0.49769094586372375, -0.06025198474526405, 0.48150303959846497, -0.3249191641807556, 0.065594114363...
I have a requirement where I have to fetch some records from the database and then I have to show 50 records per page on a JSP. The page will be having First, Previous, Next and Last buttons on the screen. Has anyone implemented similar functionality in struts or similar framework? also i dont want to get all records a...
[ 0.2229149341583252, 0.10825244337320328, 0.23117175698280334, 0.09364929050207138, -0.050510674715042114, -0.29187828302383423, 0.02549467794597149, -0.22833111882209778, -0.40964430570602417, -0.8601227402687073, 0.22960509359836578, 0.40767836570739746, -0.11724130064249039, 0.0203414130...
Has anyone written any code where the application in its lifetime learn and improve itself (using observed data stored in a KB),are there any frameworks for this? I wrote a learning `Tic Tac Toe` (or `Noughts and Crosses`) game once. Does that count? It basically maintained a 39 element array which was for each game s...
[ 0.20399776101112366, -0.08018135279417038, 0.07129083573818207, 0.22951343655586243, -0.047593723982572556, 0.16435110569000244, 0.17001941800117493, -0.2926943898200989, -0.296517938375473, -0.3282186985015869, 0.1819496601819992, -0.04368395358324051, -0.0650608092546463, -0.061364889144...
and choose the one with the highest score. It ended up getting quite good but not by playing a person, that was taking too long. It had to be set loose playing another copy of itself, a random bot and a hard-coded rule bot for many, many thousands of games. When I unleashed it, it had 10 starting levels of intelligen...
[ -0.06280024349689484, 0.12003548443317413, 0.08859158307313919, 0.3646560609340668, 0.10273285210132599, 0.05774559825658798, 0.007716312538832426, -0.01454596221446991, -0.1386486142873764, -0.3827510178089142, 0.21327868103981018, 0.08534593135118484, 0.12031996995210648, 0.0421694815158...
me at `Connect Four`, so maybe I should put some more pressure on him).
[ 0.4346252381801605, 0.048836033791303635, 0.4055604338645935, 0.15458020567893982, 0.00272849528118968, -0.030728623270988464, 0.2126152664422989, -0.0586988739669323, -0.31422701478004456, -0.3842206299304962, 0.014464818872511387, 0.6575276851654053, -0.217360258102417, 0.086754567921161...
(I know this is not a programming question per se, but it involves regular expressions, so at least it is borderline... ) The setup: Apache 2.0 with mod\_rewrite on Windows. Two domains, let's call them domain1.example and domain2.example. I would like to host both domains on the same server ("server1"), so I point t...
[ 0.06534383445978165, 0.029734445735812187, 0.5100546479225159, 0.05427824705839157, -0.23831327259540558, -0.535914421081543, 0.46357616782188416, -0.11696795374155045, -0.28488871455192566, -0.6349102854728699, 0.09544362872838974, 0.44806110858917236, -0.44972190260887146, 0.256760179996...
of course. Is this possible with mod\_rewrite (or Apache virtual hosts or other method), and how do I do it? \*\* The "subdirectory" in this case is not actually a file folder on disk, but a virtual folder made with the Apache "Location" directive. Thanks. I don't believe that you need to use mod\_rewrite, you shoul...
[ 0.3571314215660095, -0.005927523132413626, 0.4769267439842224, 0.25981977581977844, 0.20623210072517395, -0.5801056027412415, 0.31633201241493225, -0.03626488894224167, -0.20836511254310608, -0.8229373693466187, -0.19292831420898438, 0.5594862699508667, -0.09493228048086166, 0.424440532922...
documentation for [ServerAlias](http://httpd.apache.org/docs/2.2/mod/core.html#serveralias) and [DocumentRoot](http://httpd.apache.org/docs/2.2/mod/core.html#documentroot). Also note that if you want the directory to show up in the URL, you *will* need to use mod\_rewrite.
[ 0.2520291805267334, 0.0012719702208414674, 0.4365500211715698, 0.04863553121685982, 0.036497101187705994, -0.37058600783348083, 0.07976455986499786, -0.10918886214494705, -0.3202263116836548, -0.533402681350708, -0.2952820062637329, 0.4572395384311676, -0.13304585218429565, 0.1655395478010...
Sometimes when I run my code, a core dump file is generated when I terminate the program by `Ctrl`+`\`. The file name is of the form `core.*`. The program is not terminating abruptly, and there is no segmentation fault. I believe it is `SIGQUIT` and not `SIGABRT` or `SIGSEGV`. If I try `Ctrl`+`C`, or `Ctrl`+`Z`, then i...
[ 0.2904445230960846, 0.03821462765336037, 0.06235909089446068, 0.009362444281578064, 0.12356165051460266, -0.08942756056785583, 0.2422778308391571, 0.23871739208698273, -0.17315459251403809, -0.18347513675689697, -0.3365783393383026, 0.1566157341003418, -0.11860481649637222, 0.6601243019104...
operating system due to a fault in the program. The most typical reason this occurs is because the program accessed an invalid pointer value. Given that you have a sporadic dump, it's likely that you are using an uninitialized pointer. Can you post the code that is causing the fault? Other than vague generalizations ...
[ 0.37345531582832336, 0.08485347032546997, -0.3195802569389343, 0.3205556571483612, 0.38777196407318115, -0.4381798207759857, 0.3563213646411896, 0.42544370889663696, -0.46240729093551636, -0.4714914858341217, -0.28403204679489136, 0.2560499608516693, -0.3987886309623718, 0.2971624135971069...
I've got a simple structure **Widget (parent table)** * id (IDENTITY) * title **WidgetChild (child table)** - * id (foreign key to widget.id) * content On my View i have one field that captures the title, and another field that captures the content value. ``` <%= Html.TextBox("title") %> ``` and ``` <%= Ht...
[ 0.32532551884651184, 0.24855352938175201, 0.6726125478744507, 0.2332681268453598, 0.14235316216945648, -0.3203527331352234, 0.017569486051797867, -0.24990423023700714, 0.16328874230384827, -0.7501651048660278, 0.03241556137800217, 0.4717525541782379, 0.21278604865074158, 0.4683881402015686...
familiar with how UpdateModel could bind my form values especially if they span multiple tables/classes. You could use automatic model binding here. With a form like this: ``` <%using(Html.BeginForm("Update", "Home")) {%> <%=Html.TextBox("widget.Title") %> <%=Html.TextBox("childWidget.Content") %> <input ...
[ 0.06626390665769577, -0.29801902174949646, 0.705430269241333, 0.24428686499595642, 0.019431086257100105, -0.09135879576206207, -0.040705546736717224, -0.38047558069229126, -0.03817543387413025, -0.7293479442596436, 0.02081212028861046, 0.6035118699073792, -0.2887885272502899, 0.06171685457...
linq to sql data context in the normal way.
[ -0.21485579013824463, 0.04389222711324692, 0.48076754808425903, 0.17272986471652985, -0.004877408500760794, -0.2798945903778076, -0.22112490236759186, -0.06814021617174149, 0.06135128438472748, -0.24481721222400665, -0.2074788510799408, 0.4836660623550415, -0.1797592043876648, -0.309570312...
In PHP with DOM, I have a DomElement object which represents an <identity/> element. I have one case where I need to change this so its element name is <person/>, but keep the same child elements and attributes. What would be the simplest way of changing an element name of a DomElement and keeping its children and at...
[ 0.32505175471305847, -0.09000160545110703, 0.6212994456291199, -0.021318353712558746, 0.19473646581172943, 0.07125899195671082, -0.18056564033031464, -0.3806111812591553, -0.0990123525261879, -0.5711081027984619, -0.08755585551261902, 0.7242043018341064, -0.19333425164222717, 0.17910824716...
foreach ($node->childNodes as $child){ $child = $node->ownerDocument->importNode($child, true); $newnode->appendChild($child, true); } foreach ($node->attributes as $attrName => $attrNode) { $newnode->setAttribute($attrName, $attrNode); } $newnode->ownerDocument->replaceChild($ne...
[ -0.02008238434791565, -0.18212980031967163, 0.5298467874526978, -0.23065277934074402, 0.529394268989563, 0.27837908267974854, 0.03760689124464989, -0.48105016350746155, -0.03859949856996536, -0.7087724208831787, -0.29617181420326233, 0.6452971696853638, -0.14278513193130493, 0.282300829887...
used.
[ 0.029444191604852676, 0.2607365548610687, 0.04199570044875145, -0.0138969412073493, 0.06833245605230331, -0.21469835937023163, -0.15007804334163666, 0.008195114322006702, -0.08516599982976913, -0.7257461547851562, -0.568175196647644, 0.4610137641429901, -0.19684147834777832, 0.166054502129...
I'm trying to programmatically extract information from an Enterprise Architect model (saved in an [XMI](http://en.wikipedia.org/wiki/XMI) file) - I need it to generate some reports, but I don't want to go so far as to create an EA add-in. Is there a C# XMI parser library anywhere? I could of course generate XMI parsi...
[ 0.5775565505027771, 0.3218962550163269, 0.23895372450351715, 0.3548147678375244, -0.09064386785030365, -0.44992053508758545, -0.03402967378497124, -0.12283989042043686, -0.1743277907371521, -0.5311734676361084, -0.12132532149553299, 0.4904787540435791, -0.4119562804698944, -0.2695396244525...
use Automation interface (in C# you will need to import Interop.EA) to gain access to everything EA stores and also to diagrams that are generated.
[ 0.22137565910816193, 0.1154826357960701, 0.1660284399986267, 0.16589507460594177, 0.15321290493011475, -0.09398630261421204, -0.2415248304605484, -0.43745872378349304, -0.17057260870933533, -0.6831735372543335, -0.3277529180049896, 0.42787081003189087, -0.5370751619338989, -0.4484258890151...
Completely new to JQuery so I am learning everyday. One thing I noticed is how easy it is, you can just write ``` $('div#test).remove(); ``` But I am looking for an example on how to reuse some code, eg.: ``` function RemoveTableRow(row, id) { $(row).remove(); // id should be used for ajax call } ``` And...
[ 0.18883341550827026, 0.024110836908221245, 0.39394161105155945, 0.01633647084236145, -0.1509227305650711, -0.25405529141426086, 0.25937461853027344, -0.04773756116628647, -0.1589013934135437, -0.6351766586303711, 0.14021272957324982, 0.6898078322410583, -0.20406699180603027, -0.08423506468...
here. This is my current code, and I would like to know if its the best way of doing this. ``` function RemoveTableRow(row, id) { $.ajax({ type: "POST", url: "Default.aspx/DeleteEmployee", data: "{'ID':'" + id + "'}", beforeSend: function() {
[ -0.14329437911510468, 0.10442948341369629, 0.539263129234314, -0.32415616512298584, 0.28536200523376465, -0.26028817892074585, 0.2077857106924057, 0.12322144955396652, -0.04303230717778206, -0.5372502207756042, -0.2054513692855835, 0.5779650211334229, -0.2878258526325226, 0.223137781023979...
$("#" + row).animate({'backgroundColor':'#fb6c6c'},300); }, success: function() { $("#" + row).slideUp(300,function() { $("#" + row).remove(); });
[ -0.1311558187007904, -0.3020144999027252, 0.662190854549408, -0.24534961581230164, 0.18650701642036438, 0.3200802206993103, 0.14138008654117584, -0.4501374363899231, 0.113231360912323, -0.5304949283599854, -0.30082663893699646, 0.53579181432724, -0.49938714504241943, 0.06515185534954071, ...
} }); } ``` is user-row-1 the ID of the table row? If yes, than you are missing # in your selector ``` function RemoveTableRow(row, id) { $('#'+row).remove(); // id should be used for ajax call } ``` or without changing the function, call it with the complete selector ``` onclick="RemoveTableRow(...
[ -0.41540199518203735, 0.05357867851853371, 0.2688017189502716, -0.19550243020057678, 0.17537811398506165, -0.2186630219221115, 0.11410002410411835, -0.2176291048526764, -0.01172837894409895, -0.6113517880439758, -0.22431384027004242, 0.6271275877952576, -0.3635844886302948, 0.1153495088219...
I am new to Semantic Web. I want to start working on creating some basic RDF document and publish them to get a feel how it works.I found a lot of information about the concepts,vocabulary etc but I couldn't find any thing related to development as what is the development environment required, what are the tool require...
[ 0.8116310834884644, 0.10283033549785614, 0.27194955945014954, 0.024649808183312416, -0.059990737587213516, -0.2225400060415268, 0.05581580847501755, -0.02778928354382515, -0.10615650564432144, -0.6720701456069946, 0.1565454602241516, 0.5091390013694763, 0.060766614973545074, 0.157417550683...
its starts by explaining RDF, gives you a nice human readable notation for reference (N3) and then shows you how to put RDF into normal web pages using the RDFa attributes. I've also started publishing [my own RDFa](http://feelitlive.com/events/2008/11/12/WC1E/7HY/ULU/Nizlopi) about music events and found the [RDFa di...
[ 0.21356362104415894, 0.14051778614521027, 0.3865707218647003, -0.23515719175338745, -0.4883419871330261, -0.2674207091331482, 0.19869741797447205, -0.349835067987442, -0.09931080043315887, -0.34608951210975647, -0.00241975300014019, 0.5003220438957214, -0.09199345856904984, -0.078587032854...
its the most awesome :-)
[ 0.35551217198371887, 0.3007856607437134, 0.2600649893283844, 0.3887353241443634, 0.09125068783760071, -0.1753685176372528, 0.053952138870954514, 0.6065603494644165, 0.0007056276663206518, -0.2578359842300415, -0.14384788274765015, 0.30184900760650635, 0.28872939944267273, -0.11901117861270...
I've been using LaTeX for about 3-4 years now. In that time I've picked up what I've needed as I've needed it, most often by Googling. However, I'd like to learn some more advanced features of LaTeX such as editing or even creating my own class files and bibtex styles. I've worked with some fairly powerful class files ...
[ 0.650890588760376, 0.10132823139429092, 0.18048110604286194, -0.06150207668542862, 0.026532819494605064, 0.049858685582876205, 0.028657395392656326, 0.45149022340774536, -0.045107677578926086, -0.814367413520813, -0.053443364799022675, 0.7125498652458191, -0.13657481968402863, 0.0138653591...
files](http://www.tex.ac.uk/cgi-bin/texfaq2html?label=dtx) describing the LaTeX classes themselves. Your TeX distribution might not have shipped them, so get them from CTAN; the dtx files are usually stripped of comments before being installed, but you can compile them with LaTeX to get the comments and code nicely typ...
[ 0.3160002529621124, -0.029355837032198906, 0.4821189045906067, -0.22826717793941498, -0.028761453926563263, 0.25284892320632935, -0.008480887860059738, -0.02848859503865242, -0.25919434428215027, -0.3487825393676758, -0.29173022508621216, 0.5941267013549805, -0.229224294424057, 0.033323608...
Does MySQL allows to create database which has dot (`.`) in its name? I'm using MySQL 5.1.22. You can't use the dot in a database name. Also, I'd avoid using it in any identifier. A common convention is to use underscore instead. It will serve the same purpose and will avoid a LOT of confusion. If you **do** have a go...
[ 0.2704561650753021, 0.08627249300479889, 0.5439888834953308, -0.018105855211615562, 0.08772479742765427, -0.20954279601573944, -0.018113434314727783, 0.17002426087856293, -0.3052992522716522, -0.6585880517959595, -0.013994633220136166, 0.11989353597164154, -0.6665409207344055, 0.0926868021...
whether you *need* to is a good practice in my opinion, but that's another story.
[ 0.7232212424278259, 0.09980049729347229, -0.27379053831100464, -0.16985204815864563, -0.04386766999959946, 0.16165253520011902, 0.38382938504219055, 0.11314274370670319, -0.2963637709617615, -0.4310760796070099, 0.055149514228105545, 0.5862191915512085, 0.2426958978176117, -0.3361171483993...