text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
going to be lazy and use evaluated PHP for this logic, but my paranoid sense is kicking in. So the two alternatives I have found is the runkit\_sandbox but it doesn't support an interchange of objects between the primary thread and the sandbox ( just simple data types and arrays) OR using ecmascript as my game logic <h... | [
0.04683927074074745,
-0.16971465945243835,
0.18885165452957153,
0.06261738389730453,
-0.19892321527004242,
-0.20588907599449158,
0.19179216027259827,
0.06726644933223724,
-0.10624239593744278,
-0.6098163723945618,
0.2020828276872635,
0.7118551135063171,
-0.4891378879547119,
-0.002239026594... | |
but its still in beta state and I've yet to see how well it runs.
Is these it for options or is there something else out there I don't know about that might be a better choice? Environment: linux, PHP-CGI 5.3 or as a google app engine.
I wouldn't recommend evaluating user-contributed PHP-code -- even within a runkit ... | [
0.505115807056427,
0.1034812480211258,
-0.05021589249372482,
0.15032587945461273,
-0.04296789690852165,
-0.11723271012306213,
0.134614035487175,
0.44455066323280334,
-0.11560850590467453,
-0.5464543700218201,
0.1534200757741928,
0.552428126335144,
-0.15623633563518524,
0.02311101369559765,... | |
than javascript. [Lua](http://www.lua.org/) is a popular choice for these kinds of things. There is even a [php extension in pecl](http://pecl.php.net/package/lua), with bindings for it.
If you're going the runkit route anyway, you could look into a shared memory solution, such as [memcache](http://docs.php.net/manual... | [
0.26990288496017456,
-0.2072548121213913,
0.05253821611404419,
0.1190260499715805,
0.25024154782295227,
-0.14668413996696472,
-0.1571889966726303,
0.05354249104857445,
-0.3250741958618164,
-0.5902411341667175,
-0.17508627474308014,
0.27696657180786133,
-0.2630739212036133,
-0.0191031433641... | |
Is there anything built into Windows and the .Net framework for programmatically installing and executing applications remotely? Ie: an API for remote software deployment. I'd like to build a tool that can install services on a pool of new computers from one central admin workstation.
Update: The computers are part of... | [
0.5649719834327698,
0.3968959152698517,
0.3061007857322693,
0.18945005536079407,
0.11990314722061157,
-0.031134802848100662,
0.004813709296286106,
-0.07035885006189346,
-0.01699722930788994,
-0.31618666648864746,
-0.17261655628681183,
0.5888685584068298,
0.000173881184309721,
0.02443015389... | |
then the same as our set up at work.
We use group policy to set firewall configuration on members computers, this opens the DCOM port because it is required to allow 'Offer Remote Assistance' to work. Obviously our network is seperated from the internet by a firewall which does NOT allow this type of traffic in!
The DC... | [
0.500913679599762,
0.078255295753479,
0.6302674412727356,
0.23574742674827576,
0.1491372287273407,
-0.6049543023109436,
0.1072828397154808,
-0.09621313214302063,
-0.09800968319177628,
-0.3866598904132843,
0.007779443636536598,
0.7017933130264282,
-0.09984192997217178,
0.18166401982307434,
... | |
it onto a remote machine and then run it. You should also be able to then remotely start the service using WMI.
You should try Group policy first. We use it at work to do several software deployments and it works. We failed to make it deploy a .net written service though, and we also have an alternative in-house syste... | [
0.28074800968170166,
-0.23947180807590485,
0.3401459753513336,
0.1527380496263504,
0.3351665139198303,
-0.4721760153770447,
0.18672806024551392,
-0.05583129823207855,
-0.15945835411548615,
-0.5510448813438416,
-0.03410441055893898,
0.4274422228336334,
0.09138652682304382,
-0.27127149701118... | |
organisation can afford it then I expect it would be better than an in-house system. | [
0.6136602163314819,
0.2898930609226227,
0.11813241988420486,
-0.06456571072340012,
0.03247808292508125,
-0.1468658745288849,
0.14067263901233673,
0.19239532947540283,
-0.3512541651725769,
-0.8031943440437317,
-0.03758586198091507,
0.5078451633453369,
0.23368018865585327,
-0.278862923383712... | |
Is there explicit support for Single Table Inheritance in Django? Last I heard, the feature was still under development and debate.
Are there libraries/hacks I can use in the meantime to capture the basic behavior? I have a hierarchy that mixes different objects. The canonical example of a corporation structure with ... | [
0.2728162705898285,
0.3173576891422272,
-0.3055756092071533,
0.07200876623392105,
0.005811010953038931,
-0.21276070177555084,
-0.0855688527226448,
0.059691984206438065,
-0.36843040585517883,
-0.5583568215370178,
0.14141246676445007,
0.5152183771133423,
-0.3730418384075165,
0.24851642549037... | |
not separate classes for Manager and Worker, which makes this hard to spread across tables. Sub-classes would represent types of employees-programmers, accountants, sales, etc and would be independent of who supervises who (OK, I guess it's no longer a typical corporation in some respect).
There are currently two forms... | [
0.6487696766853333,
0.2520700991153717,
-0.0059186373837292194,
-0.07731939852237701,
-0.23115821182727814,
-0.34510618448257446,
0.086708664894104,
-0.35594800114631653,
-0.20587876439094543,
-0.06687139719724655,
0.24886690080165863,
0.6094114184379578,
-0.23808486759662628,
0.3561431467... | |
A couple of weeks ago, my piano teacher and I were bouncing ideas off of each other concerning meta-composing music software. The idea was this:
There is a system taking midi input from a bunch of instruments, and pushes output to the speakers and lights. The software running on this system analyzes the midi data it's... | [
0.12375375628471375,
0.12730582058429718,
0.28494563698768616,
-0.040405597537755966,
0.1297229826450348,
0.3507061004638672,
-0.22743545472621918,
-0.213934987783432,
0.08892332017421722,
-0.5407474040985107,
0.23874831199645996,
0.6019390225410461,
-0.020125113427639008,
0.14456473290920... | |
control the lights based on the performance and sounds of the instruments in a similar fashion - the musician would only have to vaguely specify what they wanted - and real time analysis of their playing would do the rest. On the fly procedurally generated music could play along with the musician as well. Essentially, ... | [
0.48277556896209717,
-0.25535714626312256,
0.40553033351898193,
0.44851651787757874,
-0.15639370679855347,
-0.1841742843389511,
-0.4503015875816345,
-0.04153178259730339,
0.07913074642419815,
-0.21795812249183655,
0.18910416960716248,
0.8565290570259094,
-0.4082844853401184,
-0.20916637778... | |
improv that is lacking from other art forms is the temporalness of it. A painting can be appreciated 10 or 1000 years after it has been painted, but music (especially extemporized music) is about the performance as it is the creation. I think that the software that I described would add a great deal to the performance,... | [
0.6596232652664185,
0.06993277370929718,
0.060230281203985214,
0.09880061447620392,
0.03931102529168129,
-0.15635843575000763,
0.0783170685172081,
0.27946215867996216,
0.00481690326705575,
-0.5680838823318481,
0.2784307301044464,
0.741865873336792,
0.021111605688929558,
-0.0706448927521705... | |
The key to this system is that it is running during the performance.
Were I to write something like this, would a scripting language such as Python be fast enough to do the computations that I need? Presumably it'd be running on a fairly quick system, and could take advantage of the 2^n core processors Intel keeps rel... | [
0.3399439752101898,
0.1867956966161728,
0.05919962003827095,
0.24738959968090057,
0.13351322710514069,
-0.23998937010765076,
0.29384154081344604,
0.5577232837677002,
-0.12661495804786682,
-0.517803966999054,
0.1783466935157776,
0.6201228499412537,
0.16494415700435638,
-0.12118843197822571,... | |
the tags, I couldn't resist.)
People have used [Max MSP](http://www.cycling74.com/products/max5) to do this kind of thing with Midi and creating video accompaniment, or just Midi accompaniment. It's a completely domain specific app, that probably was inspired by small talk or something, which barely any real programmer... | [
0.6424877643585205,
-0.027527570724487305,
0.4442368149757385,
0.15539494156837463,
0.06586726009845734,
-0.12580551207065582,
-0.12807588279247284,
-0.002256126143038273,
-0.11704973876476288,
-0.004891684278845787,
0.11279123276472092,
0.4002571702003479,
-0.1821916401386261,
0.261477738... | |
to be real-time, but is likely able to be pretty real-time now that you have a decent computer compared to where CSound started.
Some people have also hacked Macromedia Director extensions to allow for doing midi stuff in Lingo... That's very outdated, and hence some of them have moved to [more modern](http://www.adob... | [
0.08849959820508957,
-0.2943953573703766,
0.585217297077179,
0.1518479585647583,
0.06750063598155975,
-0.39146000146865845,
0.2786163091659546,
0.03506007045507431,
-0.22234877943992615,
-0.5994965434074402,
-0.16214747726917267,
0.5801720023155212,
-0.2824263274669647,
-0.1615424156188964... | |
What are some good suggestions or resources to look at to help me secure a single click URL based authentication?
Essentially, the situation is a third party system which accepts an HTTPS request, through the browser, where you supply authentication information (un, pw, authkey, etc...). The service then, upon authen... | [
0.3726125657558441,
0.10651396214962006,
0.41770505905151367,
0.11571311950683594,
0.0005444952403195202,
-0.3991057872772217,
0.510209321975708,
0.24568159878253937,
-0.21684569120407104,
-0.5000943541526794,
-0.10170305520296097,
0.26692333817481995,
-0.17658236622810364,
0.3441293239593... | |
yet) and the third party is willing to make some modifications to secure this up a bit.
I've already determined I need to hash the information, and probably even submit it via a POST to prevent it from showing information in the browser history. But I'd like a little input on how you all would handle something like th... | [
0.7099823355674744,
-0.00410349341109395,
0.4741198718547821,
0.2729477286338806,
0.015560843981802464,
-0.36984890699386597,
0.5218787789344788,
-0.10202129185199738,
-0.21139885485172272,
-0.5643782019615173,
0.02213478833436966,
0.3993615210056305,
-0.11350498348474503,
0.00528634153306... | |
you dearly.
2. Look at [HTTP Digest Authentication](http://en.wikipedia.org/wiki/Digest_access_authentication). It's simple, reliable and works well under most circumstances.
3. Look at the [OWASP.org](http://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project) top-10 vulnerabilities. Be sure you understand and addr... | [
0.23633351922035217,
-0.026346053928136826,
0.33529675006866455,
0.21973910927772522,
0.14284569025039673,
-0.04224631190299988,
0.12379658967256546,
0.18066565692424774,
-0.19814544916152954,
-0.39443135261535645,
0.0007470592972822487,
0.8518325090408325,
0.020290913060307503,
0.06763388... | |
I'm developing an algorithm to parse a number out of a series of short-ish strings. These strings are somewhat regular, but there's a few different general forms and several exceptions. I'm trying to build a set of regexes that will handle the various forms and exceptions; I'll apply them one after another to see if I ... | [
0.4119189977645874,
0.34028586745262146,
0.16666781902313232,
0.21467851102352142,
-0.05924707278609276,
0.054338354617357254,
-0.01682254858314991,
0.03238855302333832,
-0.12600503861904144,
-0.3667502701282501,
-0.14239537715911865,
0.18507806956768036,
-0.4153520464897156,
0.25528234243... | |
length and content, surrounded by parenthesis.
Also: `Y` is optional; it doesn't always appear in a string with `Z` and `X`. So, I want to be able to extract the numbers from all of these strings:
* `10 Z`
* `20 (foo) Z`
* `30 (bar) Z`
Right now, I have a regex that will capture the first one:
```
([0-9]+) +Z
```
... | [
-0.0008674059063196182,
0.19727669656276703,
0.47022950649261475,
0.04210962355136871,
-0.033436913043260574,
0.23246890306472778,
0.029437441378831863,
-0.2900764048099518,
-0.040529269725084305,
-0.3816157877445221,
-0.23613618314266205,
0.5618512034416199,
-0.14365360140800476,
-0.02124... | |
of the groups you don't want to capture can be (`?:` non-capture groups).
I agree about the spaces. `\s` is a better option there. I also changed the quantifier to insure there are digits at the beginning. As far as newlines, that would depend on context: if the file is parsed line by line it won't be a problem. Anoth... | [
-0.03345656022429466,
-0.1890605241060257,
0.22037124633789062,
0.06956484913825989,
0.12523828446865082,
0.146641343832016,
-0.2169473022222519,
-0.14381687343120575,
-0.21107959747314453,
-0.34496060013771057,
-0.3708203434944153,
0.31396788358688354,
-0.44978561997413635,
-0.25700002908... | |
Here's what [MSDN has to say under *When to Use Static Classes*](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/static-classes-and-static-class-members):
> ```
> static class CompanyInfo
> {
> public static string GetCompanyName() { return "CompanyName"; }
> public static... | [
-0.15263500809669495,
-0.009834455326199532,
0.45294544100761414,
-0.1542683094739914,
0.28834250569343567,
-0.11819405108690262,
-0.18381647765636444,
0.21020174026489258,
-0.19851015508174896,
-0.4782232940196991,
-0.17348501086235046,
0.2015659511089325,
-0.40978166460990906,
0.16830061... | |
is useful to organize the methods
> inside the class in a meaningful way,
> such as the methods of the Math class
> in the System namespace.
To me, that example doesn't seem to cover very many possible usage scenarios for static classes. In the past I've used static classes for stateless suites of related functions... | [
-0.1687907725572586,
-0.2441221922636032,
-0.20055168867111206,
0.05299953371286392,
-0.3022631108760834,
-0.005604874342679977,
0.4223335385322571,
0.046332430094480515,
-0.32892173528671265,
-0.3472661077976227,
0.005386177450418472,
0.16353365778923035,
-0.24222992360591888,
0.003043890... | |
They made a great consolidation of helper methods that would otherwise lie around causing redundancy and maintenance hell. They're very easy to use, no instantiation, no disposal, just fire'n'forget. I guess this was my first unwitting attempt at creating a service-oriented architecture - lots of stateless services tha... | [
0.4771752953529358,
-0.0037044414784759283,
0.03779061883687973,
0.3185020089149475,
-0.095396026968956,
0.11103598773479462,
0.49213361740112305,
0.21137787401676178,
-0.3888857066631317,
-0.6555661559104919,
0.09491916745901108,
0.3370617628097534,
0.060831356793642044,
0.212698251008987... | |
been a static method, we could make a derivate class and change the method contents as needed. As it's a static method, we can't. Sure, if we just need to add functionality either before or after the old method, we can create a new class and call the old one inside of it - but that's just gross.
**Interface woes**
St... | [
0.32634440064430237,
-0.10616839677095413,
0.10447816550731659,
0.17945705354213715,
-0.34566596150398254,
-0.11360681802034378,
0.367484450340271,
0.12208710610866547,
-0.4023045599460602,
-0.3819639980792999,
0.15494588017463684,
0.4494175612926483,
-0.31792351603507996,
0.52283310890197... | |
a strategy pattern. We might patch some issues up by [passing delegates instead of interfaces](https://learn.microsoft.com/archive/blogs/kirillosenkov/how-to-override-static-methods).
**Testing**
This basically goes hand in hand with the interface woes mentioned above. As our ability of interchanging implementations ... | [
0.3733297288417816,
-0.06192616745829582,
-0.047372620552778244,
0.27470749616622925,
-0.21610793471336365,
-0.1321541965007782,
0.44569283723831177,
-0.0670255646109581,
-0.011131453327834606,
-0.8322522044181824,
0.008519206196069717,
0.2681688070297241,
-0.2892735004425049,
0.0032324099... | |
up with non-coherent functionality - ideally, each class should have a single purpose within the system. I'd much rather have a five times the classes as long as their purposes are well defined.
**Parameter creep**
To begin with, that little cute and innocent static method might take a single parameter. As functional... | [
0.4416626989841461,
0.03504385054111481,
0.29240185022354126,
0.31901848316192627,
0.05344056338071823,
0.04340561106801033,
0.2914792001247406,
-0.2131321281194687,
-0.6016337275505066,
-0.35897594690322876,
0.046335987746715546,
0.20634767413139343,
-0.4542050063610077,
0.099202461540699... | |
parameters 4-7 are optional. But if parameter 6 is specified, 7-9 are required to be filled in as well... Had we created a class with the single purpose of doing what this static method did, we could solve this by taking in the required parameters in the constructor, and allowing the user to set optional values through... | [
0.27093684673309326,
-0.13351444900035858,
-0.1272110939025879,
0.21978330612182617,
-0.020197922363877296,
0.17358127236366272,
0.18976685404777527,
-0.15496951341629028,
-0.1930365115404129,
-0.28501808643341064,
-0.12550373375415802,
0.7533913850784302,
-0.25254347920417786,
-0.02786481... | |
reason**
One of the most common arguments is: Why demand that consumers of our class create an instance for invoking this single method, while having no use for the instance afterwards? Creating an instance of a class is a very very cheap operation in most languages, so speed is not an issue. Adding an extra line of c... | [
0.39841604232788086,
0.06891845911741257,
-0.2733544111251831,
0.33080047369003296,
-0.07381478697061539,
-0.07472501695156097,
0.29427656531333923,
-0.0008687146473675966,
-0.07717031240463257,
-0.4342820346355438,
-0.0033522923476994038,
0.6055730581283569,
-0.4221806228160858,
0.1226789... | |
although this does make the requirement that your class is stateless. If it's not stateless, you can still create static wrapper methods that handle everything, while still giving you all the benefits in the long run. Finally, you could also make a class that hides the instantiation as if it was a singleton: MyWrapper.... | [
0.10889872908592224,
-0.22421546280384064,
-0.05960279703140259,
0.23919235169887543,
-0.3480883240699768,
-0.13824504613876343,
0.4076520800590515,
0.12377148121595383,
-0.19621597230434418,
-0.6249269247055054,
-0.274845153093338,
0.4530561864376068,
-0.3212168514728546,
0.25796842575073... | |
your project is a one-off with no requirements for future maintenance, the overall architecture really isn't very important - static or non static, doesn't really matter - development speed does, however.
**Standards, standards, standards!**
Using instance methods does not inhibit you from also using static methods, ... | [
0.6048490405082703,
0.15020105242729187,
-0.1752675622701645,
0.3405541777610779,
-0.1917634755373001,
0.0009765511495061219,
0.6122338771820068,
-0.011183242313563824,
-0.2737885117530823,
-0.6285595893859863,
-0.13347598910331726,
0.5989119410514832,
-0.0347338505089283,
-0.2177949547767... | |
(Bear with me, I promise this gets to shebang and windows.)
I have about the simplest of WEBRick servers put together:
```
require 'webrick'
include WEBrick
s = HTTPServer.new(:Port=>2000, :DocumentRoot=>Dir::pwd)
s.start
```
Couldn't be simpler. This basic server does accept http connections (firefox, internet ex... | [
0.13256268203258514,
0.13181979954242706,
0.6432470679283142,
-0.18119685351848602,
-0.3239428997039795,
-0.029489370062947273,
0.1878347098827362,
-0.4417341947555542,
-0.35572874546051025,
-0.5067175030708313,
0.3135395646095276,
0.5550550222396851,
-0.043467096984386444,
0.0348132066428... | |
what is going on in line 45 of cgi\_runner.rb
```
c:\>ruby
exec "c:/rubyCGI/test.cgi"
^Z
(same error erupts)
c:\>ruby
exec "ruby c:/rubyCGI/test.cgi"
^Z
Content-type: text/html
Mares eat oats and does eat oats and I'll be home for Christmas.
```
Clearly, WEBrick hasn't been cleared for landing on windows. Your usu... | [
0.462809681892395,
0.48348796367645264,
0.21813882887363434,
-0.19151663780212402,
-0.01230650581419468,
-0.19435255229473114,
0.6510716676712036,
0.1113438680768013,
-0.33496761322021484,
-0.4063522219657898,
-0.1168648973107338,
0.04334358870983124,
-0.14875850081443787,
0.25073379278182... | |
me that it may not be possible at all to run a cgi web server from ruby; ruby has no forking support. With no ability to fork a process, a cgi server would have to execute each cgi script one-at-a-time, neglecting all concurrent requests while the first one completed. While this may be acceptable for some, it would not... | [
0.7153021693229675,
0.2386864572763443,
-0.012359433807432652,
0.03567393869161606,
-0.17249521613121033,
0.0015573519049212337,
0.1819399744272232,
0.052373841404914856,
-0.24369513988494873,
-0.11090665310621262,
0.2584887742996216,
0.33360999822616577,
-0.3052426874637604,
0.53981822729... | |
to get the !# notation to work on Windows but it is possible to get Windows to automatically launch a script with a particular interpreter (as in your second example). A good step by step discussion of what you'd want to do is [here.](http://support.microsoft.com/kb/307859) You specifically want the section headed: "To... | [
0.33932793140411377,
-0.04525059834122658,
0.005739289801567793,
0.14853210747241974,
-0.10431932657957077,
-0.3513246178627014,
0.2574949562549591,
-0.05651384964585304,
-0.27031517028808594,
-0.578088641166687,
0.013575488701462746,
0.46606287360191345,
-0.15303225815296173,
-0.056786432... | |
I was wondering if I could pop up `JOptionPane`s or other Swing components from within a browser using JSP.
If you embed an applet. But I don't think that's what you want. Swing is for desktop apps. JSP web pages. If you want components, try looking into JSF or some of the many AJAX Javascript frameworks like prototype... | [
0.7261520624160767,
0.2902454733848572,
-0.0444822683930397,
-0.06511575728654861,
-0.4608917832374573,
-0.20529772341251373,
-0.08559736609458923,
0.10913247615098953,
-0.2017592191696167,
-0.586555540561676,
0.15734267234802246,
0.46799036860466003,
-0.3071777820587158,
-0.25990852713584... | |
For this xml (in a SQL 2005 XML column):
```
<doc>
<a>1</a>
<b ba="1" bb="2" bc="3" />
<c bd="3"/>
<doc>
```
I'd like to be able to retrieve the names of the attributes (ba, bb, bc, bd) rather than the values *inside SQL Server 2005*. Well, XPath certainly allows this with name() but SQL doesn't support that. Th... | [
0.1755346804857254,
0.29548659920692444,
0.45629969239234924,
0.013837529346346855,
-0.35416972637176514,
-0.2014077752828598,
-0.11809070408344269,
-0.21877820789813995,
-0.16841541230678558,
-0.27403730154037476,
0.009357165545225143,
0.642323911190033,
-0.21102052927017212,
-0.004382173... | |
Document (iirc) and runs the XPath to extract the names of the nodes. I'm open to suggestions here.
```
DECLARE @xml as xml
DECLARE @path as varchar(max)
DECLARE @index int, @count int
SET @xml =
'<doc>
<a>1</a>
<b ba="1" bb="2" bc="3" />
<c bd="3"/>
</doc>'
SELECT @index = 1
SET @count = @xml.query('count(/doc/... | [
0.23038974404335022,
0.008548617362976074,
0.6596404314041138,
0.022728588432073593,
-0.13774201273918152,
-0.32245051860809326,
-0.05042440444231033,
-0.7597714066505432,
0.013644385151565075,
-0.5895615816116333,
-0.05077177286148071,
0.2473081350326538,
-0.3343336582183838,
0.2025730013... | |
What is the best way to manage a database connection in a Java servlet?
Currently, I simply open a connection in the `init()` function, and then close it in `destroy()`.
However, I am concerned that "permanently" holding onto a database connection could be a bad thing.
Is this the correct way to handle this? If no... | [
0.21908965706825256,
0.06758547574281693,
0.07067109644412994,
0.10588176548480988,
0.05866578593850136,
-0.48547548055648804,
0.4380680024623871,
0.013616839423775673,
-0.18794946372509003,
-0.718816339969635,
-0.016959981992840767,
0.35394492745399475,
-0.3886364698410034,
0.374631583690... | |
The requests for this application are almost all "read-only" and come fairly rapidly (although the data requested is fairly small).
I actually disagree with using Commons DBCP. You should really defer to the container to manage connection pooling for you.
Since you're using Java Servlets, that implies running in a Ser... | [
0.2957752048969269,
-0.060196854174137115,
0.27117687463760376,
0.18531931936740875,
-0.23667310178279877,
-0.6942694187164307,
0.2233729511499405,
0.011098024435341358,
-0.25356245040893555,
-0.5128709077835083,
-0.2717604637145996,
0.4501630663871765,
-0.4028383791446686,
0.1991607099771... | |
I'm interested in what you find are the best development references for learning and using jQuery. Books, websites, etc. are all welcome.
[jQuery in Action](http://www.manning.com/bibeault/), FTW | [
0.42997312545776367,
-0.5067522525787354,
0.15245351195335388,
0.3539225161075592,
-0.062469735741615295,
-0.016682865098118782,
0.09177521616220474,
0.3436807096004486,
-0.5429784655570984,
-0.49231451749801636,
-0.3882679045200348,
0.46077775955200195,
0.1923864483833313,
-0.528611361980... | |
What are some good jQuery Resources along with some gotchas when using it with ASP.Net?
One thing to note is that if you use WebMethods for Ajax, the response values will be returned wrapped in an object named 'd' for security reasons. You will have to unwrap that value, which is usually not a problem, unless you are u... | [
0.26141059398651123,
-0.28344395756721497,
-0.04989632964134216,
0.35071828961372375,
-0.5028778314590454,
-0.2743644714355469,
0.2729504704475403,
0.07913549244403839,
-0.1373666673898697,
-0.834596574306488,
0.03940014913678169,
0.4424208700656891,
-0.09532731026411057,
-0.05596545338630... | |
code to the jquery crew to see if it can be accepted for future versions.
The next thing, as was mentioned previously, is the ids. If you have the time and inclination, I actually subclassed all of the HTML controls to make participating in the NamingContainer optional, like this:
```
protected override void RenderAt... | [
0.12454541772603989,
0.020118096843361855,
0.7391434907913208,
-0.12216997146606445,
-0.12436611205339432,
-0.14029106497764587,
0.1520460993051529,
-0.16814258694648743,
0.2060427963733673,
-0.5738135576248169,
0.06204070523381233,
0.6238941550254822,
-0.22917060554027557,
0.1571650505065... | |
cntrl.Attributes.Remove("name");
writer.WriteAttribute("id", cntrl.RenderedId);
writer.WriteAttribute("name", cntrl.RenderedName);
}
cntrl.Attributes.Render(writer);
HtmlContainerControl containerCntrl = cntrl as HtmlContainerControl;
if (containerCntrl == null)
writer.Write(" /"... | [
-0.41608351469039917,
0.12282103300094604,
1.041142463684082,
-0.19062387943267822,
-0.04427357763051987,
0.2243279367685318,
0.19822822511196136,
-0.19409054517745972,
-0.14906729757785797,
-0.35804474353790283,
-0.3556213080883026,
0.660742998123169,
-0.1821674406528473,
0.28165552020072... | |
Our testers are in the process of evaluating Visual Studio Team System 2008 Test Edition. As they are unfamiliar with the use of Visual Studio, I would like to give them as much help as I can.
I have had a look on Amazon for books on the Test edition of VS.Net, but there is only one VS.Net 2005 test edition book.
Doe... | [
0.4797780215740204,
0.1525055319070816,
-0.2697162330150604,
0.15830080211162567,
-0.12527981400489807,
-0.06436605751514435,
0.269910603761673,
0.3013404607772827,
0.04208055138587952,
-0.45235928893089294,
0.210994690656662,
0.49975863099098206,
0.4639810621738434,
-0.1451289802789688,
... | |
Team System Virtual Labs](http://msdn.microsoft.com/en-us/virtuallabs/aa740411.aspx) | [
-0.15228486061096191,
-0.22303524613380432,
-0.05735192075371742,
0.3944801390171051,
0.49059975147247314,
0.05353860929608345,
0.3119226396083832,
0.03538787364959717,
-0.3397468626499176,
-0.49795058369636536,
-0.24182741343975067,
0.1416936069726944,
0.03851974382996559,
-0.279740512371... | |
Reporting Services 2000 Standard Edition (currently RTM but hope to have SP2 soon).
I have a report which takes in a parameter - PlantID
I'd like to email a pdf of this report every month to the 80 different plant managers
So I have a table:
```
PlantID ManagerEmail
1 BillySmith@company.com
2 F... | [
0.7860026955604553,
0.13464796543121338,
0.133194699883461,
-0.20314635336399078,
-0.19428110122680664,
-0.35957926511764526,
0.2866465747356415,
-0.209380105137825,
-0.3258450925350189,
-0.23820629715919495,
0.3135469853878021,
0.3230856657028198,
-0.20498009026050568,
0.02548942714929580... | |
the input parameter of the report (PlantID) to the recipient of the email (ManagerEmail).
Ideas on how to do this? My current thought is to build a C# app which calls the URL of the RS with the correct input parameter in it. Then gets the pdf back, then emails from C#.
Many thanks
A Data-Driven Subscription would be ... | [
0.5867249965667725,
0.030564062297344208,
0.43131503462791443,
0.19195829331874847,
-0.1860332489013672,
-0.2540202736854553,
-0.11272449791431427,
-0.057494305074214935,
-0.14220109581947327,
-0.36384114623069763,
0.18509042263031006,
0.47592905163764954,
-0.2306792289018631,
-0.144851878... | |
I have no trouble building 1.35.0, as well as 1.36.0 on the timesys arm-gcc toolchain, both statically (link-static) as well as dynamically (.so, default option).
However, when I try to link a simple sample filesystem app:
```
#include <boost/filesystem.hpp>
#include <iostream>
namespace fs = boost::filesystem;
int... | [
-0.09942758083343506,
0.4345436692237854,
0.6100672483444214,
-0.08807909488677979,
0.09129597991704941,
0.20643606781959534,
0.34499993920326233,
-0.43596184253692627,
-0.2974894344806671,
-0.8230277895927429,
-0.00040397525299340487,
0.6407284736633301,
-0.26427164673805237,
0.0511900670... | |
to `__sync_fetch_and_add_4'
/tmp/ccex3NGb.o: In function `boost::detail::atomic_increment(int*)':
exists.cpp:(.text._ZN5boost6detail16atomic_incrementEPi[boost::detail::atomic_increment(int*)]+0x1c):
undefined reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status
```
Does anyone know how I ca... | [
0.03283919394016266,
0.39596202969551086,
0.7866645455360413,
0.15234483778476715,
0.05710453912615776,
0.009292020462453365,
0.2314952313899994,
-0.23953036963939667,
-0.3681015968322754,
-0.34676191210746765,
-0.11086126416921616,
0.7788347601890564,
-0.024704575538635254,
-0.07995695620... | |
I'm working on a site which is at the core/ master of a number of sites. We are also responsible for handling the authentication across all the sites under the brand banner.
The client has wanted a single-sign-on operation to be included, so if I was to sign into any of the sites I would be signed into all the sites. ... | [
0.7367133498191833,
0.2710200846195221,
0.4975152909755707,
-0.107154481112957,
0.24179957807064056,
0.11921827495098114,
0.2648741900920868,
-0.306041419506073,
0.03404910862445831,
-0.6448667645454407,
-0.20142628252506256,
0.1274551898241043,
0.16242139041423798,
0.016937147825956345,
... | |
This would open a client session to their site so they can set cookies/ do what they want to handle a login.
This works *for the most part*, it's been tested on IE7, FF 2 & 3 and they all work. The problem browser at the moment is Safari (and Chrome). Although the images do appear to load in the client session doesn't... | [
-0.15348182618618011,
0.27074044942855835,
0.29514163732528687,
0.053186483681201935,
-0.28865641355514526,
0.005050530657172203,
0.36172640323638916,
0.2942645847797394,
-0.47563809156417847,
-0.8011541962623596,
0.04611094295978546,
0.503200888633728,
-0.24311819672584534,
0.007229913491... | |
at the moment I don't have a Linux install at my disposal).
Does anyone know a way to have Safari recognise an embeded image tag to an external host as opening a client context? Or can someone provide a better way to do SSO from ASP.NET to site(s) which are not ASP.NET?
**Note:** yes I am aware there are problems in ... | [
0.19210273027420044,
0.33021339774131775,
0.30836066603660583,
-0.03603772073984146,
-0.19647039473056793,
-0.32740044593811035,
0.544106662273407,
0.38916638493537903,
-0.5975310206413269,
-0.8144844174385071,
-0.22413893043994904,
0.5917803049087524,
-0.2550179958343506,
0.10537858307361... | |
Chrome, don't allow 3rd party cookies *by default*.
Safari->Preferences->Security->Accept Cookies:
o Always
o Never
+ Only From Sites You Navigate To
There's some [AJAX hackery](http://trainofthoughts.org/blog/2007/04/14/cross-site-cookies/) to get *your* document domain to set the cookie, but I don't think ... | [
0.3676200211048126,
0.45100754499435425,
0.2939348816871643,
-0.11879875510931015,
-0.4333830773830414,
-0.40019476413726807,
0.3785296380519867,
0.11585064232349396,
-0.2610543966293335,
-0.494759202003479,
0.11467019468545914,
0.761687695980072,
-0.5317005515098572,
0.024902822449803352,... | |
get around the 3rd party cookie problem - so I'd probably scrap the embedded image trick and start from scratch. | [
0.32230427861213684,
0.04775131121277809,
-0.0821104571223259,
0.168246790766716,
-0.19191397726535797,
-0.17476718127727509,
0.30357497930526733,
0.3143290877342224,
0.0148208262398839,
-0.279069185256958,
0.06742154061794281,
0.38509058952331543,
0.18299585580825806,
-0.30273938179016113... | |
Rather than scraping a Ruby version of this algorithm off the net I wanted to create my own based on its description [here](http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes). However I cannot figure out two things
```
def primeSieve(n)
primes = Array.new
for i in 0..n-2
primes[i] = i+2
end
index = 0
w... | [
-0.05687146261334419,
0.0782061442732811,
0.37798911333084106,
-0.31245648860931396,
0.08641313016414642,
0.30558669567108154,
0.0072448221035301685,
-0.5481749773025513,
-0.061010561883449554,
-0.7765448093414307,
0.05856021121144295,
0.3906135559082031,
-0.3993287682533264,
0.41668415069... | |
array?
2. According to the description in the link above the loop should be broken out of when the squareroot of the last element in the array is greater than the current prime - mine does this one before.
I'm fairly sure it has something to do with the delete operation modifying the length of the array. For example m... | [
0.2767052948474884,
0.21226663887500763,
0.2300545573234558,
-0.3724534213542938,
-0.12310050427913666,
0.09590494632720947,
0.15094085037708282,
-0.5334395170211792,
-0.4409971833229065,
-0.14824287593364716,
0.4055576026439667,
0.5188860297203064,
-0.2159157693386078,
0.0770568773150444,... | |
and squared instead of square rooting. I also replaced the deletion loop with a "select" call.
```
while primes[index]**2 <= primes.last
prime = primes[index]
primes = primes.select { |x| x == prime || x%prime != 0 }
index += 1
end
```
Edit: I think I figured out how you're trying to do this. The f... | [
-0.09754909574985504,
-0.22232681512832642,
0.3679015636444092,
-0.1573782116174698,
-0.061765801161527634,
0.003698372980579734,
0.25328096747398376,
-0.6539679169654846,
0.0035135329235345125,
-0.6287002563476562,
-0.101438969373703,
0.6623228788375854,
-0.31571123003959656,
0.1436053365... | |
primes.delete(x)
end
index += 1
end
``` | [
-0.16895300149917603,
0.026536567136645317,
0.3895326256752014,
-0.13300415873527527,
0.1827004998922348,
-0.12610852718353271,
0.018876634538173676,
-0.08195377141237259,
0.07152697443962097,
-0.3476511240005493,
-0.17268745601177216,
0.579546332359314,
-0.7795073390007019,
0.498381674289... | |
I'm trying to call a web service in an Excel Macro:
```
Set objHTTP = New MSXML.XMLHTTPRequest
objHTTP.Open "post", "https://www.server.com/EIDEServer/EIDEService.asmx"
objHTTP.setRequestHeader "Content-Type", "text/xml"
objHTTP.setRequestHeader "SOAPAction", "PutSchedule"
objHTTP.send strXML
```
And I get bac... | [
-0.07117357850074768,
0.338534414768219,
0.42845022678375244,
-0.22610417008399963,
-0.4079362154006958,
0.09434347599744797,
0.3611794114112854,
-0.6391494870185852,
-0.15314428508281708,
-0.6043592095375061,
0.012268184684216976,
0.308909147977829,
-0.4812740683555603,
-0.090468622744083... | |
```
Anybody out there done something like this before?
You SOAP action should also include namespace of the method
e.g.
```
"http://tempri.org/PutSchedule"
```
Find out what the namespace of your Service and add it in front of the method name PutSchedule. | [
0.6128218770027161,
0.2689380347728729,
-0.1214561015367508,
-0.05072389543056488,
-0.2535698413848877,
-0.01032351516187191,
0.2807207703590393,
0.05715407431125641,
-0.012920703738927841,
-0.6641395092010498,
0.17535904049873352,
0.3721023201942444,
-0.1293485164642334,
0.100846707820892... | |
In VB6 you can do this:
```
Dim a As Variant
a = Array(1, 2, 3)
```
Can you do a similar thing in VB.NET with specific types, like so?:
```
Dim a() As Integer
a = **Array**(1, 2, 3)
```
```
Dim a() As Integer = New Integer() {1, 2, 3}
``` | [
0.358493447303772,
-0.29184404015541077,
0.5597817897796631,
-0.4974021017551422,
-0.36896222829818726,
-0.07910101115703583,
0.18665577471256256,
-0.38084113597869873,
-0.40430140495300293,
-0.22104695439338684,
-0.3083856403827667,
0.5938729643821716,
-0.5274487733840942,
0.1148075610399... | |
I'm interfacing with a payment gateway and not having any luck with Net::SSLeay and its post\_https subroutine. The payment gateway has issued me a client certificate that must be used for authentication. The Net::SSLeay perldoc has the following example:
```
($page, $response, %reply_headers)
= post_https('w... | [
0.4045761823654175,
0.13235129415988922,
0.43092450499534607,
-0.2395859807729721,
0.22227290272712708,
-0.04520218074321747,
0.39622795581817627,
0.15541411936283112,
-0.17717792093753815,
-0.6273460388183594,
0.09436613321304321,
0.1584535539150238,
-0.25929516553878784,
0.31248632073402... | |
'Basic ' . MIME::Base64::encode("$user:$pass",'')),
make_form(OK => '1', name => 'Sampo'),
$mime_type6, $path_to_crt7, $path_to_key8);
```
My own version is below and returns the error **Too many arguments for Net::SSLeay::post\_https**:
```
#!/usr/bin/perl
use strict;
use warnings;
us... | [
-0.08407463878393173,
0.13214856386184692,
0.36742350459098816,
-0.21728165447711945,
0.17310446500778198,
0.12060665339231491,
0.8858500123023987,
-0.3826608955860138,
0.11520404368638992,
-0.5505058169364929,
-0.5509299039840698,
0.6026493906974792,
-0.5921799540519714,
-0.07866416126489... | |
'/path/to/cert',
'/path/to/key',
);
```
Why is this error occurring?
New versions of Net::SSLeay don't have the prototype that old versions have. Reading the source of old and new version I'd say the prototype was a bug (the code it calls can handle more variables than advertised).
The solution I recommend is up... | [
0.5674557685852051,
-0.1727924942970276,
0.14598608016967773,
0.018171466886997223,
-0.0684891790151596,
-0.19166825711727142,
0.6049823760986328,
0.49343764781951904,
-0.13092271983623505,
-0.958854079246521,
0.13086743652820587,
0.3429659605026245,
-0.6672222018241882,
0.3026997148990631... | |
I am writing a desktop application written in Swing developed using Java 1.5. Some of the users seem to be using Mac, but I am interested in Java 6's scripting feature (Java 6 ships with Rhino). Java 6, although it came out almost 2 years ago, doesn't seem to be widely in use. I also hear [Apple ships Java 6 only for I... | [
0.46196624636650085,
0.24601639807224274,
0.22915710508823395,
-0.17883136868476868,
-0.08275571465492249,
-0.15512488782405853,
0.3324187397956848,
0.20020750164985657,
-0.384110689163208,
-0.689837634563446,
0.12119188159704208,
0.4091223478317261,
-0.1246023029088974,
-0.246481642127037... | |
I would like to know when Java 6 can be considered ready for prime time, not the choice of UI library.
As far as I know, it already is, and has been for some time now. Swing's just fine for writing native looking apps.
It is true though, that if you are targeting older Macs, you'll never be able to use Java 6.
Are yo... | [
0.5304030179977417,
-0.016469983384013176,
0.2426508367061615,
-0.04200756922364235,
-0.221830815076828,
-0.13933058083057404,
0.004168386571109295,
0.3049605190753937,
-0.23123699426651,
-0.45765459537506104,
0.15695250034332275,
0.850811779499054,
-0.11515892297029495,
-0.290945231914520... | |
What's the difference between the two and when should I use each:
```
<person>
<firstname>Joe</firstname>
<lastname>Plumber</lastname>
</person>
```
versus
```
<person firstname="Joe" lastname="Plumber" />
```
Thanks
There are element centric and attribute centric XML, in your example, the first one is ... | [
0.043849531561136246,
-0.27383720874786377,
0.18162286281585693,
0.07860176265239716,
-0.210099458694458,
-0.01929059810936451,
-0.30506911873817444,
0.08159136027097702,
-0.08472436666488647,
-0.6630604267120361,
-0.1293869912624359,
0.41784146428108215,
0.10122483223676682,
-0.1518511027... | |
e.g. nullable int
* Can not express complex type.
**Element centric**
* Complex type can be only presented as an element node.
* Very interoperable
* Bigger size than attribute centric. (Compression can be used to reduce the size significantly.)
* Nullable data can be expressed with attribute xsi:nil="true"
* Faster ... | [
0.0894281193614006,
-0.06341996043920517,
0.010444706305861473,
0.26595282554626465,
-0.26405832171440125,
-0.2561081349849701,
0.3489837348461151,
-0.1279544234275818,
-0.11213808506727219,
-0.5847399234771729,
-0.22932998836040497,
0.265638142824173,
-0.37943312525749207,
-0.155294552445... | |
XML or you have compression enabled during transportation, stick with elements as they are more extensible.
**Background**
In DOT NET, XmlSerializer can serialize properties of objects into either attributes or elements.
In the recent WCF framework, DataContract serializer can only serialize properties into elements ... | [
0.0130926463752985,
-0.21864163875579834,
0.41046836972236633,
0.3911222219467163,
-0.20003008842468262,
-0.22757190465927124,
-0.3592306077480316,
-0.05105048045516014,
-0.3938276767730713,
-0.917824387550354,
-0.18120509386062622,
0.29234063625335693,
-0.4072014391422272,
0.0573588907718... | |
I'm preparing a class on Visual Basic 2005 targeting Visual Basic 6 programmers migrating to the .NET platform.
My primary concern is to teach my students the best practices for developing in .NET, and I am wondering about whether to consider the use of the VB runtime functions VB.NET legitimate or not.
I have read t... | [
0.28639647364616394,
0.3202463388442993,
-0.17756688594818115,
-0.2796080410480499,
-0.20852825045585632,
-0.4487324357032776,
0.5381056666374207,
-0.1258537769317627,
-0.014745683409273624,
-0.29050880670547485,
-0.04467825964093208,
0.9118339419364929,
-0.15708577632904053,
0.01474560052... | |
claim they put some optimizations in there on top of the .NET framework APIs.
What's your take on this?
Where I'm at, I have to move back and forth between C# and VB.Net frequently. With that in mind, we really don't like the old VB functions, especially the strings functions: `Trim(), Replace(), Len(), UCase()`, etc.... | [
0.6526564359664917,
0.044642046093940735,
-0.0634893998503685,
-0.1077895238995552,
-0.22358188033103943,
-0.22744743525981903,
0.12325283885002136,
0.0556674562394619,
-0.41956081986427307,
-0.29164621233940125,
0.13757066428661346,
0.6346391439437866,
-0.05828389152884483,
0.366827130317... | |
of theString` seems to make sense. In the others, it's more of an operation performed by the string, and so I want to see the . (dot) notation.
On the other hand, I've had a hard time weaning myself from the conversion operators: `CStr, CInt, CDbl`, etc.
I can't tell you why I like one type and not the other; it coul... | [
-0.11632648855447769,
0.04541154205799103,
0.5359951853752136,
-0.10418060421943665,
-0.34234315156936646,
-0.023024998605251312,
0.19221313297748566,
-0.09777501225471497,
0.15333551168441772,
-0.5574926733970642,
-0.3907642066478729,
0.5766460299491882,
-0.4078773260116577,
0.30855715274... | |
again:
In a lot of places, VB.Net co-exists with C#. I don't think you see as many VB.Net-only shops as you might for C#. It's just not as popular, and a lot of the VB.Net shops move to VB.Net just as a transition state while the programmers also learn C#. *In these mixed environments, it's makes a lot of sense if th... | [
0.7141051292419434,
0.019974544644355774,
-0.012143020518124104,
-0.002173539251089096,
-0.2447352111339569,
-0.2909033000469208,
0.18671749532222748,
0.11695905029773712,
-0.5145199298858643,
-0.46563878655433655,
-0.1351197361946106,
0.4362359046936035,
-0.11800556629896164,
0.3352560400... | |
So it's really a bad idea not to understand both. | [
0.46349483728408813,
0.40457651019096375,
-0.328486829996109,
0.18471334874629974,
0.09613403677940369,
-0.24576599895954132,
0.0345865935087204,
0.19827115535736084,
-0.10838843137025833,
-0.09497246891260147,
0.07711636275053024,
0.4054436981678009,
0.13082440197467804,
0.102115757763385... | |
Say I want to get the HTML of
```
http://www.google.com
```
as a String using some built-in classes of the Cocoa Touch framework.
What is the least amount of code I need to write?
I've gotten this far, but can't figure out how to progress. There must be an easier way.
```
CFHTTPMessageRef req;
NSURL *url = [NSURL ... | [
0.4186563491821289,
0.4541294574737549,
0.7237917184829712,
0.06280839443206787,
0.001642409828491509,
-0.0539577342569828,
0.2811419665813446,
0.062444038689136505,
-0.1255309134721756,
-0.47240132093429565,
-0.1561150997877121,
0.3382602334022522,
-0.26941946148872375,
0.2512549459934234... | |
(CFURLRef)url,
kCFHTTPVersion1_1);
```
The *quickest* way is to use NSString's `+stringWithContentsOfURL:` method. However, this is a modal call, and your application will be non-responsive while it runs. You can either move it to a background thread, or use the NSURLConnection class t... | [
0.14931561052799225,
-0.08567125350236893,
0.6661750078201294,
-0.1170613095164299,
0.12524841725826263,
-0.1543748527765274,
0.4446331858634949,
0.01821889542043209,
-0.1271725594997406,
-0.3285863697528839,
-0.37116318941116333,
0.499895840883255,
-0.398614764213562,
0.3195958733558655,
... | |
My client has an old MS SQL 2000 database that uses varchar(50) fields to store names. He tried to use this database to capture some data (via a web form). Some of the form-fillers are from other countries, and the varchar fields went nutty when some of these folks entered their names. Is it possible to recover the dat... | [
0.3132651150226593,
0.17842085659503937,
0.31377580761909485,
0.2144477665424347,
0.3091239929199219,
0.1942244917154312,
0.1018432229757309,
0.1897886097431183,
-0.2630995810031891,
-0.411194384098053,
-0.10437287390232086,
-0.14075982570648193,
-0.10929685831069946,
0.16262567043304443,
... | |
Torbjörn / FIN / F
Huszár / HUN / L
Jürgen / DEU / F
Müller / CHE / L
Bumbálková / CZE / L
Doležal / CZE / L
Loïc / DEU / L
By the way, the web form specified this content-type:
```
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
```
Working from the 5th example.
à is... | [
-0.48744577169418335,
0.24658595025539398,
0.4344131648540497,
-0.43385955691337585,
-0.14106474816799164,
0.6486465334892273,
0.4038107693195343,
0.019990138709545135,
-0.5411520004272461,
-0.28226667642593384,
-0.26754942536354065,
0.5037627816200256,
0.179944708943367,
-0.09040586650371... | |
which is Unicode ü
U+00FC (see <http://en.wikipedia.org/wiki/Latin_characters_in_Unicode>)
Seems to me that you could work through this programmatically.
Now solving the first example:
Jiå™ã was actually Jiřà (The final character not shown).
Ignoring the Ji, which is correct,
C5 99 c3 AD
(110)0 0101 (10)01 100... | [
-0.34107837080955505,
0.20189504325389862,
0.5849355459213257,
-0.10802707821130753,
-0.6830295324325562,
0.5397697687149048,
0.49070456624031067,
-0.47643548250198364,
-0.33490970730781555,
-0.3337358832359314,
-0.20168474316596985,
-0.16751451790332794,
0.09264536947011948,
-0.1539008766... | |
I know that it's possible to get SVN to send emails after a commit using hooks, but I was just wondering if there's any way to create a personal "watch list" like MediaWiki (Wikipedia) has, whereby you only get notified if there have been changes to certain files?
The way we take care of this is we have a watch propert... | [
0.8761613368988037,
-0.10389779508113861,
0.003270725952461362,
-0.06947774440050125,
0.13850001990795135,
-0.2546861171722412,
0.2066466212272644,
0.19252847135066986,
-0.4745588004589081,
-0.3826972246170044,
0.09418006241321564,
0.4863387644290924,
-0.19961531460285187,
-0.0153656536713... | |
to projects for each file in the commit reading the properties as it goes, from this it builds a list of email addresses to send the notification to. This takes a dozen or so lines of python. | [
0.6530939340591431,
0.03382269665598869,
0.12937043607234955,
-0.09114650636911392,
-0.06380987167358398,
0.025906935334205627,
0.06542807817459106,
-0.17822995781898499,
-0.008457359857857227,
-0.5779141187667847,
-0.2616220712661743,
0.3333410322666168,
0.11822143197059631,
-0.1846387237... | |
How do I alternate HTML table row colors using JSP?
My CSS looks something like:
```
tr.odd {background-color: #EEDDEE}
tr.even {background-color: #EEEEDD}
```
I want to use `<c:forEach>` to iterate over a collection.
```
<c:forEach items="${element}" var="myCollection">
<tr>
<td><c:out value="${element.fie... | [
0.09716543555259705,
-0.22861826419830322,
0.4247797131538391,
-0.21034778654575348,
0.009814422577619553,
0.4628143906593323,
0.14303231239318848,
-0.3423469662666321,
-0.3135964870452881,
-0.6281430721282959,
0.03188502416014671,
0.5802677273750305,
-0.5691115260124207,
-0.21163430809974... | |
ternary operator to easily output the appropriate class name:
```
<c:forEach items="${element}" var="myCollection" varStatus="loopStatus">
<tr class="${loopStatus.index % 2 == 0 ? 'even' : 'odd'}">
...
</tr>
</c:forEach>
```
This [JSTL primer](http://www.ibm.com/developerworks/java/library/j-jstl0318/) from ... | [
-0.20869101583957672,
-0.37144404649734497,
-0.04310408979654312,
-0.061911195516586304,
0.05014599487185478,
0.06332811713218689,
0.142428457736969,
-0.13829129934310913,
0.001195330754853785,
-0.3167334198951721,
-0.2186877727508545,
0.23057734966278076,
-0.39364445209503174,
0.098562844... | |
How do I drop a Groovlet into a Grails app? Say, for example, in web-app/groovlet.groovy
```
import java.util.Date
if (session == null) {
session = request.getSession(true);
}
if (session.counter == null) {
session.counter = 1
}
println """
<html>
<head>
<title>Groovy Servlet</title>
</head>
... | [
0.09997294098138809,
-0.1532738357782364,
0.5980997681617737,
-0.05394487455487251,
-0.08294611424207687,
-0.02839300036430359,
0.3715148866176605,
-0.5851609706878662,
-0.4207865297794342,
-0.1037188321352005,
-0.3951786756515503,
0.3798637390136719,
-0.179377019405365,
-0.176929458975791... | |
How to set internationalization to a `DateTimepicker` or `Calendar WinForm` control in .Net when the desire culture is different to the one installed in the PC?
It doesn't seem to be possible to change the culture. See this [KB article](http://support.microsoft.com/Default.aspx?scid=kb%3ben-us%3b889834&x=18&y=19). | [
0.2235223650932312,
-0.12775784730911255,
0.532845139503479,
0.23595882952213287,
0.12160511314868927,
-0.2960556447505951,
0.03476594761013985,
0.32242879271507263,
-0.21078240871429443,
-0.5378235578536987,
0.11573339998722076,
0.3800943195819855,
-0.10844462364912033,
-0.051584385335445... | |
I am currently in a course that is using OpenGL and I have been using C for all the programs so far. I have Python installed on Fedora as well as OpenGL, however the minute I call an OpenGL command in my Python code, I get a **segmentation fault**. I have no idea why this is.
Just to avoid the "just use C" comments, h... | [
0.7285315990447998,
0.3967292308807373,
0.20229560136795044,
-0.1725713312625885,
-0.22654439508914948,
-0.11848847568035126,
-0.04966199770569801,
0.3795640766620636,
-0.27444541454315186,
-0.6600019335746765,
0.20609018206596375,
0.76027911901474,
-0.2654171884059906,
0.19982242584228516... | |
would like to use classes to make it easier on me. Since I hate classes in C++ and structs in C seems a little crazy, I thought I would give Python a try at it. I have also been looking for a reason to use Python again as it has been a while.
Thanks for any help.
You may also want to consider using [Pyglet](http://www... | [
0.3896501958370209,
-0.21587035059928894,
0.16788944602012634,
0.2626549303531647,
-0.45929667353630066,
0.04748840630054474,
0.06822814792394638,
0.43101561069488525,
-0.3308256268501282,
-0.6884220242500305,
-0.0009071918902918696,
0.5050713419914246,
-0.22367236018180847,
-0.00961833726... | |
and very helpful. | [
-0.07822925597429276,
0.2831804156303406,
-0.014492681249976158,
0.21123424172401428,
-0.12473753094673157,
-0.13396158814430237,
0.03454027324914932,
0.34545281529426575,
0.03221670165657997,
-0.26480647921562195,
-0.005538595374673605,
0.09366350620985031,
0.32678359746932983,
0.14320573... | |
Is it possible to modify/write data to an XML file without any server-side proxy(e.g. a php or asp script)? Can this be done via javascript? XSLT?
You can load and modify xml in browser, but writing the file back is a different thing.
I don't know of any feasible way of writing data back to a server without some kind... | [
0.3211289942264557,
0.04778667539358139,
0.11569545418024063,
0.34265971183776855,
-0.13991257548332214,
-0.17967046797275543,
-0.05997810885310173,
0.19247351586818695,
-0.21469849348068237,
-0.6004999279975891,
0.10240595787763596,
0.4015510678291321,
-0.07790139317512512,
-0.00173108652... | |
What's a more elegant way of having the code below where i want to return a derived class based on the type of another class.
```
if (option_ is Rectangle)
{
modelInputs = new Foo();
}
else if (option_ is Circle) | [
-0.056071002036333084,
-0.4612479507923126,
0.3300568759441376,
-0.014997771009802818,
0.1744304597377777,
-0.001281375763937831,
-0.12143626809120178,
-0.25488653779029846,
-0.41813045740127563,
-0.6147511005401611,
0.15398827195167542,
0.5997456908226013,
-0.44898107647895813,
0.11250168... | |
{
modelInputs = new Bar();
}
else if (option_ is Triangle)
{
modelInputs = new Bar2(); | [
-0.21425418555736542,
-0.4115469753742218,
0.4521369934082031,
-0.28664568066596985,
0.07572674006223679,
0.28826382756233215,
-0.009351333603262901,
-0.30471643805503845,
-0.458365797996521,
-0.708763062953949,
-0.14240385591983795,
0.45953550934791565,
-0.5073000192642212,
0.071261070668... | |
}
```
Have Rectangle, Circle and Triangle implement IHasModelInput:
```
interface IHasModelInput
{
IModelInput GetModelInput();
}
```
then you can do
```
IModelInput modelInputs = option_.GetModelInput();
``` | [
-0.43529459834098816,
-0.1342756152153015,
0.4763784110546112,
0.07300728559494019,
-0.026168271899223328,
0.13115821778774261,
0.04749106988310814,
-0.28928032517433167,
-0.36845633387565613,
-1.0453169345855713,
-0.038428451865911484,
0.5515589714050293,
-0.5237888693809509,
-0.086216323... | |
How is profiling different from logging?
Is it just that profiling is used for performance measurements to see how long each function takes? Or am I off?
Typically, how are profiling libraries used?
What types of stats are obtained by profiling?
Logging tells you *what* happened. It's great for forensics and debuggi... | [
0.8222711682319641,
0.0014686551876366138,
0.005602874327450991,
0.4644159972667694,
-0.5139379501342773,
-0.5012455582618713,
0.5283865928649902,
-0.06579824537038803,
-0.12695515155792236,
-0.32570868730545044,
0.31971824169158936,
0.5161508917808533,
-0.35994666814804077,
-0.01108032371... | |
can typically tell you:
* *How many times* the unit was executed. It's generally less important to optimize rarely-used code than code that executes millions of times. One exception is code that makes a user (or another process) wait for it to complete.
* How many times a *branch* was taken, say in an `if` or `switch`... | [
0.41280028223991394,
-0.19897039234638214,
-0.11610066145658493,
0.2826208174228668,
0.16623200476169586,
-0.0734567940235138,
0.40650638937950134,
-0.0472790002822876,
-0.495478093624115,
-0.6157245635986328,
-0.17293307185173035,
0.46435949206352234,
0.21705934405326843,
-0.1040686368942... | |
a function *and all functions called within that function*. Maybe it's not the function itself, but its children, that need optimizing.
* *How many times* the unit was called *by each caller*. You may find that a particular function is called primarily from an unexpected place.
Armed with the data from a good profiler... | [
0.2792944610118866,
-0.3662622272968292,
0.01565479300916195,
0.19027578830718994,
-0.25630947947502136,
0.26598045229911804,
0.2877643406391144,
-0.08384693413972855,
-0.2519913911819458,
-0.48818275332450867,
-0.3472924828529358,
0.4750535488128662,
-0.009079149924218655,
0.0921776816248... | |
I have an embedded flash that is transparent so it looks like part of the background. I achieved that by setting wmode to transparent.
My problem is that the area underneath the flash becomes inaccessible, even though the flash is transparent. Therefore I cannot click on any links or buttons that are under the flash o... | [
0.3347509801387787,
0.010209504514932632,
0.42657890915870667,
-0.11466105282306671,
-0.07413160055875778,
-0.4341369569301605,
0.4217590391635895,
0.0901409164071083,
-0.02647300437092781,
-0.7314785718917847,
-0.25325140357017517,
0.895043671131134,
-0.41056498885154724,
0.12906248867511... | |
document, the `object`/`embed` that contains the Flash animation is on top of the elements you need to access. You need to put these elements on top of the Flash animation instead of the other way around.
The way to do this is to set the object's `wmode` to opaque, and use the CSS `z-index` property to set it to a `z-... | [
0.28252729773521423,
0.2266213744878769,
0.5050574541091919,
0.230383962392807,
0.0018081681337207556,
-0.46612435579299927,
0.02851206809282303,
0.06716281920671463,
-0.2313598245382309,
-0.828570544719696,
-0.37157490849494934,
0.3483143448829651,
-0.19430969655513763,
-0.078319132328033... | |
if you are just hardcoding these into your HTML. | [
0.29035478830337524,
-0.03470079228281975,
0.18351201713085175,
0.30375537276268005,
0.17041972279548645,
-0.5119273066520691,
0.19637209177017212,
0.296831876039505,
-0.17220893502235413,
-0.7769232988357544,
-0.008437134325504303,
0.30101922154426575,
-0.006438168231397867,
-0.1723491549... | |
> **EDIT**: This question duplicates [How to access the current Subversion build number?](https://stackoverflow.com/questions/110175/how-to-access-the-current-subversion-build-number#111173) (Thanks for the heads up, Charles!)
Hi there,
This question is similar to [Getting the subversion repository number into code](... | [
0.04442889615893364,
0.047806333750486374,
0.4956531822681427,
-0.016241945326328278,
-0.3422711491584778,
0.07157367467880249,
0.3352993428707123,
-0.06424269080162048,
-0.2823755741119385,
-0.350490003824234,
0.1871015876531601,
0.49090248346328735,
-0.10642027109861374,
0.26573747396469... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.