text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
loop'. This is kind of like a sleeping thread, waiting for activity to occur. Activity could be input from the user (Mouse Movement, a Button Click, Typing), or it could be network activity (The response from the server).
So in the example above,
1. When the user clicks on the span, a ButtonClicked event would be ge... | [
0.2618314325809479,
-0.5138792395591736,
0.39026162028312683,
-0.1194070503115654,
0.0467340350151062,
-0.16777518391609192,
0.2612060308456421,
-0.2054985612630844,
-0.25170108675956726,
-0.3033308982849121,
-0.16950789093971252,
0.3503151834011078,
-0.5540942549705505,
0.1005828306078910... | |
waiting at the nextEvent() step waiting for a response. At this point there is nothing 'blocking' further events from being handled.
4. The data comes back from the remote server, nextEvent() returns the network event, the event handler is found to be the onreadystatechange() method, that method is called, and an alert... | [
0.042741578072309494,
-0.4068978428840637,
0.8611496090888977,
0.032007236033678055,
0.12124931067228317,
-0.1613088995218277,
0.12439664453268051,
-0.10577931255102158,
-0.25698861479759216,
-0.4621659815311432,
-0.29232126474380493,
0.6337915062904358,
-0.15750564634799957,
0.00021870589... | |
that page. | [
0.057083748281002045,
0.17273499071598053,
0.02422526106238365,
0.19454793632030487,
-0.08380334824323654,
-0.20090879499912262,
0.010212593711912632,
0.2806871235370636,
-0.10640030354261398,
-0.48715028166770935,
0.003295010421425104,
-0.01803327538073063,
-0.12341076135635376,
0.2457571... | |
I am using URL re-writer module provided by <http://urlrewriter.net/> site. Can anyone tell me how can I use their module to redirect www.example.com to example.com (301 redirect).
If you just want to redirect `www.example.com`:
```
<if header="HTTP_HOST" match="www.example.com">
<redirect url=".*" to="http://exam... | [
0.46511533856391907,
0.3724077641963959,
0.5596360564231873,
-0.31724950671195984,
-0.04723651334643364,
-0.11821306496858597,
0.4440278112888336,
-0.10894930362701416,
-0.2474505603313446,
-0.7775355577468872,
-0.009375397115945816,
0.594424307346344,
-0.21426524221897125,
0.2284377366304... | |
im trying to learn to modify games in C++ not the game just the memory its using to get ammo whatnot so can someone point me to books
The most convenient way to manipulate a remote process' memory is to create a thread within the context of that program. This is usually accomplished by forcibly injecting a dll into the... | [
0.5327925086021423,
0.02205294743180275,
0.14115458726882935,
0.40201959013938904,
0.15232600271701813,
-0.170259490609169,
-0.01595110259950161,
0.16122087836265564,
-0.07261531800031662,
-0.5790730714797974,
0.022067995741963387,
0.728791356086731,
-0.37529146671295166,
0.165519922971725... | |
LoadLibrary trick.
As other people have mentioned, simple hacks can be performed by scanning memory for known values. But if you want to perform anything more advanced you will need to look into debugging and dead-list analysis. (Tools: ollydbg and IDA pro, respectively).
You have scratched the surface of a very expa... | [
0.5140669941902161,
-0.14380928874015808,
0.046430010348558426,
0.21308128535747528,
-0.2371336668729782,
-0.18961605429649353,
0.2179567962884903,
0.06803591549396515,
-0.19813358783721924,
-0.6207237243652344,
0.21433936059474945,
0.7425623536109924,
-0.0733180120587349,
0.00079821643885... | |
Routines you should research (msdn.com):
```
CreateRemoteThread
LoadLibraryA
VirtualAllocEx
VirtualProtectEx
WriteProcessMemory
ReadProcessMemory
CreateToolhelp32Snapshot
Process32First
Process32Next
``` | [
0.08753340691328049,
0.15816928446292877,
0.09565220773220062,
0.12441682815551758,
0.26062944531440735,
-0.15128841996192932,
0.4124823808670044,
0.04947856441140175,
-0.24751414358615875,
-0.719215989112854,
0.047395747154951096,
0.7407733201980591,
-0.18594135344028473,
0.22001543641090... | |
I created a new property for my db model in the Google App Engine Datastore.
Old:
```
class Logo(db.Model):
name = db.StringProperty()
image = db.BlobProperty()
```
New:
```
class Logo(db.Model):
name = db.StringProperty()
image = db.BlobProperty()
is_approved = db.BooleanProperty(default=False)
```
Ho... | [
0.14838065207004547,
0.33680978417396545,
0.4829822778701782,
-0.0792582556605339,
-0.010857783257961273,
0.19627200067043304,
0.116429403424263,
-0.3764025568962097,
-0.1695927381515503,
-0.595323920249939,
-0.03760070353746414,
0.4112369120121002,
-0.44597774744033813,
0.2775259613990783... | |
it; and "Entities Without a Filtered Property Are Never Returned by a Query." So it is not possible to write a query for these old records.
A useful article is [Updating Your Model's Schema](http://code.google.com/appengine/articles/update_schema.html), which says that the only currently-supported way to find entities... | [
-0.0025849975645542145,
-0.06461881101131439,
0.2556302547454834,
0.336674302816391,
0.05785560607910156,
-0.34738680720329285,
0.16558636724948883,
-0.058981187641620636,
-0.5403878092765808,
-0.3075225353240967,
-0.1764395385980606,
0.35488566756248474,
-0.19648770987987518,
0.3727612495... | |
I am designing a website layout in which all of the content is held in a central column of a fixed width. I want this central column to have a different background color than the rest of the page. I also want the central column to extend from the very top of the browser to the very bottom.
I am able to successfully do... | [
0.07986684888601303,
0.18395182490348816,
0.7234407663345337,
0.059149108827114105,
-0.04185332730412483,
0.09470465034246445,
0.05018261820077896,
0.08541437238454819,
-0.33052706718444824,
-0.9189327359199524,
-0.1951129138469696,
0.24875445663928986,
-0.07018451392650604,
0.150242149829... | |
really prefer to be able to do it without an image.
I have tried setting "html" and "body" to have a "height: 100%" and then giving "body" a background color, but if there is enough content to warrant scrolling, the background only has a height equal to that of the browser and when you scroll down, the background stay... | [
0.44995349645614624,
-0.2806567847728729,
0.5317814946174622,
0.07337712496519089,
-0.07623788714408875,
-0.3284868001937866,
0.19802789390087128,
0.03304800018668175,
-0.40389740467071533,
-0.7310945987701416,
-0.12156073749065399,
0.5850125551223755,
0.09986555576324463,
-0.3138834238052... | |
Firefox, Chrome and IE7):
```
<html>
<head>
<style type="text/css">
html {height: 100%}
body {
height: 100%;
margin: 0;
text-align: center;//for IE7 | [
-0.20167915523052216,
-0.033720068633556366,
0.951953113079071,
-0.1654500663280487,
-0.06016935408115387,
0.01616840623319149,
0.046836696565151215,
-0.11436084657907486,
-0.19496755301952362,
-0.8123093247413635,
-0.25466832518577576,
0.400645911693573,
0.082709401845932,
-0.345245391130... | |
}
div#wrapper {
background-color: #efefef;
width: 720px;
margin: 0 auto;
height: 100%; | [
0.17711851000785828,
-0.1159873679280281,
0.5622912645339966,
-0.13822658360004425,
0.13640329241752625,
0.22281715273857117,
0.1754247099161148,
-0.24105572700500488,
0.1808479130268097,
-0.3643515110015869,
-0.46657639741897583,
0.6647530198097229,
-0.03367043286561966,
-0.21767149865627... | |
text-align: left;
}
div#content {
background-color: #efefef;
}
</style>
</head>
<body>
<div id="wrapper"> | [
0.04983863979578018,
-0.0407458133995533,
0.6673669815063477,
0.01361830998212099,
-0.10863639414310455,
0.014343081042170525,
0.12032803148031235,
-0.19936390221118927,
0.0963154211640358,
-0.49854153394699097,
-0.5913885235786438,
0.5962232351303101,
-0.3048906624317169,
-0.2279210537672... | |
<div id="content">
<div style="height: 2000px">test</div>
</div>
</div>
</body>
</html>
``` | [
0.4645386040210724,
-0.0644422098994255,
0.2327193319797516,
0.12237031757831573,
-0.32155537605285645,
-0.3107503652572632,
0.3106963634490967,
-0.5658789873123169,
0.027596566826105118,
-0.6022268533706665,
-0.12777869403362274,
0.3248239755630493,
0.21413908898830414,
0.0930283442139625... | |
I have following configuration
Vista home premium
iis7
studio web 2008 express edition
trying to debug asp.net 3.5 application. But if try debug it with f5, application runs but debug does not start. What could be wrong?
I was using location to not allow child to inherit config and studio didn't like it. Removing l... | [
0.01582990027964115,
0.28906846046447754,
0.12338908016681671,
-0.1963888704776764,
-0.02007216401398182,
-0.2648165822029114,
0.3900631368160248,
-0.23831532895565033,
0.07052773237228394,
-0.5412236452102661,
-0.07860357314348221,
0.516675591468811,
-0.06695251911878586,
0.14751438796520... | |
How does one set the "Description" property of an executable? By this I mean the value displayed when you right-click an executable in Windows Explorer and it shows "Description:" with what seems to be just the name of the executable without the file extension.
I'm running GCC 3.4.5 (mingw-vista special r3) on Windows... | [
0.26805320382118225,
0.1758882850408554,
0.4917183220386505,
0.021262966096401215,
0.05967560410499573,
-0.382598340511322,
0.2551174759864807,
0.04395856708288193,
-0.26016348600387573,
-0.5772982239723206,
-0.022411789745092392,
0.8180407285690308,
0.013770250603556633,
0.155588164925575... | |
different one altogether.
Once a row is part of a gridview, you can't re-add it. The row itself [keeps track of what DataGridView](http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewrow.aspx) it is in. I would suggest making a copy of the cached row and adding the copy to the view. Since you make ... | [
0.2738340198993683,
-0.29515793919563293,
0.5628489851951599,
-0.09564126282930374,
-0.11202916502952576,
0.03894299268722534,
0.04535932093858719,
-0.04696542024612427,
-0.43304839730262756,
-0.8308653235435486,
0.05006282031536102,
0.2207704484462738,
-0.24126851558685303,
0.386866748332... | |
Allegedly, the native code is shared for instantiated generic types when it is instantiated with a reference type, but not for value types.
Why is that? would someone explain the in-depth details?
To make more concrete:
class MyGenericType{
}
```
MyGenericType<string> and MyGenericType<Shape>
```
will have only... | [
0.1392970234155655,
0.13613691926002502,
0.10799621790647507,
0.11925660818815231,
-0.15769951045513153,
-0.14979654550552368,
0.04493727162480354,
-0.07487335056066513,
-0.076154425740242,
-0.4970059096813202,
0.03616860508918762,
0.5064794421195984,
-0.2676064074039459,
0.485790818929672... | |
needs to know about a type. It includes:
* The size of a value of that type (i.e. if you have a variable of some type, how much space will that memory need?)
* How to treat the value in terms of garbage collection: is it a reference to an object, or a value which may in turn contain other references?
For all referenc... | [
0.1415710747241974,
0.19342418015003204,
0.2561359703540802,
0.15507152676582336,
0.08152572810649872,
-0.174629345536232,
0.07982424646615982,
-0.192148357629776,
-0.15118561685085297,
-0.45621228218078613,
0.007067885249853134,
0.4521406292915344,
-0.2617592513561249,
0.1898515671491623,... | |
descend into it).
For value types, the answers can vary significantly. For instance, consider:
```
struct First
{
int x;
object y;
}
struct Second
{
object a;
int b;
}
```
When the GC looks at some memory, it needs to know the difference between `First` and `Second` so it can recurse into `y` and `... | [
-0.36583656072616577,
-0.08491934835910797,
0.23318631947040558,
0.027401089668273926,
-0.19516685605049133,
0.10243302583694458,
0.16591870784759521,
-0.47261565923690796,
-0.2502152621746063,
-0.6818609833717346,
-0.29369473457336426,
0.26450762152671814,
-0.05300627276301384,
0.21572665... | |
might be - this is somewhat deep stuff, and I'm not as hot on CLR details as I might be. | [
0.43178460001945496,
0.076760433614254,
0.1333252638578415,
0.2940114140510559,
0.18310733139514923,
-0.24294522404670715,
-0.1311974823474884,
0.2811688184738159,
0.06313355267047882,
-0.0767858549952507,
-0.05797265097498894,
0.25524261593818665,
0.4619019329547882,
0.1325463503599167,
... | |
What are most important things you know about generics: hidden features, common mistakes, best and most useful practices, tips...
I am starting to implement most of my library/API using generics and would like to collect most common patterns, tips, etc., found in practice.
Let me formalize the question: What is the m... | [
0.45523619651794434,
0.12373272329568863,
0.052164625376462936,
0.284585565328598,
-0.25870048999786377,
-0.3404134511947632,
0.4149796664714813,
0.2434367537498474,
-0.19174620509147644,
-0.4682197868824005,
0.17512938380241394,
0.6166696548461914,
-0.1736893355846405,
0.19872954487800598... | |
type parameter(s)](http://msdn.microsoft.com/en-us/library/d5x73970.aspx). This can be very powerful, allowing you to take customize the class for only certain types of objects and allowing you to use the members of that type in your generic class. I realize that this is pretty fundamental, but it's one of the things t... | [
0.23528456687927246,
-0.1393393874168396,
0.11464463919401169,
0.019554980099201202,
-0.26770901679992676,
-0.15586300194263458,
0.08532188087701797,
-0.13273431360721588,
-0.21382196247577667,
-0.35471370816230774,
0.3778717815876007,
0.562407910823822,
-0.3345722258090973,
0.373144745826... | |
> **Possible Duplicate:**
>
> [C#: Interfaces - Implicit and Explicit implementation](https://stackoverflow.com/questions/143405/c-interfaces-implicit-and-explicit-implementation)
Would someone explain the differences between these two beasts and how to use them. AFAIK, many pre.2.0 classes were implemented without... | [
0.33646708726882935,
0.06235025078058243,
0.026286698877811432,
0.20995649695396423,
-0.23016422986984253,
0.09773141890764236,
0.3670381009578705,
-0.16765746474266052,
-0.22071179747581482,
-0.8689930438995361,
0.29842478036880493,
0.6353480219841003,
-0.3744649589061737,
0.0344507545232... | |
can only access them when treating it as that interface.
In terms of when you would use one over the other, sometimes you have to use explicit interface implementation as you either have a property/method with same signature as the interface or you want to implement two interfaces with the same signatures and have dif... | [
0.16019777953624725,
0.21218693256378174,
0.2956370711326599,
0.14609642326831818,
-0.02078925631940365,
-0.6023291349411011,
0.2811616063117981,
-0.6771999597549438,
-0.46333324909210205,
-0.6887052655220032,
-0.02323722653090954,
0.393727570772171,
-0.3600265681743622,
0.1061865240335464... | |
**Do** use explicit members to approximate private interface implementations.
* **Do** expose an alternative way to access any explicitly implemented members that subclasses are allowed to override. Use the same method name unless a conflict would arise.
It's also mentioned in the comments in Brad's blog that there is... | [
0.3647238612174988,
0.025303466245532036,
-0.08252492547035217,
0.1331092119216919,
-0.23534855246543884,
-0.3157440423965454,
0.6922694444656372,
-0.22772859036922455,
-0.22308117151260376,
-0.6048105359077454,
0.015042864717543125,
0.2179584801197052,
-0.20001117885112762,
-0.05961674451... | |
If my map has too many points on it I want my users to zoom in to view fewer points. I'd also like to display other notifications, not sure if I should do this on the map or not, but it would relate directly to the stuff on the map.
Anyone know of an easy way to do this sort of thing?
A better approach would be to ini... | [
0.18967583775520325,
-0.04778045788407326,
0.3613860011100769,
-0.048143766820430756,
-0.19746820628643036,
-0.13853995501995087,
0.07723743468523026,
-0.016222141683101654,
-0.07464969903230667,
-0.6887484788894653,
0.021236589178442955,
0.3387301564216614,
-0.1602461040019989,
0.06408136... | |
public void setSessionFactory(SessionFactory sessionFactory) {
this.sessionFactory = sessionFactory;
}
protected Session getSession() {
return sessionFactory.getCurrentSession();
}
public void save(T t) { getSession().save(t); }
public void update(T t) { getSession().update(t); }
... | [
0.39601942896842957,
-0.2535228431224823,
0.48943936824798584,
-0.12525823712348938,
0.12148818373680115,
0.0749325081706047,
0.824172854423523,
-0.09642696380615234,
-0.1381024271249771,
-0.9570741057395935,
-0.5445361137390137,
0.767482578754425,
-0.5137161016464233,
0.33609676361083984,... | |
I've got a contract to write part of a program. The person writing the other part is in another city. I want to find a convenient way to send changes back and forth. For other reasons, I'd like to learn to use git as a distributed VCS and email changes back and forth. (I've worked with SCCS, RCS, and PVCS before, alway... | [
0.5988129377365112,
-0.2212752252817154,
0.474665105342865,
0.3053552806377411,
0.3608543872833252,
-0.05242162197828293,
-0.08232813328504562,
0.00927321519702673,
-0.31757134199142456,
-0.7348403930664062,
-0.06603443622589111,
0.34623584151268005,
-0.051822736859321594,
0.17624373733997... | |
Each of us contribute to bug fixes and new features that require changes to both parts.
(b) Compile and package binaries for customers.
(We also need to work separately on features that don't depend on the other, but I assume that anything that works for task (a) will work for this also.)
Background: The other... | [
0.5585687160491943,
0.04567967355251312,
0.006907373201102018,
0.48432648181915283,
0.47241365909576416,
-0.2963850796222687,
0.2050647735595703,
-0.15468983352184296,
-0.19975580275058746,
-0.3862338066101074,
-0.031074587255716324,
0.5093186497688293,
-0.06507496535778046,
-0.31823030114... | |
the rough spots with not much frustration on his part. He's also very uncomfortable with storing the source on a server, which is another reason to prefer emailing changes. We can easily encrypt them.
Other possibly relevant context: We're using Delphi on Windows as our development environment. It's extremely unlike... | [
0.38251087069511414,
0.17775072157382965,
0.12263308465480804,
0.17619669437408447,
0.22113914787769318,
-0.2414640188217163,
0.1261698454618454,
0.14214012026786804,
-0.20559892058372498,
-0.5859785676002502,
-0.1841517835855484,
0.7431888580322266,
-0.024398094043135643,
0.04137554764747... | |
overkill that I should just do something simpler? I don't mind spending some extra time on the learning, but no more than a couple of weeks.
2) Assuming "Yes" to question 1, what workflow should we use for each of the tasks above?
3) What Windows GUI programs will do all the required tasks? (I'm very comfortable ... | [
0.2594083547592163,
-0.013098395429551601,
0.24124425649642944,
0.3835543990135193,
-0.0715629905462265,
-0.3921842873096466,
0.2567934989929199,
0.09508857131004333,
0.009513169527053833,
-0.6720387935638428,
0.11861561238765717,
0.7980027198791504,
0.14393579959869385,
-0.199071452021598... | |
so far. I tried to write it for a git novice who knows a little bit but not a whole lot about VCSs in general. I plan to add to that as I learn more.
> The other guy has never used a VCS
> before; he's a little resistant to the
> idea.
I have been in involved in training and supporting users which were forced to mak... | [
0.5177124738693237,
0.15510649979114532,
0.2453080117702484,
-0.12821581959724426,
-0.1297839879989624,
-0.15558072924613953,
0.22193290293216705,
0.3846568167209625,
-0.1988268345594406,
-0.4987941086292267,
0.15215855836868286,
0.6272060871124268,
-0.015013854019343853,
0.201190650463104... | |
broke my stuff*" (it's never the case of course).
Knowing this, I would be very hesitant to try and help someone make the switch from no VCS at all to git (which is probably not the most user-friendly VCS around). Especially if they hate the idea of a VCS. Doubly so if you can't be there helping them at their desk.
S... | [
0.8216833472251892,
0.2734868824481964,
0.236123725771904,
0.29364871978759766,
0.1567915827035904,
-0.22930946946144104,
0.22183212637901306,
0.3504958748817444,
-0.4998582601547241,
-0.1146005168557167,
-0.14113232493400574,
0.18323256075382233,
-0.03771539777517319,
0.45355483889579773,... | |
you and vice versa. At least git will make it easy for you to see which files changed since the last integration point. | [
0.4174395203590393,
-0.1419808268547058,
0.37496423721313477,
0.42604535818099976,
0.2978355288505554,
-0.14140504598617554,
-0.21953228116035461,
0.17442269623279572,
-0.27220773696899414,
-0.5325993895530701,
0.06426945328712463,
0.6401726603507996,
0.061844613403081894,
0.04847099259495... | |
I have a small problem. I'm populating a select tag with results from a SQL database. What I would like to have is the last one added as the top entry and the rest sorted alphabetically.
So it would return:
```
*----------*-------------*
developerID|developerName
*----------*-------------*
| 40 | ZZZ Dev |
... | [
0.04353667050600052,
-0.011390800587832928,
0.6957051157951355,
0.05638101324439049,
-0.018477262929081917,
-0.14957553148269653,
0.05090358853340149,
-0.23435555398464203,
0.010878735221922398,
-0.9894076585769653,
-0.10948792845010757,
0.5352526903152466,
-0.3869781196117401,
0.398258596... | |
DESC"
```
Which is fine, but not as usable as I would like.
Is what I want possible using pure MySQL?
Assuming the column defining when the developer was added is developerAdded (a timestamp of some sort):
```
SELECT developerName, developerID, 1 AS ordering
FROM developer
WHERE developerAdded = (SELECT MA... | [
-0.009197432547807693,
-0.329971045255661,
0.25700843334198,
0.01045044232159853,
-0.09943178296089172,
-0.05559166520833969,
0.05863766372203827,
-0.09189388900995255,
0.0222132820636034,
-0.9076967239379883,
-0.3300013542175293,
0.718501627445221,
-0.25409042835235596,
0.1635846197605133... | |
!= (SELECT MAX(developerAdded)
FROM developer)
ORDER BY ordering, developername;
```
If there's some other magic way to determine the most recently added developer (e.g. maximum developerID), adjust the sub-queries accordingly.
Note that this query works OK even if several developers ... | [
-0.01126046385616064,
-0.14703771471977234,
0.37612831592559814,
-0.11331995576620102,
0.11363935470581055,
-0.02073967643082142,
0.1573241949081421,
-0.18157178163528442,
-0.1505267471075058,
-0.6801102757453918,
-0.5086121559143066,
0.6643315553665161,
-0.12139582633972168,
0.04309572651... | |
developerID, 1 AS ordering
FROM developer
WHERE developerID = (SELECT MAX(developerID) FROM developer)
UNION
SELECT developerName, developerID, 2 AS ordering
FROM developer
WHERE developerID != (SELECT MAX(developerID) FROM developer)
ORDER BY ordering, developername;
``` | [
-0.033494774252176285,
-0.18182121217250824,
-0.05793945863842964,
-0.05588598549365997,
0.031039094552397728,
0.234873428940773,
0.0836375281214714,
-0.5482867956161499,
0.06637537479400635,
-0.7548720836639404,
-0.4980553984642029,
0.45675379037857056,
-0.6211339831352234,
0.429150372743... | |
This is probably really simple but I really could not word it properly on Google. I have an ArrayList that keeps the info for each thread. Each thread has its own ID. So, at the beginning:
```
myList.add(theIdOfTheThread, new InfoForTheThread()); //Add new thread info at index theIdOfTheThread
```
And when I want in... | [
0.252414733171463,
0.31464049220085144,
0.5124189257621765,
-0.026958269998431206,
0.009792213328182697,
-0.057735688984394073,
0.09468284994363785,
0.16850042343139648,
-0.24449120461940765,
-0.7860859036445618,
0.12968969345092773,
0.3288719356060028,
-0.25641223788261414,
0.405686736106... | |
index I want and they stay.
For that kind of access you should really be using an array, or better, a HashMap. Using a list for this is very inefficient and needlessly complicated. If you ever remove an item from the middle of the list everything will move down, and all the indices above the one you removed will requir... | [
0.2251211255788803,
0.19324781000614166,
0.5640372633934021,
0.042311567813158035,
0.0736517459154129,
0.10669657588005066,
-0.1315227448940277,
-0.13503311574459076,
-0.25642088055610657,
-0.7127923369407654,
0.1269853413105011,
0.5061514377593994,
-0.31165069341659546,
0.3743512332439422... | |
myInfos = new HashMap<Integer,InfoForTheThread>( 10 );
```
Adding, retrieving and removing an entry:
```
myInfos.put( Integer.valueOf( 4 ), new InfoForTheThread() );
InfoForTheThread infoForFour = myInfos.get( Integer.valueOf( 4 ) );
InfoForTheThread infoForFour = myInfos.remove( Integer.valueOf( 4 ) );
``` | [
-0.20106209814548492,
0.3097100853919983,
0.7389820218086243,
-0.1529483199119568,
0.32821109890937805,
0.2017981857061386,
0.22584335505962372,
0.028750738129019737,
-0.3269812762737274,
-0.6326894760131836,
-0.6123465299606323,
0.27570995688438416,
-0.28273412585258484,
0.167329564690589... | |
Is is possible to create silverlight content in C# using Visual Studio 2005 Professional or Visual Studio 2008 Express Edition? I can't find an answer on Microsoft's web site. Thanks for any help!
Yes if the express edition is [Visual Web Developer 2008 Express Edition](http://www.microsoft.com/express/vwd/). Here is a... | [
0.24133238196372986,
0.054571058601140976,
-0.010653883218765259,
0.07206413894891739,
-0.6093702912330627,
-0.32630491256713867,
0.14255410432815552,
-0.012702074833214283,
0.007901020348072052,
-0.4540998339653015,
-0.05286019295454025,
0.2122763991355896,
-0.19368699193000793,
-0.308052... | |
In Windows Media Player you can right click on a music file and click 'open file location' and it opens an explorer window with the file selected.
I want to be able to do this in applications. So given a filename (as an ansi string) I want to be able to go to the file in a new explorer window.
Try launching explorer.e... | [
-0.15788991749286652,
-0.005179394036531448,
0.5496786236763,
-0.049545057117938995,
0.10890968143939972,
-0.38292431831359863,
-0.231037437915802,
0.10621555894613266,
-0.2772853672504425,
-0.9558588266372681,
-0.20848940312862396,
0.9340067505836487,
-0.2222393900156021,
0.42279928922653... | |
I am attemting to create a storedproc that reads like:
```
Select
ep.EmployeeID, GetEmployeeFirstName(ep.EmployeeID),
GetEmployeeLastName(ep.EmployeeID), ed.EmployeeDateOfBirth,
ed.EmployeeAddress, ed.EmployeeAddress2, ed.City, ed.State, ed.ZipCode
From
EmployeeProfile ep, EmployeeDetail ed
Where
ep... | [
0.2523587942123413,
0.1878812164068222,
0.5344399809837341,
0.23483583331108093,
0.1851566731929779,
0.07906899601221085,
0.10924077033996582,
0.1878271996974945,
-0.3184153735637665,
-0.8629930019378662,
-0.13584138453006744,
0.25631192326545715,
-0.0072164712473750114,
0.0919884443283081... | |
I have been attempting to handle the KeyDown event of a UserControl (page) in my Silverlight application, but there seems to be some strange behaviour on the part of Silverlight user input functionality. The event is not getting raised under any circumstance. I have even tried attaching the event handler to each contai... | [
0.10728079080581665,
0.2208709567785263,
0.11564061790704727,
-0.07660453766584396,
-0.15554691851139069,
-0.29587289690971375,
0.23448698222637177,
-0.05605911836028099,
-0.2815748155117035,
-0.6442899703979492,
0.017521407455205917,
0.3471740186214447,
-0.26034167408943176,
0.10538837313... | |
is a template of the particular page with which I am testing.
```
<UserControl x:Class="MyNamespace.CreditsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
KeyDown="UserControl_KeyDown">
<Grid x:N... | [
-0.08201321214437485,
0.15561270713806152,
0.6017819046974182,
0.01103974413126707,
0.06713691353797913,
-0.021654536947607994,
-0.32881835103034973,
-0.5242128968238831,
-0.2854120135307312,
-0.33741316199302673,
-0.11132830381393433,
0.25594499707221985,
0.17503081262111664,
0.0723555535... | |
A line of text.<LineBreak />
<LineBreak />
A line of text.<LineBreak />
<LineBreak />
A line of text.<LineBreak /> | [
-0.3543391227722168,
-0.18957731127738953,
0.31058424711227417,
-0.09058120101690292,
-0.2803526222705841,
0.24872392416000366,
0.6331962943077087,
-0.053769029676914215,
-0.44613900780677795,
-0.6086679100990295,
-0.8135790228843689,
-0.24648724496364594,
-0.4224691689014435,
-0.166144698... | |
<LineBreak />
A line of text.<LineBreak />
</TextBlock>
</StackPanel>
</Border>
</Grid>
</UserControl>
```
In WPF, the obvious solution for such an issue would be to handle the PreviewKeyDown event, but unfortunately this is not available in Silverlight 2. Any i... | [
0.031787361949682236,
-0.4033801555633545,
0.5298821330070496,
-0.15906672179698944,
-0.28719449043273926,
-0.4047864079475403,
0.4516873359680176,
-0.18025073409080505,
-0.17760057747364044,
-0.653292179107666,
-0.21122725307941437,
0.05670667439699173,
-0.4779554605484009,
-0.07011681795... | |
a short explanation of why Silverlight event routing is behaving as it is).
You can manage the user input from the main UIElement : Application.Current.RootVisual
```
Application.Current.RootVisual.KeyDown += Application_KeyDown
```
Then you can handle in the Application\_KeyDown method all user inputs from the keyb... | [
0.25587010383605957,
-0.3188992440700531,
0.4114156663417816,
0.03336278349161148,
-0.21320994198322296,
-0.2772982716560364,
0.29240143299102783,
-0.42156293988227844,
-0.45140475034713745,
-0.8011707067489624,
-0.11450788378715515,
0.5690426826477051,
-0.2932087481021881,
-0.045066278427... | |
What are most important things you know about templates: hidden features, common mistakes, best and most useful practices, tips...**common mistakes/oversight/assumptions**
I am starting to implement most of my library/API using templates and would like to collect most common patterns, tips, etc., found in practice.
L... | [
0.6170953512191772,
0.1519651710987091,
-0.2484930008649826,
0.3003072440624237,
-0.05979635566473007,
-0.3823375999927521,
0.037855114787817,
-0.011474305763840675,
-0.25256282091140747,
-0.77518630027771,
-0.08656308054924011,
0.8291314244270325,
-0.2132609784603119,
-0.12862466275691986... | |
are in for a nasty surprise at which function actually gets called.
```
template<class T> void f(T t) { ... } // (a)
template<class T> void f(T *t) { ... } // (b)
template<> void f<int*>(int *t) { ... } // (c)
...
int *pi; f(pi); // (b) is called, not (c)!
```
On top of **Item 7**:
Worse yet, if you omit the typ... | [
0.42415639758110046,
-0.3299747109413147,
0.04419669881463051,
-0.10488542169332504,
0.17996375262737274,
0.09536278247833252,
0.10347059369087219,
-0.5135888457298279,
-0.12706677615642548,
-0.6086101531982422,
-0.33292344212532043,
0.8937097787857056,
-0.6614198684692383,
0.0342890955507... | |
void f(T *t) { ... } // (b)
template<> void f(int *t) { ... } // (c) - specializes (b)
...
int *pi; f(pi); // (c) is called
```
Case 2:
```
template<class T> void f(T t) { ... } // (a)
template<> void f(int *t) { ... } // (c) - specializes (a)
template<class T> void f(T *t) { ... } // (b)
...
int *pi; f(p... | [
0.4127245545387268,
-0.20566542446613312,
0.09586545079946518,
-0.1479557752609253,
0.31712085008621216,
0.39350399374961853,
-0.08283834904432297,
-0.5675815939903259,
-0.28751277923583984,
-0.6115089058876038,
-0.5007469058036804,
0.9776221513748169,
-0.5205426216125488,
-0.0872347801923... | |
I'm new to python. I've studied C and I noticed that that the C structure (struct) seemed to have the same task as "class" in python. So what is, conceptually, the difference?
Aside from numerous technical differences between how they're implemented, they serve roughly the same purpose: the organization of data.
The ... | [
0.22590869665145874,
0.10330861061811447,
-0.23938219249248505,
0.07453492283821106,
-0.3210451900959015,
-0.16610313951969147,
0.036939430981874466,
0.09907656162977219,
-0.14681336283683777,
-0.38248685002326965,
-0.10507112741470337,
0.5761098861694336,
-0.13685671985149384,
-0.00725179... | |
the structure as a parameter in some way, usually by pointer.
I won't delve into the technical differences between the two, as they are fairly significant, but I suggest you look into the concept of [Object Oriented Programming](http://en.wikipedia.org/wiki/Object-oriented_programming). | [
0.1929117739200592,
0.18311792612075806,
-0.13389800488948822,
0.19165320694446564,
-0.35382080078125,
-0.10756879299879074,
-0.14197339117527008,
0.013756517320871353,
-0.47556746006011963,
-0.33993303775787354,
-0.20317679643630981,
0.2977611720561981,
-0.24472348392009735,
0.27369096875... | |
**Note:**
* Using [CoGetClassObject](http://msdn.microsoft.com/en-us/library/ms684007(VS.85).aspx), to create **multiple objects** through a class object for which there is a CLSID in the system registry
* Single threaded apartment
For **instance:**
```
hresult = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
ICla... | [
-0.08507201820611954,
0.020070862025022507,
0.23146478831768036,
0.1836700737476349,
0.17866897583007812,
0.04887963831424713,
0.19542308151721954,
-0.07259922474622726,
-0.3313625156879425,
-0.6787828803062439,
-0.06412015110254288,
0.31260761618614197,
-0.4324789047241211,
0.319125980138... | |
an instance of the object you are interested in. It is not an actual instance of that object.
In your example, you are getting an `IUnknown` pointer by calling `QueryInterface` on the `IClassFactory` pointer. This pointer still points to the instance of the class object, hence doing `QueryInterface` for the interface ... | [
-0.2399563044309616,
-0.08888649940490723,
0.17566213011741638,
0.26286619901657104,
0.07503359019756317,
-0.15544557571411133,
0.2542261481285095,
0.21180619299411774,
-0.15617533028125763,
-0.9033440351486206,
-0.15466713905334473,
0.36782997846603394,
-0.3660714626312256,
0.401261687278... | |
I have been Coding in C# for about 3/5 Years in School.
the problem is that i want to learn how you code such things as Keylogger and things like that.
in School it most Problem Solving to learn us to think like programmers.
so how shall i learn to code Network/Security tools. Shall i buy a book about Network progra... | [
0.6308324933052063,
0.39740151166915894,
0.18302609026432037,
-0.0705648809671402,
0.02559966966509819,
-0.1559622585773468,
0.23107019066810608,
0.18966418504714966,
-0.2761302888393402,
-0.4139118194580078,
-0.004130655899643898,
0.6856182217597961,
-0.18232208490371704,
-0.0619775578379... | |
-rs archivename.a list.o of.o objects.o
```
The `man` page describes the options.
Dynamic libraries are built usually with the `-shared` switch to `gcc` or `ld` and the output file name with a `.so` extension.
Autotools handles this with the `libtool` program. I'm not familiar with its use.
Linking against these l... | [
0.12571333348751068,
-0.07388723641633987,
0.29648730158805847,
0.0933302715420723,
-0.2707257866859436,
-0.14848752319812775,
-0.08077371120452881,
-0.11724000424146652,
-0.3928220570087433,
-0.6150032877922058,
-0.37480485439300537,
0.4150241017341614,
-0.6814679503440857,
0.180556669831... | |
It is good practice to remove old code instead of just commenting it out. It is often claimed that the old code parts can always be found again in the old SVN repository revision, if needed.
But practically, it's not that easy, right? If the old code is in some *unknown* old SVN revision then it can be quite hard to f... | [
0.3782266080379486,
0.45202749967575073,
0.0988779366016388,
-0.052081454545259476,
0.13916358351707458,
-0.3763158321380615,
0.5316342711448669,
0.2800780236721039,
-0.4963288903236389,
-0.5299417972564697,
-0.04760745167732239,
0.6243379712104797,
-0.042973920702934265,
0.369505286216735... | |
to be hard to find in the repository.
Of course, one can always make a commit message, saying "removed function myFunction", but sometimes you can't note every little code removal in the commit message, and it can also be tedious to look through all commit messages to find something again.
An automatic tool would be... | [
0.30731791257858276,
0.12571151554584503,
0.20104007422924042,
0.23010237514972687,
0.011093485169112682,
-0.26393282413482666,
0.28167757391929626,
0.3051277995109558,
-0.47598138451576233,
-0.4533735513687134,
-0.26151031255722046,
0.6573160886764526,
-0.09944125264883041,
0.301012724637... | |
tiny brittle `shell` script I found more or less by accident (see my answer below). I think, that's really a shame for SVN. Finding something in earlier revisions should be one of the central functionalities of version control. Does anyone have more info?
I googled some more and found the following script (see [here](h... | [
0.03378359228372574,
0.34663936495780945,
0.3845292627811432,
-0.17091499269008636,
0.15102557837963104,
-0.17498035728931427,
0.3759117126464844,
0.18982914090156555,
-0.0949271023273468,
-0.2037484496831894,
-0.039658352732658386,
0.9012539386749268,
-0.17647448182106018,
0.1481281518936... | |
"$REGEX"`
RET=$?
if [ $RET -eq 0 ]
then
echo "Match in revision: $r. Removed in $LAST_REV."
echo $BUFFER
exit 0
elif [ $RET -ne 1 ]
then
## grep hit an error
exit 2
fi
LAST_REV=$r
done
exit 1
```
The only problem is that, if | [
-0.3291647136211395,
0.006165826227515936,
0.7557036280632019,
-0.5432338714599609,
0.31028759479522705,
0.06240956485271454,
0.4234274625778198,
-0.44849374890327454,
-0.18832044303417206,
-0.17979860305786133,
-0.29249250888824463,
0.6475358605384827,
-0.37491360306739807,
0.217281922698... | |
your repository requires a password, you'll have to enter it many times. | [
0.3141796588897705,
0.21691520512104034,
-0.10971537232398987,
0.38790974020957947,
0.38528209924697876,
-0.20672346651554108,
0.3107610046863556,
0.1558254212141037,
-0.18288016319274902,
-0.3882710635662079,
-0.12869688868522644,
0.30042290687561035,
0.13450230658054352,
0.18463781476020... | |
By best, I mean most-common, easiest to setup, free. Performance doesn't matter.
I decided that pyodbc was the best fit. Very simple, stable, supported:
<http://code.google.com/p/pyodbc/> | [
0.08334522694349289,
-0.06404063105583191,
0.23890355229377747,
0.2109277993440628,
-0.12787051498889923,
-0.12464355677366257,
-0.04963348060846329,
-0.002206159755587578,
0.12177922576665878,
-0.3884701430797577,
-0.2560877203941345,
0.34825748205184937,
-0.3641456067562103,
-0.080127112... | |
i am trying to write a program but i have no idea what to with parsing a date in this format into into a date stamp
Jan 15 2005 12:00AM
i do not care about the 12:00AM as all the records have that 12:00AM appended to them.
Use the strtotime() function ... e.g.:
$new\_date = strtotime("Jan 15 2005 12:00AM"); | [
0.2952820956707001,
0.5133662819862366,
0.73970627784729,
-0.10791057348251343,
-0.21879228949546814,
-0.16757948696613312,
0.48161715269088745,
-0.10799161344766617,
-0.16912396252155304,
-0.44122713804244995,
0.26039186120033264,
0.5383270978927612,
0.047587763518095016,
-0.0088067464530... | |
I just started using Linq to SQL, and it just occurred to me that I don't really need any sprocs in the database since i can do all the data access through Linq to SQL.
Is there any reason to write sprocs with Linq to SQL?
Thank you.
There typically is no good reason to write stored procedures in new applications.
... | [
0.12965725362300873,
0.4061644375324249,
0.25608742237091064,
0.27075520157814026,
0.14114175736904144,
-0.29043933749198914,
-0.06598971784114838,
0.00783018209040165,
-0.45321622490882874,
-0.5163146257400513,
0.11487932503223419,
0.5592452883720398,
-0.045828886330127716,
0.075419977307... | |
front of the database. The problem with that is, SQL is a very bad language for trying to write high-level business programs. Another problem with that is, you will be consuming the API in front the database from languages other than SQL. Languages like C#, Ruby and Haskell offer far more powerful ways of creating APIs... | [
0.3559742569923401,
0.3037828505039215,
-0.05552643537521362,
0.19728386402130127,
-0.2212202250957489,
0.019924292340874672,
0.14009296894073486,
0.1823597550392151,
-0.09747769683599472,
-0.27391329407691956,
-0.01489777211099863,
0.7443763613700867,
-0.5726905465126038,
0.07063525915145... | |
I wrote this code in Processing ([www.processing.org](http://www.processing.org/)) and was wondering how would one implement it using C++?
```
int i = 0;
void setup()
{
size(1000,1000);
}
void draw()
{
// frameRate(120);
PImage slice = get();
set(0,20,slice);
if( i % 2 == 0 ) fill(128); else fill(0);
i+... | [
0.5062819123268127,
-0.5246996879577637,
0.5064159631729126,
-0.2930909991264343,
-0.08146745711565018,
0.2780782878398895,
0.036057449877262115,
-0.5729160308837891,
-0.31879308819770813,
-0.8721035718917847,
-0.044758182018995285,
0.45372533798217773,
-0.37158435583114624,
-0.09896652400... | |
I would like to compress the results if it reached a certain number of rows.
The client program would then uncompress the result and process.
This a desktop with a client/server architecture, some clients connects through vpn.
When a client connects, it will send data to the server. After the server has done process... | [
0.24276913702487946,
0.05620572715997696,
0.9567333459854126,
0.02375715598464012,
0.11817235499620438,
0.18469339609146118,
-0.11433018743991852,
-0.1083303913474083,
-0.33076635003089905,
-0.9223604202270508,
0.11117657274007797,
0.4275309443473816,
-0.17645230889320374,
0.20021733641624... | |
be used to compress strings into binary strings. However, depending on your needs that may not really address the problem especially since database records are usually already very compact by their very nature so I'm not certain how much benefit you'll receive from attempting further compression of the result set.
On... | [
0.10054775327444077,
0.07230198383331299,
-0.2409205138683319,
0.4340926706790924,
0.2221524566411972,
-0.2840912640094757,
0.09849795699119568,
-0.11363634467124939,
-0.2131909281015396,
-0.5461642146110535,
-0.08670571446418762,
0.4998961389064789,
-0.21860644221305847,
-0.02256455086171... | |
actually identified a bottleneck in your application? If so, where exactly is it and what is its nature? What environment are you working in? Is this web development or desktop with a client/server architecture?
Perhaps you can add some of this additional information to your question and then it would be possible to ... | [
0.40697672963142395,
-0.07212574779987335,
-0.09868569672107697,
0.41232162714004517,
0.37669259309768677,
-0.27978843450546265,
0.2682214379310608,
0.23035846650600433,
-0.2500373125076294,
-0.20688965916633606,
0.16367202997207642,
0.2632547914981842,
-0.034335844218730927,
0.10482650250... | |
Here is my code:
```
# hi.ps1
function fun
{
Write-Host $args
}
Write-Host '---------------'
Write-Host $args
Write-Host '---------------'
fun
Write-Host '---------------'
```
This is the output:
```
PS C:\scratch> .\hi there jim
---------------
there jim
---------------
---------------
```
My question is,... | [
-0.17033536732196808,
0.09858499467372894,
0.8153581619262695,
-0.28290262818336487,
-0.040083032101392746,
-0.05062681809067726,
0.0723511204123497,
0.3585687279701233,
-0.3732447028160095,
-0.8947022557258606,
0.02144652232527733,
0.8113689422607422,
-0.32842904329299927,
0.0435544289648... | |
to the script itself in some way.
**Edit:** I'm accepting my own answer as the best one since it is what solved my problem, but also see the other answers and their comments for some useful information. | [
0.21127402782440186,
0.318110853433609,
0.3605585992336273,
0.017744189128279686,
-0.26597630977630615,
0.15902243554592133,
0.3069984018802643,
0.10333225876092911,
-0.061582572758197784,
-0.5132359266281128,
-0.16101671755313873,
0.39176785945892334,
0.13673974573612213,
-0.2710529863834... | |
I have an idea of how interrupts are handled by a dual core CPU. I was wondering about how interrupt handling is implemented on a board with more than one physical processor.
Is any of the interrupt responsibility determined by the physical board's configuration? Each processor must be able to handle some types of in... | [
0.15414482355117798,
-0.10102497786283493,
-0.21294528245925903,
0.30600783228874207,
-0.022549225017428398,
0.15346987545490265,
-0.1852598488330841,
0.20776741206645966,
-0.47953179478645325,
-0.6250103116035461,
0.017143629491329193,
0.688808023929596,
-0.31162652373313904,
0.1177964508... | |
read, will that core be the one to run the interrupt handler when the disk is ready?
On x86 systems each CPU gets its own local APIC (Advanced Programmable Interrupt Controller) which are also wired to each other and to an I/O APIC that handles routing device interrupts to the local APICs.
The OS can program the APICs... | [
0.12548735737800598,
-0.12234826385974884,
0.20692382752895355,
0.18865999579429626,
0.11536012589931488,
0.18802130222320557,
-0.13226723670959473,
0.11218813806772232,
-0.15890520811080933,
-0.73238605260849,
-0.11217888444662094,
0.5937647223472595,
-0.2640717029571533,
-0.0046635074540... | |
<http://en.wikipedia.org/wiki/Intel_APIC_Architecture> | [
0.336625874042511,
0.029747718945145607,
-0.09864184260368347,
-0.19698038697242737,
-0.15066997706890106,
0.4359052777290344,
0.18081189692020416,
0.3182569146156311,
-0.013948138803243637,
-0.4443592429161072,
-0.24565310776233673,
0.2618401348590851,
-0.3031913936138153,
0.0949934646487... | |
I want to host a mod\_perl application on a shared RHEL server where I do not have access to a root account. mod\_perl is available on the server as are all Perl modules required (my app runs fine with CGI).
Here are two problems I anticipate: Apache restarts would be required whenever I update my code the first time... | [
0.39037367701530457,
0.04436870664358139,
0.2694823145866394,
0.0032823120709508657,
-0.22942516207695007,
-0.2486524134874344,
0.6326337456703186,
-0.08755262941122055,
-0.33810293674468994,
-0.3955855071544647,
0.0016316426917910576,
0.617641031742096,
-0.2073879987001419,
0.107243269681... | |
to restart Apache httpd.
Perhaps the admin will give you `sudo` powers so you can do that at least.
Try Perl under FCGI instead. | [
0.25759854912757874,
-0.4064229130744934,
0.31033480167388916,
0.3228238821029663,
-0.3027559220790863,
-0.6582176089286804,
0.7666721343994141,
0.06201556697487831,
-0.2034851610660553,
-0.41463950276374817,
-0.07634472101926804,
0.45206260681152344,
-0.06274395436048508,
-0.1528177261352... | |
The line that appears when we set the mask of a masked text box in winforms for c# does not seem attractive at all to me .I want to know if there is any way i can set the mask of
the masked text box and that line is not shown???
In VB.NET, the MaskedTextBox has a property called PromptChar (I'm sure it's the same in C... | [
0.06860751658678055,
-0.5870521068572998,
0.46054452657699585,
-0.033444952219724655,
-0.16485531628131866,
-0.002574295736849308,
0.2528816759586334,
0.37714749574661255,
0.2529045045375824,
-0.873962938785553,
-0.0698169469833374,
0.7990810871124268,
-0.3240363299846649,
-0.1736761033535... | |
How can I get the HTML source for a given web address in C#?
You can download files with the [`WebClient` class](http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx):
```
using System.Net;
using (WebClient client = new WebClient ()) // WebClient class inherits IDisposable
{
client.DownloadFile("http... | [
0.16874736547470093,
0.03042454458773136,
0.595434308052063,
0.2206956297159195,
0.14042335748672485,
-0.1495252251625061,
0.1372801959514618,
-0.11991497129201889,
-0.15121710300445557,
-0.8749418258666992,
-0.17173680663108826,
0.4902946949005127,
-0.22334524989128113,
0.3048156499862671... | |
Is there a build procedure in C# for making a combobox or list box that has names of all countries and when a country is selected another combobox is filled with the cities of that country?
Sure there is a procedure.
You could start with a simple data structure:
```
public class Country
{
public string Name { get; s... | [
0.3556811809539795,
-0.2126404345035553,
0.2526531517505646,
0.3450181782245636,
0.12084291875362396,
-0.1831393986940384,
-0.07062818855047226,
-0.02916896529495716,
-0.41508954763412476,
-0.6543006300926208,
-0.3370009958744049,
0.0156185831874609,
-0.6058177351951599,
0.254645437002182,... | |
=
new List<Country>
{
new Country
{
Name = "Germany",
Cities =
{
new City {Name = "Berlin"},
new City {Name = "Hamburg"} | [
0.11298219859600067,
-0.47114747762680054,
0.6181727051734924,
0.1924506276845932,
0.01648532971739769,
0.16759571433067322,
0.14640511572360992,
0.27741876244544983,
-0.6967775821685791,
-0.5179983973503113,
-0.6893721222877502,
-0.6363569498062134,
-0.4068501591682434,
0.6906774044036865... | |
}
},
new Country
{
Name = "England",
Cities =
{
new City {Name = "London"},
new City {Name = "Birmingham"} | [
-0.028700876981019974,
-0.3704109787940979,
0.3622908592224121,
0.01900801993906498,
0.5404227375984192,
0.5517755150794983,
0.28666940331459045,
0.46119949221611023,
-0.2770088016986847,
-0.4502704441547394,
-0.5262992978096008,
-0.10526125878095627,
-0.44941338896751404,
0.61117589473724... | |
}
}
};
```
In your form, instantiate two Binding Sources (BS):
* The first BS binds to the Countries
property.
* The second BS binds to the first (DataSource = firstBS) and its DataMember should be "Cities".
Now you need two dropdowns:
* 1st: DataSource = first BS, DisplayMember = "Name"
* 2nd: DataSou... | [
0.24244548380374908,
-0.04722152277827263,
0.48727646470069885,
0.2122420072555542,
0.17595672607421875,
-0.41855588555336,
0.06006482243537903,
-0.023044543340802193,
-0.38382452726364136,
-0.7067712545394897,
-0.45078611373901367,
-0.047018036246299744,
-0.20282843708992004,
0.1496836543... | |
I just installed Eclipse 3.4.2 with PDT 2.0 and it seems that in PHP perspective I'm unable to see any files in the project. When I switch to J2EE view I can see all the files in the project just fine.
Anyone know whats going on?
What your "Error Log" view is reporting ? (`Help > About > Configuration Details > View E... | [
0.5072596073150635,
0.20320576429367065,
0.30492961406707764,
-0.1025824025273323,
-0.22612378001213074,
-0.3769233822822571,
0.3697858452796936,
0.02386428229510784,
-0.1798410713672638,
-0.6553695201873779,
0.039166539907455444,
0.940582811832428,
-0.188060462474823,
-0.204623743891716,
... | |
of Galileo (3.5Mx)](http://dev.eclipse.org/newslists/news.eclipse.tools.pdt/msg03480.html) instead of GanyMalede. | [
-0.12524336576461792,
-0.07148086279630661,
0.3888119161128998,
0.3197002708911896,
-0.20133976638317108,
0.3088793158531189,
-0.08490046113729477,
-0.034836940467357635,
-0.38419079780578613,
-0.10510426759719849,
0.1998748481273651,
0.565454363822937,
-0.4912431836128235,
0.3587176799774... | |
I'm writing a straightforward C program on Linux and wish to use an existing library's API which expects data from a file. I must feed it a file name as a const char\*. But i have data, just like content of a file, already sitting in a buffer allocated on the heap. There is plenty of RAM and we want high performance. W... | [
0.5500609278678894,
0.3455304801464081,
0.09438381344079971,
0.14777353405952454,
-0.018091455101966858,
-0.1489674150943756,
0.17101818323135376,
0.2062983512878418,
-0.010547912679612637,
-0.767047107219696,
0.16205289959907532,
0.5705628395080566,
-0.19028837978839874,
0.389707773923873... | |
*filename);
```
normal-persons-usage.cpp, for which library was originally designed:
```
#include "marvelouslibrary.h"
int somefunction(char *somefilename)
{
return marvelousfunction(somefilename);
}
```
myprogram.cpp:
```
#include "marvelouslibrary.h"
int one_of_my_routines()
{
byte* stuff = new byte[10... | [
0.348688542842865,
0.1187431812286377,
0.510362982749939,
0.04941852018237114,
0.21486590802669525,
0.0009588836110197008,
0.3822565972805023,
-0.14352792501449585,
-0.3126961886882782,
-0.6051661968231201,
-0.03485681116580963,
0.5171639919281006,
-0.08225496113300323,
0.2725802958011627,... | |
processes. I am no expert at these things. Does a named pipe work okay read and written in the same process? Is this a wise approach?
Or skip being clever, go with plan "B" which is to shuddup and just write a temp file. However, i'd like to learn something new and find out what's possible in this situation, beside g... | [
0.46678757667541504,
0.17858189344406128,
-0.012016409076750278,
0.2262568473815918,
-0.053926218301057816,
0.17391671240329742,
0.18979743123054504,
-0.36817705631256104,
-0.35432466864585876,
-0.7809218764305115,
0.12715426087379456,
0.43133676052093506,
-0.23816822469234467,
0.015181398... | |
find out if the call you are making is calling another function that takes a File \* or an int for the file descriptor then you can do something better.
One thought that does come to mind, can you cahnge your code to write to a memory mapped file instead of to the heap? That way you would have a file on disk already a... | [
0.16072317957878113,
-0.1717398762702942,
-0.1284213662147522,
0.26895835995674133,
-0.03891526535153389,
-0.06535039097070694,
0.04973378777503967,
0.09030250459909439,
-0.22972428798675537,
-0.5529637336730957,
0.19805698096752167,
0.7679492235183716,
0.04477450251579285,
0.0921570658683... | |
This error comes up when I submit a page to load up a .net chart control. I have the http handler in my web.config below. FOr whateve reason it doesnt seem to work.
```
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory... | [
-0.23171089589595795,
0.37390628457069397,
0.1699894219636917,
-0.028170933946967125,
-0.040692247450351715,
0.17826424539089203,
0.9301809668540955,
0.13359135389328003,
-0.06716818362474442,
-0.5790842175483704,
0.15690761804580688,
0.44140177965164185,
-0.5615695118904114,
0.17115874588... | |
adding the handler in the `<system.webServer>` section of the web.config for IIS 7. | [
-0.010857106186449528,
-0.3859512209892273,
0.26410529017448425,
0.06316548585891724,
0.08071417361497879,
-0.31712979078292847,
0.19029878079891205,
-0.061841342598199844,
-0.06108999252319336,
-0.6735208034515381,
-0.40933242440223694,
0.3537541627883911,
-0.5812957286834717,
-0.16147342... | |
I have a project where i'm trying to use weakrefs with callbacks, and I don't understand what I'm doing wrong. I have created simplified test that shows the exact behavior i'm confused with.
Why is it that in this test test\_a works as expected, but the weakref for self.MyCallbackB disappears between the class initia... | [
-0.26290062069892883,
0.06198260188102722,
0.05700463801622391,
-0.05766737833619118,
-0.14712151885032654,
0.0682266354560852,
0.6204299330711365,
0.11391647905111313,
0.00008968677138909698,
-0.6546671390533447,
-0.02262241207063198,
0.5700321793556213,
-0.5789249539375305,
0.29254478216... | |
print 'MyCallbackA'
self.MyCallbackA = MyCallbackA
self._testA = weakref.proxy(self.MyCallbackA)
self._testB = weakref.proxy(self.MyCallbackB)
def MyCallbackB(self):
print 'MyCallbackB'
def test_a(self):
self._testA()
def test_b(self):
self._testB()
if __... | [
-0.1912790685892105,
0.24438458681106567,
0.1755899041891098,
-0.20738485455513,
-0.23169687390327454,
0.3869166374206543,
0.6518912315368652,
-0.23736821115016937,
0.19358114898204803,
-0.5480592250823975,
-0.21205851435661316,
0.24211548268795013,
-0.15824101865291595,
0.0243479553610086... | |
explanation why your solution doesn't work can be found in the discussion of the recipe:
> Normal weakref.refs to bound methods don't quite work the way one expects, because bound methods are first-class objects; **weakrefs to bound methods are dead-on-arrival** unless some other strong reference to the same bound met... | [
-0.06339867413043976,
-0.1937580108642578,
0.20192895829677582,
0.19682744145393372,
0.012251265347003937,
-0.34485921263694763,
0.5968382358551025,
0.0842352882027626,
0.24623072147369385,
-0.4669249951839447,
-0.2277204990386963,
0.26586222648620605,
-0.36805033683776855,
0.0908796712756... | |
I need a solution for the page refresh and the back button when using AJAX.
I'm using simple javascript for the AJAX implementation.
If anybody could send a code snippet I would be very grateful.
essentially, you need to use & monitor the hash portion of the url...
```
http://.../path?parms#hashpart
```
Whan you ... | [
0.01983797922730446,
0.22590191662311554,
0.3942835032939911,
0.05796549469232559,
-0.22850430011749268,
-0.2685498595237732,
0.1932680606842041,
0.2501518130302429,
-0.2602931261062622,
-1.0883954763412476,
-0.011400964111089706,
0.5949578285217285,
-0.09980975836515427,
0.124297320842742... | |
When using os.listdir method I need to tell which item in the resulting list is a directory or just a file.
I've faced a problem when I had to go through all the directories in this list, and then add a file in every single directory.
Is there a way to go through this list and remove all files from it? If it isn't po... | [
0.027890125289559364,
-0.2142455279827118,
0.38966280221939087,
-0.06243021413683891,
0.09359369426965714,
-0.20994827151298523,
-0.02296196110546589,
0.0011020003585144877,
-0.4529457986354828,
-1.0637307167053223,
-0.19176773726940155,
0.6120017170906067,
-0.47620487213134766,
0.02591386... | |
Where does Scripting ends and Programming begins? ActionScript 3 and JavaScript/JScript are so different...
The distinction was meaningful once, but the line is getting increasingly blurred to the point where I dont think it is useful today.
* historically, scripting languages are interpreted, programming langauages a... | [
0.373160183429718,
0.20818567276000977,
0.1578398197889328,
0.15376535058021545,
-0.016290204599499702,
-0.13062922656536102,
-0.01418700348585844,
0.16768182814121246,
-0.15652897953987122,
-0.816003680229187,
-0.037698328495025635,
0.509738028049469,
-0.4025174379348755,
0.18229074776172... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.