text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
use them for connection pools (see my own Geniusql, for example) that you should be able to learn how to implement them fairly easily.
[ 0.7302802801132202, -0.07039125263690948, 0.16483494639396667, 0.45904964208602905, 0.15397967398166656, -0.33482468128204346, -0.23320834338665009, 0.37524423003196716, -0.3033457398414612, -0.6698517799377441, 0.24674946069717407, 0.17610755562782288, -0.05972906947135925, 0.138288408517...
I have an ASP.NET Datagrid with several text boxes and drop down boxes inside it. I want to read all the values in the grid using a JavaScript function. How do i go about it? And here's an example using Microsoft AJAX framework: ``` var txts = $get('client_id_of_datagrid').getElementsByTagName('input'); var ddls = $ge...
[ 0.2483718991279602, -0.2352169156074524, 0.5900135636329651, 0.07597889751195908, -0.11444582790136337, -0.227300763130188, 0.18530361354351044, -0.24973900616168976, -0.13283038139343262, -1.0200318098068237, -0.09671231359243393, 0.49364548921585083, -0.07819187641143799, -0.067890532314...
In ASP.NET MVC it's possible to choice between having a typed view were you define in the codebehind what kind of data the view can should expect. But it's also possible to not define this and just pass any kind of data to view in a ViewData container. What would the best model here or should I mix depending on what k...
[ 0.3053787052631378, -0.3488098680973053, 0.47289592027664185, -0.004567410796880722, -0.3667006492614746, -0.07686515152454376, -0.028836730867624283, -0.09599464386701584, -0.30091026425361633, -0.6461824774742126, 0.03431408479809761, 0.7797465324401855, -0.3163965940475464, 0.0169609617...
always using the strongly typed ViewData... that way you have compile time checking, intellisense, you don't have to do casting in your view, and the ability to refactor your code much easier.
[ 0.018703820183873177, -0.059700630605220795, 0.22637178003787994, 0.2727729380130768, -0.163638174533844, -0.11922261118888855, 0.11754424124956131, -0.145191490650177, -0.2624913454055786, -0.7792887687683105, 0.13034135103225708, 0.5900534987449646, -0.015447268262505531, -0.120010189712...
I have to create a dialog based application, instead of old CFormView type of design. But CDialog produces fixed-size dialogs. How can I create dialog based applications with resizable dialogs? In the RC resource file if the dialog has this style similar to this it will be fixed size: ``` IDD_DIALOG_DIALOG DIALOGEX 0,...
[ 0.37780168652534485, 0.24506688117980957, 0.7941619753837585, 0.05604438856244087, -0.1494816690683365, -0.09738113731145859, -0.05121598020195961, -0.3845469057559967, -0.4268481731414795, -0.6692643761634827, -0.07976415008306503, 0.6389790177345276, -0.5544132590293884, -0.1121104359626...
lot of work handling the **WM\_SIZE** message to manage the sizing an positioning of the controls within the dialog.
[ 0.24386624991893768, 0.08635477721691132, 0.03205376863479614, 0.23767156898975372, 0.0014825612306594849, 0.26419001817703247, 0.10383079946041107, -0.31517860293388367, -0.3028603792190552, -0.5165306925773621, 0.1512766182422638, 0.5585276484489441, -0.0855584442615509, -0.1346407979726...
I want to create a new net.tcp://localhost:x/Service endpoint for a WCF service call, with a dynamically assigned new open TCP port. I know that TcpClient will assign a new client side port when I open a connection to a given server. Is there a simple way to find the next open TCP port in .NET? I need the actual num...
[ 0.33924299478530884, -0.15793265402317047, 0.4183003604412079, -0.19201108813285828, 0.1388898491859436, -0.1758098155260086, -0.04988192766904831, 0.06268781423568726, -0.2113393396139145, -0.7258217334747314, 0.1366366595029831, 0.41269451379776, -0.5015921592712402, 0.34576547145843506,...
= new TcpListener(IPAddress.Loopback, 0); l.Start(); int port = ((IPEndPoint)l.LocalEndpoint).Port; l.Stop(); return port; } ```
[ -0.26132017374038696, -0.2724264860153198, 0.841167151927948, -0.4163595139980316, 0.4323204755783081, 0.2780150771141052, 0.30456873774528503, 0.0015550454845651984, -0.31511273980140686, -0.5999318361282349, -0.3169233798980713, 0.37247931957244873, -0.5243229866027832, 0.389554679393768...
Is there something like [Python's getattr()](http://effbot.org/zone/python-getattr.htm) in C#? I would like to create a window by reading a list which contains the names of controls to put on the window. There is also [Type.InvokeMember](http://msdn.microsoft.com/en-us/library/66btctbe.aspx). ``` public static class R...
[ 0.21924765408039093, -0.10941089689731598, 0.3846660256385803, -0.16442923247814178, -0.15472477674484253, -0.038262467831373215, 0.1470927596092224, -0.11356884986162186, -0.21645839512348175, -0.4031902253627777, -0.08473094552755356, 0.3315732479095459, -0.4792887270450592, -0.031172882...
BindingFlags.Public | BindingFlags.GetProperty; return type.InvokeMember(name, flags, Type.DefaultBinder, obj, null); } } ``` Which could be used like: ``` object value = ReflectionExt.GetAttr(obj, "PropertyName"); ``` or (as an extension method): ``` object value = ...
[ 0.017359787598252296, 0.09027320891618729, 0.6802133917808533, -0.20370441675186157, -0.16476993262767792, -0.14887255430221558, 0.3623114824295044, -0.5005162358283997, -0.19656066596508026, -0.44106653332710266, -0.47448471188545227, 0.5162768363952637, -0.6707615852355957, 0.44626593589...
In other words, a block of code like this: ``` (setq initial-major-mode (lambda () (text-mode) (font-lock-mode) )) ``` ... would come out looking like something like this: ![alt text](https://i.stack.imgur.com/kiaIG.gif) If something like this already exists, what is it? And if it doesn't exist, how ...
[ 0.32966339588165283, 0.23953288793563843, 0.19333891570568085, -0.2201804369688034, 0.07848216593265533, -0.15246586501598358, 0.4727782905101776, -0.04267934337258339, -0.24879565834999084, -0.7564646601676941, -0.3644854426383972, 0.33124443888664246, -0.46533074975013733, 0.087174892425...
I am searching for all drives and their contents. I don't want to search network drives. How can I determine if a given drive is network mounted? What I would want further is to get similar information one gets using NET USE command? You want the [GetDriveType](http://msdn.microsoft.com/en-us/library/aa364939.aspx) fun...
[ 0.5948731303215027, -0.0999520868062973, 0.4239836037158966, 0.39668595790863037, 0.008896557614207268, -0.39686673879623413, -0.09501297771930695, 0.13566192984580994, -0.19552958011627197, -0.533413290977478, -0.015166466124355793, 0.8059358596801758, -0.022840142250061035, 0.26390466094...
The questions says everything, take this example code: ``` <ul id="css-id"> <li> <something:CustomControl ID="SomeThingElse" runat="server" /> <something:OtherCustomControl runat="server" /> </li> </ul> ``` Now if an error gets thrown somewhere inside these controlls (that are located in a master pa...
[ -0.028998039662837982, -0.014427502639591694, 0.28756704926490784, 0.30439525842666626, -0.12488264590501785, -0.11172764748334885, 0.2129284292459488, -0.13005617260932922, -0.27130475640296936, -0.4991791546344757, -0.17540723085403442, 0.3906509280204773, -0.28313395380973816, 0.2832509...
Is there a way to emulate a disk drive in .NET, intercepting read/write/lock operations? I would like to create something with a front-end similar to [GMail Drive](http://en.wikipedia.org/wiki/GMail_Drive) in C#. Thanks, Tom I use the Eldos [Callback File System](http://eldos.com/cbfs/) myself for this purpose, but...
[ 0.36620333790779114, 0.24388934671878815, 0.0850934237241745, 0.37591421604156494, 0.01029235776513815, -0.1149987056851387, -0.11649798601865768, 0.43474483489990234, -0.17392665147781372, -0.5724781155586243, 0.4591997265815735, 0.7636973261833191, -0.05703247711062431, 0.079259246587753...
GWT's serializer has limited `java.io.Serializable` support, but for security reasons there is a whitelist of types it supports. The documentation I've found, for example [this FAQ entry](http://www.gwtproject.org/doc/latest/FAQ_Server.html#Does_the_GWT_RPC_system_support_the_use_of_java.io.Serializable) says that any ...
[ 0.3426591753959656, 0.0937667191028595, 0.5283569693565369, -0.417342871427536, -0.1532936543226242, -0.1287359893321991, 0.13795822858810425, -0.23501446843147278, -0.2724525034427643, -0.37509340047836304, -0.06815604120492935, 0.5670179128646851, -0.5292043685913086, 0.20502051711082458...
on the whitelist. How can I add this type to the list? Any specific types that you include in your service interface and any types that they reference will be automatically whitelisted, as long as they implement java.io.Serializable, eg: ``` public String getStringForDates(ArrayList<java.util.Date> dates); ``` Will ...
[ 0.24417869746685028, 0.01620234176516533, 0.3168405592441559, -0.2219349592924118, -0.03424903750419617, -0.22019845247268677, 0.2233693152666092, -0.14804188907146454, -0.41285884380340576, -0.7361675500869751, -0.28908300399780273, 0.2326229214668274, -0.6092002391815186, 0.2085715979337...
won't let you pass them through the RPC mechanism.
[ 0.7261988520622253, 0.2726697325706482, 0.5001547336578369, 0.1104854941368103, 0.30667832493782043, -0.11236529797315598, 0.20197081565856934, -0.15292759239673615, -0.2871127128601074, -0.2487214356660843, -0.00286023854278028, 0.1893368810415268, -0.1875433772802353, 0.22628085315227509...
Is there an app that can change the order of images inside an icon? Thanks! What you'll need to do that is a resource editor. A [google search](http://www.google.com/search?q=resource+editor&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a) will reveal many free ones out there. The [restorator](h...
[ 0.11152380704879761, -0.061594899743795395, 0.22857271134853363, 0.13307547569274902, 0.14810357987880707, -0.04175402224063873, -0.0013046598760411143, -0.04706820100545883, -0.6209671497344971, -0.6821110248565674, -0.04302618280053139, 0.7483941912651062, -0.5534558296203613, -0.0705201...
in whatever order you'd like.
[ 0.4685631990432739, 0.2898296117782593, -0.06547332555055618, -0.023767078295350075, -0.00808842945843935, -0.05588122829794884, 0.13895364105701447, 0.4329972565174103, -0.15688404440879822, -0.2760044038295746, -0.34963807463645935, 0.28236907720565796, -0.00018934473337139934, -0.108017...
I'd like to be able to create a large (say 20,000 x 20,000) pixel bitmap in a C++ MFC application, using a CDC derived class to write to the bitmap. I've tried using memory DCs as described in the MSDN docs, but these appear to be restricted to sizes compatible with the current display driver. I'm currently using a bi...
[ 0.4128744602203369, -0.022865524515509605, 0.40146154165267944, 0.16377298533916473, -0.026104481890797615, 0.2503925859928131, -0.3331354260444641, -0.019864821806550026, -0.20682670176029205, -0.9147565960884094, 0.26868870854377747, 0.32503652572631836, -0.34200024604797363, 0.118336692...
takes many millions of GDI calls to render. I could use a divide and conquer approach via multiple memory DCs, but it seems like a pretty cumborsome and inelegant technique. any thoughts? CDC and CBitmap appears to only support device dependant bitmaps, you might have more luck creating your bitmap with [::CreateDIBS...
[ 0.5380488038063049, 0.14420177042484283, 0.1482476145029068, 0.18180358409881592, -0.16135142743587494, 0.13039074838161469, 0.22311937808990479, -0.16900503635406494, -0.3515441119670868, -0.8561813831329346, 0.2413109540939331, 0.25743362307548523, -0.33175790309906006, 0.154778346419334...
16 bpp: ``` BITMAPINFOHEADER bmi = { sizeof(bmi) }; bmi.biWidth = 20000; bmi.biHeight = 20000; bmi.biPlanes = 1; bmi.biBitCount = 16; HDC hdc = CreateCompatibleDC(NULL); BYTE* pbData = 0; HBITMAP hbm = CreateDIBSection(hdc, (BITMAPINFO*)&bmi, DIB_RGB_COLORS, (void**)&pbData, NULL, 0); DeleteObject(SelectObject(hdc, hb...
[ 0.07763701677322388, 0.33476683497428894, 0.43802064657211304, 0.049961671233177185, 0.05880096182227135, 0.24026472866535187, 0.02765943855047226, -0.6854599714279175, -0.38352200388908386, -0.18887075781822205, -0.4644465744495392, 0.40841731429100037, -0.4398142099380493, 0.094285234808...
> **Possible Duplicate:** > > [Singleton: How should it be used](https://stackoverflow.com/questions/86582/singleton-how-should-it-be-used) Following on from Ewan Makepeace 's excellent earlier question about the Singleton pattern, I thought I would ask "when does the Community believe that it is appropriate to use...
[ 0.18458303809165955, -0.04020754247903824, 0.25410908460617065, -0.13130071759223938, -0.02599441632628441, 0.009762010537087917, -0.018832987174391747, -0.17819051444530487, -0.2752850651741028, -0.9177449345588684, -0.0026229405775666237, 0.5079588294029236, -0.2575061619281769, 0.233407...
method is very convinent. I also want to make sure that the icons are read once and only once (if would be very slow to read them from disk each time I needed one) Does the community believe this is an appropriate use of a Singleton? If not, how else might it have been implemented? What other valid uses of Singletons ...
[ 0.31050658226013184, 0.06534057855606079, 0.3519130051136017, 0.3754286468029022, -0.06869706511497498, 0.2004697024822235, 0.2185477912425995, -0.1314810961484909, -0.6603058576583862, -0.7414228320121765, 0.38771742582321167, 0.6449946165084839, -0.2915368378162384, -0.09187174588441849,...
factories and everything worked out fine. See also this thread: [Most common examples of misuse of singleton class](https://stackoverflow.com/questions/135347/most-common-examples-of-misuse-of-singleton-class)
[ 0.6130738258361816, -0.07626927644014359, -0.050987619906663895, 0.11045687645673752, 0.10299737006425858, 0.15943679213523865, 0.2484024167060852, 0.1495150774717331, -0.6756595373153687, -0.2756498456001282, -0.019304651767015457, 0.4000322222709656, -0.31660616397857666, 0.0872969999909...
I'm new to PHP and I'm confused seeing some examples calling a function with a @ prefix like @mysql\_ping(). What is it for? Googling / searching is not much of a help since @ gets discarded and 'alias' is not good enough keyword. @ suppresses errors, warnings and notices. You can use it for good purpose if you compl...
[ 0.5438146591186523, 0.010339871980249882, 0.18650966882705688, -0.0003575307782739401, -0.3189208507537842, -0.36846956610679626, 0.3330875337123871, 0.01891707442700863, -0.14124836027622223, -0.5899077653884888, 0.355562686920166, 0.526336133480072, -0.2848687469959259, 0.028006538748741...
without acting on them. More info at <http://www.php.net/manual/en/language.operators.errorcontrol.php>
[ 0.19154630601406097, 0.07064268738031387, -0.146913543343544, -0.22370974719524384, 0.12349649518728256, -0.01674283854663372, 0.972748875617981, -0.42581963539123535, -0.3035106062889099, -0.07040243595838547, -0.3817724585533142, 0.8635935187339783, -0.30148082971572876, -0.4081462323665...
I want to setup my local development machine so that any requests for `*.local` are redirected to `localhost`. The idea is that as I develop multiple sites, I can just add vhosts to Apache called `site1.local`, `site2.local` etc, and have them all resolve to `localhost`, while Apache serves a different site accordingly...
[ 0.2502919137477875, 0.31896066665649414, 0.6106755137443542, -0.32239553332328796, -0.022238528355956078, 0.047138795256614685, 0.4396832287311554, 0.18356718122959137, -0.15297041833400726, -0.9692362546920776, -0.019098574295639992, 0.8218742609024048, -0.16004306077957153, 0.47227415442...
is hard to remember which port is which. I don't want to have to setup a local DNS server or anything hard, any suggestions? Acrylic DNS Proxy (free, open source) does the job. It creates a proxy DNS server (on your own computer) with its own hosts file. The hosts file accepts wildcards. **Download from the offical w...
[ 0.21467681229114532, -0.062134407460689545, 0.959938645362854, 0.20117340981960297, -0.029902029782533646, 0.14268448948860168, -0.05577923730015755, 0.21477703750133514, -0.33351969718933105, -0.7355542182922363, 0.12708431482315063, 0.38205480575561523, -0.007208986207842827, 0.422468364...
the Acrylic DNS Proxy service:** 1. Start 2. Programs 3. Acrilic DNS Proxy 4. Config 5. Restart Acrylic Service **You will also need to adjust your DNS setting in you network interface settings:** 1. Start 2. Control Panel 3. Network and Internet 4. Network Connections 5. Local Area Connection Properties 6. TCP/IPv4...
[ 0.06385909020900726, -0.1526591032743454, 0.7158505916595459, 0.24246521294116974, -0.007100665010511875, 0.22999078035354614, -0.07987065613269806, 0.089597187936306, -0.10442811995744705, -0.403687983751297, -0.16418175399303436, 0.5840186476707458, -0.15659722685813904, 0.28607234358787...
I'm considering supporting both **[Textile](http://textism.com/tools/textile/)** and **[Markdown](http://daringfireball.net/projects/markdown/)** on a current project. I would prefer not forcing users to choose one or the other. Is there a way to auto-detect which the user is using? How would you go about this? I'd lik...
[ 0.9861741662025452, -0.11668968200683594, 0.12397850304841995, 0.044920340180397034, -0.4056141674518585, -0.20753981173038483, 0.32916340231895447, 0.031043127179145813, -0.28396186232566833, -0.7744910717010498, 0.198716938495636, 0.3319213092327118, -0.0879267007112503, -0.0606695823371...
element. It's pretty easy with things like headers, but consider that markdown formats `*this*` as `<em>this</em>` and Textile will convert that to `<strong>this</strong>` instead. So you'd have ambiguous syntax constructs that would yield different results in each language. I'd suggest going with a user choice. Try...
[ 0.41517090797424316, -0.21547141671180725, 0.07406506687402725, -0.0496247336268425, -0.32888370752334595, -0.014843652956187725, 0.17806221544742584, -0.2652052640914917, 0.011234795674681664, -0.6368262767791748, -0.13920405507087708, 0.5611478686332703, -0.3382750153541565, -0.109774038...
I use several referenced tables with integer primary keys. Now I want to change ints to GUIDs leaving all references intact. What is the easiest way to do it? Thank you! **Addition** I do understand the process in general, so I need more detailed advices, for example, how to fill new GUID column. Using default value...
[ 0.2012222856283188, 0.27726900577545166, 0.4871773421764374, 0.06536945700645447, -0.20907281339168549, 0.11719676107168198, 0.3292500078678131, -0.19821295142173767, -0.07955261319875717, -0.9906949400901794, 0.14272212982177734, 0.7399024963378906, -0.01031293161213398, 0.189458683133125...
to build the guild relationships using the exisitng int relationships to reference the entities. * Drop the original int columns. In addition, leave some space in your data/index pages (specify fillfactor < 100) as guids are not sequential like int identity columns are. This means inserts can be anywhere in the data r...
[ -0.1448514610528946, -0.2215980738401413, 0.30865418910980225, 0.08643714338541031, -0.09930064529180527, -0.012405972927808762, 0.47960996627807617, -0.17850883305072784, -0.38295087218284607, -0.7172418236732483, -0.030662210658192635, 0.4214767515659332, -0.13270503282546997, -0.1707435...
Is it possible for a stand alone executable to generate a report and output it as PDF (or one of the other export options available from the report viewer) without displaying the ReportViewer control? The report definition should be embedded in the executable and should not use the Reporting Services web service. Act...
[ 0.2094970941543579, -0.055969517678022385, 0.44495996832847595, 0.27413564920425415, -0.19622784852981567, -0.2532307803630829, 0.23746533691883087, -0.24347439408302307, -0.055357638746500015, -0.4514032304286957, -0.24882753193378448, 0.5512402653694153, -0.3222581446170807, 0.1092015728...
out warnings); // save byte[] to file with FileStream or something else ```
[ 0.3593287169933319, 0.059577565640211105, 0.4479946196079254, -0.25402557849884033, 0.24611486494541168, -0.09951549023389816, 0.30612561106681824, -0.06846360862255096, -0.30733877420425415, -0.411901593208313, -0.3624509871006012, 0.5267282724380493, -0.45721435546875, 0.1737207621335983...
I create a GUID (as a string) and get the hash of it. Can I consider this hash to be unique? Not as reliably unique as the GUID itself, no. Just to expand, you are reducing your uniqueness by a factor of 4, going from 16 bytes to 4 bytes of possible combinations. As pointed out in the comments the hash size will make...
[ 0.3825058043003082, 0.022338643670082092, 0.1285204291343689, 0.10297717899084091, -0.28236252069473267, -0.13697311282157898, 0.15481600165367126, 0.04345381632447243, -0.351784884929657, -0.5367738604545593, 0.18661391735076904, 0.44496387243270874, -0.22807009518146515, 0.25077155232429...
whatever byte size your hash may be.
[ 0.2330063432455063, 0.02976962924003601, 0.13130450248718262, -0.08956096321344376, -0.06391178071498871, -0.008143115788698196, -0.30326515436172485, 0.3601604402065277, -0.2954603433609009, -0.22112300992012024, -0.10682445764541626, 0.4011607766151428, 0.02484150044620037, 0.15127283334...
If you've worked on a project that stores data for use with the semantic web, do you use RDF or even OWL as the internal data format or do you have your own data model/ontology that you map to RDF for interoperability? If you use RDF, what are your experiences with implementing various things like cyclical class hier...
[ 0.26761341094970703, -0.11791478842496872, -0.45951858162879944, 0.17644691467285156, -0.4697112739086151, -0.13421116769313812, -0.08095236122608185, -0.09463557600975037, -0.3085286617279053, -0.3305608332157135, 0.14530634880065918, 0.47357177734375, -0.38884344696998596, -0.00164553336...
"next-bench" convenience. The various standards for the semantic web contain quite a bit of detail and complexity, and getting that right isn't an easy thing to do by yourself. I've come across a number of downloadable ontologies and other datasets that, for example, don't conform to the IRI spec. In an entirely self-c...
[ 0.10833986848592758, -0.06797055155038834, 0.07502983510494232, 0.42856237292289734, -0.05587955564260483, -0.20791427791118622, -0.20065273344516754, -0.13856977224349976, -0.05686663091182709, -0.6397885084152222, -0.0969134122133255, 0.6275556683540344, 0.3019099533557892, -0.0132569307...
data-interop and open data linking, in which case standards conformance is pretty central. Most of my data is in a triple store, but I do use custom tables as indexes for commonly asked queries. If you know the query pattern ahead of time, a well-indexed table in a good db engine is going to be hard to beat for a gen...
[ 0.0807468518614769, 0.12844862043857574, -0.14597101509571075, 0.047567903995513916, -0.649077296257019, 0.04805127903819084, 0.4375619888305664, -0.007045983802527189, -0.13842569291591644, -0.4155108332633972, 0.1214473620057106, 0.6002107262611389, -0.432707816362381, -0.006711732130497...
support in Javascript and Flex for when we're doing complex rich client interfaces. Ian
[ 0.024659136310219765, -0.05191955342888832, -0.2529502809047699, 0.020943475887179375, 0.048063844442367554, -0.14048829674720764, 0.0988534614443779, 0.23074553906917572, -0.1770351082086563, -0.9006235599517822, -0.31805843114852905, 0.5019814372062683, -0.029691819101572037, -0.19334942...
I have made a SVG image, or more like mini application, for viewing graphs of data. I want to include this in a HTML page, and call methods on the SVG image. Example: ``` <object id="img" data="image.svg" width="500" height="300"/> <script>document.getElementById("img").addData([1,23,4]);</script> ``` Is it at all ...
[ 0.3212907612323761, 0.11259311437606812, 0.6284782886505127, -0.13578194379806519, -0.254477858543396, -0.07147733122110367, 0.4114592969417572, -0.47857192158699036, -0.07415296137332916, -0.7432602643966675, -0.18960624933242798, 0.7410834431648254, -0.345059335231781, -0.070106402039527...
can use the `element.contentDocument` to access the document variable on the svg document. Any methods added to that, will be available.
[ 0.3934345245361328, -0.07465017586946487, 0.6145608425140381, 0.27578645944595337, 0.2447802722454071, -0.5516316294670105, -0.019572006538510323, -0.01903221569955349, -0.028796717524528503, -0.4385634660720825, -0.5804145336151123, 0.5521832704544067, -0.11535719782114029, 0.072049923241...
The CSRF prevention built in to Rails is causing some problems for some automated load testing we are doing, and I want to turn it off for the duration of the process. How do I do this? I love simple questions with clear answers. ``` #I go in application.rb self.allow_forgery_protection = false ``` If you want to do...
[ -0.004009445197880268, 0.3890403211116791, 0.19318456947803497, 0.023940203711390495, -0.4270215332508087, -0.5389670729637146, 0.6365332007408142, -0.32570046186447144, -0.1851254254579544, -0.6099120378494263, 0.17457595467567444, 0.6098824143409729, -0.21845832467079163, -0.055734924972...
documentation of core features in 2 year old blog posts, which were distilled from commit logs.)
[ 0.29259493947029114, 0.055961813777685165, 0.03639594092965126, 0.2388916164636612, 0.4814069867134094, -0.06773309409618378, 0.32555633783340454, -0.32703888416290283, -0.23399077355861664, -0.38168027997016907, -0.28046727180480957, 0.11045081913471222, 0.22084762156009674, -0.1978566944...
here is my directory structure. /user/a /user/b /user/b inside folder a,b,c there is a file person.java (it is the Same file, just a one line modification. now, on my shell, im on my /user/ directory and i try to do ``` javac */person.java ``` the shell returns the following error, person.java:14: duplicate ...
[ -0.30033180117607117, 0.17437593638896942, -0.10158544778823853, 0.018565107136964798, 0.1321258842945099, 0.14493414759635925, 0.34605643153190613, -0.05467846617102623, -0.2545054256916046, -0.633833110332489, 0.10582171380519867, 0.35777217149734497, -0.20895715057849884, 0.216037914156...
2 -exec javac {} \;`
[ -0.2618076205253601, 0.2574669122695923, 0.1738455593585968, -0.3338797390460968, 0.09512857347726822, -0.37573477625846863, 0.14643771946430206, -0.1019207239151001, 0.3420458137989044, -0.456447958946228, -0.5357087254524231, 0.46379390358924866, -0.7028920650482178, -0.14172488451004028...
After being troubled by [an issue](http://blogs.cozi.com/tech/2008/03/transparent-png.html) that I simply did not have the knowledge to debug, I've just decided that I *have* to learn how to use Windbg. My only problem: I have no clue where to start :-( I'm not really a WinApi-Guy, having use languages that abstract th...
[ 0.05812791362404823, 0.39435669779777527, 0.12952284514904022, -0.12090089917182922, -0.14352072775363922, -0.2927355468273163, 0.669022798538208, 0.09924362599849701, -0.0020532698836177588, -0.658724844455719, -0.04461284354329109, 0.22982661426067352, 0.28870728611946106, 0.080369479954...
Series)](https://rads.stackoverflow.com/amzn/click/com/0321374460) [![Advanced Windows Debugging](https://i.stack.imgur.com/27qDU.jpg)](https://i.stack.imgur.com/27qDU.jpg) (source: [knowfree.net](http://knowfree.net/wp-content/uploads/2008/02/032137446001l.jpg)) Also, for a great reference sheet, see [Common W...
[ -0.36515721678733826, 0.09581425786018372, 0.2861170172691345, -0.06297680735588074, -0.17450185120105743, -0.18355272710323334, 0.4211079776287079, -0.49465832114219666, -0.4052380919456482, -0.3111041486263275, -0.6024683117866516, 0.34894296526908875, -0.18173708021640778, 0.01835653185...
Or is it now the other way around? From what I've heard there are some areas in which C# proves to be faster than C++, but I've never had the guts to test it by myself. Thought any of you could explain these differences in detail or point me to the right place for information on this. There is no strict reason why a ...
[ 0.18589608371257782, -0.3094911277294159, -0.09127946943044662, 0.32302141189575195, -0.28241485357284546, -0.13997973501682281, 0.09842819720506668, 0.6231520175933838, -0.6479372978210449, -0.6383436918258667, 0.29411861300468445, 0.23594501614570618, 0.2469872683286667, -0.0036572185344...
is mainly due to the more advanced JIT optimizations being complicated to implement, and the really cool ones are only arriving just now. So C++ is faster, in many cases. But this is only part of the answer. The cases where C++ is actually faster, are highly optimized programs, where expert programmers thoroughly opti...
[ -0.03850734606385231, 0.19863472878932953, 0.06614857167005539, 0.40806373953819275, -0.17990131676197052, -0.26476216316223145, 0.3117074966430664, 0.22888420522212982, -0.35313716530799866, -0.654177188873291, -0.07359632849693298, 0.4444817006587982, -0.20383501052856445, -0.35511830449...
doing anything. And there are a lot of useful optimizations JIT compilers can do that are simply impossible in languages with pointers. Also, some argue that garbage collection should generally be as fast or faster as manual memory management, and in many cases it is. You can generally implement and achieve all of this...
[ 0.36388689279556274, 0.2024216204881668, -0.15194450318813324, 0.4255519211292267, 0.05255690589547157, -0.21505039930343628, 0.5585868954658508, 0.2521274983882904, -0.08488211780786514, -0.383937269449234, -0.1795477569103241, 0.4336094260215759, -0.30879831314086914, -0.17673259973526, ...
will be the bottleneck, and it's certainly going to be faster in C++, and you're sure that C++ won't conflict with your other requirements, go for C++. In any other case, concentrate on first implementing your application correctly in whatever language suits you best, then find performance bottlenecks if it runs too sl...
[ 0.08703528344631195, 0.13463371992111206, 0.21853557229042053, 0.16623525321483612, 0.11189024150371552, -0.02961748093366623, 0.2781915068626404, -0.0644979476928711, -0.03680271655321121, -0.7645565271377563, -0.4089285731315613, 0.9430704712867737, 0.012461220845580101, -0.4192871451377...
to optimize a correct program, but much harder to correct an optimized program.** Giving actual percentages of speed advantages is impossible, it largely depends on your code. In many cases, the programming language implementation isn't even the bottleneck. Take the benchmarks at <http://benchmarksgame.alioth.debian.o...
[ 0.12956978380680084, 0.16028861701488495, -0.008740960620343685, 0.31490984559059143, -0.022851310670375824, -0.013769629411399364, 0.2623668909072876, -0.03617030382156372, -0.015255236998200417, -0.6922942399978638, 0.1656184196472168, 0.7657523155212402, 0.14603616297245026, -0.32374647...
We're considering writing the next version of out project in using .Net 3, but are wondering if we can take the hit on forcing end users to install the .net framework version 3. If you want to ensure you are only using .NET 2.0 compatible functionality then you should only use .NET 2.0 assemblies. Then you know your sa...
[ 0.7554528117179871, 0.10863953083753586, 0.18056067824363708, -0.2794429063796997, -0.03943505138158798, -0.6708386540412903, 0.4766753911972046, -0.3026423156261444, 0.05394113063812256, -0.3616751730442047, 0.10244337469339371, 0.5193359851837158, -0.3995918035507202, -0.1051602065563201...
From within my Java program I want to determine which .NET Framework is installed on the system. What is the best (and easiest) way to do this? **Answer** Thanks scubabbl! It worked to check the directory `System.getenv( "WINDIR" ) + "\\Microsoft.NET\\Framework"` for its directories starting with the letter "v". From ...
[ 0.24167360365390778, 0.16385212540626526, 0.49781185388565063, 0.11850043386220932, -0.0697600468993187, -0.1746395081281662, 0.3650222718715668, -0.14178290963172913, -0.2071700245141983, -0.6842918395996094, 0.04282579571008682, 0.47820624709129333, 0.08079396933317184, 0.070407666265964...
key will have the value you are looking for. Edit: stackoverflow question regarding reading the registry with java. [read/write to Windows Registry using Java](https://stackoverflow.com/questions/62289/readwrite-to-windows-registry-using-java) This library <http://www.trustice.com/java/jnireg/> will allow you to read...
[ 0.0502590611577034, -0.06060624495148659, 0.3797919750213623, -0.11193567514419556, 0.020546095445752144, -0.4613416790962219, 0.3653515577316284, -0.3520658314228058, -0.08901004493236542, -0.6154555082321167, -0.033384762704372406, 0.748289167881012, -0.14974261820316315, -0.127024278044...
What is the best way to survey and detect bad users behavior or attacks like deny of services or exploits on my web app ? I know server's statistics (like [Awstats](http://awstats.sourceforge.net/)) are very useful for that kind of purpose, specially to see 3XX, 4XX and 5XX errors ([here's an Awstats example page](htt...
[ 0.5704260468482971, -0.169056236743927, 0.09200648963451385, 0.4126875102519989, -0.19140607118606567, -0.1864008903503418, 0.47336670756340027, -0.06686949729919434, -0.21204686164855957, -0.9375070333480835, 0.16182094812393188, 0.6512776017189026, 0.026548121124505997, -0.10493217408657...
the logs by hand, and find things that are uninteresting and write a parser that discards those log entries. Once you've done that, rinse and repeat until you're left with just the interesting things. Now that you have only interesting log entries to read, decide which ones are dangerous and which ones are harmless but...
[ 0.20367538928985596, 0.21973861753940582, -0.009209860116243362, 0.46268177032470703, 0.18577705323696136, -0.2235388457775116, 0.293716698884964, 0.1439903825521469, -0.21463459730148315, -0.5573821067810059, -0.3037482798099518, 0.9794292449951172, -0.07471416890621185, -0.03978733718395...
How would you go about producing reports by user selected date ranges in a rails app? What are the best date range pickers? edit in response to patrick : I am looking for a bit of both widget and active record advice but what I am really curious about is how to restfully display a date ranged list based on user selec...
[ 0.3038676679134369, -0.20950880646705627, 0.17799651622772217, 0.09883411973714828, -0.19540902972221375, -0.2613818645477295, 0.22967495024204254, -0.06250394135713577, -0.1491500437259674, -0.4788525402545929, 0.18448609113693237, 0.5145058035850525, -0.15599757432937622, -0.312070250511...
using a pair of the suckers when I need a range. 3) **Adapt a Javascript widget to Rails**: It is almost trivial to integrate something like the Yahoo UI library (YUI) [Calendar](http://developer.yahoo.com/yui/calendar/), which is all Javascript, to Rails. From the perspective of Rails its just another way to populate...
[ 0.1826617270708084, -0.2497967928647995, 0.5307855606079102, -0.012369440868496895, -0.5117983818054199, 0.2901037335395813, 0.1555045247077942, -0.4896300733089447, -0.29112061858177185, -0.580319881439209, -0.021440085023641586, 0.262344628572464, -0.16548992693424225, -0.168820396065711...
params["#{field_name.to_s}(3i)"].to_i) end #goes into view <%= date_select "report", "start_date", ... %> <%= date_select "report", "end_date", ... %> #goes into controller -- add your own error handling/defaults, please! report_start_date = build_date_from_params("start_date", params[:report]) report_end_date = ...
[ -0.23636113107204437, -0.16678793728351593, 0.6933006048202515, 0.01964818499982357, -0.1270994246006012, 0.0670778900384903, 0.29370659589767456, -0.6524338126182556, -0.7068185806274414, -0.4997958540916443, -0.3044070303440094, 0.3067770302295685, -0.2797403037548065, -0.088129229843616...
Javascript != trusted input. report_start_date = Date.parse(params[:report_start_date]) ``` Writing the call to ActiveRecord ================================ Easy as pie. ``` #initialize start_date and end_date up here, by pulling from params probably @models = SomeModel.find(:all, :conditions => ['date >= ? an...
[ -0.1568172127008438, -0.10548311471939087, 0.4615599513053894, -0.08884888142347336, 0.21129046380519867, -0.20718219876289368, 0.10819809883832932, -0.4140153229236603, -0.17429997026920319, -0.5749444365501404, -0.2774437665939331, 0.43266749382019043, -0.2348187416791916, -0.07124064117...
I have mixed data i nvarchar column (words and numbers). Which is fastest way to sort data in this column in Numeric Order. Result example: * 1 * 2 * 3 * ... * 10 * 11 * ... * aaaa * aaab * b * ba * ba * ... Use this: ``` ORDER BY CASE WHEN ISNUMERIC(column) = 1 THEN 0 ELSE 1 END, CASE WHEN ISNUMERIC(column)...
[ 0.18450523912906647, 0.31250497698783875, 0.5265406966209412, -0.33173462748527527, -0.23741202056407928, 0.18214160203933716, 0.30947160720825195, -0.364732027053833, -0.0325167290866375, -0.5407170057296753, 0.12440041452646255, 0.2869836688041687, -0.39130041003227234, 0.295242398977279...
produce a temporary result containing all the values of that column with some extra temporary columns for the ISNUMERIC results. It might not be fast to execute.
[ -0.25975415110588074, -0.3176954388618469, 0.4460938572883606, 0.27598220109939575, 0.0343809500336647, 0.2249346375465393, 0.05455520376563072, -0.1905127912759781, 0.09305824339389801, -0.3898176848888397, 0.036270610988140106, 0.23758967220783234, -0.23888666927814484, -0.15697370469570...
Is there an XSLT library that is pure Python? Installing libxml2+libxslt or any similar C libraries is a problem on some of the platforms I need to support. I really only need basic XSLT support, and speed is not a major issue. Unfortunately there are no pure-python XSLT processors at the moment. If you need somethin...
[ 0.359031081199646, 0.08387555181980133, 0.05914131924510002, 0.2293892204761505, -0.15699432790279388, -0.2653849422931671, 0.1658703237771988, 0.027683313935995102, 0.003076414344832301, -0.5464075803756714, 0.10447394102811813, 0.8772103190422058, -0.37671566009521484, -0.104617543518543...
of Python's functional capabilities to try and approximate the existing stylesheet or look into the feasibility of using Java instead.
[ 0.20385301113128662, -0.049338050186634064, -0.20293274521827698, 0.05908861383795738, -0.012289316393435001, 0.09242799133062363, 0.2655448317527771, 0.07200120389461517, -0.23763175308704376, -0.3472176492214203, -0.05588249862194061, 0.5511768460273743, -0.35487955808639526, -0.36069950...
I know there's some `JAVA_OPTS` to set to remotely debug a Java program. What are they and what do they mean ? I have [this article](http://www.eclipsezone.com/eclipse/forums/t53459.html) bookmarked on setting this up for Java 5 and below. Basically [run it with](http://download.oracle.com/otn_hosted_doc/jdeveloper/9...
[ 0.2379181832075119, 0.10168320685625076, 0.307336688041687, 0.05728965625166893, -0.08619404584169388, -0.31061434745788574, 0.3874795138835907, 0.08737459778785706, -0.307978093624115, -0.5186524987220764, 0.006797541864216328, 0.2203066051006317, -0.24473384022712708, 0.41287457942962646...
Are there good efficiency savings using Sql Server 2005 over Sql Server 2000? Or does it just have more services etc Has anyone seen their system work any quicker after making the upgrade? The surrounding tools such as Analysis Services were substantially rewritten and can get you a variety of wins depending on your ...
[ -0.2647090256214142, -0.051692117005586624, 0.4110868573188782, 0.330961138010025, -0.08421114832162857, -0.18865524232387543, 0.05844813585281372, -0.1264522224664688, -0.4318481683731079, -0.5126549005508423, 0.26051124930381775, 0.7269324064254761, 0.043389707803726196, 0.09975674003362...
a table as opposed to making partitioned views). 64-bit support is the most likely to give you a performance win on a large system as it allows you to set up much larger caches. Apart from those features I don't believe that there is really a large difference. There are probably minor performance tweaks. The main re...
[ -0.02505907416343689, -0.02644752524793148, 0.6289190649986267, 0.15848179161548615, -0.027594691142439842, -0.06517373025417328, 0.05970701202750206, 0.03983554244041443, -0.5792555212974548, -0.7303947806358337, 0.028816398233175278, 0.33870697021484375, -0.3355223536491394, 0.2743589282...
will get quite a few wins from moving to SQL2005. SSIS, SSAS2005 and SSRS2005 are much better than their SQL2000 counterparts.
[ -0.4448581039905548, -0.2009771466255188, 0.8167856931686401, 0.357512891292572, 0.10262995958328247, -0.38107091188430786, 0.02144172042608261, 0.05311863496899605, -0.4666469991207123, -0.8056631088256836, 0.06840541213750839, 0.0389559268951416, 0.22353358566761017, 0.1641869992017746, ...
Is there a way to create an html link using h:outputLink, other JSF tag or code to create a non faces request (HTTP GET) with request parameters? For example I have the following navigation-rule ``` <navigation-rule> <navigation-case> <from-outcome>showMessage</from-outcome> <to-view-id>/showMessa...
[ -0.09699364006519318, 0.07862687110900879, 0.8136922717094421, 0.03540823236107826, -0.281889945268631, -0.1564754992723465, 0.07895438373088837, -0.17861947417259216, -0.19651709496974945, -0.903324544429779, -0.044603120535612106, 0.2064584344625473, -0.30536994338035583, -0.129776224493...
to have all the urls defined in a single configurable file. This is an interesting idea. I'd be curious to know how it pans out in practice. **Getting the navigation rules** Navigation is handled by the [NavigationHandler](http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/application/NavigationHa...
[ 0.2324032187461853, 0.2651536762714386, 0.6834844350814819, 0.06112297251820564, -0.14146314561367035, -0.20239406824111938, 0.322389155626297, -0.37259405851364136, -0.3327503800392151, -0.9031846523284912, -0.031076695770025253, 0.5103456377983093, -0.1799955666065216, -0.379283159971237...
your own [FacesContext](http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/context/FacesContext.html) and pass it to the existing navigation handler (*really difficult to make two FacesContext object coexist in same thread and extremely inefficient*) Now, you have another problem too. Where are you...
[ 0.0037975884042680264, 0.07300184667110443, 0.48610416054725647, -0.20380939543247223, -0.32306480407714844, 0.09303759783506393, 0.2971270680427551, -0.21628312766551971, -0.3873513638973236, -0.9745342135429382, 0.046934206038713455, 0.33527418971061707, -0.33556193113327026, 0.132073715...
private String getView() { String viewId = "/showMessage.faces"; // or look this up somewhere return viewId; } /** * Regular link to page */ public String getUrlLink() { FacesContext context = FacesContext.getCurrentInstance(); ExternalContext extContext = context....
[ -0.06204548105597496, -0.28946733474731445, 0.9201755523681641, -0.14265727996826172, -0.21571098268032074, 0.23957641422748566, 0.4677026867866516, -0.11123593151569366, -0.18128657341003418, -0.7122125625610352, -0.3772696852684021, 0.6946930885314941, -0.4429805278778076, -0.14016412198...
navUrl = context.getExternalContext().encodeActionURL( extContext.getRequestContextPath() + viewId); return navUrl; } /** * Just some value */ public String getValue() { return "" + System.currentTimeMillis(); } /** * Invoked by action */ pub...
[ -0.19832155108451843, -0.4016110897064209, 0.5606139898300171, -0.30110281705856323, 0.2517682909965515, 0.34484928846359253, 0.664006769657135, -0.37367239594459534, -0.08300325274467468, -0.5189071297645569, -0.023238472640514374, 0.510902464389801, -0.2117217779159546, 0.402462422847747...
FacesContext context = FacesContext.getCurrentInstance(); ExternalContext extContext = context.getExternalContext(); String viewId = getView(); try { String charEncoding = extContext.getRequestCharacterEncoding(); String name = URLEncoder.encode("foo", charEncoding); ...
[ -0.2834659218788147, -0.06224692240357399, 0.8706681728363037, -0.25954049825668335, -0.030928637832403183, 0.37708818912506104, 0.6427658200263977, -0.25236013531684875, -0.03429253026843071, -0.5311330556869507, -0.3356375992298126, 0.6570589542388916, -0.39377033710479736, 0.00650095287...
+ viewId + '?' + name + "=" + value; String urlLink = context.getExternalContext().encodeActionURL( viewId); extContext.redirect(urlLink); } catch (IOException e) { extContext.log(getClass().getName()
[ -0.08490917831659317, -0.36118316650390625, 0.8296257257461548, -0.220090851187706, 0.1471310555934906, 0.33500394225120544, 0.3363039195537567, -0.2648521363735199, -0.06412398815155029, -0.4804421067237854, -0.3671135902404785, 0.667656421661377, -0.4523824155330658, -0.05118817463517189...
+ ".invokeRedirect", e); } return null; } } ``` **GET** For a GET request, you can use the UIParameters to set the values and let the renderer build the parameter list. ``` <h:outputLink value="#{navBean.urlLink}"> <f:param name="foo" value="#{navBean.value}" /> <h:outputText value="get...
[ 0.09186394512653351, -0.251512348651886, 0.7655417323112488, -0.08275245130062103, -0.4293254315853119, 0.23325292766094208, 0.33211249113082886, -0.5509848594665527, -0.3643401265144348, -0.6621071100234985, -0.40994584560394287, 0.48777085542678833, -0.23769471049308777, 0.02925760857760...
encode the string. This is good practice for producing code that is portable across contexts (portlets, etcetera). You would use *encodeResourceURL* if you were encoding a link to an image or download file.
[ 0.466063916683197, -0.09991733729839325, 0.006604160647839308, 0.06930403411388397, -0.0869847759604454, -0.261615514755249, -0.04779727756977081, -0.011741594411432743, -0.10157719254493713, -0.883698582649231, -0.3313501179218292, 0.12356770783662796, -0.4542527198791504, -0.087967082858...
I'm duty-bound by policy to use CVS in this certain project, so even though I'd really to switch to something else, like Git, I cannot. So, my real question goes like this: We have a convention that we create a new branch in CVS every time we make a release (we also tag, but that is besides the point). We call these v...
[ 0.591086208820343, -0.16912446916103363, 0.14101211726665497, -0.11362270265817642, 0.348756343126297, -0.31401702761650085, -0.08777311444282532, 0.44499799609184265, -0.5320260524749756, -0.16055521368980408, 0.014899753965437412, 0.3133794367313385, -0.06343270093202591, 0.2183340042829...
in Git, I'd be creating a feature-branch in the blink of an eye. However, working in CVS, I tried creating feature branches in another project and found that things quickly turned out messy. I ended up with lots of branches and I lost track of which branches were synched, which needed merging and which were no longer i...
[ 0.6292547583580017, -0.06487615406513214, 0.13471770286560059, 0.2729851007461548, 0.14157526195049286, -0.02484852448105812, 0.16907140612602234, 0.07984042912721634, -0.15556205809116364, -0.42126163840293884, 0.22585085034370422, 0.5195693373680115, 0.021926185116171837, -0.054690778255...
just start coding in HEAD but bend my coding process to introduce the changes in the most unobtrusive way possible? If you are the only one developing on the feature-branch, you could simply use Git as your "sandbox development" system and then once you have the changes done, merge them into your CVS repository. You s...
[ 0.7761934995651245, -0.1407301276922226, -0.07872620224952698, 0.050250113010406494, 0.26551106572151184, -0.10844346135854721, -0.018291432410478592, 0.055378507822752, 0.008403634652495384, -0.8288818597793579, 0.01480492576956749, 0.7499586343765259, 0.057941507548093796, -0.09389106929...
How unique is the php session id? I got the impression from various things that I've read that I should not rely on two users never getting the same sessionid. Isn't it a GUID? Session\_id can indeed be duplicated, but the probability is very low. If you have a website with a fair traffic, it may happens once in you we...
[ 0.29857543110847473, 0.184821218252182, 0.048766814172267914, 0.24452640116214752, -0.33715060353279114, -0.39909830689430237, 0.2016342282295227, 0.24501235783100128, -0.4047672152519226, -0.4797798693180084, 0.5736149549484253, 0.28927668929100037, -0.0005013718036934733, 0.3446931242942...
Is there any way to automatically wrap comments at the 80-column boundary as you type them? ..or failing that, any way to display a faint line at the coulmn 80 boundary to make wrapping them manually a little easier? Several other IDEs I use have one or other of those functions and it makes writing comments that wrap ...
[ 0.342405766248703, -0.21146631240844727, 0.4905714690685272, 0.035903140902519226, -0.4175785779953003, 0.07145371288061142, 0.050497278571128845, 0.07628893107175827, -0.31004831194877625, -0.6744356155395508, -0.046412836760282516, 0.8362756967544556, -0.3736714720726013, -0.172588020563...
Studio (2005-2010)?](https://stackoverflow.com/questions/100420/hidden-features-of-visual-studio-2005-2008) It shows how to do that: "Under "HKEY\_CURRENT\_USER\Software\Microsoft\VisualStudio\8.0\Text Editor" Create a String called "Guides" with the value "RGB(255,0,0) 79" to have a red line at column 80 in the text...
[ 0.2862144112586975, 0.04783807694911957, 0.6095927357673645, -0.14566168189048767, -0.1582861840724945, 0.02503936178982258, 0.04595080390572548, -0.35162752866744995, -0.396955668926239, -0.2554969787597656, -0.030181515961885452, 0.7009970545768738, -0.16421060264110565, -0.3978272378444...
I'm just meddling in the ways of the RESTful web service in C# using ASP.Net 2.0 and have managed (via a class library, a reference to dll produced by the former and some adjustment of my web.config) to coax out a URI format like so: http: //localhost/DevelopmentProject/testhandler/?input=thisismyinput Which unremark...
[ 0.21731451153755188, 0.2286502569913864, 0.06580349057912827, -0.03838244080543518, -0.2595311999320984, -0.2668386697769165, 0.17397378385066986, 0.35480797290802, 0.07121197879314423, -0.6133736968040466, -0.04326457902789116, 0.40439802408218384, -0.25962895154953003, 0.2147775590419769...
pesky "?input=" The entry to the httphandlers section of my web.config is (spaces added so code displays): < add verb="\*" path="testhandler/\*" type="HandlerLib.testhandler, HandlerLib"/ > I am running IIS 5.1 on the local machine, will this introduce a problem? Essentially where am I going wrong? Thanks. I kinda...
[ 0.20201973617076874, -0.013258601538836956, 0.08422514796257019, 0.11232956498861313, -0.06325884163379669, 0.125063955783844, 0.584208071231842, 0.024700678884983063, -0.016194256022572517, -0.6431168913841248, 0.2626025378704071, 0.30276185274124146, -0.11175134778022766, 0.0639333948493...
I'm trying to learn RegEx in Ruby, based on what I'm reading in "*The Rails Way*". But, even this simple example has me stumped. I can't tell if it is a typo or not: ``` text.gsub(/\s/, "-").gsub([^\W-], '').downcase ``` It seems to me that this would replace all spaces with `-`, then anywhere a string starts with a...
[ -0.26773566007614136, 0.26331818103790283, 0.4138118028640747, -0.08504065871238708, -0.1373312622308731, 0.04801848903298378, 0.6222212314605713, 0.03616102784872055, -0.08675763010978699, -0.8911264538764954, -0.4071095287799835, 0.38119328022003174, -0.3181256949901581, -0.0863808393478...
"-").gsub(/[^\W-]/, '').downcase => "--" ``` Missing // Although this makes a little more sense :-) ``` >> text.gsub(/\s/, "-").gsub(/([^\W-])/, '\1').downcase => "i-love-spaces" ``` And this is probably what is meant ``` >> text.gsub(/\s/, "-").gsub(/[^\w-]/, '').downcase => "i-love-spaces" ``` \W means "not ...
[ -0.2717556953430176, 0.3282434642314911, 0.6389135718345642, 0.0022759048733860254, -0.02214346081018448, 0.3458792567253113, 0.401299387216568, -0.08715897798538208, -0.17004936933517456, -0.6223761439323425, -0.9964034557342529, 0.23207366466522217, -0.5628613829612732, -0.14109505712985...
Since I upgraded to Visual Studio 2008 from vs2005, I have found a very annoying behaviour when debugging large projects. If I attempt to step into inline code, the debugger appears to lock up for tens of seconds. Each time that I step inside such a function, there is a similar pause. Has anyone experienced this and is...
[ 0.03574101999402046, 0.04252227395772934, 0.3700289726257324, -0.14039812982082367, -0.31545117497444153, -0.21815434098243713, 0.7432749271392822, -0.11380261927843094, -0.23440520465373993, -0.3811301589012146, -0.1840660721063614, 0.5630533695220947, -0.3924798369407654, -0.062650330364...
think it's a bug with the 'Autos' debug window: <http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/eabc58b1-51b2-49ce-b710-15e2bf7e7516/>
[ 0.4912222921848297, 0.043787408620119095, 0.24868376553058624, 0.07502606511116028, 0.40489301085472107, 0.13321511447429657, 0.4434853792190552, 0.51157546043396, -0.45225536823272705, -0.3949286639690399, 0.09469922631978989, 0.4688059091567993, -0.32613328099250793, 0.08099701255559921,...
We're currently planning a new `API` for an application and debating the various data formats we should use for interchange. There's a fairly intense discussion going on about the relative merits of `CSV`, `JSON` and `XML`. Basically, the crux of the argument is whether we should support `CSV` at all because of the la...
[ 0.6404287219047546, 0.5348851084709167, 0.15747492015361786, 0.28059330582618713, 0.08197655528783798, -0.17142359912395477, 0.016020527109503746, 0.042363401502370834, -0.2055623084306717, -0.5884878635406494, 0.0848580002784729, 0.5288285613059998, -0.15636000037193298, 0.101293705403804...
the developers working with our `API`. --- **Our decision:** > We've decided to provide `XML` and `JSON` due to the difficulty in recursion in `CSV` needing multiple calls for a single logical operation. `JSON` doesn't have a parser in `Qt` and `Protocol Buffers` doesn't seem to have a `non-alpha PHP` implementation...
[ 0.09009481966495514, 0.18828026950359344, 0.428701251745224, 0.16073782742023468, -0.24365298449993134, -0.3111799955368042, -0.008200572803616524, 0.05641411244869232, -0.05588342249393463, -0.8235867023468018, -0.2498694658279419, 0.5284820795059204, -0.176711305975914, -0.01001354865729...
languages and their core frameworks. JSON is getting there (if not already there). Personally, I like the brackets. I would bet more devs are comfortable with working with xml data than with json.
[ 0.06316571682691574, -0.03263005614280701, -0.004838316235691309, 0.35799819231033325, -0.3719581365585327, -0.22368165850639343, 0.14932994544506073, 0.40798088908195496, -0.42372962832450867, -0.600005567073822, -0.338837206363678, 0.5826096534729004, -0.15091967582702637, -0.25207310914...
When I save a file with an .htm or .html extension, which one is correct and what is different? Neither is wrong, it's a matter of preference. Traditionally, MS software uses `htm` by default, and \*nix prefers `html`. As oded pointed out below, the .htm tradition was carried over from win 3.xx, where file extensions ...
[ 0.2862170338630676, -0.023347660899162292, 0.5191395282745361, -0.035668279975652695, -0.20580647885799408, 0.1474229395389557, 0.01819385215640068, -0.08153137564659119, -0.09581360965967178, -0.5765331387519836, -0.5400285720825195, 0.3386722505092621, -0.28517547249794006, 0.17811147868...
I am looking for a free tool to quickly create a screen design in a workshop with a customer (for a web application). The focus of the tool should be on a functional definition of screens and not on the design of them. Do you have any suggestions for an appropriate tool? I've found [mockupscreens](http://mockupscree...
[ 0.873033881187439, 0.05337876081466675, 0.20611736178398132, 0.25815677642822266, -0.03816160932183266, 0.0636725202202797, -0.17528939247131348, 0.43834570050239563, -0.4009709358215332, -1.1198967695236206, 0.5290459394454956, 0.3028312623500824, 0.17251478135585785, -0.03638014569878578...
Dear Stacktoverflow, can you show me an example of how to use a QScrollBar? Thanks. It will come down to you using the QScrollArea, it is a widget that implements showing something that is larger than the available space. You will not need to use QScrollBar directly. I don't have a PyQt example but there is a C++ examp...
[ 0.4524339437484741, -0.036086659878492355, 0.3158177435398102, 0.23431943356990814, -0.25831136107444763, -0.08898504823446274, 0.02382531389594078, 0.17122894525527954, -0.20338459312915802, -0.7639793157577515, 0.31282275915145874, 0.6077324151992798, -0.3533632457256317, -0.021078962832...
Does anyone know how I can achieve the following effect in OpenGL: * Change the brightness of the rendered scene * Or implementing a Gamma setting in OpenGL I have tried by changing the ambient parameter of the light and the type of light (directional and omnidirectional) but the result was not uniform. TIA. Thanks ...
[ 0.1955917924642563, -0.1429317593574524, 0.28863123059272766, 0.11135571449995041, -0.2646525204181671, -0.22141851484775543, 0.49646249413490295, -0.0893963947892189, -0.09052231162786484, -1.0009973049163818, 0.09511920809745789, 1.169321894645691, -0.4255099594593048, -0.253492474555969...