text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
to send out the policy file request. With the div not hidden it works. The answer about different versions of flash between FF and IE was right on, that's why it was working in FF (it was an older version). The newer version didn't like the hidden DIV tag.
Are you certain the exact same version of flash is running on b... | [
0.36209946870803833,
-0.1783277541399002,
0.5084250569343567,
0.05734911561012268,
-0.2072194665670395,
-0.34132036566734314,
0.0993523821234703,
-0.05206143483519554,
-0.11643048375844955,
-0.45775106549263,
0.1215323880314827,
0.7914519309997559,
-0.398987352848053,
-0.13338159024715424,... | |
plugin. | [
0.3227853775024414,
-0.20702053606510162,
-0.14279676973819733,
0.24281607568264008,
-0.08233600854873657,
-0.14690285921096802,
-0.12281746417284012,
0.33102139830589294,
0.04108239337801933,
-0.8207979202270508,
-0.41235607862472534,
0.4524684548377991,
-0.49329814314842224,
0.1027550846... | |
Reading on another forum I've came across the world of CSS Frameworks. The one I've been specifically looking at is [BluePrint](http://www.blueprintcss.org/). I was wondering if anyone else had come across CSS frameworks, suggest which is the best and if they are worth the effort?
CSS 'frameworks' are completely missin... | [
0.556165337562561,
0.00503205694258213,
-0.30666157603263855,
0.24222585558891296,
-0.30556225776672363,
-0.15627597272396088,
-0.1030484139919281,
0.28480103611946106,
-0.27582430839538574,
-0.7615790963172913,
0.1408567577600479,
0.16671493649482727,
-0.40633177757263184,
0.0117014767602... | |
rules using 'float' and 'clear'. You can write that in a few lines of CSS yourself rather than pulling in the bloat of a hundred framework rules.
The 'grid layout' stuff in particular goes back to the bad old days of mixing your presentation into your markup. 'div class="span-24"' is no better than a table, you'll hav... | [
0.31791752576828003,
-0.023390520364046097,
0.3939034640789032,
0.2169482558965683,
-0.14420156180858612,
-0.022572942078113556,
-0.01627909205853939,
-0.16244018077850342,
-0.36617597937583923,
-0.7105370759963989,
0.07269331812858582,
0.2505558431148529,
-0.5260241031646729,
0.1463599056... | |
use only for someone too scared to write a CSS rule. | [
0.09379378706216812,
-0.1491166353225708,
-0.19794471561908722,
0.07792185246944427,
0.04742441326379776,
-0.4773045778274536,
0.47941842675209045,
0.24170634150505066,
0.09194966405630112,
-0.232695072889328,
-0.16379758715629578,
0.17084577679634094,
-0.35752367973327637,
-0.648182094097... | |
How can I make my compilation optimized for Windows 64 bit?
A managed project is automatically built according to the architecture selected => default C# project created on AMD64 will be AMD64, X86 on X86. The native one is always 32-bit by default.
To explicitly set a platform:
1 open the solution explorer, select s... | [
-0.016832202672958374,
-0.007033935282379389,
0.21578405797481537,
0.2657570540904999,
0.20343491435050964,
0.08866355568170547,
0.2603151500225067,
-0.25611886382102966,
-0.2244182527065277,
-0.9219751954078674,
-0.16095739603042603,
0.4755381643772125,
-0.23899199068546295,
-0.0108096310... | |
[WebLog](http://blogs.msdn.com/deeptanshuv/archive/2006/04/11/573795.aspx) | [
-0.4308934211730957,
-0.2130422443151474,
-0.1966097056865692,
-0.0012251059524714947,
0.08081962168216705,
-0.2055128812789917,
0.4154784679412842,
0.2730705738067627,
-0.45816582441329956,
0.0739327147603035,
-0.5093465447425842,
0.008767801336944103,
0.3575933873653412,
0.54369056224823... | |
Here is an example of polymorphism from <http://www.cplusplus.com/doc/tutorial/polymorphism.html> (edited for readability):
```
// abstract base class
#include <iostream>
using namespace std;
class Polygon {
protected:
int width;
int height;
public:
void set_values(int a, int b) { widt... | [
0.11775726824998856,
-0.11365623027086258,
0.1080615222454071,
0.1793445497751236,
-0.049062345176935196,
0.41834235191345215,
0.14479009807109833,
-0.28132522106170654,
-0.6230517625808716,
-0.6887860894203186,
-0.3459441363811493,
-0.07483769208192825,
-0.43173372745513916,
0.17564430832... | |
public Polygon {
public:
int area(void) { return width * height / 2; }
};
int main () {
Rectangle rect;
Triangle trgl;
Polygon * ppoly1 = ▭
Polygon * ppoly2 = &trgl;
ppoly1->set_values (4,5);
ppoly2->set_values (4,5);
cout << ppoly1->area() << endl; // outputs 20
cout <... | [
-0.2205553650856018,
-0.09555161744356155,
0.4900793135166168,
-0.021062277257442474,
-0.276122510433197,
0.5794682502746582,
-0.05786123499274254,
-0.3254584074020386,
-0.4930412769317627,
-0.7410455942153931,
-0.4951213300228119,
-0.05709201842546463,
-0.2090863585472107,
-0.178590133786... | |
a Rectangle and that ppoly2 is a Triangle, so that it can call the correct area() function? It could find that out by looking at the "Polygon \* ppoly1 = ▭" line and knowing that rect is a Rectangle, but that wouldn't work in all cases, would it? What if you did something like this?
```
cout << ((Polygon *)0x12345678)... | [
0.09324025362730026,
-0.31011778116226196,
0.4291231036186218,
0.1319984346628189,
-0.17797939479351044,
0.011431289836764336,
0.1528792530298233,
-0.3886847496032715,
-0.44855040311813354,
-0.6163838505744934,
-0.33676573634147644,
0.0704333484172821,
-0.36464938521385193,
-0.000021451725... | |
one virtual function) has a pointer, called a `vptr`. It points to the `vtbl` of its actual class (which each class with virtual functions has at least one of; possibly more than one for some multiple-inheritance scenarios).
The `vtbl` contains a bunch of pointers, one for each virtual function. So at runtime, the cod... | [
-0.38493311405181885,
-0.29214420914649963,
0.6832018494606018,
0.4883635640144348,
-0.033347878605127335,
0.36992406845092773,
-0.18670500814914703,
0.09107689559459686,
-0.30724620819091797,
-0.7240943908691406,
-0.3026111125946045,
0.3455900251865387,
-0.3035029470920563,
0.049332909286... | |
to `Rectangle`'s `vtbl`, and `ppoly2` similarly with `Triangle`'s `vtbl`. Hope this helps! | [
0.015191303566098213,
-0.15173637866973877,
0.5020164251327515,
0.12356342375278473,
-0.1541214883327484,
0.08743379265069962,
0.037275176495313644,
-0.12484113872051239,
-0.4152664244174957,
-0.7732195258140564,
-0.3678416907787323,
0.4457956552505493,
-0.2216341644525528,
-0.315328091382... | |
Doxygen is a bit slow - it takes about a couple of minutes to process my whole project, so for small incremental changes this is longer than actually building the rest of my code. There are thousands of files without any documentation so I guess it is spending most of its time processing them. Is there any way to get i... | [
0.48308065533638,
-0.03595941141247749,
-0.07626277208328247,
-0.010233262553811073,
0.0554988756775856,
-0.2675980031490326,
0.48007816076278687,
-0.21369056403636932,
0.21025501191616058,
-0.5755495429039001,
0.20315952599048615,
0.16788750886917114,
-0.4147554934024811,
-0.0619918256998... | |
the configuration file:
>
>
> EXCLUDE\_PATTERNS = */test/*
So, you should be using patterns to exclude files. It's been a long time since I've used Doxygen, but i don't remember any option to process only changed files. | [
0.6347301006317139,
-0.17796362936496735,
-0.13621783256530762,
-0.06247486174106598,
0.24054992198944092,
-0.3135489821434021,
0.04232306033372879,
0.03456481546163559,
-0.15134651958942413,
-0.9725911021232605,
0.1547408252954483,
0.4302254021167755,
-0.59310382604599,
-0.022495055571198... | |
I'm looking for a good audio compression library for .NET. Anything using MP3 is out (because of the licensing issue). Basically I just need to be able to compress regular WAV audio data into some format, and decompress back to WAV. Preferably the code would be all .NET (C# or VB.NET), but I don't think this is likely.... | [
0.4413802921772003,
0.22769692540168762,
0.21219544112682343,
0.21185432374477386,
-0.11425371468067169,
-0.3320370614528656,
0.09796058386564255,
0.006399116478860378,
-0.15271848440170288,
-0.6206522583961487,
-0.029785415157675743,
0.605146050453186,
-0.26723411679267883,
0.193135499954... | |
you thought about using WMA? If you use managed C++ or C++/CLI it's very easy to write a managed wrapper around the Windows Media Format SDK. This assembly can then be easily used by a higher level VB.Net or C# assembly. As long as you have WMP installed it even has the advantage of not requiring any additional depende... | [
0.502488911151886,
-0.20033368468284607,
0.08053745329380035,
0.15705455839633942,
-0.23996496200561523,
-0.4537432789802551,
0.09186767786741257,
-0.2112388163805008,
-0.3678779900074005,
-0.6391046047210693,
-0.03299480304121971,
0.5627658367156982,
-0.27364033460617065,
0.07525624334812... | |
I'm a PHP developer who knows a little bit of Ruby. I want to learn Ruby on Rails, but most of the resources I've come across treat RoR functionality as "magic" -- i.e., it has a certain internal consistency, but don't bother asking how it works in terms of Ruby, MySQL, etc.
Anyway, I want a deep understanding of how ... | [
0.3152411878108978,
0.15846394002437592,
0.18999356031417847,
0.09365987777709961,
-0.16410480439662933,
-0.19930727779865265,
0.48061221837997437,
0.14000986516475677,
-0.06978172063827515,
-0.4968014061450958,
0.0038644857704639435,
0.8047553300857544,
0.11530594527721405,
-0.19417847692... | |
are both pretty good. "Pro Active Record" goes really in depth for Active Record, but doesn't touch on too much else. The podcast Railscasts sometimes just uses the magic, but sometimes it explains what is really going on. Various blogs such as [Art of Mission](http://www.artofmission.com/articles) can get into what yo... | [
0.5887516140937805,
-0.023061633110046387,
-0.17109562456607819,
0.3406164348125458,
-0.10036111623048782,
-0.4740462899208069,
0.5479034185409546,
-0.07906748354434967,
-0.30602139234542847,
-0.4059487581253052,
0.18805363774299622,
1.078824758529663,
0.34931522607803345,
-0.2339099645614... | |
Like any responsible developer, I'd like to make sure that the sites I produce are accessible to the widest possible audience, and that includes the significant fraction of the population with some form of colour blindness.
There are many websites which offer to filter a URL you feed it, either by rendering a picture ... | [
0.8668858408927917,
0.08577887713909149,
0.15615232288837433,
-0.08632004261016846,
-0.2146148830652237,
-0.14356161653995514,
0.22750920057296753,
0.4126743674278259,
-0.32901686429977417,
-0.46962499618530273,
-0.05359498783946037,
0.3111944794654846,
-0.311763197183609,
0.10180932283401... | |
best thing would be a browser plugin.
I came across [Color Oracle](http://colororacle.org/) and thought it might help. Here is the short description:
> Color Oracle is a colorblindness simulator for Windows, Mac and Linux. It takes the guesswork out of designing for color blindness by showing you in real time what peo... | [
0.13085514307022095,
-0.2937682867050171,
-0.25283920764923096,
0.20503190159797668,
0.15337273478507996,
-0.09583630412817001,
-0.11250367760658264,
0.4107772409915924,
0.1515808403491974,
-0.685256838798523,
0.17747537791728973,
0.7469463348388672,
-0.18198354542255402,
-0.08673907816410... | |
I have a table of items, each of which has a date associated with it. If I have the date associated with one item, how do I query the database with SQL to get the 'previous' and 'subsequent' items in the table?
It is not possible to simply add (or subtract) a value, as the dates do not have a regular gap between them.... | [
0.36508017778396606,
0.2952122986316681,
0.2996968924999237,
0.13014480471611023,
0.08629853278398514,
0.29136234521865845,
-0.20305730402469635,
-0.31995078921318054,
-0.4658028185367584,
-0.4548194408416748,
-0.005624128971248865,
-0.17041437327861786,
0.02610735595226288,
0.589744031429... | |
(or queries) would give 3 and 19 when supplied 8 as the parameter? (or the rows 3,8,19). Note that there are not always three rows to be returned - at the ends of the sequence one would be missing.
**Secondly**, if there is a separate unique key to order the elements by, what is the query to return the set 'surroundin... | [
-0.0995735302567482,
-0.03273012116551399,
0.47404178977012634,
-0.21589607000350952,
0.17988286912441254,
0.6017890572547913,
0.011093088425695896,
-0.41961705684661865,
-0.18798552453517914,
-0.22865472733974457,
-0.19870202243328094,
-0.1399993896484375,
-0.3767823874950409,
0.370815157... | |
3 1 3
3 8 2 4
4 8 3 16
5 19 16 10
10 19 5 11
11 67 10 15
15 45 11 null
16 8 4 | [
-0.016233457252383232,
0.5435632467269897,
0.4161347448825836,
-0.3349441885948181,
-0.24961590766906738,
0.681040346622467,
0.4670059382915497,
-0.49592939019203186,
-0.2228264957666397,
-0.45294705033302307,
-0.2302759736776352,
0.22943906486034393,
-0.23083491623401642,
0.26449233293533... | |
5
```
The table order is not important - just the next-key and prev-key fields.
---
Both TheSoftwareJedi and Cade Roux have solutions that work for the data sets I posted last night. For the second question, both seem to fail for this dataset:
```
(key:date) 1:1,2:3,3:8,4:8,5:19,10:19,11:67,15:45,16:8
```
The or... | [
-0.26413509249687195,
0.3776959180831909,
0.6700950264930725,
-0.08719516545534134,
0.14669819176197052,
0.06470878422260284,
0.3313269317150116,
-0.5060317516326904,
-0.32266584038734436,
-0.5609615445137024,
-0.21028515696525574,
0.41672268509864807,
-0.10808130353689194,
0.1314150989055... | |
4
4 8 3 16
5 19 16 10
10 19 5 11
11 67 10 15
15 45 11 null
16 8 4 5
```
The table order is not important - just the next-key and prev-key fields.
My own attempt | [
0.15045374631881714,
0.5813252925872803,
0.30484408140182495,
-0.2886653542518616,
0.16566282510757446,
0.4997536540031433,
0.6273201107978821,
-0.35567161440849304,
-0.30765703320503235,
-0.3102901577949524,
-0.032351452857255936,
0.4389953315258026,
-0.17176327109336853,
-0.0966859832406... | |
at the set solution, based on TheSoftwareJedi.
First question:
```
select date from test where date = 8
union all
select max(date) from test where date < 8
union all
select min(date) from test where date > 8
order by date;
```
Second question:
While debugging this, I used the data set:
```
(key:date) 1:1,2:3,3:8,... | [
0.1032496839761734,
-0.2574519217014313,
0.3159521222114563,
-0.08538265526294708,
0.2413531243801117,
0.3954232335090637,
0.24556677043437958,
-0.4225493371486664,
-0.027462927624583244,
-0.6635246872901917,
-0.09894601255655289,
0.4549351632595062,
-0.05877842381596565,
0.207172423601150... | |
where date < 8))
where key = (select max(key) from test2
where date = (select max(date) from test2 | [
0.21177367866039276,
-0.5512229204177856,
0.22212204337120056,
-0.29789164662361145,
0.4173376262187958,
0.02533998154103756,
0.17692071199417114,
-0.3516217768192291,
-0.06229186803102493,
-0.19787758588790894,
-0.1892065554857254,
0.3618728518486023,
0.020776040852069855,
0.1000156700611... | |
where date < 8))
union all
select * from (select * from test2
where date = (select min(date) from test2
where date > 8))
where key = (select min(key) from test2 | [
0.17956387996673584,
-0.5446389317512512,
0.004333205986768007,
-0.20406775176525116,
0.4550626575946808,
0.3534327745437622,
0.031443603336811066,
-0.4011569321155548,
0.14741972088813782,
-0.5428480505943298,
-0.29040056467056274,
0.38324013352394104,
-0.019834060221910477,
0.37630614638... | |
where date = (select min(date) from test2
where date > 8))
order by date,key;
```
In both cases the final order by clause is strictly speaking optional. | [
0.02667429856956005,
-0.24214911460876465,
0.006788916885852814,
-0.4084181785583496,
0.24087166786193848,
0.1875673085451126,
0.35243210196495056,
-0.271316796541214,
0.044332463294267654,
-0.10340616852045059,
-0.7366141676902771,
0.3705250918865204,
0.09346559643745422,
0.17094057798385... | |
I have a table in my database which stores a tree structure. Here are the relevant fields:
```
mytree (id, parentid, otherfields...)
```
I want to find all the leaf nodes (that is, any record whose `id` is not another record's `parentid`)
I've tried this:
```
SELECT * FROM mytree WHERE `id` NOT IN (SELECT DISTINCT... | [
-0.03123924508690834,
0.3005423843860626,
-0.007891654036939144,
0.13882532715797424,
-0.027324862778186798,
-0.022791048511862755,
0.20774371922016144,
0.0927119255065918,
-0.08021154254674911,
-0.5688969492912292,
-0.0020000606309622526,
0.17309165000915527,
-0.12890174984931946,
0.57785... | |
work (the NULL thing).
Your query didn't work because the sub-query includes `NULL`. The following slight modification works for me:
```
SELECT * FROM `mytree` WHERE `id` NOT IN (
SELECT DISTINCT `parentid` FROM `mytree` WHERE `parentid` IS NOT NULL)
``` | [
0.03014645352959633,
-0.028959747403860092,
0.06223837658762932,
-0.18976786732673645,
0.044902097433805466,
-0.0016211241018027067,
0.26166480779647827,
-0.29487085342407227,
-0.010201012715697289,
-0.45445531606674194,
-0.00989869236946106,
0.3745165765285492,
-0.3845715820789337,
-0.107... | |
Does anyone know if there is an API to get the current monitor state (on or off) in Windows (XP/Vista/2000/2003)?
All of my searches seem to indicate there is no real way of doing this.
[This thread](http://www.promixis.com/forums/archive/index.php/t-1282.html) tries to use [GetDevicePowerState](http://msdn.microsof... | [
0.2743868827819824,
-0.1594940572977066,
0.7577587962150574,
0.13116666674613953,
0.053864676505327225,
-0.5190352201461792,
0.5257514119148254,
0.16866296529769897,
-0.37958723306655884,
-0.7337250113487244,
-0.02051023580133915,
0.9709951877593994,
-0.11379294097423553,
0.120932817459106... | |
class does not seem to help out as well.
**Edit**: Here is [a discussion](http://groups.google.com/group/comp.os.ms-windows.programmer.win32/browse_thread/thread/6d3e0a0828e68b89/d095095f5244bab4?lnk=gst&q=GetDevicePowerState++monitor#d095095f5244bab4) on comp.os.ms-windows.programmer.win32 indicating there is no rel... | [
-0.014464343897998333,
-0.15889300405979156,
0.47145190834999084,
0.19564534723758698,
-0.09457048773765564,
-0.24382363259792328,
0.6296243071556091,
0.1710595339536667,
-0.2818557620048523,
-0.8023373484611511,
-0.14349506795406342,
0.7089261412620544,
0.08618951588869095,
0.247806012630... | |
I've seen the question (and answer) when posed for [MS SQL Server](https://stackoverflow.com/questions/202940/unit-tests-framework-for-databases), though I don't yet know of one for Oracle and PL/SQL. Are there xUnit style testing frameworks for Oracle's PL/SQL? What are they?
The most commonly used is probably [utPLSQ... | [
0.5711871385574341,
0.15424981713294983,
-0.016445955261588097,
0.28407034277915955,
-0.15161453187465668,
0.04387309402227402,
-0.10187846422195435,
-0.09362619370222092,
0.07637040317058563,
-0.500802755355835,
0.15758268535137177,
0.29132384061813354,
-0.17695201933383942,
0.18371573090... | |
How do you get the max value of an enum?
Enum.GetValues() seems to return the values in order, so you can do something like this:
```
// given this enum:
public enum Foo
{
Fizz = 3,
Bar = 1,
Bang = 2
}
// this gets Fizz
var lastFoo = Enum.GetValues(typeof(Foo)).Cast<Foo>().Last();
```
**Edit**
For tho... | [
0.24607212841510773,
-0.3186367452144623,
0.7114584445953369,
-0.41096633672714233,
0.26274698972702026,
-0.13068290054798126,
0.14282900094985962,
-0.36810430884361267,
-0.26359206438064575,
-0.5525785088539124,
-0.20751063525676727,
0.6551117300987244,
-0.2576908469200134,
-0.11252450942... | |
I get obsessed with the best names for arrays and variables that I use, I'll look up words in the thesaurus, dictionary, etc..
So I'm trying to name this array / structure:
```
$nameMe = array(
'392' => TRUE,
'234' => TRUE,
'754' => TRUE,
'464' => TRUE,
);
```
and it's used to check if that id has a... | [
0.27503082156181335,
0.3327314555644989,
0.23184163868427277,
-0.1112590879201889,
0.02056722529232502,
0.06897011399269104,
0.14483706653118134,
-0.47793498635292053,
-0.16568680107593536,
-0.622467577457428,
0.10896844416856766,
0.4988226890563965,
-0.13513925671577454,
0.311555892229080... | |
is the property exactly?
```
$isOdd[$id]
$isWriteable[$id]
$hasAssociatedFile[$id]
``` | [
-0.012689609080553055,
0.369829386472702,
0.03250608220696449,
-0.13333910703659058,
0.03327663242816925,
-0.5054914951324463,
0.006047410424798727,
-0.12578123807907104,
-0.1879422664642334,
-0.3074719309806824,
-0.3358379304409027,
0.4259808659553528,
-0.1514616310596466,
0.1371694803237... | |
Various programs can do stuff only when you haven't used the computer for a while (eg screensaver, Google Desktop indexing, etc).
How do they know when it has been inactive? Is there some function in Windows that tells you how long it has been inactive, or do you have to use some kind of keyboard/mouse hook to track a... | [
0.04836732894182205,
-0.28760576248168945,
0.4029651880264282,
0.36380860209465027,
0.17284174263477325,
-0.13786086440086365,
0.28734228014945984,
0.0658201202750206,
-0.3554733693599701,
-0.4112498164176941,
-0.11701247096061707,
0.5721192955970764,
-0.15056316554546356,
-0.1474009752273... | |
of the last input event.
Pasted here from P/Invoke
This function retrieves the time since last user input
```
[DllImport("user32.dll")]
static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);
static int GetLastInputTime()
{
int idleTime = 0;
LASTINPUTINFO lastInputInfo = new LASTINPUTINFO();
lastIn... | [
-0.007571490481495857,
-0.5709681510925293,
0.7971177697181702,
-0.5259979963302612,
0.4880765676498413,
0.03681971877813339,
-0.020106788724660873,
-0.2582208812236786,
-0.5407510995864868,
-0.8255864977836609,
-0.16499903798103333,
0.5403810143470764,
-0.04884224012494087,
0.369369059801... | |
? ( idleTime / 1000 ) : idleTime );
}
[StructLayout( LayoutKind.Sequential )]
struct LASTINPUTINFO
{
public static readonly int SizeOf = Marshal.SizeOf(typeof(LASTINPUTINFO));
[MarshalAs(UnmanagedType.U4)]
public int cbSize;
[MarshalAs(UnmanagedType.U4)]
public UInt32 dwTime;
}
```
FWIW:
I i... | [
-0.14736081659793854,
-0.16504260897636414,
0.3041225075721741,
0.042353857308626175,
0.4202849566936493,
0.16972865164279938,
0.2022400200366974,
-0.2304045408964157,
-0.33031007647514343,
-0.8077340722084045,
-0.051237963140010834,
0.5776167511940002,
-0.28834500908851624,
0.138065159320... | |
How do you use enums in Oracle using SQL only? (No PSQL)
In MySQL you can do:
```
CREATE TABLE sizes (
name ENUM('small', 'medium', 'large')
);
```
What would be a similar way to do this in Oracle?
Reading a bit about the [MySQL enum](http://dev.mysql.com/doc/refman/5.0/en/enum.html), I'm guessing the closest eq... | [
0.015683067962527275,
0.11452823132276535,
0.19179679453372955,
0.13556283712387085,
-0.0746157243847847,
-0.09424557536840439,
-0.08874666690826416,
-0.3344476819038391,
-0.2039855271577835,
-0.4600181579589844,
-0.17915453016757965,
0.6292893886566162,
-0.20331452786922455,
-0.0135862594... | |
VALUES( 1, 'small' );
INSERT INTO valid_sizes VALUES( 2, 'medium' );
INSERT INTO valid_sizes VALUES( 3, 'large' );
CREATE TABLE sizes (
name_id NUMBER REFERENCES valid_names( name_id )
);
CREATE VIEW vw_sizes
AS
SELECT a.name_id name, <<other columns from the sizes table>>
FROM valid_sizes a,
size... | [
0.41853272914886475,
-0.06776899099349976,
0.7352944612503052,
0.020895497873425484,
-0.21983446180820465,
0.2317405343055725,
0.013736977241933346,
-0.35306957364082336,
-0.3827269673347473,
-0.5779533386230469,
-0.1813414990901947,
0.5226680636405945,
-0.07223530858755112,
0.375239938497... | |
include logic to limit the set of values they can hold and to have methods to get the IDs and to get the values, etc. | [
0.30036401748657227,
0.32464858889579773,
-0.26152166724205017,
0.4641655385494232,
0.36251533031463623,
-0.28510990738868713,
-0.12899908423423767,
-0.3332540988922119,
-0.037282682955265045,
-0.24286982417106628,
-0.4631834030151367,
0.6183412075042725,
-0.2833702862262726,
-0.1445983499... | |
I know that it *does* consider ' ' as `NULL`, but that doesn't do much to tell me *why* this is the case. As I understand the SQL specifications, ' ' is not the same as `NULL` -- one is a valid datum, and the other is indicating the absence of that same information.
Feel free to speculate, but please indicate if that'... | [
0.741441547870636,
0.6506922841072083,
-0.208807572722435,
0.2256024032831192,
0.13911072909832,
-0.4372641444206238,
0.04151957854628563,
0.4570571184158325,
-0.02854473888874054,
-0.3261512219905853,
0.12571528553962708,
0.37064072489738464,
0.24255703389644623,
0.8088935613632202,
-0.... | |
that empty strings in `VARCHAR`/`VARCHAR2` columns were `NULL` and that there was only one sense of NULL (there are relational theorists that would differentiate between data that has never been prompted for, data where the answer exists but is not known by the user, data where there is no answer, etc. all of which con... | [
-0.05341670662164688,
-0.12171535193920135,
-0.17641077935695648,
0.13991260528564453,
-0.3588027060031891,
0.21465900540351868,
0.24587802588939667,
0.13037477433681488,
-0.10841016471385956,
0.09927539527416229,
0.025291558355093002,
0.42288127541542053,
-0.3636806309223175,
0.3002977967... | |
of breaking existing code, violating the SQL standard, or introducing some sort of initialization parameter that would change the functionality of potentially large number of queries. Violating the SQL standard (IMHO) was the least disruptive of these three options.
Oracle has left open the possibility that the `VARCH... | [
0.056718796491622925,
0.3229252099990845,
0.05829911679029465,
-0.12820620834827423,
-0.044573891907930374,
-0.27636876702308655,
0.5393276810646057,
0.09148304909467697,
-0.22682130336761475,
-0.10447875410318375,
-0.16883006691932678,
0.3388333320617676,
-0.7060632705688477,
0.2202771604... | |
My organization is working on building RESTful webservices on JBoss appserver. The QA team is used to testing SOAP webservices so far using SoapUI. SoapUI has a new version that has REST capabilities. We're considering using that.
1. Are there any publicly available RESTful services available on the net for free that ... | [
0.6595212817192078,
-0.03811085224151611,
-0.03338196873664856,
0.07923299074172974,
-0.23635853826999664,
-0.26928621530532837,
0.32667458057403564,
0.05116131901741028,
0.14163053035736084,
-0.7670839428901672,
0.16439396142959595,
0.4716300666332245,
-0.05319935828447342,
-0.05130184069... | |
I have an iPhone app that compiles and runs fine in the Simulator on my laptop. Now, I try to build and run the same code in the Simulator on an iMac, and it starts up and lets me click a button, but then I get an assertion failure.
Here is what is in the console:
```
*** Assertion failure in -[UILabel setFont:], /So... | [
-0.3867666721343994,
0.3290207087993622,
0.5568588376045227,
0.1704290807247162,
0.22817957401275635,
0.22269421815872192,
0.5457723736763,
-0.24055185914039612,
-0.23647275567054749,
-0.6463287472724915,
-0.03309506177902222,
0.6794077754020691,
-0.10847877711057663,
-0.04175864905118942,... | |
0x00014dfd in GSEventRun
#6 0x30a5dadb in -[UIApplication _run]
#7 0x30a68ce4 in UIApplicationMain
#8 0x00002388 in main at main.m:16
```
My code does not make any direct calls to setFont:. However, this would be the point in the program's execution where some buttons are made visible for the first time.
I've Goo... | [
0.2819553017616272,
0.09398170560598373,
0.4618452787399292,
-0.19015896320343018,
0.1623750478029251,
0.03385187312960625,
0.4915808141231537,
0.2409367859363556,
-0.3024008572101593,
-1.0483980178833008,
-0.14188125729560852,
0.37743496894836426,
-0.20965993404388428,
0.12985728681087494... | |
assertion failure no longer occurs. But why can't I use the desired font, which exists on the iPhone, is installed on the new machine, and is selectable in Interface Builder?
If you've got UILabels in your xib file, they may be somehow corrupt, or you may have set a font to them that doesn't exist on both your machines... | [
0.17561326920986176,
0.46515926718711853,
0.3408152461051941,
0.33105671405792236,
-0.10138444602489471,
-0.19989384710788727,
0.7489370703697205,
-0.07362882047891617,
0.1455528438091278,
-0.4050881564617157,
0.1409195363521576,
0.9071203470230103,
0.02972538210451603,
0.05456684157252312... | |
Where is the setting in Visual Studio 2003 to set the include path for individual projects? I know about the VC Directories option in Tools>Options but that is machine specific and won't help when I hand this off to other developers.
 | [
0.4055202305316925,
-0.13742414116859436,
0.007617422845214605,
0.02552567422389984,
-0.033852458000183105,
-0.012302071787416935,
0.48360171914100647,
-0.31770145893096924,
-0.6311743259429932,
-0.24529285728931427,
-0.06539671123027802,
0.4785184860229492,
-0.32865068316459656,
-0.167077... | |
The [C++ friend keyword](http://www.cplusplus.com/doc/tutorial/inheritance/) allows a `class A` to designate `class B` as its friend. This allows `Class B` to access the `private`/`protected` members of `class A`.
I've never read anything as to why this was left out of C# (and VB.NET). Most answers to this [earlier St... | [
-0.27979493141174316,
0.16485810279846191,
0.16976889967918396,
-0.22469410300254822,
-0.15531966090202332,
-0.19465945661067963,
0.029217593371868134,
-0.19522668421268463,
-0.22974839806556702,
-0.1592726856470108,
-0.13888688385486603,
0.3852790892124176,
-0.06378116458654404,
0.0052436... | |
classes, it doesn't seem quite as elegant as using the `friend` keyword.
The original [Design Patterns book](https://rads.stackoverflow.com/amzn/click/com/0201633612) uses it regularly throughout its examples.
So in summary, why is `friend` missing from C#, and what is the "best practice" way (or ways) of simulating ... | [
-0.2215030938386917,
0.10193843394517899,
-0.18383149802684784,
0.11175250262022018,
-0.18807245790958405,
-0.13922272622585297,
0.4463052749633789,
0.1419098973274231,
-0.3721572756767273,
-0.3573749363422394,
-0.20209290087223053,
0.25890013575553894,
-0.16564390063285828,
0.336567103862... | |
undermines some fundamental attributes of an OO language.
That being said, it is a nice feature and I've used it plenty of times myself in C++; and would like to use it in C# too. But I bet because of C#'s "pure" OOness (compared to C++'s pseudo OOness) MS decided that because Java has no friend keyword C# shouldn't e... | [
-0.20322279632091522,
0.10800252854824066,
0.027720753103494644,
-0.03222816437482834,
-0.33351394534111023,
-0.06818019598722458,
0.40991923213005066,
0.22350634634494781,
-0.08561664819717407,
-0.456701397895813,
-0.009481677785515785,
0.7372406721115112,
0.038867563009262085,
-0.1726802... | |
as long as you and your team know about the internal classes and their use you should be fine.
**EDIT** Let me clarify how the friend keyword undermines OOP.
Private and protected variables and methods are perhaps one of the most important part of OOP. The idea that objects can hold data or logic that only they can u... | [
0.03851097449660301,
0.09379035979509354,
-0.0363146997988224,
0.1556822657585144,
-0.1419508159160614,
-0.16751673817634583,
0.5286668539047241,
0.20728027820587158,
-0.22842328250408173,
-0.6819891929626465,
-0.20602808892726898,
0.6366620659828186,
-0.1571158766746521,
-0.09892917424440... | |
then if you just coupled their interface. | [
0.052474770694971085,
-0.2023455649614334,
0.1310054212808609,
0.483634352684021,
-0.1411897838115692,
0.07113835215568542,
0.006094261538237333,
-0.04922504350543022,
0.015625163912773132,
-0.7036343812942505,
0.1743249148130417,
0.6206192374229431,
0.04436108097434044,
0.1652445644140243... | |
Just got a question about generics, why doesn't this compile when using a generic List? If its not possible, anyway around it? Much appreciate any answer.
```
// Interface used in the ServiceAsync inteface.
public interface BaseObject
{
public String getId();
}
// Class that implements the interface
public class ... | [
0.11705555021762848,
-0.33453747630119324,
0.23638968169689178,
0.07493504136800766,
0.12892155349254608,
0.06432091444730759,
0.32001635432243347,
-0.18544629216194153,
-0.1354408860206604,
-0.6230114698410034,
-0.18724767863750458,
0.5107295513153076,
-0.4993811845779419,
0.1221493929624... | |
}
}
// Interface used in the ServiceAsync inteface.
public interface MyAsync<T>
{
// Nothing here.
}
// Service interface use both interfaces above.
public interface ServiceAsync
{
public void getList(MyAsync<List<? extends BaseObject>> callback);
}
public class MyClass
{
ServiceAsync service = (some im... | [
-0.21720759570598602,
-0.17798815667629242,
0.5116409659385681,
-0.21318653225898743,
-0.17556387186050415,
0.27626922726631165,
0.4252171218395233,
-0.09510207921266556,
-0.15764659643173218,
-0.9672098755836487,
-0.07424323260784149,
0.5436142683029175,
-0.31923040747642517,
0.2620994448... | |
relation (where `<:` is the symbol for "is a subtype of"):
```
_ModelDto <: BaseObject
```
The following relation does **not** hold:
```
List<_ModelDto> <: List<BaseObject>
```
But the following relations do:
```
List<_ModelDto> <: List<? extends _ModelDto> <: List<? extends BaseObject>
```
This is the reason ... | [
-0.38227400183677673,
-0.06396285444498062,
0.4341355264186859,
-0.06285414844751358,
-0.22733847796916962,
-0.008552689105272293,
-0.05264333635568619,
-0.5471092462539673,
-0.17509272694587708,
-0.5085904002189636,
-0.15305402874946594,
0.43913644552230835,
-0.5459754467010498,
0.4270847... | |
MyAsync<List<? extends BaseObject>>
```
This is *precisely* the conversion you are trying to do when calling `service.getList(callBack)`, and since the subtype relation does not hold, the conversion fails.
However, as above, you **do** have the following relations:
```
MyAsync<List<_ModelDto>>
<: MyAsync<? extend... | [
-0.12388942390680313,
-0.05202433094382286,
0.5592753887176514,
-0.3058852553367615,
0.06871470808982849,
0.08278293907642365,
0.221175417304039,
-0.5010124444961548,
-0.06476334482431412,
-0.712898313999176,
-0.4179259240627289,
0.6261406540870667,
-0.3457145690917969,
0.17048026621341705... | |
void set(T t);
}
```
Then, the body of `getList` will be able to `get` a list from the callback. However, it cannot `set` the list (except setting it to `null`), because it does not know exactly what kind of list is represented by the `?`.
In contrast, with your original signature, `set` is available, and that is wh... | [
0.2624650001525879,
-0.18212802708148956,
0.25868725776672363,
-0.09723035246133804,
0.06156488135457039,
-0.2946639657020569,
0.2692166864871979,
-0.10975150018930435,
-0.11426296830177307,
-0.4947446584701538,
-0.5155922174453735,
0.640234112739563,
-0.5545061230659485,
-0.00086204602848... | |
Ok, so at some point in time, somebody checked in some files with names that require a case sensitive file system into the trunk of a repository that I constantly check out. This of course leads to my local working copy locking up when I try to check it out (on my Windows computer). Is there any way that I can set my l... | [
0.5469235181808472,
0.22727654874324799,
-0.0166974775493145,
0.1604986935853958,
0.12743176519870758,
-0.31128305196762085,
0.31353887915611267,
0.3533139228820801,
-0.31071317195892334,
-0.18568354845046997,
0.06089615821838379,
0.4141237735748291,
-0.2863946557044983,
0.5577892065048218... | |
references to the file you renamed that may need fixing up, and commit the fixes.
Then drag up a shotgun and shoot whoever did this in the first place. Case sensitivity abuse is one of the few bad smells that I have trouble forgiving.
(edit: This assumes TortoiseSVN, but the solutions work for any SVN implementation.... | [
0.43043509125709534,
0.31240642070770264,
0.3400917947292328,
0.15740901231765747,
-0.05244309455156326,
-0.10981665551662445,
0.6066237688064575,
-0.09928031265735626,
-0.3611498177051544,
-0.40988388657569885,
-0.02520662546157837,
0.9203720092773438,
-0.33266347646713257,
-0.05580685287... | |
changes.
This has the advantage of only requiring one commit, and not messing around with other people unnecessarily who may or may not be working with the two files. | [
0.3963203728199005,
-0.14474010467529297,
0.37111935019493103,
0.18137189745903015,
0.49601927399635315,
-0.21232345700263977,
0.15328724682331085,
-0.26936909556388855,
-0.4999098479747772,
-0.8260527849197388,
-0.16282464563846588,
0.3499583899974823,
-0.31786853075027466,
-0.24800410866... | |
The following two forms of jQuery selectors seem to do the same thing:
* $("div > ul.posts")
* $("div ul.posts")
which is to select all the "ul" elements of class "posts" under "div" elements.
Is there any difference?
Concerning `$("div > ul.posts")`, only direct descendants of `DIV`s will be selected.
```
<div>
... | [
-0.23625345528125763,
-0.3193489611148834,
0.22744572162628174,
0.09716563671827316,
-0.4984811842441559,
0.1585569977760315,
-0.21296069025993347,
-0.2948315739631653,
-0.07979930937290192,
-0.7139731049537659,
-0.13341988623142242,
0.16891328990459442,
-0.28944844007492065,
0.20492851734... | |
<fieldset>
<ul class="posts"> <!--NOT SELECTED-->
<li>List item</li>
</ul>
</fieldset>
<ul class="posts"> <!--SELECTED-->
<li>List item</li>
</ul>
</div>
```
while `$("div ul.posts")` will select all descendants matching the criteria. So all and any `ul.posts` will be ... | [
-0.03308043256402016,
-0.2286643236875534,
0.434646338224411,
0.01958923414349556,
-0.0695737674832344,
0.43156638741493225,
-0.07194835692644119,
-0.4829660654067993,
-0.039130356162786484,
-0.7817090153694153,
-0.34716495871543884,
-0.03441398963332176,
-0.313521146774292,
0.273942261934... | |
```
"foo" instanceof String //=> false
"foo" instanceof Object //=> false
true instanceof Boolean //=> false
true instanceof Object //=> false
false instanceof Boolean //=> false
false instanceof Object //=> false
12.21 instanceof Number //=> false
/foo/ instanceof RegExp //=> true
// the tests against Object really... | [
0.27184736728668213,
0.275241494178772,
0.08532781898975372,
-0.02086307294666767,
-0.30766183137893677,
-0.047178443521261215,
0.29739946126937866,
-0.44485124945640564,
-0.09227179735898972,
-0.6009871959686279,
0.1140090674161911,
0.6977298855781555,
-0.40885040163993835,
-0.16166596114... | |
[Mozilla API docs](http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/instanceof_Operator):
```
var color1 = new String("green");
color1 instanceof String; // returns true
var color2 = "coral";
color2 instanceof String; // returns false (color2 is not a String object)
```
I can... | [
0.3300277292728424,
0.18373508751392365,
0.14727617800235748,
-0.12679965794086456,
0.17201115190982819,
0.0044527011923491955,
0.26056545972824097,
-0.22875861823558807,
-0.12317368388175964,
-0.3744257092475891,
-0.20209063589572906,
0.8052600622177124,
-0.6631237268447876,
-0.0781188681... | |
I have a thread running in the background that is reading events from an input device in a blocking fashion, now when I exit the application I want to clean up the thread properly, but I can't just run a pthread\_join() because the thread would never exit due to the blocking IO.
How do I properly solve that situation?... | [
0.18845395743846893,
0.13294127583503723,
0.5010033249855042,
0.17739230394363403,
0.03476856276392937,
-0.059816114604473114,
0.524495542049408,
-0.25600212812423706,
-0.37272462248802185,
-0.6595485806465149,
-0.08505520224571228,
0.39446303248405457,
-0.2721775770187378,
0.3882038891315... | |
puzzled since none of my googling turned up a solution.
This is on Linux and using pthreads.
Edit: I played around a bit with SIGIO and SIGALRM, when I don't install a signal handler they break the blocking IO up, but give a message on the console ("I/O possible") but when I install a signal handler, to avoid that me... | [
0.11003295332193375,
-0.10260618478059769,
0.27315157651901245,
0.14065124094486237,
-0.1264568269252777,
-0.16113029420375824,
0.23081724345684052,
0.24263301491737366,
-0.49236616492271423,
-0.6215280294418335,
0.1584363728761673,
0.37424954771995544,
-0.23068447411060333,
0.250526815652... | |
*better* handle signals in threads.
Since Linux kernel 2.6.22, the system offers a new function called `signalfd()` which can be used to open a file descriptor for a given set of Unix signals (outside of those that outright kill a process.)
```
// defined a set of signals
sigset_t set;
sigemptyset(&set);
sigaddset(&s... | [
0.016086621209979057,
-0.19727455079555511,
0.5150180459022522,
-0.16439954936504364,
-0.33539441227912903,
0.05367083102464676,
0.39372822642326355,
-0.22393879294395447,
-0.2794749438762665,
-0.7838073372840881,
-0.06965981423854828,
0.5877870917320251,
-0.354026198387146,
0.120773531496... | |
file on disk, etc.) you were listening on.
The NONBLOCK is important if you want a loop that can check signals and other file descriptors over and over again (i.e. it is also important on your other file descriptor).
I have such an implementation that works with (1) timers, (2) sockets, (3) pipes, (4) Unix signals, (... | [
0.44550877809524536,
0.030790060758590698,
0.20405223965644836,
0.060035157948732376,
-0.06940232217311859,
-0.1780579835176468,
0.1893574297428131,
-0.07816225290298462,
-0.8520064949989319,
-0.5077548027038574,
-0.2197987288236618,
0.8246734738349915,
-0.3674435615539551,
0.0666635632514... | |
I am writing a program in Python that will act as a server and accept data from a client, is it a good idea to impose a hard limit as to the amount of data, if so why?
More info:
So certain chat programs limit the amount of text one can send per send (i.e. per time user presses send) so the question comes down to is t... | [
0.33824217319488525,
0.01210568007081747,
0.19351482391357422,
0.10420471429824829,
-0.1252976357936859,
-0.17290639877319336,
0.2062687873840332,
0.2766650319099426,
-0.45427027344703674,
-0.2867715358734131,
0.0675925686955452,
0.4445182681083679,
-0.22252735495567322,
-0.184970438480377... | |
data being copied into memory overruns the pre-allocated array and overwrites executable code with attacker code. Code written in languages like C typically has a lot of length checking to prevent this type of attack. Functions such as gets, and strcpy are replaced with their safer counterparts like fgets and strncpy w... | [
0.036263179033994675,
-0.19462311267852783,
-0.0054587083868682384,
0.4111020267009735,
0.0017241808818653226,
-0.18694889545440674,
0.32583263516426086,
-0.019478047266602516,
-0.394892156124115,
-0.651313066482544,
-0.20859378576278687,
0.5390671491622925,
-0.3319413363933563,
0.03005472... | |
as database field size. If 80% of your incoming messages are 40 characters or less, 90% are 60 characters or less, and 98% are 80 characters or less, why make your message text field allow 10k characters per message? | [
-0.10526356846094131,
-0.08553867042064667,
0.20825456082820892,
0.38245245814323425,
-0.1042177751660347,
0.42630425095558167,
0.32206037640571594,
-0.11689625680446625,
-0.377392441034317,
-0.45633941888809204,
-0.09784350544214249,
0.17187967896461487,
-0.10457779467105865,
0.0459545888... | |
I have been using CPPUnit as a unit testing framework and am now trying to use it in an automated build and package system. However a problem holding me back is that if a crash occurs during the running of the unit tests, e.g. a null pointer dereferencing, it halts the remainder of the automation.
Is there any way for... | [
0.12414844334125519,
0.3450108468532562,
0.07190953940153122,
0.09865894168615341,
0.06561824679374695,
-0.04229750484228134,
0.24297688901424408,
0.06561650335788727,
-0.08609991520643234,
-0.356316477060318,
0.05996053293347359,
0.4565935432910919,
-0.045703768730163574,
0.39231508970260... | |
I have had.
To be technology-specific, I am using makefiles on a Windows system.
You're automating the execution of your cppunit-based unit-tests during your build process, right ?
If you were trying to use CppUnit to execute the build process, I would be tempted to say don't do that !
Could you tell us what is sto... | [
0.4436922073364258,
0.14361758530139923,
-0.12177075445652008,
0.04313451051712036,
0.18815472722053528,
-0.0988050326704979,
0.012043415568768978,
0.06874877959489822,
-0.32077693939208984,
-0.32062968611717224,
0.020836694166064262,
0.830623984336853,
-0.09219025075435638,
0.221296191215... | |
systems you should be able to catch the SIGSEGV and to continue, **but** **in which state** ?
If your crashes occur in your unit test and not in your product, then I'd recommend you to rely on [assertion guards](http://xunitpatterns.com/Guard%20Assertion.html) to prevent dereferencing NULL pointers:
```
class TestOb... | [
0.29226401448249817,
0.16830754280090332,
0.0719238668680191,
0.3108940124511719,
0.30465561151504517,
-0.2124110460281372,
0.27205991744995117,
-0.1536657065153122,
-0.3796432912349701,
-0.6307386159896851,
-0.2184792160987854,
0.5201227068901062,
-0.3785026967525482,
0.23848682641983032,... | |
object without dereferencing a NULL pointer
CPPUNIT_ASSERT_MESSAGE("check objet is ready", theObject->isReady());
}
};
``` | [
-0.20965944230556488,
0.18693090975284576,
0.48353520035743713,
-0.04953945428133011,
0.037662629038095474,
-0.10305596143007278,
0.4509856402873993,
-0.22086313366889954,
-0.002116224030032754,
-0.31243187189102173,
-0.35654714703559875,
0.4905846416950226,
-0.44984349608421326,
0.2194048... | |
What is the best datatype to use for storing moderate amounts of text in SQL Server (2005)?
For example, imagine a table, storing information on downloads available on a website.
I want a title for the download which is brief, say varchar(20). A path, say varchar(255) then I want to store some user friendly text about... | [
-0.17313629388809204,
0.06887025386095047,
0.4407333731651306,
0.12138586491346359,
-0.2626057267189026,
-0.061984043568372726,
-0.1006508618593216,
-0.41283971071243286,
-0.31369519233703613,
-0.5147687792778015,
0.29800236225128174,
0.7225748300552368,
-0.13312067091464996,
-0.0412457808... | |
specification highest character limit for program description is 2000 chars \*see Program Descriptions section.
<http://www.asp-shareware.org/pad/spec/spec.php>
Download site submission tools use this spec to make it easier for authors to submit their software. Also I think there are a couple lists you can download t... | [
0.24592451751232147,
0.26955994963645935,
0.3659916818141937,
0.01902593858540058,
-0.15212972462177277,
0.0769214853644371,
0.010373201221227646,
-0.516559362411499,
-0.42242833971977234,
-0.49386006593704224,
0.13047298789024353,
0.5834310054779053,
0.29114580154418945,
0.054990850389003... | |
37 Signal's *Getting Real* convinced me that wireframing and writing functional specification documents are middleman steps unnecessary for building web applications and dynamic websites.
Is the overhead for these steps worth its weight? Is prototyping in HTML/CSS or even PhotoShop documents (so designers can work on... | [
0.46944665908813477,
-0.06761318445205688,
0.42979899048805237,
0.242094025015831,
0.15490132570266724,
-0.4024556577205658,
0.6056479811668396,
-0.16765794157981873,
-0.0028872606344521046,
-0.3782130777835846,
-0.12249824404716492,
0.672815203666687,
-0.4928557872772217,
-0.3252678811550... | |
else).
Functional specs, when you know what is to be done & how to do it would indeed be overkill. A high-level diagram of your intentions would suffice. And it *will never be unnecessary*. It primarily helps you focus on the scope and intent/target of what you want to do.
The focus should be on preventing wasted ef... | [
0.49762284755706787,
-0.16694478690624237,
0.35008975863456726,
0.2814538776874542,
0.3827582597732544,
-0.4631590247154236,
0.4603714942932129,
-0.35427892208099365,
-0.326056569814682,
-0.47533807158470154,
-0.3685736060142517,
1.001236081123352,
-0.021328449249267578,
-0.336246043443679... | |
spec where absolutely needed. Using Photoshop to design your will also be 'wasted effort" - far better to use evolutionary prototyping (RAD technique) with CSS/HTML - but still do pen & paper mock-up of your intentions. | [
0.8817376494407654,
0.00796289648860693,
0.3572448194026947,
0.4379981756210327,
-0.008835132233798504,
-0.17929932475090027,
-0.038329631090164185,
-0.44640323519706726,
0.05423225834965706,
-0.4729446470737457,
-0.06055913120508194,
0.6823596954345703,
-0.20524173974990845,
-0.4161442518... | |
I have an object, that is facing a particular direction with (for instance) a 45 degree field of view, and a limit view range. I have done all the initial checks (Quadtree node, and distance), but now I need to check if a particular object is within that view cone, (In this case to decide only to follow that object if ... | [
0.2401440143585205,
0.09650573879480362,
0.6723440885543823,
-0.12379246950149536,
-0.046628210693597794,
0.029228603467345238,
0.2789919078350067,
-0.2292582392692566,
0.08277031034231186,
-0.6704307198524475,
0.21355971693992615,
0.6372033357620239,
0.15020841360092163,
0.029176892712712... | |
way to do this visibility check?
Compute the angle between your view direction (understood as a vector) and the vector that starts at you and ends at the object. If it falls under FieldOfView/2, you can view the object.
That angle is:
```
arccos(scalarProduct(viewDirection, (object - you)) / (norm(viewDirection)*nor... | [
0.06305178254842758,
-0.4604945778846741,
0.9694953560829163,
-0.029197072610259056,
-0.07804826647043228,
0.09934576600790024,
-0.140742689371109,
-0.11592310667037964,
-0.054402001202106476,
-0.655197024345398,
0.14406920969486237,
0.6686694622039795,
-0.2626529633998871,
-0.265460520982... | |
I have a VB application which extracts data and creates 3 CSV files (a.csv, b.csv, c.csv). Then I use another Excel spreadsheet (import.xls) to import all the data from the above CSV files into this sheet.
import.xls file has a macro which opens the CSV files one by one and copies the data. The problem I am facing is ... | [
0.4261065721511841,
0.476156622171402,
0.5464377999305725,
-0.08282271027565002,
-0.16186656057834625,
0.09622987359762192,
-0.18067806959152222,
0.02316775918006897,
-0.354615718126297,
-0.6528509855270386,
-0.09844091534614563,
0.24197478592395782,
-0.396437406539917,
0.36143168807029724... | |
correct format (mm/dd/yyyy). Any idea how I can solve this issue?
You can use the **Format** VBA function:
```
Format(DateText, "dd/mm/yyyy")
```
That will format it how ever you like.
For a more permanant solution, try changing your regional settings in windows itself, Excel uses this for its date formatting.
Sta... | [
0.021708957850933075,
0.06484445184469223,
0.806355893611908,
0.10554260015487671,
0.13446253538131714,
-0.14723554253578186,
0.16633035242557526,
0.35716626048088074,
-0.27120858430862427,
-0.8228901028633118,
-0.46775558590888977,
0.4814673662185669,
0.09125924855470657,
-0.0337841399013... | |
I am trying to use a StreamReader to read a file, but it is always in use by another process so I get this error:
> The process cannot access the file
> '\arfjwknasgmed17\C$\FLAG
> CONDITION\CP-ARFJN-FLAG.XLS' because
> it is being used by another process.
Is there a way I can read this without copying it? Or is t... | [
0.4088621437549591,
0.2812759578227997,
0.1633838713169098,
0.1980804204940796,
0.11977875977754593,
-0.32254981994628906,
0.4090425372123718,
0.1758144348859787,
-0.12281513959169388,
-0.6482956409454346,
0.014851750805974007,
0.5519120693206787,
-0.21233397722244263,
0.5292758345603943,
... | |
first place.
You may not be able to access a file if you are specifying a sharing right that conflicts with the sharing right of a program that already has the file opened. For example you can't grant write access if the program that already has it opened isn't granting write access.
If the program that opened the f... | [
0.32938337326049805,
-0.08494599908590317,
0.2706149220466614,
0.33799856901168823,
0.2325059026479721,
-0.4867108464241028,
-0.1719810962677002,
0.030193451792001724,
-0.3526352643966675,
-0.5976385474205017,
-0.15796904265880585,
0.8001853823661804,
-0.2412114292383194,
0.328918933868408... | |
able to get Open File Manager by St-Bernards, and you can also use [File Access Manager (FAM)](http://www.vwsolutions.com/FAM/) by VisionWorks Solutions Inc. These drivers are typically OEM'ed to backup software companies for inclusion in their products.
VSS works by telling the program that has the file opened alread... | [
0.41039833426475525,
-0.0788080245256424,
0.646266758441925,
0.14549268782138824,
0.21576327085494995,
-0.30889689922332764,
0.25751644372940063,
-0.1491820365190506,
-0.41079169511795044,
-0.6011970043182373,
-0.5264310240745544,
0.4874803125858307,
-0.19691699743270874,
0.184548825025558... | |
files. Only programs in this list are allowed access to these files. When a file is being opened, it goes into cache mode so that you will obtain a copy of the file as it was when the 'backup/open' of the file started. At this point the program that originally opened the file sees the file as it actually is, and the se... | [
0.20756959915161133,
0.16288840770721436,
0.5260003209114075,
0.3125137686729431,
0.4381762146949768,
-0.2511090934276581,
0.3257085680961609,
0.16329437494277954,
-0.45749029517173767,
-0.7182236909866333,
-0.5614258050918579,
0.7027744650840759,
-0.09293299168348312,
0.512690544128418,
... | |
I have a form with multiple fields that I'm validating (some with methods added for custom validation) with Jörn Zaeffere's excellent jQuery Validation plugin. How do you circumvent validation with specified submit controls (in other words, fire validation with some submit inputs, but do not fire validation with others... | [
0.5781759023666382,
0.24466243386268616,
0.22124440968036652,
0.009620402939617634,
-0.3736356794834137,
-0.4887225329875946,
0.36287635564804077,
-0.5548993349075317,
0.03021038882434368,
-0.5234289169311523,
0.1693824827671051,
0.24986326694488525,
-0.1451987773180008,
-0.201097309589386... | |
"recommendation" shows that says something along the line of "you missed the following fields.... do you wish to proceed anyways?" At that point in the error container there's another submit button now visible that can be pressed which would ignore the validation and submit anyways. How to circumvent the forms .validat... | [
0.5262464284896851,
-0.16831399500370026,
0.2707713544368744,
0.03718166798353195,
0.21224191784858704,
-0.1553811877965927,
0.165675550699234,
-0.6661933064460754,
-0.2474619746208191,
-0.4519147276878357,
0.44187355041503906,
0.5118210315704346,
-0.024934332817792892,
0.3267805576324463,... | |
duplicating functionality already in the validation plugin.
The following is a shortened version of the immediately applicable script that I've got right now:
```
var container = $("#<%= Form.ClientID %> div.validationSuggestion");
$('#<%= Form.ClientID %>').validate({
errorContainer: container,
er... | [
0.1418323963880539,
-0.04387125000357628,
0.5674999952316284,
-0.03941220045089722,
-0.08424465358257294,
-0.056310560554265976,
0.34146586060523987,
-0.263467401266098,
-0.24969437718391418,
-0.2553381323814392,
0.05134028568863869,
0.6746522784233093,
-0.34545454382896423,
0.387202233076... | |
<%= YesNo.UniqueID %>: 'A message.',
<%= ShortText.UniqueID %>: 'Another message.' // etc.
},
highlight: function(element, errorClass) {
$(element).addClass(errorClass);
$(element.form).find("label[for=" + element.id + "]").addClass(errorClass);
$(element.form).find("label[for=" ... | [
-0.38508540391921997,
-0.21140697598457336,
0.09693708270788193,
-0.2973242700099945,
0.05294213071465492,
0.17926086485385895,
0.4403470754623413,
-0.12700387835502625,
-0.09105310589075089,
-0.40803098678588867,
-0.5871046185493469,
0.27493491768836975,
-0.5386133790016174,
0.02401341870... | |
$(element.form).find("label[for=" + element.id + "]").addClass("valid");
},
wrapper: 'li'
});
```
You can add a CSS class of `cancel` to a submit button to suppress the validation
e.g
```
<input class="cancel" type="submit" value="Save" />
```
See the jQuery Validator documentation of this feature here: [... | [
0.10315067321062088,
-0.10713300853967667,
0.42134296894073486,
-0.12248268723487854,
0.008522024378180504,
-0.14337091147899628,
0.2552468776702881,
-0.3487994968891144,
-0.02383936196565628,
-0.27890387177467346,
-0.3716396987438202,
0.3940236270427704,
-0.3183152377605438,
0.10471441596... | |
I'm fairly new to Visual Studio and am wondering how best to plan for translation in a new project I'm starting. I need to provide English, German and French.
I have used Eclipse a lot in the past and there I just developed a new app and when it was complete I could just start a wizard to externalise strings into a re... | [
0.40766507387161255,
0.08948180079460144,
0.43542054295539856,
0.1080598458647728,
-0.4171679615974426,
-0.06151110678911209,
0.3277163505554199,
0.264452189207077,
0.15045011043548584,
-0.8309133648872375,
-0.04264609515666962,
0.8137418627738953,
0.014051227830350399,
-0.2590018212795257... | |
MFC apps, this [CodeProject article](http://www.codeproject.com/KB/string/stringtable.aspx) of mine might be helpful to retrieve strings from resources (the String Table). And [this one](http://www.codeproject.com/KB/locale/LanguageMenu.aspx) helps you load the desired translation at application start-up (including oth... | [
0.06154441088438034,
0.3157282769680023,
0.6308864951133728,
-0.03900833800435066,
0.14198054373264313,
0.1477159708738327,
0.37387943267822266,
-0.0848357230424881,
-0.4767324924468994,
-0.5358649492263794,
-0.7175047397613525,
0.6368265748023987,
-0.5113711357116699,
-0.3694198429584503,... | |
How do I generate an audio sine or square wave of a given frequency?
I am hoping to do this to calibrate equipment, so how precise would these waves be?
You can use [NAudio](http://codeplex.com/naudio) and create a derived WaveStream that outputs sine or square waves which you could output to the soundcard or write to... | [
0.5159027576446533,
-0.228215754032135,
0.22950541973114014,
0.12739498913288116,
-0.3308022916316986,
-0.005406404845416546,
0.18151862919330597,
-0.7943814396858215,
0.1137576699256897,
-0.3506767451763153,
0.31706422567367554,
0.6976735591888428,
0.06562940031290054,
0.1998455971479416,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.