text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
1 1 2 1 ] Pop value (1 in this case), if it is a 0 exit the loop 1 1 2 otherwise go back to the loop start. ``` The answer is on the stack which builds itself up like: ``` 1 1 1 1 2 1 1 2 3 1 1 2 3 5 ``` It never terminates (it
[ 0.2980838119983673, 0.21055234968662262, 0.7003495097160339, -0.024713926017284393, 0.22512313723564148, -0.27024227380752563, 0.4001304805278778, -0.3171842396259308, -0.17634370923042297, -0.022842133417725563, -0.5778241157531738, 0.16079047322273254, -0.469327837228775, 0.3011543452739...
has the eqivilent of a C#/JAVA `do { } while(true)` loop) because the sequence will never terminate, but a terminating solution can be written thus: ``` N_1↓nI{2?+} ``` which is 12 chars. I wonder if anyone will ever read this :(
[ -0.012444335967302322, -0.1550637185573578, 0.33902493119239807, -0.32513710856437683, 0.12975960969924927, -0.12169384956359863, 0.6032464504241943, -0.24445438385009766, -0.10837599635124207, 0.015825577080249786, 0.1516861766576767, 0.4068782925605774, -0.2790555953979492, 0.31048637628...
Is it possible to have all the computing capacity of all the hardware nodes allocated to one instance (for eg. one basic linux installation)? How to manage the cloud? I think you're confusing cloud computing and grid computing here. Although they do have similarities. Cloud computing is usually used to refer to solut...
[ 0.2458900660276413, -0.19651784002780914, -0.034961502999067307, 0.47959837317466736, 0.2466365545988083, 0.1630912572145462, -0.301739901304245, 0.020228981971740723, -0.6144731044769287, -0.8341399431228638, -0.11692007631063461, 0.3156895637512207, -0.39033934473991394, 0.18838611245155...
to just seamlessly run existing platforms. Both refer to architectures. There are a couple of platforms that are general implementations of these architectures but they're so different that you can't easilly run software on them that's not designed to run distributed.
[ 0.41211315989494324, -0.24374479055404663, -0.2688698470592499, 0.3801228106021881, 0.061520956456661224, -0.16603869199752808, -0.04110034927725792, 0.29349303245544434, -0.5955497026443481, -0.7453190088272095, 0.1336728036403656, 0.13752934336662292, -0.4000951647758484, 0.0605787523090...
``` <style type="text/css"> body { font-family:Helvetica, sans-serif; font-size:12px; } p, h1, form, button { border: 0; margin: 0; padding: 0; } .spacer { clear: both; height: 1px; } /* ----------- My Form ----------- */ .myform { margin: 0 auto; width: 400px; padding: 14px; } /* ---...
[ -0.09542188793420792, 0.26957595348358154, 0.780512809753418, 0.13004647195339203, -0.17622387409210205, 0.4784689247608185, 0.1728500872850418, -0.48687848448753357, -0.13400530815124512, -0.5820172429084778, -0.3874165415763855, 0.2029951810836792, -0.013781021349132061, 0.18551762402057...
font-weight: bold; margin-bottom: 8px; } #basic p { font-size: 11px; color: #666666; margin-bottom: 20px; border-bottom: solid 1px #dedede; padding-bottom: 10px; } #basic label { display: block; font-weight: bold;
[ -0.5964462757110596, 0.2312004119157791, 0.5715426206588745, 0.03375957906246185, -0.2966562807559967, 0.6007746458053589, 0.2141762375831604, -0.46981528401374817, 0.06870892643928528, -0.43428143858909607, -0.8194593787193298, 0.2536167800426483, -0.14078739285469055, -0.2850536108016968...
text-align: right; width: 140px; float: left; } #basic .small{ color:#666666; display:block; font-size:11px; font-weight:normal; text-align:right; width:140px; } #basic input{ float:left;
[ -0.4689770042896271, 0.22095899283885956, 0.33924567699432373, -0.13538765907287598, 0.19960197806358337, 0.369498074054718, 0.1956762820482254, -0.057029105722904205, 0.21077315509319305, -0.48024022579193115, -0.7533838152885437, 0.49293217062950134, -0.22265714406967163, -0.500051617622...
width:200px; margin:2px 0 30px 10px; } #basic button{ clear:both; margin-left:150px; background:#888888; color:#FFFFFF; border:solid 1px #666666; font-size:11px; font-weight:bold; padding:4px 6px; } </style> <div id="basic"
[ -0.654613733291626, 0.0025285626761615276, 0.6790792346000671, 0.043709877878427505, -0.08862671256065369, 0.33306553959846497, 0.2469739019870758, -0.5948777794837952, -0.01153331808745861, -0.3004084825515747, -0.5179657340049744, 0.4519348442554474, 0.09628602862358093, -0.3901466131210...
class="myform"> <form id="form1" name="form1" method="post" action=""> <h1>Sign-up form</h1> <p>This is the basic look of my form without table</p> <label>Name <span class="small">Add your name</span> </label> <input type="text" name="textfield" id="textfield" /> <label>Email <spa...
[ 0.037765949964523315, -0.06032230332493782, 0.8455479145050049, -0.24913212656974792, -0.14256888628005981, -0.015015353448688984, -0.2254604697227478, -0.381009042263031, -0.20581744611263275, -0.8399578332901001, -0.10422443598508835, 0.25609123706817627, 0.13819310069084167, -0.04006906...
<input type="radio" name="something" id="r1" class="radio" value="1" /><label for="r1">One</label> <input type="radio" name="something" id="r2" class="radio" value="2" /><label for="r2">Two</label> <!-- Problem ---> <button type="submit">Sign-up</button> <div class="spacer"></div> </form> </div> ``...
[ 0.19534562528133392, 0.0997878909111023, 0.6667777895927429, -0.0679415687918663, -0.14019688963890076, -0.2028336226940155, 0.21783824265003204, -0.913883626461029, -0.15704305469989777, -0.789998471736908, -0.35743510723114014, 0.7154900431632996, -0.2975188195705414, 0.10791292786598206...
class="radio" value="1" /> <label for="r1" class="radiolabel">One</label> <input type="radio" name="textfield" id="r2" class="radio" value="2" /> <label for="r2" class="radiolabel">Two</label> <!-- Problem ---> ``` edit:added line-height to the label's styling :)
[ 0.08247093856334686, 0.011201859451830387, 0.3950722813606262, -0.042369451373815536, -0.0004065458197146654, -0.16764923930168152, 0.1524316966533661, -0.6846134662628174, -0.030552910640835762, -0.6942675113677979, -0.4179413318634033, 0.8028773665428162, -0.17711354792118073, 0.26313450...
In VS2005 and up, is it possible to specify which configuration should be selected by default? I have several configurations in my solution but one of them should be used in most cases. Hence I'd like to make sure that devs who pull it out of Source Control use the right configuration(unless of course they specificall...
[ 0.1706320345401764, -0.6284550428390503, 0.6222187876701355, 0.4153567850589752, 0.21781694889068604, -0.1443614810705185, -0.13262751698493958, -0.06813493371009827, -0.32617151737213135, -0.9385643601417542, -0.22867508232593536, 0.52809739112854, -0.07749301940202713, -0.041724089533090...
For instance, winsock libs works great across all versions of the visual studio. But I am having real trouble to provide a consistent binary across all the versions. The dll compiled with VS 2005 won't work when linked to an application written in 2008. I upgraded both 2k5 and 2k8 to SP1, but the results haven't change...
[ 0.1691974252462387, 0.04801717773079872, 0.4295322597026825, -0.009149989113211632, -0.4111531674861908, -0.2605774402618408, 0.2644415497779846, -0.13955901563167572, -0.2567557394504547, -0.5197510123252869, 0.033114492893218994, 0.9125521779060364, -0.39203155040740967, -0.2179249227046...
pass anything other than plain old data accross DLL boundries. i.e. structs are fine. classes are not. Second, make sure that ownership is not transferred - i.e. any structs passed accross the dll boundry are never deallocated outside the dll. So, if you dll exports a X\* GetX() function, there is a corresponding FreeX...
[ 0.24599063396453857, -0.4375617206096649, 0.33968493342399597, 0.28659892082214355, -0.266475111246109, -0.38112756609916687, 0.09271302074193954, -0.19503338634967804, -0.36038410663604736, -0.8482170104980469, -0.3352704644203186, 0.13194742798805237, -0.5145763158798218, 0.2466462403535...
app, is a pain, potentially forcing the installer software to install runtimes for 7.0, 7.1, 8.0 and 9.0 - several of which exist in different service packs which may or may not cause issues. Be kind - statically link your dll projects. -- Edit: You cannot export a c++ class directly with this approach. Sharing class ...
[ 0.26429837942123413, 0.19285368919372559, 0.30247241258621216, 0.018877346068620682, -0.1569112092256546, 0.2552323341369629, 0.2740996479988098, 0.038094449788331985, -0.38719600439071655, -0.7941139936447144, -0.30810797214508057, 0.516132116317749, -0.7546136379241943, 0.148315340280532...
class in a runtime independent way, you CAN export an "interface", which you can easilly make by declaring a class containing only pure virtual functions... ``` struct IExportedMethods { virtual long __stdcall AMethod(void)=0; }; // with the win32 macros: interface IExportedMethods { STDMETHOD_(long,AM...
[ 0.033052440732717514, -0.12223435938358307, 0.2173495590686798, -0.06650237739086151, -0.15068340301513672, 0.03762717917561531, 0.31102409958839417, -0.25941330194473267, -0.018352415412664413, -0.6742700934410095, 0.08618050813674927, 0.6511122584342957, -0.5676530003547668, 0.2698132693...
of exporting compiler version and runtime independent class versions. Note that you still cannot delete one of these. You Must include a release function as a member of the dll or the interface. As a member of the interface it could look like this: ``` interface IExportedMethods { STDMETHOD_(void) Release(THIS) ...
[ 0.35773515701293945, -0.039184488356113434, 0.2551937699317932, -0.32140442728996277, -0.2279987335205078, -0.2525980770587921, 0.3055030405521393, -0.12995976209640503, -0.11366800963878632, -0.6601877808570862, -0.03486207127571106, 0.6172622442245483, -0.8140211701393127, 0.313676446676...
Release methods as well as the ability to QueryInterface for v2 interfaces or other features. And finally, use DllCreateClassObject as the means to create your object and get the necessary COM registration going. All this is optional however, you can easilly get away with a simple interface definition accessed through ...
[ 0.31494808197021484, -0.20771020650863647, 0.35468578338623047, 0.3004361391067505, -0.38666048645973206, -0.3870292901992798, 0.08756399899721146, 0.05761908367276192, -0.18423809111118317, -0.6442840099334717, 0.08705927431583405, 0.708809494972229, -0.19738738238811493, 0.08605036139488...
I want to find an SQL query to find rows where field1 does not contain $x. How can I do this? What kind of field is this? The IN operator cannot be used with a single field, but is meant to be used in subqueries or with predefined lists: ``` -- subquery SELECT a FROM x WHERE x.b NOT IN (SELECT b FROM y); -- predefined...
[ -0.038002859801054, -0.008119000121951103, 0.15718220174312592, -0.04104072228074074, -0.14634382724761963, 0.08641326427459717, 0.16924543678760529, -0.15290406346321106, 0.1215936467051506, -0.4959971308708191, -0.05967273190617561, 0.3441440761089325, -0.518944501876831, 0.1926491111516...
WHERE x.a NOT LIKE '%text%'; ``` If you restrict it so that the string you are searching for has to start with the given string, it can use indices (if there is an index on that field) and be reasonably fast: ``` -- Finds all rows where a does not start with "text" SELECT * FROM x WHERE x.a NOT LIKE 'text%'; ```
[ -0.052444472908973694, 0.16426917910575867, 0.3034088909626007, -0.28509166836738586, 0.1461360603570938, 0.0891813337802887, 0.07073946297168732, -0.14120931923389435, 0.15345779061317444, -0.48389703035354614, -0.42974963784217834, 0.38996127247810364, -0.42899182438850403, 0.02896021120...
I have a .rc file which is used to include some text data in my executable, like this: ``` 1234 RCDATA myfile.txt ``` This works fine: the content of the 'myfile.txt' is included in my executable. The problem is that no 0-terminator is added to the string, and I cannot add it to the file. Is there any way of adding ...
[ 0.257182776927948, 0.3023865222930908, 0.5449100732803345, -0.027367044240236282, -0.04969470202922821, -0.1598730981349945, 0.1399616301059723, -0.1454506367444992, -0.21346420049667358, -0.42554906010627747, -0.07640351355075836, 0.6200771331787109, -0.4727482795715332, -0.12852905690670...
"\0" } ``` Thanks alot, eli I don't think so, unless you write your own resource compiler. I have not meet one which allowed to build one resource from several sources. You may write a small utility to add a trailing '\0' to a file, say makeZ.exe, and set an additional build step: ``` makeZ myfile.txt myfi...
[ 0.43862679600715637, 0.3018741309642792, 0.2920605540275574, 0.002575281774625182, 0.2480766922235489, 0.03752924129366875, -0.21400846540927887, -0.023479444906115532, -0.11049602180719376, -0.73272705078125, -0.03542746603488922, 0.6125733852386475, -0.28366878628730774, 0.02010958269238...
Where to read up on (the best-practice in) source code formatting, for individual languages i.e. what are the conventions for naming variables etc., for indentation and where to place braces, how and where to include comments, etc. For example for C Kernighan and Ritchie's book [The C Programming Language](https://ra...
[ 0.5196165442466736, 0.2503322660923004, -0.13943898677825928, 0.10404107719659805, -0.03276221826672554, -0.06718121469020844, 0.07190828770399094, -0.05205977335572243, -0.08544756472110748, -0.4062003791332245, -0.1637624353170395, 0.32460907101631165, -0.07465416938066483, -0.2729720473...
in the end you or your team will develop own coding-styles. EDIT: Rob Kam made a comment, that he want to find out more about these 'starting-conventions'. That's a good point. But mostly you will join existing projects, open-source-projects or commercial, and the people working on it already have a code-convention. ...
[ 0.7665673494338989, 0.19922472536563873, -0.1720762997865677, 0.39263367652893066, 0.12962932884693146, -0.35133376717567444, -0.07527997344732285, -0.08514313399791718, -0.21168039739131927, -0.4128759503364563, -0.36701101064682007, 0.486564040184021, 0.07454980909824371, -0.274963915348...
somehow similar (i.e. for a new oo-language you can use conventions from Java or Smalltalk) and adjust your conventions as you gain experience for the new language. As I started programming in Java I used my Pascal-coding-conventions. Some of the pascal-conventions didn't work very good for Java, but with the time I dr...
[ 0.6063938736915588, 0.20454725623130798, -0.13049864768981934, 0.2140052318572998, -0.019913580268621445, -0.20726501941680908, -0.2020638883113861, -0.16732370853424072, -0.46154412627220154, -0.48967182636260986, 0.12224443256855011, 0.5295026302337646, -0.2779911756515503, 0.13500045239...
good idea, because with the time Stackoverflow will become a good reference for coding-conventions this way.
[ 0.1502794474363327, 0.10087388753890991, 0.3500770926475525, 0.2286687195301056, 0.14611022174358368, -0.4403630793094635, -0.04989004507660866, -0.12636959552764893, -0.22869743406772614, -0.47034111618995667, -0.09266282618045807, 0.3542994558811188, 0.16275838017463684, -0.1248117461800...
I am attempting to bind a WPF textbox's Maxlength property to a known constant deep within a class. I am using c#. The class has a structure not too dissimilar to the following: ``` namespace Blah { public partial class One { public partial class Two { public string MyBindingValue...
[ 0.6481314301490784, -0.1753840297460556, 0.320102721452713, 0.1377996802330017, 0.05619008466601372, -0.23076346516609192, 0.0270257405936718, -0.3226234018802643, -0.10342983901500702, -0.37975651025772095, 0.0233559962362051, 0.5933936238288879, -0.3582509458065033, 0.4043543040752411, ...
{ public static class Sizes { public const int Length1 = 10; public const int Length2 = 20;
[ 0.023385819047689438, -0.20793750882148743, 0.2151721715927124, -0.27155378460884094, 0.0736042931675911, 0.1989450305700302, 0.09172923862934113, -0.3523651957511902, -0.46999064087867737, -0.3360637426376343, -0.35571494698524475, 0.6420880556106567, -0.17153969407081604, 0.1660498231649...
} } } } } ``` Yes it is deeply nested, but unfortunately in this instance I can't move things round very much without huge rewrites required. I was hoping I'd be able to bind the textbox MaxLength to the Length1 or Length2 values but I can't get it to work. I was expecting the binding to be...
[ 0.04156847298145294, 0.006690131034702063, 0.5792618989944458, -0.1299334019422531, 0.014349478296935558, -0.23379109799861908, 0.16046860814094543, -0.33954283595085144, -0.30852535367012024, -0.5320165157318115, 0.17280012369155884, 0.4616871476173401, -0.3427620828151703, 0.151682212948...
help is appreciated. Many thanks Fixed! Initially I tried doing this: ``` {Binding Path=MetaData+Sizes.Length1} ``` which compiled ok, however the binding failed at runtime, despite the Class 'Two' being the datacontext the path couldn't resolve into the inner static classes (could I have done something like : {Bi...
[ 0.07233301550149918, -0.11051957309246063, 0.40722864866256714, 0.1673928052186966, -0.12271670997142792, -0.23533755540847778, 0.3302292823791504, -0.4243502616882324, -0.1506763994693756, -0.8224400281906128, 0.08602701872587204, 0.679218590259552, -0.3823498785495758, 0.1827116757631302...
// this doesn't matter as it relates to class 'One' more specifically than class 'Two' public static class MetaData { public static class Sizes { public static int Length1 { get { return 10; } }
[ 0.6094132661819458, -0.3697574734687805, 0.09566307812929153, 0.30733272433280945, 0.26766249537467957, -0.16143763065338135, -0.08619284629821777, -0.33778297901153564, -0.49535423517227173, -0.3729219138622284, -0.0378451943397522, 0.6658180356025696, -0.15838471055030823, 0.123207524418...
public static int Length2 { get { return 20; } } } } public partial class Two { public string MyBindingValue { get; set; } } } } ``` Then my binding statement is as follows: ``` xmlns:local="clr-namespace:Blah" ``` and ``` MaxLength="{x:Static local:Met...
[ 0.03171185031533241, -0.12583820521831512, 0.7317197918891907, -0.18107512593269348, -0.1414087414741516, -0.28031688928604126, -0.07705529034137726, -0.30472925305366516, -0.15383316576480865, -0.4712435305118561, -0.2153213769197464, 0.6248644590377808, -0.21283318102359772, 0.2055528461...
or not the constants needed to be converted into properties, but there doesn't appear to be any harm in doing so. Thankyou everyone for your help!
[ 0.7377122640609741, 0.19495084881782532, 0.05481034517288208, 0.46865615248680115, 0.01641809567809105, -0.2678548991680145, 0.4987914562225342, 0.3381073772907257, 0.19197548925876617, -0.5404084324836731, 0.006014042999595404, 0.5016559958457947, 0.19912540912628174, 0.3197365403175354, ...
I have what is essentially a jagged array of name value pairs - i need to generate a set of unique name values from this. the jagged array is approx 86,000 x 11 values. It does not matter to me what way I have to store a name value pair (a single string "name=value" or a specialised class for example KeyValuePair). ...
[ 0.1134658232331276, 0.26831692457199097, 0.1435139775276184, -0.1742362678050995, -0.13012537360191345, 0.03438586741685867, 0.4891214966773987, -0.19576434791088104, -0.028667157515883446, -0.6381624341011047, 0.11986225098371506, 0.47318464517593384, -0.01708333007991314, 0.1711791455745...
be better to push my entire jagged array into a sql database and do a select distinct from there). Below is the current code Im using: ``` List<List<KeyValuePair<string,string>>> vehicleList = retriever.GetVehicles(); this.statsLabel.Text = "Unique Vehicles: " + vehicleList.Count; Dictionary<KeyValuePair<string, str...
[ -0.07491061091423035, 0.07003144174814224, 0.3528609573841095, -0.10740786790847778, -0.07156543433666229, 0.37681829929351807, 0.11579415202140808, -0.48982539772987366, -0.12002331018447876, -0.6850103735923767, 0.014662722125649452, 0.6400898694992065, 0.12375932186841965, 0.23013368248...
} } this.statsLabel.Text += "\rUnique Properties: " + uniqueProperties.Count; ``` **I have it running in 0.34 seconds** down from 9+ minutes The problem is when comparing the KeyValuePair structs. I worked around it by writing a comparer object, and passing an instance of it to the Dictionary. From what I can determ...
[ -0.22214093804359436, -0.13539151847362518, 0.5804170966148376, -0.23582349717617035, 0.11990363895893097, -0.04611336439847946, 0.4118586778640747, -0.4115920662879944, 0.04665461182594299, -0.5894477367401123, 0.1833002120256424, 0.552717924118042, -0.015243998728692532, -0.0895164757966...
the Equals function far less often. I also optimised the Equals function to compare the more unique Values before the less unqiue Keys. 86,000 \* 11 items with 10,000 unique properties runs in 0.34 seconds using the comparer object below (without the comparer object it takes 9 minutes 22 seconds) Hope this helps :) ...
[ -0.3834134638309479, -0.03487970679998398, 0.7074202299118042, -0.11947540193796158, -0.03714124858379364, 0.14434614777565002, 0.44739848375320435, -0.3256103992462158, 0.269228994846344, -0.7175130248069763, 0.18913531303405762, 0.6732011437416077, -0.023421332240104675, -0.1487615853548...
return x.Value == y.Value && x.Key == y.Key; } public int GetHashCode(KeyValuePair<string, string> obj) { return (obj.Key + obj.Value).GetHashCode(); } } ``` **EDIT**: If it was just one string (instead of a KeyValuePair, where string = Name+Value) it would be approx tw...
[ -0.29185229539871216, -0.07389796525239944, 0.5518654584884644, -0.03052620030939579, 0.01941544935107231, 0.26895806193351746, 0.6295928955078125, -0.252288818359375, -0.44481581449508667, -0.6053014397621155, -0.1965242624282837, 0.6078997254371643, -0.22160862386226654, 0.07925251126289...
much time on it* (I learned quiet a bit though)
[ 0.41776543855667114, 0.06504782289266586, -0.2349298745393753, -0.17811110615730286, -0.20172742009162903, -0.2465721070766449, 0.2790599763393402, 0.25869986414909363, -0.26990407705307007, -0.5179246664047241, 0.2953953742980957, 0.6816579103469849, 0.3161540627479553, -0.124028414487838...
Does anyone have any T4 example Templates (or links to same) that can be used to generate a Webservice? I'm thinking of the fact that I guess the Webservice is not just the Vb or Cs field but also requires an appropriate asmx file. I'm really not sure how to achieve this [Oleg Sych: How to generate multiple outputs f...
[ 0.8065980076789856, 0.04408673569560051, -0.20089152455329895, 0.19217847287654877, -0.44604384899139404, 0.03318919241428375, 0.1455114781856537, -0.18276217579841614, -0.5380920171737671, -0.27198219299316406, 0.0850883275270462, 0.4223797023296356, -0.4793132245540619, 0.056168701499700...
that will guide you through it, particularly these: * [T4 Toolbox](http://www.olegsych.com/2008/08/t4-toolbox/) * [Creating a complex code generator](http://www.olegsych.com/2008/09/t4-tutorial-creating-complex-code-generators/)
[ 0.06965270638465881, 0.03871123120188713, 0.15462815761566162, 0.04661639779806137, 0.08369956910610199, -0.08910401910543442, 0.4699913561344147, -0.37367942929267883, -0.010458939708769321, -0.3944900631904602, -0.24431078135967255, 0.3600313663482666, -0.18720132112503052, -0.1456905901...
Is there a name meaning "not a singleton"? Castle Windsor uses the term "transient" to describe all non-Singleton objects. I personally prefer the term "non-Singleton" though.
[ 0.18920442461967468, 0.11956322193145752, -0.01857670210301876, 0.08677094429731369, 0.43970707058906555, 0.028921958059072495, -0.05925287678837776, 0.5446606874465942, -0.569094717502594, -0.2130412757396698, -0.30097877979278564, 0.47328370809555054, -0.12827618420124054, 0.403665691614...
I have a comma separated list of strings like the one below. ``` a,b ,c ,d, , , , ,e, f,g,h . ``` I want to write a regular expression that will replace the empty values i.e., strings that contain only white spaces to 'NA'. So the result should be ``` a,b ,c ,d,NA,NA,NA,NA,e, f,g,h . ``` I tried using ...
[ -0.2312072068452835, 0.2037980705499649, 0.3014497458934784, -0.12641116976737976, -0.0051606809720396996, 0.33460158109664917, 0.2561092972755432, -0.11866828799247742, -0.18997064232826233, -0.5074931979179382, -0.4137463867664337, 0.4026249945163727, -0.4185144305229187, 0.0466736294329...
for a comma, then whitespace, then a lookahead for a comma
[ -0.3456181585788727, -0.06527262181043625, 0.3023045063018799, -0.29881101846694946, -0.22236639261245728, 0.660706639289856, -0.03492662310600281, 0.26650843024253845, -0.40214803814888, -0.5382533669471741, -0.2520199120044708, 0.18098172545433044, 0.006388145964592695, 0.271709024906158...
What is the best way to do GUIs in [Clojure](http://en.wikipedia.org/wiki/Clojure)? Is there an example of some functional [Swing](http://en.wikipedia.org/wiki/Swing_%28Java%29) or [SWT](http://en.wikipedia.org/wiki/Standard_Widget_Toolkit) wrapper? Or some integration with [JavaFX](http://en.wikipedia.org/wiki/JavaFX...
[ 0.02042767032980919, 0.03264915943145752, 0.2517111301422119, -0.052248597145080566, -0.22526992857456207, -0.25428786873817444, 0.3249658942222595, -0.42490190267562866, -0.2766910791397095, -0.2886621057987213, -0.30268681049346924, 0.3876626193523407, -0.26550760865211487, -0.5443842411...
[event] (alert event (str "<html>Hello from <b>Clojure</b>. Button " (.getActionCommand event) " clicked."))) (-> (frame :title "Hello Swing" :on-close :exit :content (button :text "Click Me" :listen [:action handler])) pack! show!) ```
[ 0.3689274191856384, -0.17622296512126923, 0.5766761898994446, -0.2646845877170563, -0.09739735722541809, -0.5726089477539062, 0.2562570869922638, -0.7800261974334717, -0.30183184146881104, -0.05796687304973602, -0.488572359085083, 0.45260658860206604, -0.5550055503845215, -0.21095977723598...
I have a web page that uses a scrolling div to display table information. When the window is resized (and also on page load), the display is centered and the div's scrollbar positioned to the right of the page by setting its width. For some reason, the behaviour is different under firefox than IE. IE positions/sizes th...
[ 0.21202896535396576, -0.01858963444828987, 0.9198603630065918, -0.2700505256652832, -0.005483380053192377, -0.11902403086423874, 0.15549184381961823, -0.15692760050296783, -0.07132688909769058, -1.062722086906433, -0.027832869440317154, 0.5234989523887634, -0.25803399085998535, 0.281659215...
= 0; if (typeof(window.innerWidth) == 'number') { windowWidth=window.innerWidth; } else { if (document.documentElement && document.documentElement.clientWidth) { windowWidth=document.documentElement.clientWidth ; } else { if (document.body && document.body.clientWidth) { windo...
[ -0.2648528814315796, -0.15475644171237946, 0.964401364326477, -0.4155801236629486, -0.01078294962644577, 0.41558098793029785, 0.16882330179214478, -0.43129870295524597, -0.26425525546073914, -0.6699674129486084, -0.43593916296958923, 0.6133239269256592, -0.3072058856487274, -0.147863328456...
(obj = obj.offsetParent) { curleft += obj.offsetLeft } } return curleft; } var bdydiv; var coldiv; document.body.style.overflow="hidden"; window.onload=resizeDivs; window.onresize=resizeDivs; function resizeDivs(){ bdydiv=document.getElementById('bdydiv'); coldiv=document.getElementById('cold...
[ -0.3111712634563446, -0.06125247851014137, 0.9535638093948364, -0.34788602590560913, 0.15262733399868011, 0.33234116435050964, 0.5778061747550964, -0.4731844961643219, -0.12610818445682526, -0.4412243068218231, -0.579582929611206, 0.569135844707489, -0.15708863735198975, 0.0427060797810554...
bdydiv.style.width; } syncScroll(); } function syncScroll(){ if(coldiv.scrollLeft>=0){ coldiv.scrollLeft=bdydiv.scrollLeft; } } ``` Note that I've cut out other code which sets height, and other non-relevant parts. The full page can be seen [here](http://site1.funddata.com/mozilladivresize.html). If you ...
[ 0.04935062676668167, -0.08343208581209183, 0.9074040055274963, -0.35581859946250916, 0.41702789068222046, -0.10644090175628662, 0.5733384490013123, -0.1113719716668129, -0.2710234522819519, -0.730627715587616, -0.2569805085659027, 0.7564138770103455, -0.3017275929450989, 0.0808476433157920...
to why this is happening.... Note that AFAIK, getWindowWidth() should be cross-browser-compatible, but I'm not so sure about findLPos().... perhaps there's an extra object in Firefox's DOM or something, which is changing the result?? You are dealing with "[one of the best-known software bugs in a popular implementatio...
[ 0.14512328803539276, 0.018677696585655212, 0.3491221070289612, 0.19903574883937836, -0.08054600656032562, -0.31392335891723633, 0.27491188049316406, -0.2969345152378082, -0.49064749479293823, -0.5231664776802063, -0.16745208203792572, 0.48382842540740967, -0.3824499547481537, -0.0424918904...
the other way around.
[ 0.009066930040717125, -0.148685023188591, -0.16251571476459503, 0.07599164545536041, -0.3712558150291443, -0.21192219853401184, 0.10895606130361557, 0.3301105797290802, -0.02885054051876068, -0.24244140088558197, 0.046402230858802795, 0.30038779973983765, -0.22840535640716553, 0.1324537396...
Since many years a GUI-standard are the menu-bars of applications with menus popping up, if you click or hover an entry in the menu-bar. Some websites implement this feature too, but they are using Javascript, as far as I can see. For different reasons Javascript can be a problem, so the question: Is this possible to i...
[ 0.309580534696579, -0.2430407702922821, 0.22965534031391144, 0.04170547425746918, -0.002012532204389572, 0.04081698879599571, 0.012567191384732723, 0.2318136841058731, -0.32410863041877747, -0.7778206467628479, 0.10064879804849625, 0.5479692816734314, -0.23621992766857147, -0.1762653738260...
div appear during the a:hover event. It looks something like: ``` <style> A DIV { display: none; } A:hover DIV { display: block; } </style> <a href="blah.htm"> Top Level Menu Text <div><ul> <li><a href="sub1.htm">Sub Item 1</a></li> <li><a href="sub2.htm">Sub Item 2</a></li> <l...
[ 0.07933814078569412, -0.15862829983234406, 0.7411068081855774, -0.10240928083658218, -0.32637280225753784, 0.019689098000526428, 0.12128724157810211, -0.03931187093257904, 0.07441642880439758, -0.6623678803443909, -0.14987263083457947, 0.035854119807481766, -0.4194762706756592, 0.123023696...
is accepted to be able to use this trick with LI, TD, DIV, SPAN, and most any tag.
[ 0.32616326212882996, -0.1428089141845703, 0.7190267443656921, -0.022567883133888245, 0.05080193653702736, -0.3741641938686371, 0.5793537497520447, -0.37845849990844727, -0.07433966547250748, -0.2013060599565506, -0.11174827814102173, 0.5444576144218445, 0.08102836459875107, -0.285715103149...
I am working on a project to enhance our production debugging capabilities. Our goal is to reliably produce a minidump on any unhandled exception, whether the exception is managed or unmanaged, and whether it occurs on a managed or unmanaged thread. We use the excellent [ClrDump](http://www.debuginfo.com/tools/clrdump...
[ 0.1870470643043518, -0.21573153138160706, 0.13765524327754974, -0.07178778946399689, 0.010188188403844833, -0.31199872493743896, 0.0492459312081337, -0.04844485595822334, 0.028144968673586845, -0.5275518894195557, -0.045071132481098175, 0.28722408413887024, -0.4471811354160309, 0.010883501...
when I try the same thing from a WinForms application, my filter is not called for any variety of unmanaged exceptions. What can ClrDump be doing that I'm not doing? ClrDump produces dumps in all cases, so its exception filter must still be called... Note: I'm aware of ADPlus's capabilities, and we've also considered...
[ 0.06738968193531036, 0.04783571884036064, 0.4366748034954071, -0.3283657729625702, 0.09639377892017365, -0.19867363572120667, 0.5512065291404724, -0.3748721182346344, -0.10017193108797073, -0.7322340607643127, -0.2514108717441559, 0.5607812404632568, -0.43396228551864624, -0.00744834123179...
return EXCEPTION_CONTINUE_SEARCH; } LONG ret = oldFilter_(ExceptionInfo); printf("Other handler returned %d\n",ret); return ret; } #pragma managed namespace SEHInstaller { public ref class SEHInstall { public: static void InstallHandler() { oldFilter_ = SetUnhandledExce...
[ -0.04414891079068184, -0.10948116332292557, 0.37132421135902405, -0.38990145921707153, 0.1169639527797699, -0.09240559488534927, 0.4531640112400055, -0.2589012086391449, -0.27754148840904236, -0.49071475863456726, -0.5226130485534668, 0.6307024359703064, -0.36485162377357483, 0.16421851515...
an unhandled managed exception when: + no debugger attached, and + exception occurs during window message processing, and + jitDebugging = false in App.Config. * Shows dialog to user and prevents app termination. You can disable the first behaviour by setting **jitDebugging = true** in App.Config. This means that y...
[ -0.31089892983436584, -0.0328904464840889, 0.37380969524383545, -0.10582992434501648, 0.08532363921403885, -0.1053907722234726, 0.62803053855896, -0.17778566479682922, -0.4467472434043884, -0.47354504466056824, -0.35633620619773865, 0.5516746044158936, -0.2978499233722687, 0.09070374071598...
which I'm aware: * 0: shows user dialog asking "debug or terminate". * 1: lets exception through for CLR to deal with. * 2: launches debugger specified in DbgManagedDebugger registry key. In Visual Studio, go to Tools>Options>Debugging>JIT to set this key to 0 or 2. But a value of 1 is usually what you want on an end...
[ 0.21491152048110962, -0.006084824446588755, 0.18955357372760773, -0.1324753612279892, 0.005594669375568628, -0.20278365910053253, 0.362515926361084, -0.18760716915130615, -0.26775187253952026, -0.3744683861732483, -0.3864579200744629, 0.6438018083572388, -0.33066287636756897, -0.0981604158...
I'm looking for ActiveX components that can easily: * get and send emails via SMTP and POP3 * strip out and save attachments. * Convert RTF (Outlook emails) to HTML * Sanitize HTML. What components would you recommend? What components do you use? Sendong and receiving email is simple with CDOSYS. And RTF isn't reall...
[ 0.4011783003807068, -0.033573269844055176, 0.2721714377403259, 0.03875187411904335, -0.36102503538131714, -0.19859546422958374, -0.035578880459070206, 0.08731553703546524, -0.25511011481285095, -0.8448634147644043, -0.03733142837882042, 0.40509334206581116, -0.3463752865791321, 0.004019617...
I'm starting a Wordpress Blog that will have adult content on it, so I'll need a first-time-only splash page in Wordpress. The first-time-only issue, I can fix with a cookie (although I am aware that not everyone has cookies enabled) What I could do is, create a script that loads another page if a cookie isn't presen...
[ 0.26325172185897827, -0.1430787444114685, 0.49795013666152954, 0.18162740767002106, -0.16381600499153137, -0.07738038897514343, 0.19838102161884308, 0.33984440565109253, -0.34249332547187805, -0.7184814214706421, 0.0451846569776535, 0.41080617904663086, -0.1983122080564499, -0.059197161346...
the background (the home page) and shows a panel with the choice to stay or leave. I haven't got a clue on how to start this. I am familiar with PHP, Javascript and CSS, so I'm not even asking for code. I just want a web programmer's view on this, and some help on how to create the splash-page the way I would like it...
[ 0.6457794904708862, -0.24359920620918274, 0.4325665831565857, 0.10923096537590027, 0.20161965489387512, -0.34072554111480713, -0.029174750670790672, 0.4131564497947693, -0.29182982444763184, -0.35430023074150085, -0.05518535152077675, 0.331459641456604, -0.22760987281799316, -0.11208561807...
display it, and you can;t be "caught with your pants down" if you get linked to. My only concern would be to make sure that the lightbox effect covers anything graphic, as I'm sure you don't want it displayed before the user agrees to seeing it.
[ 0.5324617624282837, -0.41811075806617737, 0.6827755570411682, 0.001481008599512279, -0.3002321422100067, -0.4105767607688904, 0.08523238450288773, 0.22962833940982819, -0.30533918738365173, -0.4815486967563629, -0.12588101625442505, 0.22517670691013336, -0.45925143361091614, -0.40098702907...
I have created a .NET DLL which makes some methods COM visible. One method is problematic. It looks like this: ``` bool Foo(byte[] a, ref byte[] b, string c, ref string d) ``` VB6 gives a compile error when I attempt to call the method: > Function or interface marked as > restricted, or the function uses an > Au...
[ 0.11378163844347, 0.24580617249011993, 0.3485358953475952, -0.1494513899087906, -0.13310253620147705, -0.0976039320230484, 0.36070799827575684, -0.40504658222198486, -0.19390857219696045, -0.4578288197517395, 0.06706495583057404, 0.6053758859634399, -0.5158082842826843, 0.3044571280479431,...
signature to be compatible with VB6? Declaring the array argument with "ref" is required. Your 2nd attempt should have worked just fine, perhaps you forgot to regenerate the .tlb? Tested code: ``` [ComVisible(true)] public interface IMyInterface { bool Foo(ref byte[] a, ref byte[] b,string c, ref string d); } [ComV...
[ 0.2964411675930023, 0.03360188379883766, 0.596829891204834, -0.42067384719848633, -0.150010347366333, 0.10394543409347534, 0.46591055393218994, -0.6785032153129578, 0.01159069873392582, -0.32361316680908203, -0.03410280868411064, 0.713387131690979, -0.5684936046600342, 0.06278011947870255,...
As String Dim retval As Boolean retval = obj.Foo(binp, bout, sinp, sout) ```
[ 0.10315096378326416, -0.13916626572608948, 0.6054643392562866, -0.5460548996925354, -0.21175317466259003, 0.16395583748817444, 0.500435471534729, -0.47120580077171326, -0.023608656600117683, -0.13691426813602448, -0.508272111415863, 0.4527370035648346, -0.5689752697944641, 0.03085881285369...
**I have class A:** ``` public class ClassA<T> ``` **Class B derives from A:** ``` public class ClassB : ClassA<ClassB> ``` **Class C derives from class B:** ``` public class ClassC : ClassB ``` **Now I have a generic method with constraints** ``` public static T Method<T>() where T : ClassA<T> ``` OK, now ...
[ -0.1023854911327362, -0.06956665962934494, 0.09335123747587204, 0.098979651927948, -0.04647747054696083, -0.049125052988529205, 0.11182886362075806, -0.08107485622167587, -0.059273965656757355, -0.5726309418678284, -0.06292671710252762, 0.49420857429504395, -0.3215867877006531, 0.239105567...
some way with the generic method?** This may seem like generics are overused and I would agree. I am trying to create business layer objects deriving from the subsonic data objects in a separate project. Note: I have put the < T > with extra spaces otherwise they get stripped from the question. Well, you could change...
[ 0.33974239230155945, -0.18426395952701569, 0.23226986825466156, 0.21741530299186707, -0.243337482213974, -0.2171579748392105, 0.3556687533855438, 0.12928304076194763, -0.12703171372413635, -0.5030781626701355, 0.10111668705940247, 0.48060572147369385, -0.47282588481903076, 0.34564262628555...
How useful, if at all, is for the testers on a product team to know about the internal code details of a product. This does not mean they need to know every line of code but a good idea of how the code is structured, what is the object model, how the various modules are inter-linked, what are the inter-dependencies bet...
[ 0.4483616352081299, 0.39803367853164673, -0.07803409546613693, 0.1967647671699524, 0.023423785343766212, -0.07371041178703308, 0.15459510684013367, -0.22215989232063293, -0.08366675674915314, -0.2681256830692291, -0.09970445930957794, 0.694730818271637, 0.05762723833322525, 0.0938221514225...
testing results in the end. I have not heard of any specific model for such interaction. (Lets assume a product that users, potentially non-technical consume, and not a framework or API that the testers are testing - in the latter case the testers may need to understand the code to test that because the user is anothe...
[ 0.46038246154785156, 0.3672052025794983, 0.03406001999974251, 0.373502254486084, 0.03979066386818886, -0.1609925776720047, 0.4927673637866974, -0.0015942240133881569, 0.17250677943229675, -0.6142784357070923, -0.16584506630897522, 0.6642636656761169, -0.012299401685595512, -0.1337377727031...
not properly test the product. For performance and scalability testing it's often helpful for the testers to have some high-level knowledge of the structure of the codebase, as it's beneficial in identifying potential performance hotspots, and therefore writing targetted test cases. The reason this is important is tha...
[ 0.9744157791137695, 0.5248157978057861, -0.29812484979629517, 0.23706066608428955, -0.17158491909503937, -0.49550145864486694, 0.6640427708625793, 0.10688532888889313, 0.16959047317504883, -0.36180388927459717, -0.2844197154045105, 0.6486213803291321, -0.13819684088230133, -0.0632979571819...
Is it possible to enable a second monitor programatically and extend the Windows Desktop onto it in C#? It needs to do the equivalent of turning on the checkbox in the image below. ![alt text](https://i.stack.imgur.com/ss2sE.png) [MSDN Device Context Functions](http://msdn.microsoft.com/en-us/library/ms533259.aspx) W...
[ 0.13783736526966095, -0.36854878067970276, 0.7702125906944275, 0.21806931495666504, 0.22550225257873535, -0.2579900026321411, 0.099004365503788, -0.3705722689628601, -0.22301220893859863, -0.8611010313034058, 0.0713888630270958, 0.6670560836791992, -0.1975647509098053, -0.1318335235118866,...
display mode to change it to, > you can find this by calling the > EnumDisplaySettingsEx() API call - > Generally you'd display all the > available modes and allow the user to > choose however in your case it sounds > like this may be possible to hard-code > and save you an additional step. For > the sake of fu...
[ 0.11352559179067612, -0.4313092827796936, 0.6811743974685669, 0.09138327091932297, -0.18153853714466095, -0.22208555042743683, 0.2316712588071823, 0.016875553876161575, -0.1923203319311142, -0.9632657170295715, 0.08036302030086517, 0.7160890102386475, -0.34517547488212585, 0.03808295354247...
populate a DevMode display > structure with the information about > the display positioning (set the > PelsWidth/Height, Position, > DisplayFrequency and BitsPerPel > properties) then set these flags in > the fields member. Finally call > ChangeDisplaySettingsEx() with this > settings structure and be sure to s...
[ 0.055765822529792786, -0.22124584019184113, 1.1870429515838623, 0.17854508757591248, -0.11360085755586624, 0.05161435529589653, -0.15984298288822174, -0.4587789475917816, -0.3388526141643524, -0.5763989090919495, 0.06895074248313904, 0.3735053539276123, -0.3882979154586792, 0.0794023126363...
I'm trying to write a small app that monitors how much power is left in a notebook battery and I'd like to know which Win32 function I could use to accomplish that. For Vista and up you can use [RegisterPowerSettingNotification](http://msdn.microsoft.com/en-us/library/aa373196(VS.85).aspx) For earlier functions see th...
[ 0.10776440799236298, -0.12892071902751923, 0.413377970457077, -0.0034577730111777782, 0.06888474524021149, -0.1697872281074524, -0.05036187544465065, -0.4125506281852722, -0.12145452201366425, -0.4384777247905731, -0.12293781340122223, 0.9654952883720398, -0.10695191472768784, -0.119895026...
I have a number of custom controls that I am trying to enable designer support for. The signature looks something like the following: ``` [ToolboxData("<{0}:MyDropDownList runat=\"server\" CustomProp="123"></{0}:MyDropDownList>")] public class MyDropDownList: DropDownList { ... code here } ``` This works fine, bu...
[ 0.5197049379348755, -0.09251365065574646, 0.6345719695091248, 0.29595497250556946, 0.09334933012723923, -0.3084591329097748, -0.01903451792895794, -0.1674942523241043, -0.4145607650279999, -0.47840291261672974, 0.15237610042095184, 0.43013796210289, -0.38811951875686646, 0.0818451568484306...
will be set to when dragging a custom control onto a page in visual studio? Thanks, Max It looks something like this: ``` [assembly:TagPrefix("MyControls","RequiredTextBox")] ``` and [here's](http://msdn.microsoft.com/en-us/library/system.web.ui.tagprefixattribute.tagprefixattribute.aspx) some more info about it.
[ 0.14722678065299988, -0.37749868631362915, 0.47497016191482544, 0.23376141488552094, 0.17367836833000183, -0.36279329657554626, 0.10019440948963165, -0.022058693692088127, -0.012129041366279125, -0.772156298160553, -0.16899073123931885, 0.651756227016449, -0.10055509954690933, -0.245518177...
Is it possible to log out user from a web site if he is using basic authentication? Killing session is not enough, since, once user is authenticated, each request contains login info, so user is automatically logged in next time he/she access the site using the same credentials. The only solution so far is to close b...
[ 0.28253158926963806, 0.060717515647411346, 0.2722914218902588, 0.108147032558918, 0.334339439868927, -0.3723020851612091, 0.3468109667301178, -0.17194713652133942, -0.2523520588874817, -0.442579060792923, 0.09519453346729279, 0.47166046500205994, -0.24173349142074585, -0.016162917017936707...
realm and at the same URL folder level as the normal 401 you send requesting a login. They must be directed to input wrong credentials next, eg. a blank username-and-password, and in response you send back a “You have successfully logged out” page. The wrong/blank credentials will then overwrite the previous correct c...
[ 0.20761041343212128, -0.10473094135522842, 0.8574697971343994, 0.16074146330356598, 0.1746467500925064, -0.029888687655329704, 0.4675388038158417, 0.1238076388835907, -0.29230284690856934, -0.6140838265419006, -0.1429888904094696, 0.5520002841949463, 0.052370645105838776, 0.010969141498208...
can also get in the way here. Edit to add in response to comment: re-log-in is a slightly different problem (unless you require a two-step logout/login obviously). You have to reject (401) the first attempt to access the relogin link, than accept the second (which presumably has a different username/password). There a...
[ 0.007382472511380911, -0.07685628533363342, 0.321735680103302, 0.06372016668319702, 0.3068642318248749, 0.08639097958803177, 0.2940964996814728, -0.1492404043674469, -0.3482588529586792, -0.5957736968994141, -0.23065945506095886, 0.5024663805961609, -0.08324204385280609, 0.0755669325590133...
I have a very simple jQuery Datepicker calendar: ``` $(document).ready(function(){ $("#date_pretty").datepicker({ }); }); ``` and of course in the HTML... ``` <input type="text" size="10" value="" id="date_pretty"/> ``` Today's date is nicely highlighted for the user when they bring up the calendar, but ...
[ 0.13393817842006683, 0.08696351200342178, 0.7031863927841187, -0.3115716278553009, -0.07019165903329849, -0.015787921845912933, -0.031594809144735336, 0.257228821516037, -0.12579740583896637, -0.7654756307601929, 0.07857942581176758, 0.5653288960456848, -0.10950421541929245, -0.05193248391...
work in chrome (2019-06-04): ``` $(".date-pick").datepicker().datepicker('setDate', new Date()); ```
[ 0.5510364174842834, 0.036502473056316376, 0.9526980519294739, -0.15300020575523376, 0.3904573321342468, -0.2573619484901428, -0.09329023957252502, -0.031593021005392075, -0.11295729875564575, -0.8846200704574585, -0.2972341775894165, 0.4940362870693207, -0.07470733672380447, 0.042271919548...
I have created a multi column datastore on a table that allows me to do full text indexing on the table. What I need to be able to do is weight each column different and add the scores together. The following query works, but is slow: ``` SELECT document.*, Score(1) + 2*Score(2) as Score FROM document WHERE (CONTAINS...
[ -0.18974292278289795, 0.16908913850784302, 0.6176884770393372, 0.10408090054988861, -0.06935636699199677, -0.12759029865264893, 0.10205339640378952, -0.7774755954742432, -0.07072621583938599, -0.736826479434967, -0.052353858947753906, 0.60456383228302, -0.0183251965790987, 0.13313728570938...
its predecessor but it does not solve the actual problem. In this case, if the keyword is found in the documentTitle, it will not search the documentText (it uses the OR operator). What I really need is to ADD the two scores together so that if a keyword appears in the title AND the text it will have a higher score tha...
[ -0.35294997692108154, -0.11810274422168732, 0.6915945410728455, 0.31011512875556946, -0.18526339530944824, 0.0005496648955158889, 0.07206510007381439, -0.5458143949508667, -0.11417943239212036, -0.3147689998149872, -0.033627357333898544, 0.41879940032958984, -0.07883697748184204, -0.091957...
within documentText)',1) > 0) ORDER BY Score Desc
[ -0.3684150278568268, 0.1108706146478653, 0.8286865949630737, 0.10514485090970993, 0.23075246810913086, -0.2878635823726654, 0.30037209391593933, -0.6993395090103149, -0.08784418553113937, -0.6913551688194275, -0.4865453541278839, 0.3890102803707123, 0.0594501756131649, 0.09212791174650192,...
I'd like to link to some PDFs in one of my controller views. What's the best practice for accomplishing this? The CakePHP webroot folder contains a ./files/ subfolder, I am confounded by trying to link to it without using "magic" pathnames in my href (e.g. "/path/to/my/webroot/files/myfile.pdf"). What are my options? ...
[ 0.20728614926338196, 0.014369085431098938, 0.5107942223548889, 0.2860395908355713, -0.003474524011835456, -0.19172810018062592, 0.3095471262931824, -0.12224625796079636, -0.11854283511638641, -0.9029596447944641, -0.12122281640768051, 0.3492116332054138, -0.07748854160308838, 0.09936268627...
I use an anonymous object to pass my Html Attributes to some helper methods. If the consumer didn't add an ID attribute, I want to add it in my helper method. How can I add an attribute to this anonymous object? If you're trying to extend this method: ``` public static MvcHtmlString ActionLink(this HtmlHelper htmlHel...
[ 0.03506017103791237, 0.006275238003581762, 0.5761562585830688, 0.0455794595181942, -0.2341591864824295, -0.022744515910744667, 0.35280293226242065, -0.250055193901062, -0.17959924042224884, -0.5064859390258789, -0.07742270827293396, 0.5398321747779846, -0.4507783353328705, 0.00815826002508...
do the trick: ``` public static MvcHtmlString MyLink(this HtmlHelper helper, string linkText, string actionName, object routeValues) { RouteValueDictionary routeValueDictionary = new RouteValueDictionary(routeValues); // Add more parameters foreach (string parameter in helper.ViewConte...
[ -0.2631952166557312, -0.027617720887064934, 1.1699384450912476, -0.35235774517059326, -0.09596311300992966, -0.0383773073554039, 0.5908443927764893, -0.33338505029678345, -0.24028578400611877, -0.6630924940109253, -0.4367403984069824, 0.6598415970802307, -0.3300415575504303, 0.256677955389...
} ```
[ 0.3354566991329193, 0.5660994052886963, -0.045124202966690063, 0.08949362486600876, 0.36271432042121887, -0.03456072509288788, 0.2035233974456787, 0.4996976852416992, 0.20306141674518585, -0.48415371775627136, -0.1802433431148529, 0.4521971344947815, -0.138974130153656, 0.3154967725276947,...
I'm trying to read the contents of the clipboard using JavaScript. With Internet Explorer it's possible using the function ``` window.clipboardData.getData("Text") ``` Is there a similar way of reading the clipboard in Firefox, Safari and Chrome? Safari supports reading the clipboard during `onpaste` events: [Infor...
[ 0.4656607508659363, 0.10252664238214493, 0.5345625281333923, -0.1277797371149063, 0.01250720489770174, -0.12589310109615326, 0.3349720537662506, 0.2611792981624603, -0.2503706216812134, -0.8447568416595459, -0.15575765073299408, 0.6279325485229492, -0.24730530381202698, -0.1799693703651428...
window.clipboardData.getData('Text') : // MS false; if(paste) { // ... } }; ```
[ -0.0023654818069189787, -0.33259907364845276, 0.587128758430481, -0.10205461084842682, 0.2936723828315735, 0.03333695977926254, 0.28326308727264404, 0.34642404317855835, -0.1770879328250885, -0.9161259531974792, -0.47623664140701294, 0.5802430510520935, -0.45653945207595825, 0.118290700018...
As a Micro ISV I am coming to the stage in the development of a new desktop software application where beta testing it with an external group of users would be great. *I would prefer private invite only beta testing as opposed to public free for all beta testing.* **Are there websites/organisations, both free or paid...
[ 1.013671875, 0.03321010619401932, -0.10791343450546265, -0.24069303274154663, -0.14847761392593384, -0.13767214119434357, 0.04380056634545326, 0.027664290741086006, -0.03790028765797615, -0.548175036907196, 0.20313137769699097, 0.04742870107293129, -0.19457243382930756, 0.2650336027145386,...
to have ended around 2007). With regard to turning testers into customers, I am not too concerned with doing this at the moment. Advertising towards the target audience to build up a customer base will be put in place at a later stage. Right now just testers, ideally managed by a third party website/organisation, woul...
[ 0.8997355699539185, 0.12792237102985382, 0.21268244087696075, -0.17935921251773834, -0.0018717861967161298, -0.31032511591911316, 0.2724350392818451, 0.22514186799526215, 0.06768602132797241, 0.2324104607105255, 0.23325422406196594, 0.2672889828681946, 0.03226647898554802, 0.38314568996429...
all say yes. If you don't have customers, or you don't get enough beta testers, it's time for your sales critters (which sounds like it may be you) to get into action in creating some customers. Offering a beta, at no cost and no obligation, can often be an enticement to people that will actually encourage them to buy...
[ 0.9209388494491577, 0.06730852276086807, 0.12243511527776718, 0.246005579829216, 0.3184281289577484, 0.0867234319448471, 0.008921431377530098, 0.32549968361854553, 0.08327687531709671, -0.37682029604911804, -0.05161464214324951, 0.4447946548461914, -0.22575971484184265, -0.1132284253835678...
I am trying to detect Blackberry user agents in my app, which works fine in my development version. But nothing happens when I redeploy the app in production. application\_helper.rb ``` def blackberry_user_agent? request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Blackberry)/] end ``` applic...
[ -0.12007284164428711, 0.29161593317985535, 0.44327378273010254, -0.2641255557537079, -0.03131159022450447, 0.30248183012008667, 0.7062732577323914, -0.009464778006076813, -0.25887590646743774, -0.6414885520935059, -0.04328389838337898, 0.4636596739292145, -0.3661125898361206, -0.2311530560...
main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "http_x_forwarded_for"'; ```
[ -0.13072149455547333, 0.10708070546388626, 0.6791783571243286, 0.03844970837235451, -0.07961396872997284, 0.010766075924038887, 0.044721730053424835, 0.3896384835243225, -0.07630554586648941, -0.3943713903427124, -0.24297675490379333, 0.28555622696876526, -0.47405850887298584, 0.7314911484...
This web page <http://www.w3schools.com/ASP/prop_sessionid.asp> states that a session ID is generated on the ServerSide. If this is the case, then how does a server know it's still the same client on the 2nd request response cycle? Surely the SessionId would be generated on the ClientSide so that the client would be...
[ 0.2822176218032837, -0.3791818618774414, 0.5688780546188354, 0.26277971267700195, -0.15513594448566437, -0.06539393216371536, 0.33738094568252563, -0.3420375883579254, -0.3661043047904968, -0.6035051345825195, -0.014531338587403297, 0.371294766664505, -0.0666557177901268, 0.121890045702457...
The Microsoft unit testing framework has suddenly gone on strike. When I try to run tests in VS2008, I get a dialog with the message "VSTestHost.exe has stopped working". I have Visual Studio Team System 2008 (version 9.0.30729.1 SP) running on Vista with all updates applied. The "Problem reports and solutions" sug...
[ 0.26377516984939575, 0.2757622003555298, 0.3996351957321167, -0.2110695093870163, -0.3485800623893738, -0.12199991941452026, 0.7588223814964294, 0.23648685216903687, -0.17388086020946503, -0.7097524404525757, 0.03909578546881676, 0.8993305563926697, -0.05903077870607376, 0.3258619606494903...
Any suggestions on how to fix this? This is usually due to something wrong in the code like an endless loop, or a circular reference. I had the same issue and realized that it was my code that was messing up, and the test framework was simply protecting itself against my code by shutting itself down. The key for me ...
[ 0.6288991570472717, 0.5149291157722473, -0.252753347158432, 0.19061750173568726, 0.006057281047105789, -0.057143475860357285, 0.27225032448768616, 0.37864577770233154, -0.15962953865528107, -0.22158218920230865, 0.34507331252098083, 0.22809581458568573, -0.2724776566028595, 0.4035676717758...