text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I don't actually allocate anything. Instead, the program runs fine and prints nothing. What am I doing wrong?
I get the same results in gcc and VS2008.
You will need to provide a rebind member template and the other stuff that is listed in the allocator requirements in the C++ Standard. For example, you need a templat... | [
0.39005962014198303,
0.07950811833143234,
0.15798044204711914,
-0.037313736975193024,
-0.060930073261260986,
-0.09964647144079208,
0.0017984573496505618,
-0.3720684051513672,
-0.1881440132856369,
-0.5031343698501587,
0.06180940568447113,
0.5030742883682251,
-0.46999412775039673,
0.19176740... | |
>::other ot(alloc);
// ...
}
```
The code will fail if there either exist no correct rebind template, or there exist no corresponding copy constructor. You will get nowhere useful with guessing what the requirements are. Sooner or later you will have to do with code that relies on one part of those allocator requ... | [
0.5427489280700684,
0.48131120204925537,
0.3356439471244812,
-0.1101437658071518,
0.25219300389289856,
-0.22690168023109436,
0.3921253979206085,
-0.5237240195274353,
0.10487464815378189,
-0.7522538304328918,
-0.4919075071811676,
0.7928650379180908,
-0.2689164876937866,
-0.00765665201470255... | |
I have an iPhone app that, for some users, sometimes behaves as if with the main UIView has been removed from the view hierarchy. It always happens coincident with a significant event in the game. Other Core Graphics-drawn UIViews that are above it in the z-order remain, but the main one (an OpenGL view) appears to be ... | [
0.17629751563072205,
0.12894581258296967,
0.35493481159210205,
0.049487415701150894,
0.2240312397480011,
-0.20962977409362793,
0.2521129846572876,
0.29914599657058716,
-0.17058946192264557,
-0.5349581837654114,
-0.14975880086421967,
0.34358659386634827,
-0.20010514557361603,
0.197718113660... | |
the easiest explanation -- but based on my reading it looks like didReceiveMemoryWarning only deallocs views that aren't visible, and aside from that the memory usage for my app is pretty small. Also, the "significant event" only results in OpenGL drawing and a SoundEngine call -- no view manipulation.
Anybody out the... | [
0.12706492841243744,
0.30570417642593384,
0.28782540559768677,
0.13989998400211334,
-0.03965553268790245,
-0.25771623849868774,
0.6130000948905945,
0.41210708022117615,
-0.36046111583709717,
-0.42965975403785706,
-0.03624787926673889,
0.8445254564285278,
-0.1759495586156845,
0.232160747051... | |
make tracking it down much easier if you know to look/ask for them. | [
0.6002871990203857,
-0.030900245532393456,
0.09521715342998505,
0.3101682662963867,
0.23370468616485596,
-0.01701020449399948,
0.23170050978660583,
0.18480415642261505,
-0.2892793118953705,
-0.2994508743286133,
0.07341194152832031,
0.5490463376045227,
0.20895428955554962,
-0.45139852166175... | |
I am interesting in the raw (or composite) metrics used to get a handle on how well a person can program in a particular language.
*Scenario: George knows a few programming languages and wants to learn "foobar", but He would like to know when he has a reasonable amount of experience in "foobar".*
I am really interest... | [
0.6983396410942078,
0.31624382734298706,
0.2542291283607483,
0.2703915536403656,
-0.06945806741714478,
0.00625084713101387,
0.13410072028636932,
0.38453221321105957,
-0.40355226397514343,
-0.6669682860374451,
-0.03318767249584198,
0.32162514328956604,
0.4649999141693115,
-0.114527054131031... | |
there *is* a way to get a handle on how well a person can program in a particular language: you can test how well someone knows English, or Maths, or Music, or Medicine, or Fine Art, so what's so special about a programming language?
In reply to the OP, I guess the tests must assess:
* How well you can program
* How ... | [
0.32787907123565674,
0.394631564617157,
-0.0402311347424984,
0.11199811100959778,
-0.038879070430994034,
-0.052871789783239365,
0.49862536787986755,
-0.12549632787704468,
-0.08391887694597244,
-0.42701399326324463,
0.0717325285077095,
0.6319406628608704,
0.3839677572250366,
-0.388567954301... | |
person use appropriate/idiomatic features of the programming language in question in order to do that good programming?
It would be difficult to make the test 'mechanical', though: most exams that I know of are graded by a human examiner. In the case of programming, part of the test could be graded mechanically (i.e. ... | [
0.3451312482357025,
0.1864221841096878,
-0.2869947850704193,
0.23982535302639008,
-0.17837263643741608,
0.03685157001018524,
0.6793070435523987,
-0.12388072907924652,
0.15485668182373047,
-0.3988027274608612,
-0.012717529200017452,
0.6429999470710754,
0.43349480628967285,
-0.34061807394027... | |
I'm trying to use this regular expression, but I'm having trouble testing it, because for whatever reason it is crashing the only two regex testers I use.
^([a-zA-Z-]+/?)+$
If I'm not mistaken, that should match any URI that follows this format:
some-uri-string/some-uri-string/some-uri-string
However, I don't want ... | [
0.30493026971817017,
-0.011864544823765755,
0.21547852456569672,
0.013549422845244408,
-0.24999988079071045,
-0.3079071342945099,
0.564879298210144,
0.33884119987487793,
-0.23241136968135834,
-0.4486214816570282,
-0.3059960901737213,
0.3884851038455963,
-0.49461591243743896,
0.099861152470... | |
as:
```
^([a-zA-Z-]+/)*[a-zA-Z-]+$
```
Or your RE implementation may have other facilities available to avoid that scenario. | [
0.2608109414577484,
0.057850949466228485,
0.13786521553993225,
-0.4153880774974823,
0.008412333205342293,
0.052359480410814285,
0.309671550989151,
0.04729606583714485,
-0.1296151876449585,
-0.4220432937145233,
-0.6399689316749573,
0.6520167589187622,
-0.23526635766029358,
0.043821778148412... | |
I have a large database and want to implement a feature which would allow a user to do a bulk update of information. The user downloads an excel file, makes the changes and the system accepts the excel file.
1. The user uses a web interface (ASP.NET) to download the data from database to Excel.
2. User modifies the Ex... | [
0.6248305439949036,
0.053999390453100204,
0.6543998718261719,
-0.025083724409341812,
-0.21508285403251648,
-0.10502483695745468,
-0.04993138462305069,
-0.0434010773897171,
0.13036707043647766,
-0.8658351302146912,
0.22348719835281372,
0.48459360003471375,
-0.23080091178417206,
0.2986663579... | |
the Excel file (using Gembox) and validate the data against the database (this is where I'm having the trouble)
5. Validation results are shown on another ASP.NET page after validation is complete. Validation is soft and so hard fails **only** occur when say an index mapping into DB is missing. (Missing data causes ign... | [
0.10293500125408173,
0.1949353665113449,
0.37996041774749756,
0.06680671870708466,
-0.1613192856311798,
-0.14607107639312744,
0.3794994354248047,
-0.6603162884712219,
0.05346328020095825,
-0.4567617177963257,
-0.2612156569957733,
0.7386284470558167,
-0.15668697655200958,
-0.218337014317512... | |
accidentally deleted dates which they didn't mean to)
It's not far fetched for the rows that need updating to reach over 65k.
The question is: **What is the best way to parse the data to do validation and to build up the change and addition sets?**
If I load all data that the excel data must be validated against int... | [
0.15945756435394287,
0.30136269330978394,
0.19305798411369324,
0.055437587201595306,
-0.09423644840717316,
0.07834941148757935,
0.2934025526046753,
-0.01489432342350483,
-0.5049201846122742,
-0.6644628047943115,
0.19710741937160492,
0.5035411715507507,
-0.36526060104370117,
-0.083716474473... | |
data into a 'scratch' table in the database.
2. Validate data in the scratch table via a single stored procedure (executing a series of queries), marking rows that fail validation, require update etc.
3. Action the marked rows as appropriate.
This works well for validating missing columns, valid key values etc. It's n... | [
0.2427700012922287,
0.01630651019513607,
0.08172369003295898,
0.15010914206504822,
-0.1702590435743332,
-0.09318675100803375,
0.07455669343471527,
-0.4410136938095093,
-0.03862222284078598,
-0.2504137456417084,
0.0375247523188591,
0.5458484292030334,
-0.0956026166677475,
-0.064800165593624... | |
How would I generate a proper URL for an MVC application to be included in an e-mail?
This is for my registration system which is separate from my controller/action. Basically, I want to send an email verification to fire an Action on a Controller. I don't want to hardcode the URL in, I would want something like the U... | [
0.42110976576805115,
0.12113670259714127,
0.4165956974029541,
0.2622055113315582,
-0.1503797173500061,
-0.2546398341655731,
0.06183155998587608,
-0.23228460550308228,
-0.3448968827724457,
-0.2163725346326828,
0.1241164430975914,
0.3866840898990631,
-0.30525556206703186,
0.3068825900554657,... | |
is reachable from the outside as it might be hidden behind a proxy or a load balancer. | [
0.10593125224113464,
-0.13771259784698486,
0.3029540181159973,
0.18959152698516846,
0.32571229338645935,
-0.3287176191806793,
0.35697484016418457,
0.4660378098487854,
-0.056582529097795486,
-0.5715442895889282,
-0.5493706464767456,
0.008996750228106976,
0.08347265422344208,
0.0685842484235... | |
How does a Silverlight application ask the browser what domain its being served up from?
**UPDATE:**
Make sure if your class doesn't already have this *using* statement add it at the top your class. This will help you on some of the examples you'll see online. It confused me for a bit.
```
using System.Windows.Brow... | [
0.4769710898399353,
0.027616146951913834,
0.36537230014801025,
0.06314823031425476,
-0.2506471276283264,
-0.28642866015434265,
0.11233289539813995,
-0.020537324249744415,
-0.20343635976314545,
-0.530555009841919,
0.04519590735435486,
0.1256958395242691,
-0.19431626796722412,
0.217967838048... | |
I was wondering if there is a way to use php to return the values from a search without having to reload the whole webpage or using iframes or anything like that. I've tried searching for it but I always end up with AJAX and I was wondering if there is a PHP way for it...
I suggest you read up on AJAX and what it is, a... | [
0.49085599184036255,
0.2683141529560089,
0.14075030386447906,
0.19840626418590546,
-0.39664822816848755,
-0.10143524408340454,
-0.020001770928502083,
0.33650630712509155,
-0.16174140572547913,
-0.5919843912124634,
0.3009907305240631,
0.36165565252304077,
-0.19886241853237152,
-0.0063388948... | |
.NET, etc.) and returning it to the browser, without the page ever 'reloading'. That's all it is, and that's what you want.
I recommend you check out something like [jQuery](http://www.jquery.com) as it is far away the most popular javascript library. It makes doing AJAX requests a piece of cake. | [
0.48013001680374146,
0.05195203796029091,
0.17718523740768433,
0.15874287486076355,
-0.26893457770347595,
-0.566386342048645,
0.17322134971618652,
0.6116892099380493,
-0.35514500737190247,
-0.7417929768562317,
-0.010803322307765484,
0.3218234181404114,
0.102317214012146,
-0.107125341892242... | |
I am new to programming language and I am using PHP and mysql. I got an assignment to do a hashtables in php. What I need to do is, store items that a user collected and then display it. After do some research over the internet, I will do the following steps when implement the hashtable, please correct me if I am wrong... | [
-0.10991159826517105,
0.0939178466796875,
0.4071543514728546,
0.06603141129016876,
-0.12471430748701096,
-0.03780173882842064,
0.04483899474143982,
-0.5020419955253601,
-0.09994303435087204,
-0.766313910484314,
0.11194932460784912,
0.27687379717826843,
-0.07664300501346588,
0.2157547622919... | |
a hash value and then insert into database. E.g.: hash item\_id = 001 into hash value = (e.g) 12345. Then insert into users table.
3. To display/search. Retrieve the hash values from the user and then compare it to the items table and display it.
Questions:
1. Are my steps correct?
2. Where can I find a good php hash... | [
0.11468300968408585,
0.05976475402712822,
0.2884273827075958,
0.1540447175502777,
-0.20029905438423157,
-0.028032353147864342,
0.23569723963737488,
-0.45935651659965515,
-0.1811491847038269,
-0.6049302816390991,
0.12748192250728607,
0.3137204349040985,
-0.1858811378479004,
-0.0318173877894... | |
hash is the first letter of the name, which then makes it quicker to search through.
md5, sha1 are used to derive hashes that are used to verify that data has not been tampered. they usually come in either 128-bit or 160-bit versions. So it takes X data and sends it through a hash to come up with a 128-bit alphanumeri... | [
0.12596963346004486,
0.09781959652900696,
0.13765187561511993,
0.08053749054670334,
-0.1505202203989029,
-0.2888624966144562,
0.14768971502780914,
-0.017276473343372345,
-0.3526564836502075,
-0.43591150641441345,
-0.17126034200191498,
0.270108699798584,
-0.042214956134557724,
0.41831004619... | |
the row. In the example data % X where X is the total number of keys you would like to have. The issue with this is that X is difficult to find; if you have 20 items, then making X into 20 is feasible and makes it a quick search as each item has it's own row. But if you have 1000 items, then doing % 1000 is NOT feasibl... | [
-0.2903355062007904,
0.023729022592306137,
0.4159203767776489,
0.05982069671154022,
0.011247026734054089,
0.33773842453956604,
-0.18071764707565308,
-0.4072084426879883,
-0.42529407143592834,
-0.6096680760383606,
-0.14027361571788788,
0.4885677099227905,
-0.23176121711730957,
0.28317639231... | |
When updating a datatable from a "select \* from sometable", I am iterating the columns in the datatable to dynamically create an update or insert statement, based on datatable.rowstate and DataTable.PrimaryKey.
However, I can't seem to find any property that indicates whether a column is a TimeStamp in SQL Server and... | [
0.18139980733394623,
0.08019845932722092,
0.5303171873092651,
0.061188552528619766,
0.13733546435832977,
0.2600880563259125,
-0.3229978680610657,
-0.4598304331302643,
-0.3521744906902313,
-0.6858276724815369,
0.1437900811433792,
0.3765665888786316,
-0.14774644374847412,
0.2125060111284256,... | |
the arm, you need a series of intermediate joint positions defining the path you want the arm to follow. You also have to worry about the velocities of the joints, which together control the speed of the "hand" at the end of the arm.
While the arm is moving your servo system will be getting feedback about its actual ... | [
0.08624398708343506,
-0.12456437200307846,
0.5513620972633362,
0.5189191699028015,
-0.12955093383789062,
0.05427705869078636,
-0.12583984434604645,
-0.3863953649997711,
-0.7187843322753906,
-0.21340225636959076,
0.5205777287483215,
0.5742488503456116,
0.14642079174518585,
-0.28791072964668... | |
have to allow for obstacles in the space around the robot. You have to sense the obstacle and figure out how to avoid it and still reach the destination. | [
0.10436108708381653,
-0.002901919186115265,
0.3678370714187622,
0.43568137288093567,
0.2598849833011627,
-0.09015154838562012,
0.45423921942710876,
-0.31685036420822144,
-0.21530583500862122,
-0.8482643365859985,
-0.1673627495765686,
0.31445980072021484,
-0.0643867701292038,
-0.27296796441... | |
I am building a web based application written in ASP.NET and Flex. One of my biggest challenges is implementing security for the application in a flexible and maintainable way. This challenge is compounded when different technologies are involved. I'll try to describe what I have below.
The website is laid out as foll... | [
0.3884880542755127,
0.0495489165186882,
0.9247535467147827,
-0.09936730563640594,
0.08945002406835556,
-0.4201045632362366,
0.18835239112377167,
-0.1943250596523285,
-0.445729523897171,
-0.9347406625747681,
-0.0403900146484375,
0.38141337037086487,
0.06439423561096191,
-0.04294221475720405... | |
are not yet authenticated. The .asmx pages allow unauthenticated users. To secure these resources I throw an exception in the SOAP method. This avoids redirecting pages for SOAP web services which is not supported by any SOAP web service clients I am aware of. Finally, SecurityService.asmx contains a Login method to al... | [
0.3452257215976715,
-0.072135791182518,
0.29531610012054443,
0.1949811577796936,
0.1008768305182457,
-0.5505896806716919,
0.37129703164100647,
-0.15292014181613922,
-0.36689823865890503,
-0.5539026856422424,
-0.14530189335346222,
0.4500487148761749,
-0.11370833963155746,
-0.153097897768020... | |
a bad approach securing web services. I feel like I am using Forms Authentication for something it was not intended for. Specifically, I am concerned about:
* This model will not work when the services are separated from the core website. This is a newly discovered requirement and I believe that Forms Authentication i... | [
0.44720494747161865,
-0.1631726622581482,
0.46412602066993713,
0.12654240429401398,
0.18343397974967957,
-0.47687873244285583,
0.36198896169662476,
-0.21751081943511963,
-0.3225598931312561,
-0.6377511620521545,
0.11643393337726593,
0.42468494176864624,
-0.1908636838197708,
-0.075723990797... | |
immediate requirement but it is known that this is one of the long term goals.
* We will eventually (hopefully sooner rather than later) move to a REST based architecture (vs. SOAP) so any solution needs to work for SOAP and REST.
So, my question is.
**What are the best authentication and authorization mechanisms fo... | [
0.25667136907577515,
-0.08645264804363251,
0.4396762251853943,
0.16918587684631348,
0.17431631684303284,
-0.24129441380500793,
0.13419561088085175,
-0.2534024715423584,
-0.11964638531208038,
-0.8679748177528381,
-0.29712581634521484,
0.6801057457923889,
0.08648869395256042,
-0.268893897533... | |
user based on the permissions that user has, OAuth seems to remove the identity of the user from the token. As such, I am not sure how OAuth applies in a fine grained security model.*
Others may disagree, but I actually don't see a huge problem with handling it the way you are now; that's probably how I'd handle myself... | [
0.17837925255298615,
0.09338194876909256,
0.2595398724079132,
0.12491162121295929,
-0.06944353133440018,
-0.12400965392589569,
0.20484815537929535,
0.08354292064905167,
-0.43127137422561646,
-0.643804132938385,
-0.07897087931632996,
0.4039571285247803,
-0.05845159664750099,
-0.046479791402... | |
you set when you set that one, it seems like a fine and reliable way to go.
I do see what you mean about the services redirecting, but even so, with forms auth, it's not so much the service specifically that's handling the redirecting so much as the ASP.NET app itself. Later, should you need to use a different authent... | [
0.5481355786323547,
-0.40579766035079956,
0.6309290528297424,
0.17046700417995453,
-0.10088223218917847,
-0.1303500384092331,
-0.06340958923101425,
-0.20430560410022736,
-0.4446672201156616,
-0.5117207169532776,
-0.09635622054338455,
0.5722967982292175,
-0.03770796209573746,
-0.40150964260... | |
I would like to embed a flash movie on my page but I would need it to autoload from the begining, not only when I reach it through page. I mean, I have a long page and the flash is about in the middle. It plays an animation with sound and I would like it to start itself, not only when I scroll down to it. Is this possi... | [
0.408590704202652,
-0.025393914431333542,
0.47312670946121216,
0.2653902471065521,
-0.01273924671113491,
-0.06728439778089523,
-0.060396257787942886,
0.27252769470214844,
-0.23712866008281708,
-0.8171717524528503,
0.14582999050617218,
0.24109366536140442,
0.2239229828119278,
0.168973296880... | |
another, even down the road, you'll probably want to keep the Flex app aware of the authentication state of the session, so if that means checking the ASP.NET session token directly, or some other cookie you set when you set that one, it seems like a fine and reliable way to go.
I do see what you mean about the servic... | [
0.34686169028282166,
-0.1859973520040512,
0.5111907124519348,
0.31897586584091187,
-0.23124772310256958,
-0.14331655204296112,
0.09515249729156494,
0.02403561770915985,
-0.3822776675224304,
-0.43591853976249695,
0.10845687240362167,
0.49102166295051575,
0.12846940755844116,
-0.196601346135... | |
specific implementation considerations. Unless you've got concerns about using forms auth in general, there's probably no need complicate your approach simply because of the Flex client and Web services. | [
0.6516652703285217,
-0.043302495032548904,
0.26850518584251404,
0.1967761218547821,
0.13949735462665558,
-0.10479569435119629,
-0.035713836550712585,
-0.24007950723171234,
-0.4581815302371979,
-0.9122786521911621,
0.08172894269227982,
0.6898999810218811,
0.226394385099411,
-0.3353490829467... | |
I have two Windows services, the first one written in C# and the second written in
unmanaged C++, I want to know how can I do two-way interprocess communication.
If the interprocess communication is always going to be done on the same machine, named pipes is the way to go because they are faster than other options.
H... | [
0.3537474274635315,
0.22617723047733307,
0.23471896350383759,
-0.15124501287937164,
-0.10500174760818481,
0.20930716395378113,
0.06740178912878036,
0.3140183687210083,
-0.22771313786506653,
-1.0127097368240356,
0.09376124292612076,
0.5955837965011597,
-0.04981406778097153,
0.15865395963191... | |
C++, but my recollection is that you'll have to write less C++ code if you create the server on the C++ side and then use the [`TcpClient`](http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx) class on the C# side. | [
0.25514212250709534,
-0.009426821954548359,
0.3680710792541504,
-0.13343457877635956,
-0.22461014986038208,
-0.1014513224363327,
0.08360329270362854,
0.08133756369352341,
-0.39148077368736267,
-0.3495101034641266,
-0.18896619975566864,
0.6416347622871399,
-0.4316959083080292,
0.06579504907... | |
I have a table with a row that looks like this:
(**20091231**48498429, '...', '...')
The first part, id, is a timestamp followed by a random number. (needed to work with other parts in the system) The data already exists in the table.
I want to create a column, timestamp, and extract just the date (20091231) and up... | [
0.025098636746406555,
0.24576978385448456,
0.4280124306678772,
0.005058926995843649,
0.11839457601308823,
0.20864176750183105,
-0.24063558876514435,
-0.24370326101779938,
-0.06361649930477142,
-0.6121594309806824,
0.24451518058776855,
0.30389663577079773,
-0.06595171988010406,
0.2076196372... | |
the date?
**UPDATE** - Please read the comments by bobince in the first answered question by Jonathan Sampson on how we got to the answer. This is the final query that worked:
```
UPDATE table SET rdate=substring(convert(rid,char(20)),1,8);
```
The problem was that I was using `substring` as `substring( str, 0, 8 )... | [
-0.08178701251745224,
-0.3202936053276062,
0.6920692324638367,
-0.11698595434427261,
-0.010577806271612644,
0.05602112412452698,
-0.11977644264698029,
-0.1270846724510193,
-0.09124420583248138,
-0.17808599770069122,
-0.22590605914592743,
-0.022774100303649902,
0.04764237999916077,
0.391370... | |
Untested. | [
0.030910007655620575,
-0.0034966054372489452,
-0.15614283084869385,
0.2088303416967392,
0.24034880101680756,
-0.17055964469909668,
0.2932544946670532,
-0.513741672039032,
0.2857396602630615,
-0.3441581130027771,
0.17125540971755981,
-0.002745453268289566,
-0.4488636553287506,
0.16584409773... | |
I have quite a basic WPF form with a DockPanel, there's a Menu bar, a Status bar, and a UserControl. Like so:
```
<DockPanel>
<Menu DockPanel.Dock="Top">
...
</Menu>
<StatusBar DockPanel.Dock="Bottom">
...
</StatusBar>
<UserControls:MyUserControl />
<DockPanel>
```
**My problem is:** Based on an ev... | [
0.012866366654634476,
0.04493491351604462,
0.5704123377799988,
-0.2787599265575409,
0.032919079065322876,
0.08760619908571243,
-0.08418827503919601,
-0.2763379216194153,
-0.41673025488853455,
-1.0081477165222168,
0.12746340036392212,
0.48463454842567444,
-0.2921028733253479,
-0.08989765495... | |
animation (ideally something like one disappearing to the left and the other appearing from the right). The UserControls should grow automatically to use up all the available space.
Any ideas?
**Edit:** Here's what I'm trying to do in a general sense. Maybe someone can suggest a better way.
I have a ListView/GridVie... | [
0.15335696935653687,
-0.0938538908958435,
0.5512694120407104,
0.0327652171254158,
-0.012227500788867474,
0.15571685135364532,
-0.2744413912296295,
0.1260339766740799,
-0.6410161852836609,
-0.9135403633117676,
-0.16725829243659973,
0.012922395952045918,
-0.4028395414352417,
0.15786543488502... | |
too. Untested. | [
0.2913445830345154,
-0.04641618952155113,
0.10603879392147064,
0.3838281035423279,
0.33456239104270935,
-0.3337821364402771,
0.4456232190132141,
-0.5575875639915466,
0.29801633954048157,
-0.23963844776153564,
0.26084017753601074,
0.24774913489818573,
-0.4684963524341583,
0.2286631315946579... | |
I want to send WM\_HOTKEY to be captured by other application using a global desktop HotShortCut.
The expected Keys are CTRL + F10
This is the only way I found to trigger the capture of WM\_HOTKEY:
```
procedure TfmMain.ButtonTalkClick(Sender: TObject);
var
Article: TArticleBase;
Msg: TMessage;
begin
Article:=... | [
0.02961430698633194,
-0.3257950246334076,
0.8057379722595215,
-0.05925837531685829,
0.23938675224781036,
0.06580353528261185,
0.3504493832588196,
-0.2827649712562561,
-0.24784374237060547,
-0.6749854683876038,
-0.3623010516166687,
0.5955578684806824,
-0.5842368602752686,
-0.064731001853942... | |
before the message WM\_HOTKEY is captured by the Method:
```
procedure ManageHotKeyMsg(var Msg: TMessage); message WM_HOTKEY;
```
The "Windows Execute Dialog" is executed (shortcut "Windows Key" + R)
How is the right way to pass Msg.LParamLo and Msg.LParamHi, to make sure Im sending WM\_HOTKEY + "CTRL + F10".
Done ... | [
0.06983447819948196,
-0.0423627607524395,
0.809152364730835,
-0.19831110537052155,
0.19828979671001434,
0.005664673168212175,
0.4443240761756897,
-0.32069092988967896,
0.04995162785053253,
-0.7352764010429382,
-0.6465977430343628,
0.7635133266448975,
-0.2067035734653473,
-0.023770978674292... | |
I am a new php and mysql programmer. I am handling quite large amount of data, and in future it will grow slowly, thus I am using hash table. I have couple of questions:
1. Does mysql have hash table built in function? If yes, how to use that?
2. After couple of days doing research about hash table. I briefly know wha... | [
0.2898492217063904,
0.15570564568042755,
0.02933059073984623,
0.22944438457489014,
-0.09866984188556671,
-0.24123026430606842,
0.10875031352043152,
0.11970895528793335,
-0.061912938952445984,
-0.7360091209411621,
0.33022549748420715,
0.24956008791923523,
-0.07781375199556351,
0.11357561498... | |
it mean, they store the hash table value in the temporary table instead of insert into mysql database?
For questions 3,4 & 5, example scenario:
User can collect items in the website. I would like to use hash table to insert and retrieve the items that the user collected.
3. [Important] What are the possible mysql dat... | [
-0.06601718068122864,
0.08151828497648239,
0.45335912704467773,
0.255317360162735,
-0.17916078865528107,
-0.023677747696638107,
-0.011678965762257576,
-0.04038483276963234,
-0.23283611238002777,
-0.6331088542938232,
-0.06460674107074738,
0.4028509259223938,
-0.07521792501211166,
0.12902557... | |
any sample code would be great :))
5. [Important] How to insert and retrieve data from hash table? I am talking about php and mysql, so I hope the answers can be like: "you can use mysql query i.e SELECT \* from blabla..."
(sorry about the italics, underscores can trigger them but I can't find a good way to disable tha... | [
0.2183818817138672,
-0.006977152545005083,
0.043954212218523026,
0.3556780219078064,
-0.04467877000570297,
-0.09728903323411942,
0.11685576289892197,
-0.044074468314647675,
-0.06223670393228531,
-0.48444005846977234,
0.07662487030029297,
0.37585583329200745,
0.0321502760052681,
-0.12868814... | |
on them a hashtable is a good data structure to use since it can find things much faster than a simple list.
But at the database level, you don't need to worry about the hashtable. Figuring out how to best hold and access records is MySQL's job, so as long as you give it the correct information it will be happy.
Data... | [
-0.31169864535331726,
0.26758676767349243,
0.46943947672843933,
0.35296395421028137,
-0.11844360828399658,
-0.058881938457489014,
-0.3166588246822357,
0.02002636529505253,
-0.5056790113449097,
-0.8496130108833313,
-0.1040886640548706,
0.19756139814853668,
-0.27828773856163025,
0.3754019141... | |
the items table. Each user gets one (and only one) entry in the users table. When a user selects an item, it goes in the user items table. Example:
```
Users:
1 | Bob
2 | Alice
3 | Robert
Items
1 | Headphones
2 | Computer
3 | Beanie Baby
```
So if Bob has selected the headphones and Robert has selected the comput... | [
0.09183164685964584,
0.2477167397737503,
0.5747342109680176,
-0.05847414582967758,
0.15180543065071106,
0.5645067095756531,
0.012713792733848095,
-0.5678250789642334,
-0.6706812977790833,
-0.3990248143672943,
-0.31761130690574646,
0.33543410897254944,
-0.4485926628112793,
0.153400242328643... | |
(This shows Robert (user 3) selected a beanie baby (item 3))
```
Since the user\_id and item\_id on the users and items tables are primary keys, MySQL will let you access them very fast, just like a hashmap. On the user\_items table having both the user\_id and item\_id in the primary key means you won't have duplica... | [
-0.10414927452802658,
0.12443885952234268,
0.43664103746414185,
0.0034664906561374664,
-0.0039978246204555035,
0.17940260469913483,
0.02752537839114666,
-0.42391911149024963,
-0.3953026235103607,
-0.44048798084259033,
-0.07226163893938065,
0.2824462354183197,
-0.4075546860694885,
0.1831806... | |
AND user_items.item_id = 2
```
How many things has Robert selected?
```
SELECT COUNT(user_items.item_id) FROM user_items, users
WHERE users.user_id = user_items.user_id AND users.user_name = 'Robert'
```
I want a list of each user and what they've selected, ordered by the user name
```
SELECT user.user_name, item... | [
0.02282719500362873,
0.42707550525665283,
-0.0068431938998401165,
-0.13361315429210663,
-0.10828761756420135,
0.23100696504116058,
-0.11146827787160873,
-0.6324136257171631,
-0.4879429042339325,
-0.34888955950737,
-0.13445577025413513,
0.32809314131736755,
-0.17152974009513855,
0.230258703... | |
How would I set up a WCF service hosted in IIS on the root of the domain? i.e. <http://www.example.com> instead of <http://www.example.com/Service1.svc/>
I can't figure out how to get rid of the service filename.
Add Service1.svc to the default document names in IIS and move it to the top of the list. | [
0.3138115108013153,
0.07960785180330276,
0.3248724341392517,
-0.14009693264961243,
-0.2793289124965668,
-0.25224143266677856,
0.23580561578273773,
-0.11055795848369598,
-0.3321855068206787,
-0.861061692237854,
0.11892259120941162,
0.18377172946929932,
-0.3252086937427521,
0.644807040691375... | |
I have got a collection. The coll has strings:
```
Location="Theater=2, Name=regal, Area=Area1"
```
and so on. I have to extract just the Name bit from the string. For example, here I have to extract the text 'regal'
I am struggling with the query:
Collection.Location.???? (what to add here)
Which is the most sho... | [
0.256637841463089,
-0.12851081788539886,
0.5895971655845642,
-0.07626105099916458,
0.35585078597068787,
-0.20352892577648163,
0.013796404004096985,
-0.3493303954601288,
-0.19706979393959045,
-0.23627474904060364,
-0.21697783470153809,
0.27422624826431274,
0.16133077442646027,
0.46290028095... | |
where pair[0].Trim() == "Name"
select pair[1].Trim()).FirstOrDefault();
```
---
re group by (edit):
```
var records = new[] {
new {Foo = 123, Location="Theater=2, Name=regal, Area=Area1"},
new {Foo = 123, Location="Name=cineplex, Area=Area1, Theater=1"},
new {Foo = 123, Locat... | [
0.5092849135398865,
0.10604505240917206,
0.46224790811538696,
-0.052151598036289215,
0.4837871193885803,
-0.038151051849126816,
-0.09102308005094528,
-0.6743564009666443,
-0.4209706485271454,
-0.376891165971756,
-0.2976871430873871,
0.6011196970939636,
-0.2040824145078659,
0.60588574409484... | |
let name = (from part in record.Location.Split(',')
let pair = part.Split('=')
where pair[0].Trim() == "Name"
select pair[1].Trim()).FirstOrDefault() | [
-0.1678197830915451,
-0.49443328380584717,
-0.3697766363620758,
-0.27601975202560425,
0.1381104439496994,
0.1904890537261963,
0.19079464673995972,
-0.7715750336647034,
0.022620072588324547,
-0.42979782819747925,
-0.24774610996246338,
0.4374091625213623,
-0.1045895367860794,
-0.099636070430... | |
group record by name;
foreach (var grp in qry)
{
Console.WriteLine("{0}: {1}", grp.Key, grp.Count());
}
``` | [
-0.13059309124946594,
0.2594824433326721,
0.06177838519215584,
-0.18968214094638824,
0.26891180872917175,
-0.12146259844303131,
0.1914425790309906,
-0.3589904308319092,
-0.11126790195703506,
-0.20220094919204712,
-0.2545676827430725,
0.2122204303741455,
-0.3119722604751587,
0.4707029759883... | |
I want to write a SQL 2005 script to create a new login that uses Windows authentication. The Windows user is a local account (not a domain one). A local account with the same name exists on many SQL Server machines and I want to run the same script on all of them.
It seemed simple enough:
```
CREATE LOGIN [MyUser]
F... | [
0.2707534730434418,
0.2501627504825592,
0.22037926316261292,
-0.11470398306846619,
-0.04477228224277496,
-0.3580038845539093,
0.38705796003341675,
-0.0981738269329071,
-0.34897974133491516,
-0.3428019881248474,
0.13799500465393066,
0.3784390389919281,
-0.07145965099334717,
0.10437243431806... | |
posted. I'll post mine as well, because @@SERVERNAME doesn't work correctly if you use named SQL instances, as we do.
```
DECLARE @loginName SYSNAME
SET @loginName = CAST(SERVERPROPERTY('MachineName') AS SYSNAME) + '\MyUser'
IF NOT EXISTS (SELECT * FROM sys.server_principals WHERE [name] = @loginName)
BEGIN
DECLA... | [
0.2503298223018646,
0.14941827952861786,
0.212265282869339,
0.11199744045734406,
-0.12915076315402985,
-0.03268495202064514,
0.3367321491241455,
0.0670093521475792,
-0.19738082587718964,
-0.767788827419281,
0.17185965180397034,
0.3847372233867645,
-0.22708216309547424,
0.32944172620773315,... | |
What are the pros and cons of using a WYSIWYG editor for web page development vs hand coding?
With the exception of just not knowing how to create something by hand coding is there any reasons to use WYSIWYG?
I handcode, but I prefer to work with a wysiwyg editor in tow, and for that reason I'm still using Dreamweaver... | [
0.47986361384391785,
0.06371184438467026,
-0.059181082993745804,
0.09334386885166168,
-0.091040700674057,
-0.001856706221587956,
0.06040468439459801,
0.17439231276512146,
-0.10475832968950272,
-0.873306393623352,
0.025964155793190002,
0.45237410068511963,
0.08875620365142822,
-0.0300979558... | |
it invaluable. I *never* use any of Dreamweavers wizards or generated code and I clean up the html manually too.
I see nothing wrong with this approach, it strikes me as the HTML design equivalent of an IDE prompting to complete functions etc. (intellisense or whatever your IDE may call it)
I also always use a templa... | [
0.11705724149942398,
-0.22067523002624512,
0.2887446880340576,
0.18078836798667908,
-0.3855521082878113,
-0.16299647092819214,
0.22648455202579498,
0.18597891926765442,
-0.08963482081890106,
-0.8585025668144226,
-0.007991990074515343,
0.6200696229934692,
0.05549366772174835,
-0.05539075657... | |
despite looking at better tools - Aptana, NetBeans etc. Indeed I would dearly like to move to another system - [see this question](https://stackoverflow.com/questions/377741/need-a-wysiwyg-php-javascript-ide-replacement-for-dreamweaver) - preferably something that runs on Ubuntu and strips out the crud in Dreamweaver l... | [
0.1763249933719635,
-0.0586436502635479,
0.16768944263458252,
0.3384973406791687,
-0.008100764825940132,
-0.30521565675735474,
0.1113424226641655,
0.3449473977088928,
-0.060087885707616806,
-0.9062916040420532,
-0.049885328859090805,
0.3484817445278168,
0.02925420179963112,
0.2956309318542... | |
What do you think are the difference in mindset between a programmer doing work for a desktop environment (windows, linux, whatever...) and someone doing work on an embedded system?
A simple example I can think of is that in an embedded environment, I **always** check that a malloc is not NULL. Most code I have seen t... | [
0.3412337601184845,
0.14329969882965088,
-0.37022656202316284,
0.153074711561203,
-0.14043529331684113,
0.1749206781387329,
0.0473184771835804,
0.28987443447113037,
-0.4337734580039978,
-0.7508898973464966,
-0.10808783769607544,
0.5571136474609375,
-0.12962791323661804,
-0.1419600397348404... | |
memory pools or something similar)... and also, whenever possible, all memory allocation is done up-front during initialization. This is surprisingly easier than most people would believe.
malloc() is vulnerable to fragmentation, is non-deterministic, and doesn't discrminate between memory types. With memory pools, yo... | [
0.00634428346529603,
0.052227217704057693,
-0.13767528533935547,
0.47282537817955017,
0.19181105494499207,
0.13649845123291016,
-0.08941047638654709,
0.06487352401018143,
-0.2538667321205139,
-0.7810894250869751,
-0.1308378428220749,
0.6594850420951843,
0.06685030460357666,
-0.198794379830... | |
apects & features (e.g., exceptions in C++) that can cause things to go sideways quickly
* Awareness of CPU loading and memory utilization
* Awareness of interrupts, pre-emption, and the implications on shared data (where absolutely necessary -- the less shared data, the better)
* Most embedded systems are data/event d... | [
-0.23807445168495178,
0.16149157285690308,
-0.03131543844938278,
0.34135887026786804,
-0.025146767497062683,
0.2609843909740448,
0.024423634633421898,
0.10973397642374039,
-0.39810070395469666,
-0.8192731142044067,
-0.31131207942962646,
0.4831709861755371,
-0.10722186416387558,
-0.34903252... | |
I'm sorry for a redundant question. However, I've found many solutions to my problem but none of them are very well explained. I'm hoping that it will be made clear, here.
My C# application's main thread spawns 1..n background workers using the ThreadPool. I wish for the original thread to lock until all of the worker... | [
0.4397684931755066,
0.19191443920135498,
0.5049350261688232,
-0.19418278336524963,
0.2979612946510315,
0.2368982881307602,
0.0777311772108078,
0.0027197424788028,
-0.4699940085411072,
-0.41636043787002563,
-0.13941729068756104,
0.4295957088470459,
-0.40408042073249817,
0.3450775444507599,
... | |
be queued before hand.
Try this. The function takes in a list of Action delegates. It will add a ThreadPool worker entry for each item in the list. It will wait for every action to complete before returning.
```
public static void SpawnAndWait(IEnumerable<Action> actions)
{
var list = actions.ToList();
var han... | [
0.1438818722963333,
-0.4616978168487549,
0.7652543783187866,
-0.32514819502830505,
0.06660261750221252,
0.34943830966949463,
0.29578402638435364,
-0.44406604766845703,
-0.5081877708435059,
-0.4262039065361023,
-0.12316229939460754,
0.6714158654212952,
-0.34108954668045044,
0.23854482173919... | |
var currentHandle = handles[i];
Action wrappedAction = () => { try { currentAction(); } finally { currentHandle.Set(); } };
ThreadPool.QueueUserWorkItem(x => wrappedAction());
}
WaitHandle.WaitAll(handles);
}
``` | [
-0.16499371826648712,
-0.6037794947624207,
0.8831579685211182,
-0.34094223380088806,
0.11628320813179016,
0.35473331809043884,
0.27597999572753906,
-0.25097987055778503,
-0.5155627131462097,
-0.4048282206058502,
-0.16041037440299988,
0.2633516490459442,
-0.28854653239250183,
0.370397478342... | |
I hope that someone can help me with this problem that I've been having with XmlSerializer.
I've already looked through this thread: <http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/thread/551cee76-fd80-48f8-ac6b-5c22c234fecf/>
The error I am getting is:
System.InvalidOperationException: Unable to generate... | [
-0.1180439442396164,
0.21617867052555084,
0.35616421699523926,
0.167582169175148,
0.16996604204177856,
-0.005344466771930456,
0.3434586524963379,
0.021481741219758987,
-0.35265079140663147,
-0.7862375378608704,
-0.08327216655015945,
0.15392790734767914,
-0.07089044898748398,
0.503791868686... | |
class WantToSerialize : WantToSerializeBaseClass, IXmlSerializable (I've tried putting this on the baseclass and the current class)
{
// methods and classes
// I've included XmlIncludes for all the classes that this class has a reference too
// even though in the WriteXml it just uses .NET base classes
}
```
... | [
-0.2755003571510315,
-0.09078723937273026,
0.9333759546279907,
-0.0873517245054245,
0.2319279909133911,
-0.09266935288906097,
0.3022172152996063,
-0.1771252453327179,
-0.006627299822866917,
-0.8553200960159302,
-0.3997074365615845,
0.5032444596290588,
-0.36017680168151855,
0.08401495963335... | |
thoughts would be most helpful.
**UPDATED**
I've tracked the problem down to a method in the WantToSerializeBaseClass
```
public abstract void ConvertFromEntity<TtoCopy>(TtoCopy toCopy) where TtoCopy : MyEntityObjectSubClass;
```
Where MyEntityObjectSubClass is a subclass of EntityObject, that adds a few methods th... | [
-0.034714918583631516,
0.03984000161290169,
0.4698939919471741,
0.07195615023374557,
-0.1488591879606247,
0.14049087464809418,
-0.007073951885104179,
0.00522066792473197,
-0.24316422641277313,
-0.7158584594726562,
0.06861642003059387,
0.36936154961586,
-0.24865365028381348,
-0.105467110872... | |
site per project
A scrum site should contain:
* Document library for the electronic files (add columns for categorization as appropriate)
* List of team members
* Discussion board
The site can be built from a Wiki site template if its necessary.
Once you get the scrum site "feeling right" save it as a template so i... | [
0.604472815990448,
-0.12713027000427246,
0.1912413239479065,
0.17176374793052673,
-0.07736395299434662,
-0.5277350544929504,
0.1988694965839386,
-0.2568790912628174,
-0.30218207836151123,
-0.584377110004425,
-0.07391288876533508,
0.10498824715614319,
0.017926132306456566,
-0.21124120056629... | |
some other pretty radical changes.
my $0.02
jt | [
0.14951397478580475,
0.062292616814374924,
0.07677381485700607,
0.08686964958906174,
0.008295283652842045,
0.1907084435224533,
0.1379443258047104,
0.0844162181019783,
-0.051097773015499115,
-0.367075115442276,
0.47429630160331726,
0.48082998394966125,
0.2519015371799469,
-0.129928216338157... | |
I'm using CodeIgniter, and will likely use their template library as I want to keep things extremely simple to use. The content for the template variables will come from the database, but I want the business admins to know what content areas are available. Basically the names of the parameters when they choose a specif... | [
0.6170617341995239,
0.1778443157672882,
0.18060287833213806,
0.05715995281934738,
-0.17017102241516113,
-0.16101780533790588,
0.10137321054935455,
-0.06615205109119415,
-0.11055734008550644,
-0.6017101407051086,
0.02857866883277893,
0.43601205945014954,
-0.15902915596961975,
0.022868890315... | |
file to find the areas, but I like the Wordpress approach because you don't have an extra XML file associated with every template. Are there other approaches that I'm missing?
I think the nicest way would be to add a small hack to the template parser class. The code looks quite readable and clean in system/libraries/Pa... | [
0.7884715795516968,
-0.11281530559062958,
0.2634273171424866,
0.01304452121257782,
0.10621724277734756,
-0.3423284590244293,
0.17346534132957458,
-0.19070616364479065,
-0.03887776657938957,
-0.6243281364440918,
-0.049080148339271545,
0.6561065912246704,
-0.4336141049861908,
0.1145137771964... | |
$this->varCallback = $callbackFunction;
}
...
function _parse_single(...) {
$callback = $this->varCallback;
$callback($key);
}
...
//Somewhere in your code
function storeVarName($variableName) {
// Persist the variable name wherever you want here
}
$this->parser->setVarCallback('sto... | [
-0.083927221596241,
-0.0025606981944292784,
0.5206667184829712,
-0.41881293058395386,
0.36172372102737427,
-0.04790052771568298,
0.43551620841026306,
-0.23388156294822693,
-0.00779623631387949,
-0.23064272105693817,
-0.5261337161064148,
0.7213813066482544,
-0.511859118938446,
0.35697886347... | |
I have a table in my database in which records conceptually can be children of other rcords. The table has a non-null name field. I need to ensure that each name in a set of children is unique, but not across the entire database. I'd like to enforce this using a constraint inside the Database. What's the best way to ac... | [
0.14978444576263428,
0.39447322487831116,
-0.015855884179472923,
0.5886037349700928,
0.17348790168762207,
0.23387564718723297,
-0.21945792436599731,
-0.3258964717388153,
-0.4350328743457794,
-0.5151117444038391,
0.33016666769981384,
0.28073278069496155,
-0.015868989750742912,
0.73107129335... | |
correctly, but my suggestion is to create another column that references the parent record of the child. You could then create a A multiple-column index based on those two columns to speed up any queries that reference these columns together in a where clause... Thus your uniqueness would come from {parent\_name, child... | [
0.06928941607475281,
0.4332752823829651,
0.10365594178438187,
0.23088736832141876,
0.24600602686405182,
0.31455543637275696,
-0.018246477469801903,
-0.31430110335350037,
-0.3095845878124237,
-0.4481664001941681,
0.12631063163280487,
0.07770662754774094,
-0.07743903249502182,
0.732064425945... | |
I am using Eclipse 3.2. For an RCP application, I am trying to extend from org.eclipse.ui.menus. When I right-click and pick new option, "menu Contribution" isn't appearing. I only see options 'item', 'menu', 'group', 'widget' under 'New'. There is no option named "menu Contribution". Am I missing anything in target pl... | [
-0.027893923223018646,
0.17049925029277802,
0.25266143679618835,
-0.20136898756027222,
-0.29079312086105347,
0.07108842581510544,
0.10730919986963272,
-0.19591203331947327,
-0.3182975947856903,
-0.46940356492996216,
-0.06061949208378792,
0.5658411979675293,
-0.22770360112190247,
0.09272529... | |
As part of a client support tool, I'm wanting to provide some functionality to be able to request to view/remote control a desktop session. There are a bunch of ways to get a screen capture and then stream it, but I'm wanting to find out in particular, why the RDP (Remote Desktop / Terminal Services vs. VNC experience ... | [
0.4152853488922119,
-0.10541465878486633,
0.19865192472934723,
0.23362115025520325,
-0.2193175107240677,
-0.17343522608280182,
-0.12969863414764404,
0.030311724171042442,
-0.4652582108974457,
-0.7916693091392517,
0.16452337801456451,
0.5163511633872986,
-0.2055867463350296,
0.2213644534349... | |
the full picture (which can be quite slow) but seems to transfer normal painted shapes/fills, or font drawing to the client extremely quickly. VNC seems to take giant snapshots of the screen, compare a previous image and stream the changes to the client.
I feel that RDP is a much more high-quality and smooth protocol ... | [
0.5435819029808044,
-0.2810414433479309,
0.6267401576042175,
0.21852992475032806,
-0.16392476856708527,
-0.14540734887123108,
0.02613711915910244,
0.032021623104810715,
-0.37338778376579285,
-0.6028094291687012,
-0.06037645414471626,
0.6310107707977295,
-0.06666267663240433,
0.002887323498... | |
they are both pretty different in the way they stream change.
The RDP protocol from MS is and extension of a [ITU standard (T.128)](http://www.itu.int/rec/T-REC-T.128-200806-P/en) that can be purchased online.
RDP implements lots of bandwidth-saving techniques that complement each-other and make it very efficient over... | [
0.3052505850791931,
0.11205311864614487,
0.30216577649116516,
0.015252524986863136,
-0.4722687005996704,
0.12589728832244873,
-0.17285095155239105,
-0.2558591365814209,
-0.3666646182537079,
-0.638698399066925,
-0.17336587607860565,
0.36998388171195984,
-0.33143365383148193,
0.1516192555427... | |
screen. That makes it easy to use on any machine because it just monitors changes to the screen bitmap.
RDP on the other hand hooks deeper into the Windows API and is able to optimize its stream based on the minimum amount of information necessary to generate the same update on the client.
If you want to integrate ... | [
0.5586615800857544,
-0.13028591871261597,
0.41116708517074585,
-0.05869409441947937,
-0.30006837844848633,
-0.22757366299629211,
0.14343227446079254,
-0.11605062335729599,
-0.3893846869468689,
-1.0206023454666138,
0.14971351623535156,
0.690279483795166,
-0.3559345304965973,
-0.016545185819... | |
to get deeper into this there is source code available for the linux [rdesktop](http://www.rdesktop.org/) client that does connect to Windows machines across RDP.
* for VNC there are a number of open source implementations.
FogCreek's Copilot actually uses one and you can get its [source](https://www.copilot.com/tec... | [
0.4127309024333954,
0.07636698335409164,
0.35870322585105896,
0.3356989920139313,
0.18185564875602722,
0.16631846129894257,
-0.25633421540260315,
0.21396033465862274,
-0.4479817748069763,
-0.2891562283039093,
0.029896780848503113,
0.6073412895202637,
-0.4373301863670349,
0.1155430525541305... | |
I would like to implement a URL rewrriter for DotNetNuke. Have questions as to whether this is a good or possible approach and any suggestions other developers may have.
Can I add a dynamic or static route for URL rewriter from the 'Pages'-> 'Add Page' section?
Let's say I'm creating a page called 'Events' underneath... | [
0.493355929851532,
-0.31895291805267334,
0.47405582666397095,
0.21085117757320404,
-0.048962678760290146,
-0.248625710606575,
-0.03136660158634186,
0.1253773719072342,
-0.527584433555603,
-0.6845280528068542,
0.2173021286725998,
0.5878499150276184,
-0.40914690494537354,
-0.1315532177686691... | |
'site.com/Activities/Event-Calendar'?
I would like any feedback or suggestions on how I would accomplish this! Thank you.
If you're using DotNetNuke 4.8 or greater, you just need to enable Human Friendly Urls through the Web.Config.
To enable human friendly urls, replace:
```
<add name="DNNFriendlyUrl" type="DotNetN... | [
0.15556879341602325,
0.1510445922613144,
0.9491643309593201,
-0.061125874519348145,
-0.22820217907428741,
-0.3199838697910309,
0.42229628562927246,
-0.032428860664367676,
-0.10995316505432129,
-0.7825335264205933,
-0.37079453468322754,
0.8074116706848145,
-0.12107512354850769,
-0.099294759... | |
I'm wondering if there's an idiomatic one-liner or a standard-distribution package/function that I can use to compare two Perl hashes with only builtin, non-blessed types. The hashes are not identical (they don't have equivalent memory addresses).
I'd like to know the answer for both for shallow hashes and hashes with... | [
0.42785632610321045,
-0.21768970787525177,
-0.25698548555374146,
0.3804160952568054,
0.23273438215255737,
-0.22177819907665253,
0.21037673950195312,
-0.013998988084495068,
-0.27563953399658203,
-0.30945175886154175,
0.16683129966259003,
0.45390209555625916,
-0.0916920080780983,
0.252098828... | |
I have a home network which I access remotely quite a bit. But I'm worried about security. While I do have strong passwords, I'm worried that someone will acquire my password and use it to gain access.
I heard about "one time passwords" and even got to use them at my university. We'd just press a button on a device (o... | [
0.6392111778259277,
0.27245527505874634,
0.15206395089626312,
0.1392025649547577,
0.12986692786216736,
-0.05292752385139465,
0.3097555637359619,
0.11907581984996796,
-0.4295618236064911,
-0.6787848472595215,
0.11040466278791428,
0.27057409286499023,
0.20450885593891144,
0.03802799060940742... | |
anyone played around with an SDK of one of these systems?
* Where can I get a starter kit from?
**EDIT**: I'm running a mixed Linux and Windows network, and I'm vaguely hoping to use this for authenticating on both operating systems. (No, there's no domain controller, but I can set one up using Samba, I suppose.)
On L... | [
0.6238035559654236,
-0.31372418999671936,
-0.04214255511760712,
0.28606095910072327,
-0.05791158229112625,
-0.25048941373825073,
0.14642487466335297,
0.39422717690467834,
-0.563228189945221,
-0.2926182150840759,
0.2528729736804962,
0.6351534724235535,
-0.19585566222667694,
-0.0583373531699... | |
the Linux box to auth from that or (easier) get it working on Linux then link it to Samba so Windows can auth off it.
Google is your friend. | [
-0.025579137727618217,
-0.098343625664711,
0.27216148376464844,
0.3159404993057251,
-0.25219544768333435,
-0.13911189138889313,
0.11175373196601868,
0.5834182500839233,
-0.09733768552541733,
-0.8380321264266968,
0.13933305442333221,
0.6939808130264282,
-0.34833961725234985,
-0.074518628418... | |
I want to get an NSData object's contents from a URL. What is the more efficient way of doing this in terms of memory usage dataWithContentsOfURL (or initWithContentsOfURL) or using NSURLConnection?
Should I use
```
NSData *data = [[NSData alloc] initWithContentsOfURL:myURL]
```
or
```
NSData *data = [NSURLConnect... | [
0.00443011149764061,
0.12509526312351227,
0.42191216349601746,
0.125626340508461,
0.08727694302797318,
0.026671791449189186,
0.3505421578884125,
0.019027600064873695,
-0.14140070974826813,
-0.6532250642776489,
-0.04822608456015587,
0.4197620749473572,
-0.05716465413570404,
0.11053343862295... | |
a fairly agressive optimisation that you should leave until you have working code. | [
-0.017668861895799637,
-0.10268694907426834,
0.12396340817213058,
-0.048790208995342255,
0.06070687249302864,
-0.27780139446258545,
0.38164255023002625,
0.14892351627349854,
0.025523949414491653,
-0.35159066319465637,
-0.17672063410282135,
0.23810745775699615,
-0.22517791390419006,
-0.0677... | |
I want to ask if it is possible to pass arguments to a script function by reference:
i.e. to do something that would look like this in C++:
```cpp
void boo(int &myint) { myint = 5; }
int main() {
int t = 4;
printf("%d\n", t); // t->4
boo(t);
printf("%d\n", t); // t->5
}
```
So then in BASH I want t... | [
0.023206457495689392,
0.15647870302200317,
0.3423655033111572,
-0.40906035900115967,
-0.12045261263847351,
-0.04515663906931877,
0.2087884545326233,
-0.24417667090892792,
-0.3011651635169983,
-0.44626927375793457,
-0.13341286778450012,
0.8500955104827881,
-0.39450234174728394,
0.0950009822... | |
# this function makes me lose encapsulation
local var2=$1 # so i should use a local variable ... but how to pass it back?
var2='new' # only changes the local copy
#$1='new' this is wrong of course ...
# ${!1}='new' # can i somehow use indirect reference?
}
# call boo
SOME_VAR='old'... | [
0.2404746115207672,
0.17876072227954865,
0.23357750475406647,
-0.2958676218986511,
-0.0886092260479927,
0.004761600401252508,
0.719344973564148,
-0.27152305841445923,
-0.12658852338790894,
-0.044998377561569214,
0.2829332947731018,
0.6582480669021606,
-0.28344395756721497,
0.25225481390953... | |
new
```
Any thoughts would be appreciated.
It's 2018, and this question deserves an update. At least in Bash, as of Bash 4.3-alpha, you can use *namerefs* to pass function arguments by reference:
```
function boo()
{
local -n ref=$1
ref='new'
}
SOME_VAR='old'
echo $SOME_VAR # -> old
boo SOME_VAR
echo $SOM... | [
0.013830882497131824,
0.21321143209934235,
0.4191988408565521,
-0.45517435669898987,
-0.16430476307868958,
-0.2274671345949173,
0.45558539032936096,
-0.34503650665283203,
-0.3748789429664612,
-0.4916973114013672,
-0.1682511419057846,
0.5700622797012329,
-0.17706094682216644,
0.319373637437... | |
*whose name* `$1` holds, i.e. `SOME_VAR` in our case. The value on the right-hand side should just be a string naming an existing variable: it doesn't matter how you get the string, so things like `local -n ref="my_var"` or `local -n ref=$(get_var_name)` would work too. `declare` can also replace `local` in contexts th... | [
0.29956942796707153,
-0.04736372083425522,
0.05304783955216408,
-0.3385041058063507,
-0.07826177030801773,
-0.14729976654052734,
0.22731374204158783,
-0.13900528848171234,
-0.055815063416957855,
-0.13183997571468353,
-0.3408764600753784,
0.9838404059410095,
-0.06038916856050491,
-0.0120366... | |
I have a SELECT statement that works, and runs fast enough on my tables (<0.01sec on 50k+ products, 3k+ categories). But in my mind it's not very elegant and would like to hear any suggestions on making it better.
There are 3 tables of interest:
* products - key productID
* categories - key categoryID
* products\_tre... | [
0.07012555748224258,
0.20901575684547424,
0.23892460763454437,
-0.02755744382739067,
-0.2977391183376312,
0.26305457949638367,
-0.08101324737071991,
-0.191001757979393,
-0.04400146007537842,
-0.6109258532524109,
-0.29418617486953735,
0.114804208278656,
-0.2572767734527588,
0.49642243981361... | |
like this:
```
SELECT DISTINCT productID
FROM products_tree
WHERE
categoryID IN (1040,1050,1168)
AND productID NOT IN
( SELECT DISTINCT productID
FROM products_tree
WHERE
categoryID NOT IN (1040,1050,1168)
);
```
I can think of a few methods, each of which perform differently depe... | [
-0.18808168172836304,
-0.14991626143455505,
-0.09972762316465378,
0.08081787824630737,
0.26122817397117615,
0.3087150752544403,
-0.09193796664476395,
-0.34205055236816406,
-0.06285522133111954,
-0.8372504115104675,
-0.14326414465904236,
0.16492199897766113,
-0.4740600883960724,
-0.05467382... | |
see what is happening...
Note1: I use GROUP BY rather than DISTINCT, this is because it allows the omptimiser to make use of indexes. I've seen implementations work out that they can turn the DISTINCT in to a GROUP BY, but it's highly worth using GROUP BY in the fist place to be sure. It also gets you thinking about i... | [
-0.04154688119888306,
0.049722496420145035,
-0.0662088617682457,
0.09450889378786087,
-0.36644038558006287,
-0.17602206766605377,
0.28448715806007385,
-0.017391124740242958,
-0.1481599062681198,
-0.5987136960029602,
-0.09427567571401596,
0.30812957882881165,
-0.03630504757165909,
-0.096947... | |
comparing the execution of those stored procedures. This ensures your compare actually Query Time and not different Compile Times.
```
SELECT
[tree].productID
FROM
products_tree AS [tree]
WHERE
[tree].productID IN (1040,1050,1168)
AND NOT EXISTS (SELECT * FROM products_tree WHERE productID = [tree].product... | [
-0.3368540406227112,
-0.04026956111192703,
0.2878265380859375,
-0.1460745930671692,
0.010486538521945477,
0.38831761479377747,
0.011883988976478577,
-0.4081132709980011,
0.02620195597410202,
-0.7252172827720642,
-0.2068757712841034,
0.1307796984910965,
-0.5391626358032227,
-0.0031199480872... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.