text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
description ------------------------------------- 1 2 Hammer 2 1 Hammer 3 3 Hammer 4 1 Saw 5 3 Saw ``` Then, when you calculate inventory,
[ 0.33387550711631775, 0.5220534801483154, 0.11673472821712494, -0.24468104541301727, 0.13587214052677155, 0.16864228248596191, 0.3959733247756958, -0.5653913617134094, -0.30425846576690674, -0.41626298427581787, 0.28420716524124146, 0.40931618213653564, 0.11185523122549057, 0.04022483527660...
only show records where a tool has a status of "1" for Available. You could also run queries for management to show how many tools are "Broken". Plan for eventually deleting these records once the broken tools are accounted for properly, or, keep them for historical data purposes. At all costs, avoid creating separate...
[ 0.26364344358444214, -0.014850519597530365, 0.22533372044563293, 0.3971375823020935, 0.2131662368774414, -0.5311967730522156, 0.40165674686431885, 0.068189337849617, -0.40204399824142456, -0.7707906365394592, -0.21237210929393768, 0.3300313353538513, -0.2977273464202881, -0.049096379429101...
I have a solution with multiple projects. In each project I've added a .config file with settings that affect the local settings. When I tried to read the settings for the database connection, I got some values which I don't know where they come from. This is the .config file of DatabaseLayer Solution: ``` <configur...
[ -0.1174641102552414, 0.21432290971279144, 0.6590522527694702, -0.11651112884283066, 0.2402351200580597, 0.028000477701425552, 0.23917220532894135, -0.4037891924381256, -0.22563031315803528, -0.7838498950004578, -0.012142380699515343, 0.38842734694480896, -0.36524027585983276, 0.37795025110...
it returned ``` {data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true} base {System.Configuration.ConfigurationElement}: {data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true} ConnectionString: "da...
[ -0.27330470085144043, -0.3117017447948456, 0.6212062835693359, 0.03854809328913689, -0.05275352671742439, -0.10428168624639511, 0.4818848669528961, -0.41235053539276123, -0.37387385964393616, -0.5031374096870422, -0.07229992747306824, 0.5900649428367615, 0.2500627934932709, 0.2231026440858...
I added a property called test, with value of test. The Application Configuration file contains ``` <?xml version="1.0" encoding="utf-8" ?> <configuration> ``` ... ``` <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral...
[ 0.01604156196117401, 0.15428738296031952, 0.35584181547164917, 0.15356214344501495, 0.04378271847963333, 0.1664475053548813, 0.2221306562423706, -0.6035027503967285, 0.11014106124639511, -0.6840697526931763, 0.08206400275230408, 0.23313412070274353, -0.16863244771957397, 0.3579520881175995...
<value>test</value> </setting> </CatalogModel.Properties.Settings> </userSettings> ``` ... ``` </configuration> ``` The code generated to read the setting (make it available via My.Settings.test for VB.NET or as follows in C# ``` CatalogModel.Properties.Settings s = new CatalogModel.Properties.Setting...
[ 0.410125195980072, 0.07391302287578583, 0.35508450865745544, 0.08394725620746613, 0.30411091446876526, 0.05827751010656357, 0.42866912484169006, -0.3876878023147583, -0.0301124919205904, -0.87325119972229, -0.4457401633262634, 0.6138412952423096, -0.24180610477924347, 0.03668569400906563, ...
return ((string)(this["test"])); } } ```
[ 0.03116736002266407, 0.01974574290215969, -0.08161495625972748, -0.32798904180526733, 0.24517828226089478, -0.38247641921043396, 0.42316916584968567, -0.10703513026237488, 0.2915145754814148, -0.19065243005752563, -0.509732723236084, 0.83585524559021, -0.3772525489330292, 0.119076117873191...
I am using [SDL](http://www.libsdl.org/ "SDL") for an OpenGL application, running on Linux. My problem is that SDL is catching SIGINT and ignoring it. This is a pain because I am developing through a screen session, and I can't kill the running program with CTRL-C (the program the computer is running on is connected to...
[ 0.19088253378868103, 0.02305280975997448, 0.24743331968784332, -0.07896357029676437, -0.32878419756889343, -0.28118303418159485, 0.21991558372974396, 0.3389103412628174, -0.08738816529512405, -0.793965756893158, -0.1769075095653534, 0.3755728602409363, -0.449317991733551, 0.280579209327697...
an SDL\_QUIT event. You can watch for this event using SDL\_PollEvent or SDL\_WaitEvent, and exit (cleanly) when it is detected. Note that other actions can generate an SDL\_QUIT event (e.g. attempting to close your main window via the window manager).
[ 0.10077779740095139, -0.4900165796279907, 0.19105640053749084, -0.1428624987602234, 0.006920205429196358, -0.4013332724571228, 0.3833288550376892, 0.23054590821266174, -0.3448314070701599, -0.788698136806488, -0.5126141309738159, 0.4914240539073944, -0.5005290508270264, 0.1997126191854477,...
I'm a Silverlight newbie. Just downloaded version 3.0 after the Mix announcement. I'm running VS 2008 SP1. When I select a design element in the preview pane or in XAML, the properties window is disabled and displays > Property Editing Not Available I can open the solution in Blend and have no problems with it's pro...
[ 0.6171386241912842, 0.2036432921886444, 0.6500194072723389, -0.2990158796310425, -0.12184220552444458, -0.36349520087242126, 0.6262165904045105, -0.23882940411567688, 0.1658632904291153, -0.7389047145843506, -0.047663234174251556, 0.6724078059196472, -0.20151233673095703, 0.105213776230812...
be the case). There is nothing wrong with your installation or environment. The XAML designer/editor in VS2008 is very limited in what it offers for XAML editing whatever the version of Silverlight, being really just a rendering engine at the moment. Expression Blend is the visual editor of choice for now - there are ...
[ 0.08214575797319412, -0.3723052442073822, 0.6371611952781677, -0.022137057036161423, -0.35824957489967346, -0.27410587668418884, 0.257834792137146, -0.07822974026203156, -0.027308208867907524, -0.7980030179023743, 0.005178289022296667, 0.666209876537323, -0.4761958718299866, -0.20590797066...
[Qt Creator](http://en.wikipedia.org/wiki/Qt_Creator) looks like a good IDE. I've been using [Eclipse CDT](http://en.wikipedia.org/wiki/Eclipse_%28software%29) and while a little buggy, it does the job. Does Qt Creator have the same capabilities as Eclipse CDT? Qt Creator uses MinGW under the hood, so it only makes se...
[ 0.6620745062828064, -0.01877809315919876, 0.09863853454589844, 0.15834753215312958, -0.37577682733535767, -0.5056285262107849, 0.14843076467514038, 0.03097490221261978, 0.2925169765949249, -0.8207291960716248, 0.21427972614765167, 0.6635517477989197, -0.021299058571457863, 0.10220484435558...
hold it's own against competitors like Eclipse in C++. Although keep in mind Eclipse satisfies a myriad of developers, from Java to C++ to Python among many others. Typically an IDE specializing in one language will be more catered to that language, but Eclipse sure does one hell of a job catering to developers of mult...
[ 0.27476200461387634, -0.0769592896103859, -0.02525109238922596, 0.30141642689704895, -0.26155197620391846, -0.1843789964914322, -0.26600581407546997, 0.12291158735752106, -0.06127087026834488, -0.12384551018476486, 0.41386428475379944, 0.5222421288490295, 0.25427359342575073, -0.0705624222...
I'm building a basic little AJAX shoutbox/chat for my website, but I'm not sure exactly how to implement the server polling. Here's the basic program flow I'm thinking of: 1. User comes to page and is shown the last 10 messages 2. To get messages sent by others, the client javascript would request a URL with a timest...
[ -0.0658351331949234, -0.16218647360801697, 0.8293324112892151, 0.0008350731222890317, -0.42955753207206726, 0.019578885287046432, 0.1909022033214569, -0.15812188386917114, -0.08511878550052643, -0.8323383331298828, 0.12896500527858734, 0.18087974190711975, -0.2959778308868408, -0.085614904...
added, but when you're just reading others' messages it needs to automatically update. Should it be a set time limit? eg: every 10 seconds. Or, should it vary depending on usage? eg: Check after 5 seconds. If there's no messages, don't check for another 10 seconds. If there's still no new messages, check in 15 seconds...
[ 0.5048496723175049, -0.2807530462741852, 0.7758833169937134, 0.10246973484754562, 0.05389624089002609, 0.02449708804488182, 0.6660463809967041, 0.10496215522289276, -0.2853694260120392, -0.6569679975509644, 0.08452163636684418, 0.7124316692352295, -0.1308055818080902, -0.41276082396507263,...
concurrently online. ...or have I got the whole thing wrong? Is there a better way to implement a basic javascript chat? Comet, described by Brian is a nice technique, but requires session support on the server, which is probably more advanced than you care to implement for a simple chat box. The best way to implemen...
[ 0.3378657400608063, -0.07022139430046082, 0.2119939774274826, 0.45930713415145874, -0.11039718985557556, -0.11642743647098541, 0.18149486184120178, 0.2611660063266754, -0.6643570065498352, -0.26025447249412537, 0.48141834139823914, 0.273563951253891, -0.49059680104255676, -0.26434600353240...
messages for a while, you will start looking rarer and rarer until you only check it occasionally. Assuming you don't need to do real-time typing, you can probably poll every 3 seconds or so when at peak activity, and if nothing shows up for 5-10 polls, start to crank the interval up (perhaps doubling it every time) u...
[ 0.186967670917511, -0.38029590249061584, 0.7110382318496704, 0.31141161918640137, -0.3065527081489563, 0.13611280918121338, 0.38509881496429443, 0.29092368483543396, -0.3214758038520813, -0.8080258369445801, 0.1312609612941742, 0.1842382550239563, -0.11746110767126083, -0.21751417219638824...
I need to figure out how to fade in and out of multiple LEDS in a function with an Arduino. Can't use delay() because other things need to run while the light is fading. This is what it has so far, but does not work. ``` int value = 0; // variable to keep the actual value int ledpin = 9;
[ 0.6106724739074707, -0.5761529803276062, 0.4825306832790375, -0.39073166251182556, 0.0798812136054039, -0.17114411294460297, 0.1289784163236618, -0.35765430331230164, -0.010750137269496918, -0.4258151352405548, 0.5572681427001953, 0.5450942516326904, -0.8013330698013306, 0.221439391374588,...
// light connected to digital pin 9 int p1 = 0; void setup() { // nothing for setup Serial.begin(9600); } void loop() { inout(50, 30, 9, 0, 0); //inout(20, 20, 10); } void inout(int inDelay, int outDelay, int ledpin, long previousmil, int done) { if(millis() - previousmil>inDelay){ if (value <=...
[ 0.5853227376937866, -0.38756701350212097, 0.6478486061096191, -0.22205325961112976, 0.35975757241249084, 0.4018651843070984, -0.06849632412195206, -0.44834354519844055, -0.3389080762863159, -0.09910404682159424, 0.13108323514461517, 0.4520271122455597, -0.377218633890152, 0.294367641210556...
value+=5; } previousmil=millis(); } if(value = 260) done = 1; if(millis() - previousmil>outDelay && done == 1){ if (value >0){ analogWrite(ledpin, value); // sets the value (range from 0 to 255) value-=5; }
[ 0.1598149836063385, -0.28624364733695984, 0.6169868111610413, -0.32168906927108765, 0.45008140802383423, 0.3922964036464691, 0.20837654173374176, -0.6329963803291321, -0.38144150376319885, 0.07404880970716476, -0.037865739315748215, 0.6271323561668396, -0.07843339443206787, 0.1457902938127...
previousmil=millis(); } } ``` The only obvious thing is that you've got a state flag for which way to increment value, but you're not testing it in your first if. It would be better to structure your code a bit more. You also may want to track more than one value if you have more than one pin, unless they all shoul...
[ 0.29677489399909973, -0.2211584597826004, 0.12895314395427704, 0.20202894508838654, 0.22424983978271484, 0.18157653510570526, 0.315414160490036, -0.34463411569595337, -0.5980462431907654, -0.3890380859375, 0.17133501172065735, 0.23105479776859283, -0.29637411236763, 0.3358209729194641, 0...
task work on the time elapsed since the last loop, and adjust the delay at the end of your loop for the time the tasks take. If your loop is something like: ``` static unsigned long last_time = 0; // set to millis() in setup static unsigned long refresh_period = 20; // 50Hz void loop() { unsigned long time = mil...
[ 0.2247340828180313, -0.4390166699886322, 0.44843122363090515, -0.4236851632595062, 0.42540526390075684, 0.36336463689804077, 0.34494003653526306, -0.5697498321533203, -0.689591109752655, -0.6995471119880676, -0.05018778145313263, 0.4977698028087616, -0.18542948365211487, 0.0955151394009590...
may have taken some millis, adjust delay unsigned long post_time = millis(); if ( post_time - last_time < refresh_period ) delay( refresh_period - ( post_time - last_time ) ); last_time = time; } ``` Then each task will be run about once every 20ms, and will be passed 20 or so as the number of...
[ 0.22631654143333435, -0.395346462726593, 0.5979835391044617, -0.0712754875421524, 0.2249445617198944, 0.2691008150577545, 0.4532231092453003, -0.07389310002326965, -0.5164690613746643, -0.6412875056266785, 0.019346337765455246, 0.2660963535308838, 0.04668523743748665, 0.20838609337806702, ...
I'd like to create a graphic image on the fly based on user input, and then present that image as a PNG file (or jpg or gif if necessary, but PNG is preferred). This is actually for an astrology application; what I'd like to do is generate the chart in PNG for display. Python or Ruby is fine; in fact, the library ava...
[ 0.4439104199409485, 0.1507359892129898, 0.4375755190849304, 0.21590681374073029, -0.24617791175842285, -0.0646490678191185, -0.011985333636403084, 0.08537841588258743, -0.23279055953025818, -0.6530449390411377, 0.2959837019443512, 0.3794108033180237, -0.15547490119934082, -0.15727896988391...
What's the difference between: ``` InputStream is = this.getClass().getClassLoader().getResourceAsStream(fileName) ``` and ``` InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName) ``` and ``` InputStream is = this.getClass().getResourceAsStream(fileName) ``` When are ea...
[ 0.03329271450638771, -0.029418570920825005, 0.4946350157260895, -0.05835491791367531, 0.13930512964725494, -0.04302504286170006, 0.18043076992034912, -0.0034775547683238983, -0.000657959608361125, -0.9437655806541443, 0.07969494163990021, 0.6662688851356506, -0.16688933968544006, 0.2728253...
local to the package of the class you are calling it from. For example calling, `String.class.getResourceAsStream("myfile.txt")` will look for a file in your classpath at the following location: `"java/lang/myfile.txt"`. If your path starts with a `/`, then it will be considered an absolute path, and will start searchi...
[ -0.17657437920570374, -0.1885344386100769, 0.4134899377822876, -0.13592025637626648, 0.16940107941627502, -0.146240234375, 0.36690637469291687, 0.2564821243286133, -0.00466024037450552, -0.995029628276825, -0.32931435108184814, 0.6791555285453796, -0.35172533988952637, 0.26711758971214294,...
this post, it could be a location in your filesystem itself, or inside the corresponding jar file, depending on the Class and/or ClassLoader you are loading the resource from. In your case, you are loading the class from an Application Server, so your should use `Thread.currentThread().getContextClassLoader().getResou...
[ -0.10492786020040512, 0.06767571717500687, 0.413461834192276, -0.0021680258214473724, 0.10160768032073975, -0.1839437037706375, 0.5280274748802185, 0.46179816126823425, -0.344382107257843, -0.4350501000881195, -0.17678622901439667, 0.29015812277793884, -0.44517195224761963, 0.3851806223392...
looked at the source code of Tomcat's `WebAppClassLoader` for several versions of Tomcat. The implementation of `findResource(String name)` (which is utimately responsible for producing the URL to the requested resource) is virtually identical in Tomcat 6 and Tomcat 7, but is different in Tomcat 8. In versions 6 and 7...
[ -0.1835254728794098, -0.21801196038722992, 0.6071849465370178, -0.11610158532857895, 0.19170738756656647, -0.19748607277870178, 0.25678473711013794, 0.04273523762822151, -0.21228145062923431, -0.38688135147094727, -0.3727185130119324, 0.7941877245903015, -0.1321927309036255, 0.031030910089...
of the resource name is the one that is used. Therefore, in Tomcat 8, the two calls described above should always return the same result. [[source code]](https://github.com/apache/tomcat/blob/8.5.45/java/org/apache/catalina/loader/WebappClassLoaderBase.java) As a result, you have to be extra careful when using `ClassL...
[ -0.19930198788642883, 0.03167641535401344, 0.3071797788143158, -0.17222627997398376, 0.23902933299541473, -0.16625595092773438, 0.35646745562553406, -0.01745341718196869, -0.2645713686943054, -0.5340834259986877, -0.3884160816669464, 0.8573603630065918, -0.2849898636341095, 0.1859874874353...
How do You manage all of Your `.js` and `.css` files in ASP.NET project? Especially when they have a lot of dependency between each other? I've combined all script in one. But it's become weighty, and 90% of them were not used on particular pages. What I want is an instrument or guidance to manage all of those scripts...
[ 0.19343256950378418, 0.06892100721597672, -0.02815753035247326, 0.2776888906955719, -0.09037720412015915, -0.28461194038391113, 0.14330290257930756, 0.029187394306063652, -0.3044285476207733, -0.6985993385314941, 0.13875749707221985, 0.48101094365119934, -0.01261543482542038, -0.0951009690...
divide my JS files based on their function - for instance, I could have a single JS file for all AJAX based interaction, one for all Validations and a common JS library for all functions that are common to the entire web application. Having a single file that combines the entire JS scripts into one would definitely slo...
[ 0.5296642780303955, 0.12477928400039673, 0.19295866787433624, 0.17735081911087036, -0.2530393600463867, 0.024570384994149208, 0.0861697793006897, -0.19812001287937164, -0.14948004484176636, -0.7478338479995728, 0.04267091304063797, 0.26198893785476685, -0.10645593702793121, -0.019956974312...
might also create individual CSS files for pages that have a very specific layout structure. I don't know of any tools that could handle this dependency automatically, but When you divide your files according to function, this becomes unnecessary in most cases.
[ 0.6300320625305176, 0.1479586809873581, -0.056674931198358536, 0.38554105162620544, -0.032509058713912964, -0.2904549241065979, -0.01844783127307892, 0.13278010487556458, -0.36731621623039246, -0.5477003455162048, 0.0365479439496994, 0.38660725951194763, -0.2285938709974289, 0.027530491352...
I am trying to implement an interface class, that contains a list of objects. How can I make the list generic, so that the implementing class defines the type of list: ``` public interface IEntity { Guid EntityID { get; set; } Guid ParentEntityID{ get; set; } Guid RoleId { get; set; } void SetFromEnti...
[ 0.21618963778018951, -0.10071796178817749, 0.5099087357521057, -0.18508799374103546, 0.013884062878787518, 0.09783399105072021, 0.12423627078533173, -0.21552470326423645, -0.07271780073642731, -0.857690691947937, -0.059262797236442566, 0.6896462440490723, -0.4829261302947998, 0.07646665722...
public IQueryable<Dealer> GetAll() { } } ``` You can do something like this: ``` public interface IEntity<T> { IQueryable<T> GetAll(); } public class Dealer : IEntity<Dealer> { public IQueryable<Dealer> GetAll() { } } ```
[ -0.29563024640083313, -0.027858950197696686, 0.14302757382392883, 0.1001342162489891, -0.12262342870235443, -0.09312146157026291, -0.18541370332241058, 0.043090276420116425, -0.3299901485443115, -0.6440159678459167, -0.251172810792923, 0.5760637521743774, -0.4251979887485504, -0.0807691141...
I’m interested in developing an iPhone application using Visual Studio and C#.NET on Windows Vista. I tried to download the SDK from <http://developer.apple.com/iphone/index.action>, but the file has a `.dmg` extension and I don’t know how to open that file. So can I as .NET developer work and develop against iPhone ...
[ 0.906622588634491, 0.38710397481918335, -0.09342427551746368, 0.0756058320403099, -0.05465463921427727, 0.07178869098424911, 0.19751706719398499, 0.09147389978170395, -0.1898851841688156, -0.48459184169769287, 0.1355893760919571, 0.6075085997581482, -0.07836266607046127, 0.0810142159461975...
a series of "iPhone style" controls that could be statically linked as an iPhone app, but that's some way off. If it's games you're interested in, and you have deep pockets, then [UNITY](http://unity3d.com/unity/features/iphone-publishing) is a Mono based game development platform that supports the iPhone (and runs on...
[ 0.20275937020778656, -0.05667013302445412, -0.07631611078977585, 0.20263412594795227, 0.16914376616477966, 0.1680414378643036, 0.07501958310604095, -0.14136290550231934, 0.12388338148593903, -0.3715743124485016, 0.29403865337371826, 0.8188850283622742, -0.3774215579032898, -0.1631360203027...
Since I've been learning Java, I've been able to create GUI programs. However, even simple "Hello World!" programs will not work, if they require a console. My research on the topic has lead me to the conclusion that my Java Runtime Environment does not have a console associated with it. Is it possible to call the Wi...
[ -0.025016171857714653, 0.12415409833192825, -0.05511840432882309, -0.12804630398750305, -0.17412923276424408, -0.06395510584115982, 0.1927020102739334, 0.07894915342330933, -0.06515715271234512, -0.842800498008728, 0.06484908610582352, 0.6527395844459534, -0.4280548095703125, 0.01654630154...
which causes the program not to have a console. Also, the windows "command prompt" is a program that uses the type of console I mean. Thanks for any answers. Euphoria83 is on the right track as to what I am trying to do. By the way his method works, but I want the console to automatically appear when I click on the "...
[ 0.07707411795854568, 0.043435193598270416, 0.2283943146467209, 0.05897698551416397, -0.2102789729833603, -0.037613894790410995, 0.10721081495285034, 0.1521330624818802, 0.11732397973537445, -0.6378781795501709, 0.21728239953517914, 0.8786627054214478, 0.064008429646492, 0.3021460175514221,...
to using Visual Studio so I am not exactly sure) which will display the program output **inside Eclipse only**. I want the console to work at runtime, not just inside the integrated development environment. Either associate 'java.exe' with the .jar extension (by default it will be 'javaw.exe', which has no console), in...
[ 0.4659614861011505, 0.13795509934425354, 0.17658822238445282, -0.3569553792476654, -0.26667270064353943, -0.08805346488952637, 0.19943837821483612, 0.04141886904835701, 0.21410979330539703, -0.9151231050491333, -0.05245174467563629, 0.7540938258171082, -0.1955481767654419, 0.00199308735318...
i am looking for a T4 Editor for VS 2010 CTP2. Clarius states on their Blog they are waiting for the Beta1. Any idea other idea where to look? Thanks Tim Since eclipse3.4 and the [p2 mechanism](http://dev.eclipse.org/mhonarc/lists/eclipse-pmc/msg00341.html), you coud use [`org.eclipse.osgi.service.datalocation.Locat...
[ 0.23478658497333527, 0.2971416711807251, 0.6978814601898193, -0.28234854340553284, -0.16843198239803314, -0.1868176907300949, 0.16043882071971893, -0.08248533308506012, 0.043967194855213165, -0.7349658012390137, -0.09118526428937912, 0.16077353060245514, 0.00008446888386970386, 0.240464314...
I reference to this post; <http://www.pinvoke.net/default.aspx/user32/RegisterHotKey.html> ``` #region fields public static int MOD_ALT = 0x1; public static int MOD_CONTROL = 0x2; public static int MOD_SHIFT = 0x4; public static int MOD_WIN = 0x8; public static int WM_HOTKEY = 0x312; #endr...
[ -0.3244244456291199, -0.35353997349739075, 0.9634488821029663, -0.021257031708955765, 0.1419205218553543, 0.05617494136095047, 0.25958773493766785, -0.3927929699420929, -0.08160015195608139, -0.5670298933982849, -0.7631446123123169, 0.07276804000139236, -0.4135904312133789, 0.5019508600234...
public static void RegisterHotKey(Form f, Keys key) { int modifiers = 0; if ((key & Keys.Alt) == Keys.Alt) modifiers = modifiers | WindowsShell.MOD_ALT; if ((key & Keys.Control) == Keys.Control) modifiers = modifiers | WindowsShell.MOD_CONTROL; if ((key & K...
[ -0.32394152879714966, -0.44374290108680725, 0.18351122736930847, 0.031467050313949585, 0.2867167890071869, 0.287208616733551, 0.5227243900299072, -0.21349404752254486, -0.004517975263297558, -0.37499234080314636, -0.6575995087623596, 0.7076927423477173, -0.36234158277511597, 0.186576709151...
modifiers = modifiers | WindowsShell.MOD_SHIFT; Keys k = key & ~Keys.Control & ~Keys.Shift & ~Keys.Alt; Func ff = delegate() { keyId = f.GetHashCode(); // this should be a key unique ID, modify this if you want more than one hotkey
[ -0.12041928619146347, -0.4523025155067444, 0.24149444699287415, 0.2447444498538971, 0.2730591297149658, -0.15851444005966187, 0.2709774076938629, -0.5535139441490173, -0.23696324229240417, -0.3726330101490021, -0.3937481939792633, 0.48430007696151733, -0.31367161870002747, 0.23676294088363...
RegisterHotKey((IntPtr)f.Handle, keyId, modifiers, (int)k); }; f.Invoke(ff); // this should be checked if we really need it (InvokeRequired), but it's faster this way } ``` My question is, how does `RegisterHotKey` api know that `1`, `2`, `4`, `8` are windows keys? Because the key codes for c...
[ 0.056213438510894775, -0.04655470326542854, 0.4234643280506134, 0.0910632535815239, 0.2800508439540863, 0.03797819837927818, 0.30196473002433777, -0.21374008059501648, -0.16074144840240479, -0.5465249419212341, -0.08581048995256424, 0.8448028564453125, -0.279663622379303, -0.00295747793279...
modifiers = modifiers | WindowsShell.MOD_CONTROL; ``` and what is it doing here? ``` Keys k = key & ~Keys.Control & ~Keys.Shift & ~Keys.Alt; ``` `MOD_ALT`, `MOD_CONTROL`, etc don't have any relationship to the keycodes of the associated keys. You're seeing an `enum` type used to represent a set of [flags](http://...
[ 0.039800774306058884, -0.32588446140289307, 0.2534203827381134, 0.23245179653167725, 0.04491270333528519, -0.14542071521282196, 0.2695235013961792, -0.39179226756095886, -0.35192224383354187, -0.550369381904602, -0.34505680203437805, 0.24943754076957703, -0.418986439704895, 0.3518393933773...
that a particular "flag" is set. ``` // Note that powers of 2 are used; each value has only a single bit set public static int MOD_ALT = 0x1; // If bit 0 is set, Alt is pressed public static int MOD_CONTROL = 0x2; // If bit 1 is set, Ctrl is pressed public static int MOD_SHIFT = 0x4; // If bit 2 is set, Shift is...
[ 0.046538323163986206, -0.3740204870700836, 0.41372689604759216, -0.054033778607845306, 0.022245652973651886, 0.22429434955120087, 0.029126735404133797, -0.49591243267059326, -0.17063888907432556, -0.2863408625125885, -0.26995912194252014, 0.8625314235687256, -0.5341047644615173, -0.3246213...
| MOD_CONTROL; // == 3 int controlAndShift = MOD_CONTROL | MOD_SHIFT; // == 6 ``` This has two advantages: * The API doesn't have to take an individual boolean parameter for every modifier key * The API can be expanded to include additional modifier keys without changing the interface Bitwise `&`s and `|`s can be u...
[ 0.010711048729717731, -0.3911261260509491, 0.3881760239601135, 0.1417510211467743, -0.0028122388757765293, -0.19198717176914215, 0.2850385308265686, -0.5644931793212891, -0.10182767361402512, -0.3990126848220825, -0.1752484291791916, 0.7170097827911377, -0.38586002588272095, -0.05678515508...
set the control bit in `modifiers`" ``` Keys k = key & ~Keys.Control & ~Keys.Shift & ~Keys.Alt; ``` is saying "`k` is assigned `key` with the `Control`, `Shift` and `Alt` flags cleared" I'm not sure why the contributors to pinvoke chose to use constants; you can just as easily use a proper enum: ``` [Flags] public...
[ 0.06678538024425507, -0.10359417647123337, -0.09260919690132141, 0.28429943323135376, 0.018749622628092766, -0.09138698875904083, 0.24928750097751617, -0.4693428575992584, -0.27623459696769714, -0.036609627306461334, -0.12100428342819214, 0.4361378848552704, -0.2985196113586426, 0.03268735...
I am looking for a way to allow users to download a file from my site using ajax. The reason why i need to do this is because the files are quite big (50 megs normally). So when the user clicks the download button it actually looks as if the page is not responding because it has to stream the file from my Amazon S3 to ...
[ 0.25304487347602844, 0.11035611480474472, 0.1759638637304306, 0.13246610760688782, -0.14926649630069733, -0.14468316733837128, 0.023531217128038406, 0.2619673013687134, -0.35787859559059143, -0.6792395114898682, 0.19002223014831543, 0.4000858664512634, 0.1020316407084465, -0.00412321696057...
on injecting iFrames into my webpage. Thanks in advance for any help. I have decided to use the IFrame method is there is no other way that works seamlessly enough to make it worth the time.
[ 0.5864801406860352, 0.20666983723640442, -0.1824972778558731, 0.2092662900686264, -0.16523395478725433, -0.16749073565006256, 0.29487577080726624, 0.6589515805244446, 0.07220323383808136, -0.8615724444389343, 0.3167542517185211, 0.05350671336054802, -0.18283173441886902, -0.033678069710731...
I want to include an HTML page inside an HTML page. Is it possible? I don't want to do it in PHP, I know that in PHP, we can use `include` for this situation, how can I achieve the same purely in HTML without using the `iframe` and `frame` concept? If you're just trying to stick in your own HTML from another file, an...
[ 0.706052303314209, 0.14928226172924042, 0.08039499074220657, -0.20203179121017456, -0.19006642699241638, -0.3413994014263153, 0.4032236933708191, -0.13634002208709717, -0.23074927926063538, -0.5147687196731567, 0.027464531362056732, 0.25225672125816345, -0.38504278659820557, 0.114754885435...
I have a pool of items in the drag list which is connected to a sortable using connectToSortable option. Now I want to remove some items from this sort list and move them back to the drag list. Sort of like an undo. Suppose the user moves some 5 items to sort list and decides he/she wants only 4 items, and decides to j...
[ 0.3783125877380371, -0.05546654388308525, 0.45328229665756226, -0.019218752160668373, -0.22587648034095764, -0.05972251668572426, -0.026390571147203445, -0.1085110455751419, -0.4975038170814514, -0.5253722667694092, 0.07393286377191544, 0.569301187992096, -0.3599824011325836, 0.10836312919...
UI example](http://jqueryui.com/demos/sortable/#connect-lists) seems like what you're after. It features two connected list and the user can drag elements between them. But I suspect that your scenario does not match the example. Let say you have a drag list, an UL with each LI made draggable and linked to another UL ...
[ 0.06551435589790344, -0.20553962886333466, 0.4054037928581238, 0.054427649825811386, -0.2073337286710739, 0.018381597474217415, -0.3075595498085022, -0.17545482516288757, -0.3434549868106842, -0.9563627243041992, -0.033396076411008835, 0.2796366214752197, -0.2080058753490448, 0.00597186852...
event is triggered, remove it from the sortable. Using the ui.position & ui.offset properties of the sortable widget, you can determine if the item was dragged over the drag list before actually removing the item from the sortable. Hope this helps.
[ 0.06496181339025497, -0.500609815120697, 0.32276982069015503, 0.24361805617809296, -0.08168797940015793, -0.15702000260353088, -0.009171415120363235, -0.12120336294174194, -0.30948397517204285, -0.6637340188026428, -0.18804281949996948, 0.4726487994194031, -0.012777231633663177, -0.0045979...
I'm thinking of having a program that dynamically creates new tables as the need arises. Can I have tables named with just numbers in MySQL? Rules for naming objects, including tables in MySql: <http://dev.mysql.com/doc/refman/5.1/en/identifiers.html> > Identifiers may begin with a digit but > **unless quoted** may ...
[ 0.08341331779956818, 0.1855667680501938, 0.18965284526348114, 0.15441255271434784, -0.10985434800386429, 0.11494138091802597, -0.07957246899604797, -0.11843427270650864, -0.5372920632362366, -0.5789856314659119, 0.02066832222044468, 0.1467624306678772, -0.29569754004478455, 0.2747307419776...
I would like to match with RegExp a number between X and Y. Is that possible? ([0-9]+) will match any number, how could I do to match a number between, for instance, 110 and 2234? According to [Generate a Regular Expression to Match an Arbitrary Numeric Range](http://code.activestate.com/recipes/534137/), and after ge...
[ 0.09360752999782562, 0.03175022825598717, 0.5524976849555969, -0.012461735866963863, 0.030124619603157043, 0.294849693775177, 0.07524742931127548, -0.603230893611908, -0.04018957167863846, -0.41765955090522766, -0.02945309691131115, 0.4049438238143921, -0.11751553416252136, -0.106796152889...
into a regex: ``` 1[1-9][0-9] [2-9][0-9]{2} 1[0-9]{3} 2[01][0-9]{2} 22[0-2][0-9] 223[0-4] ``` > Collapse adjacent powers of 10: > 1[1-9][0-9] > [2-9][0-9]{2} > 1[0-9]{3} > 2[01][0-9]{2} > 22[0-2][0-9] > 223[0-4] > > > Combining the regexes above yields: ``` 0*(1[1-9][0-9]|[2-9][0-9]{2}|1[0-9]{3}|2[01][0-9]{...
[ -0.3843808174133301, -0.04536834731698036, 0.1742601841688156, 0.01681794971227646, -0.1959526538848877, 0.3511282503604889, 0.44027793407440186, -0.5475824475288391, -0.1319325566291809, -0.25118184089660645, -0.48497524857521057, 0.3617366552352905, -0.16795732080936432, -0.0464022308588...
I have created a Dll in VC++ 2008. But it is working with some other software (VB). Unable to load that dll function in Labview. VC90 Debug CRT error is coming. Why is this software not supporting my dll? According to [Generate a Regular Expression to Match an Arbitrary Numeric Range](http://code.activestate.com/recipe...
[ 0.027919938787817955, -0.0006983409402891994, 0.9520503282546997, 0.01198973972350359, -0.1294059306383133, 0.02346152253448963, 0.26094183325767517, -0.517611026763916, -0.11087406426668167, -0.46471652388572693, 0.01805255189538002, 0.5790414810180664, -0.23730260133743286, 0.16477338969...
- 2234 ``` > Turn each range into a regex: ``` 1[1-9][0-9] [2-9][0-9]{2} 1[0-9]{3} 2[01][0-9]{2} 22[0-2][0-9] 223[0-4] ``` > Collapse adjacent powers of 10: > 1[1-9][0-9] > [2-9][0-9]{2} > 1[0-9]{3} > 2[01][0-9]{2} > 22[0-2][0-9] > 223[0-4] > > > Combining the regexes above yields: ``` 0*(1[1-9][0-9]|[2-9...
[ 0.02095816470682621, 0.46612128615379333, 0.29170772433280945, 0.05010602995753288, -0.45399802923202515, 0.2180352807044983, 0.46685081720352173, -1.098276138305664, -0.20258039236068726, -0.12847311794757843, -0.00776664400473237, 0.34406277537345886, -0.055719781666994095, -0.0310380458...
I have often wondered what exactly does casting do at compiler or machine level. What does it do with the 0 and 1s in memory? Can anyone point me at some good literature. Casting doesn't modify the individual bits when casting between reference types, it just instructs the compiler/runtime to interpret the bits in a s...
[ 0.7863284945487976, 0.43903645873069763, -0.19052425026893616, 0.06767703592777252, -0.3493473529815674, -0.06027267873287201, 0.19918997585773468, -0.29964107275009155, 0.17321166396141052, -0.5840396881103516, 0.22917607426643372, 0.3034418523311615, -0.22526594996452332, 0.2290832102298...
C#: In the keydown event of a textbox, how do you detect currently pressed modifiers + keys? I did the following, but I'm not too familiar with these operators so I'm not sure if and what I'm doing wrong. ``` private void txtShortcut_KeyDown(object sender, KeyEventArgs e) { if (e.Modifiers == (Keys.Al...
[ -0.16110913455486298, -0.17361415922641754, 0.38770344853401184, -0.23629389703273773, 0.24767884612083435, -0.09124153107404709, 0.27780866622924805, -0.3572387993335724, -0.3821459412574768, -0.20747485756874084, -0.6457304954528809, 0.9460805654525757, -0.4361210763454437, -0.1415339708...
"show non-modifier key being pressed here"); } } ``` 1) How would I check if e contains any modifier keys? according to msdn [linkt](http://support.microsoft.com/kb/839201) ``` private void txtShortcut_KeyDown(object sender, KeyEventArgs e) { if (e.Alt || e.Control || e.Shift)) { ...
[ 0.03250214084982872, -0.1563081443309784, 0.5675845742225647, -0.31941139698028564, 0.256022572517395, -0.04287523776292801, 0.17603100836277008, -0.4661467969417572, -0.29655179381370544, -0.38788798451423645, -0.6169165372848511, 0.6039746999740601, -0.4327136278152466, 0.078850813210010...
non-modifier key being pressed here"); } } ```
[ -0.2189016342163086, -0.011103647761046886, 0.39876070618629456, -0.40148279070854187, 0.43248745799064636, -0.2694135308265686, 0.0816904678940773, -0.012870939448475838, -0.0006521671311929822, -0.12708358466625214, -0.4403621256351471, 0.8687387704849243, -0.38753190636634827, 0.2398051...
I am using this code to detect whether modifier keys are being held down in the KeyDown event of a text box. ``` private void txtShortcut_KeyDown(object sender, KeyEventArgs e) { if (e.Shift || e.Control || e.Alt) { txtShortcut.Text = (e.Shift.ToString() + e.Control.ToString() + e.A...
[ 0.02577596716582775, -0.04042341932654381, 0.6117070317268372, -0.20636147260665894, 0.10296928137540817, 0.03841772675514221, 0.4549768567085266, -0.4549228250980377, -0.17108173668384552, -0.35333094000816345, -0.4933476746082306, 0.7538474798202515, -0.3620359003543854, 0.11778037995100...
result and also display the non-modifier key being pressed at the end of the modifier key if a non-modifier key like the letter A is being pressed at the same time too? Is there a way to do it all in the same txtShortcut.Text = (); line? You can check the `Control.ModifierKeys` - because that is an enum it should be mo...
[ -0.15864481031894684, -0.2916571795940399, 0.45412367582321167, 0.15971693396568298, 0.12240297347307205, -0.03607853874564171, 0.0331125408411026, -0.4546796977519989, -0.14433133602142334, -0.43276447057724, -0.4011348783969879, 0.6829954981803894, -0.23120376467704773, -0.10476884990930...
``` typedef struct temp { int a,b; char *c; temp(){ c = (char*)malloc(10);}; ~temp(){free(c);}; }temp; int main() { temp a; list<temp> l1; l1.push_back(a); l1.clear(); return 0; } ``` giving segmentation fault. You don't have a copy con...
[ 0.23017100989818573, -0.12998522818088531, 0.33881625533103943, -0.25004833936691284, 0.15495547652244568, 0.17229478061199188, 0.3156794011592865, -0.14890636503696442, -0.34804001450538635, -0.27699264883995056, -0.3609170615673065, 0.3441580533981323, -0.6725285053253174, 0.345808058977...
push 'a' into the list, it gets copied. Because you don't have a copy constructor (to allocate memory for c and copy from old c to new c) c is the same pointer in a and the copy of a in the list. The destructor for both a's gets called, the first will succeed, the second will fail because the memory c points to has al...
[ 0.05009614676237106, -0.03567850962281227, 0.22877562046051025, -0.07682236284017563, 0.08263955265283585, 0.08302182704210281, 0.21650022268295288, -0.5402088165283203, -0.3321029841899872, -0.650198221206665, -0.15429937839508057, 0.4461084306240082, -0.4401925802230835, 0.17365670204162...
Let's say we have a text, and I enter visual mode and select some text. How do I quickly do a search for the highlighted text and replace it with something else? Try execute the following or put in into your `.vimrc` ``` vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left> ``` By pressing `ctrl`+`r` in visual mode, yo...
[ 0.2639088034629822, 0.0576348640024662, 0.8843125104904175, 0.038639262318611145, -0.018254287540912628, -0.00024336224305443466, 0.3765527009963989, -0.22491025924682617, 0.1077471375465393, -0.555531919002533, -0.33017778396606445, 1.0103285312652588, -0.05118367820978165, -0.06179859116...
use.
[ 0.22052158415317535, 0.2542358934879303, 0.010324104689061642, -0.011292614042758942, -0.09645160287618637, -0.21627177298069, -0.19917161762714386, -0.11745254695415497, 0.07940573245286942, -1.03632652759552, -0.39058664441108704, 0.48060256242752075, -0.27066075801849365, 0.159223645925...
I've been using QT for a while now and I've been wondering about something regarding the way the GUI is painted in Windows. Is it really painting all the buttons, edit boxes, combo-boxes, check-boxes, tabs etc' on its own using QPainter or is it somehow using the native widgets? The fact that it can do custom styl...
[ 0.8881632685661316, -0.11974646896123886, 0.1954972743988037, 0.19051897525787354, -0.19192378222942352, 0.12131507694721222, 0.11134939640760422, 0.23763848841190338, -0.08604869246482849, -0.814383327960968, 0.3882109522819519, 0.7049375772476196, -0.29369381070137024, 0.1391482502222061...
to this is that if I'm using Spy++ on a Qt gui then all the windows are showing with a class name equal to "QWidget". If it were using the native widgets shouldn't these be "BUTTON", "STATIC" etc'? What about on other platforms? Is it doing the same in Max OSX as well? On Windows XP and Vista (except when the display ...
[ 0.3558357059955597, -0.2714722454547882, 0.7137569785118103, -0.11955904960632324, -0.2559488117694855, -0.06114859879016876, 0.3484373986721039, -0.2148049920797348, -0.20758073031902313, -0.7304205894470215, 0.0693947821855545, 0.5518673062324524, -0.3266124129295349, 0.345935583114624, ...
[QWindowsStyle](http://doc.trolltech.com/4.5/qwindowsstyle.html). The situation is similar on Mac OS X, where [QMacStyle](http://doc.trolltech.com/4.5/qmacstyle.html) relies on the Appearance Manager to delegate the low-level painting of the widgets. For X11, usually Qt uses its own style painting and has certain st...
[ 0.08585833013057709, -0.15837590396404266, 0.5601826310157776, -0.1302783191204071, -0.4830387532711029, -0.03818156197667122, 0.36223354935646057, -0.1711493283510208, -0.10929059237241745, -0.7907915711402893, -0.16822798550128937, 0.5152767896652222, -0.41048163175582886, 0.136522963643...
I am trying to do kind of a wizard using thickbox, and it works fine when opening it the first time. When I click next I would like to close the div I have opened and open a new one in thickbox, but how is it done? I have tried the following code, but it just closes the thickbox and doesn't open it again: ``` tb_show(...
[ 0.2660689055919647, 0.2191750407218933, 0.603991687297821, -0.3528596758842468, -0.053880419582128525, 0.15938082337379456, 0.5410693287849426, -0.22049857676029205, 0.04079466685652733, -0.9072064161300659, -0.19948986172676086, 0.5457090139389038, -0.6020085215568542, 0.05970295518636703...
**EDIT**: Re-written this question based on original answer The `scala.collection.immutable.Set` class is not covariant in its type parameter. Why is this? ``` import scala.collection.immutable._ def foo(s: Set[CharSequence]): Unit = { println(s) } def bar(): Unit = { val s: Set[String] = Set("Hello", "Worl...
[ 0.1402478814125061, -0.2246263176202774, 0.4190172255039215, -0.15314187109470367, 0.061453163623809814, 0.004631005693227053, 0.3556424379348755, -0.5592385530471802, -0.24358412623405457, -0.4861017167568207, -0.36163946986198425, 0.5340542793273926, -0.6066843867301941, 0.22824755311012...
A): Boolean } ``` If `Set` were covariant in `A`, the `apply` method would be unable to take a parameter of type `A` due to the contravariance of functions. `Set` could potentially be *contravariant* in `A`, but this too causes issues when you want to do things like this: ``` def elements: Iterable[A] ``` In short...
[ -0.27265074849128723, -0.19301313161849976, 0.10605473071336746, -0.01823730394244194, -0.08393320441246033, -0.3510129451751709, 0.0679074302315712, -0.34838205575942993, -0.07789140194654465, -0.3321548104286194, -0.48993390798568726, 0.4499666690826416, -0.48954087495803833, 0.225907027...
Do you know of any good online SQL Reference for DB2. I need it for someone who will be moving from Oracle to DB2 The manual perhaps? <http://www.ibm.com/support/docview.wss?rs=71&uid=swg27009554>
[ 0.3483177721500397, 0.16505175828933716, 0.11573527753353119, 0.13321605324745178, 0.08240161091089249, -0.10651297122240067, 0.09903686493635178, 0.1666049212217331, -0.04159760847687721, -0.22495195269584656, -0.056052740663290024, 0.2800977826118469, 0.03958543762564659, 0.0236508604139...
I have upcoming project where we need application to send data on compressed into database and to other application. The compression can use algorithm such as GZIP or ZLIB. Can somebody point me some help, especially for VCL component (or ActiveX) that can compress data traffic between communicating application and da...
[ -0.17322580516338348, 0.1486566960811615, 0.3859686255455017, 0.18883496522903442, 0.02649451047182083, -0.20927694439888, -0.12307773530483246, 0.045022640377283096, -0.1287895143032074, -0.836456835269928, 0.0174411628395319, 0.7669599056243896, -0.2594490051269531, -0.30912351608276367,...
Thanks, Dels The manual perhaps? <http://www.ibm.com/support/docview.wss?rs=71&uid=swg27009554>
[ 0.012682485394179821, -0.2176358848810196, 0.2610395848751068, 0.3737589716911316, 0.12091671675443649, 0.0809314101934433, -0.10976542532444, 0.3028164505958557, -0.2445158064365387, 0.04880661144852638, 0.02419555000960827, 0.6989003419876099, 0.25221729278564453, -0.08875071257352829, ...
If I define an array in PHP such as (I don't define its size): ```php $cart = array(); ``` Do I simply add elements to it using the following? ```php $cart[] = 13; $cart[] = "foo"; $cart[] = obj; ``` Don't arrays in PHP have an add method, for example, `cart.add(13)`? Both [`array_push`](http://php.net/manual/en/...
[ -0.047967590391635895, -0.04577312618494034, 0.5259786248207092, -0.323353111743927, -0.3479894995689392, 0.18462872505187988, 0.13964486122131348, -0.8606427907943726, -0.22430165112018585, -0.02594675123691559, -0.1235760748386383, 0.35598012804985046, -0.37952327728271484, -0.1224967315...
Is there an Iron Python .net port of the twisted libraries, or can Iron Python use the standard one? Twisted will not currently run in IronPython, but it is being [worked on](http://twistedmatrix.com/trac/ticket/3882). Stay tuned.
[ 0.4612298309803009, -0.3663581907749176, 0.24105995893478394, 0.31391456723213196, -0.12251915782690048, -0.23639628291130066, 0.34928616881370544, 0.20379263162612915, -0.2283574640750885, -0.526241660118103, 0.22551846504211426, 0.4438799023628235, -0.26588496565818787, -0.00400942564010...
OK, I don't understand this at all. This is the BBC's RSS feed ( <http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml>) If you view it in ie6 it appears to be styled with a custom stylesheet (nosol.xsl) If you view it in firefox or ie7 the browser's default rss feed styling is used. I tried to do...
[ 0.9544280171394348, -0.026217782869935036, 0.6825299263000488, -0.29434046149253845, -0.22150084376335144, -0.3734177052974701, 0.06661483645439148, -0.0005310116684995592, -0.2472667098045349, -0.5545916557312012, -0.04164649546146393, 0.37993595004081726, -0.2510767877101898, 0.290566444...
the difference that's made it work like that on the dev server and not the live production server? I ran your feed [through W3C's feed validator](http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.bbusl.com%2Fworksregion%2F4%2Frss.xml). I configured Firefox to use [Fiddler](http://www.fiddler2.com/fiddler2/) a...
[ 0.30941611528396606, -0.08840388804674149, 0.7363636493682861, -0.24194470047950745, -0.3126278221607208, 0.00009959113231161609, 0.2839922308921814, -0.40840086340904236, -0.34494566917419434, -0.25709956884384155, 0.23078598082065582, 0.5717189311981201, -0.477095365524292, 0.00704341521...
^ > > ``` When I changed this to the full URL for your feed the default Firefox RSS feed styling was applied as you expected to see.
[ 0.45605945587158203, 0.15117116272449493, 0.6001185178756714, -0.430535227060318, -0.29146283864974976, -0.25938162207603455, -0.09521721303462982, 0.44742900133132935, -0.18410895764827728, -0.564664363861084, -0.14106348156929016, 0.5108911395072937, -0.48475342988967896, -0.015522191300...
I am trying to implement a vision algorithm, which includes a prefiltering stage with a 9x9 Laplacian-of-Gaussian filter. Can you point to a document which explains fast filter implementations briefly? I think I should make use of FFT for most efficient filtering. Are you sure you want to use FFT? That will be a whole-...
[ 0.23236750066280365, -0.16835279762744904, 0.15656232833862305, 0.169292151927948, -0.13353046774864197, 0.13087788224220276, 0.09121556580066681, -0.1609993875026703, 0.10519430786371231, -0.7631210684776306, -0.0071443673223257065, 0.7828192710876465, -0.5816956758499146, -0.071828551590...
point and writing the data to a new array. This loop can then be parallelised using your favourite method (compiler vectorisation, MPI libraries, OpenMP, etc). Regarding the boundaries: * If you assume the values to be 0 outside the boundaries, then add a 4 element border of 0 to your 2d array of points. This will ...
[ 0.2951711118221283, -0.32959315180778503, 0.3637714684009552, 0.05967872962355614, -0.227870374917984, -0.14604580402374268, -0.012166505679488182, -0.701221764087677, -0.22753921151161194, -0.5496039390563965, 0.07607563585042953, 0.0707995742559433, -0.4914669692516327, 0.024752274155616...
fgabcdefgab for 2 points). \*\*Note: this is what you are implicitly assuming with any kind of Fourier transform, including FFT\*\*. If that is not the case, you would need to account for it before any FFT is done. The 4 points are because the maximum boundary overlap of a 9x9 kernel is 4 points outside the main grid....
[ -0.3608495593070984, -0.3400152325630188, 0.4861867129802704, -0.2672593891620636, 0.1155213788151741, 0.0941227450966835, 0.11162128299474716, -0.1854466199874878, -0.29292333126068115, -0.7542749643325806, 0.06022975593805313, 0.4190768003463745, -0.3582057058811188, 0.03281208872795105,...
more quickly. This also goes for any GPU-offloading you might want to do (they are ideal for this type of floating-point calculation).
[ 0.11493536084890366, 0.27067577838897705, 0.4337838292121887, 0.17051807045936584, 0.10390111058950424, -0.1780119389295578, 0.01085185818374157, -0.11109940707683563, -0.30569806694984436, -0.6839744448661804, -0.023923728615045547, 0.36222389340400696, 0.21321424841880798, -0.06908515840...
I am trying to write a cross-platform python program that would run in the background, monitor all keyboard events and when it sees some specific shortcuts, it generates one or more keyboard events of its own. For example, this could be handy to have Ctrl-@ mapped to "my.email@address", so that every time some program ...
[ 0.333732545375824, 0.00669928127899766, -0.0011326140956953168, 0.16478857398033142, 0.05571810528635979, -0.12630103528499603, 0.009139012545347214, 0.25321316719055176, -0.13903404772281647, -0.4490692615509033, 0.30767521262168884, 0.6380618810653687, -0.30136212706565857, 0.10209124535...
programmers, for example if they want to startup an SSH connection which requires a password, without using pexpect. Thanks for your help. Note: there is [a similar question](https://stackoverflow.com/questions/310576/low-level-keyboard-input-on-windows) but it is limited to the Windows platform, and does not require...
[ 0.2736368477344513, -0.03204036504030228, -0.09666860103607178, 0.31181830167770386, -0.1375943422317505, -0.3176139295101166, 0.3740687370300293, 0.3771860897541046, -0.31416648626327515, -0.532997727394104, -0.23708118498325348, 0.900058388710022, -0.23855845630168915, -0.140891537070274...
is no such API. My solution was to write a helper module which would use a different helper depending on the value of `os.name`. On Windows, use the [Win32 extensions](http://python.net/crew/mhammond/win32/Downloads.html). On Linux, things are a bit more complex since real OSes protect their users against keyloggers[...
[ 0.1845710128545761, 0.021279672160744667, 0.42565056681632996, 0.11208900064229965, 0.17339971661567688, -0.06430961936712265, 0.38225656747817993, 0.2692319452762604, -0.4070453345775604, -0.7393994927406311, -0.2772481143474579, 0.7564775943756104, -0.2586725056171417, 0.3015740811824798...
into the keyboard events...
[ -0.16192005574703217, -0.04755686968564987, 0.20713739097118378, -0.26936599612236023, 0.24866069853305817, -0.18621714413166046, 0.19331218302249908, 0.051341623067855835, -0.03397855907678604, -0.4735356569290161, -0.3372510075569153, 0.22259892523288727, 0.16698504984378815, -0.19881807...
I’m looking for a trick about this. I know how to call a dynamic, arbitrary function in JavaScript, passing specific parameters, something like this: ``` function mainfunc(func, par1, par2){ window[func](par1, par2); } function calledfunc(par1, par2){ // Do stuff here } mainfunc('calledfunc', 'hello', 'bye')...
[ -0.0471302792429924, -0.08930646628141403, 0.27358657121658325, 0.06576339155435562, -0.03395715728402138, 0.0023446057457476854, 0.0736507847905159, -0.018735148012638092, -0.35589420795440674, -0.22483542561531067, -0.3653237223625183, 0.6207817196846008, -0.43125396966934204, -0.0653539...
== 3) window[func](arguments[1], arguments[2]); else if(arguments.length == 4) window[func](arguments[1], arguments[2], arguments[3]); else if(arguments.length == 5) window[func](arguments[1], arguments[2], arguments[3], arguments[4]); } function calledfunc1(par1, par2){ // Do stuff...
[ 0.09290185570716858, 0.22570930421352386, 0.6124220490455627, -0.35651081800460815, 0.04464978352189064, 0.06400658190250397, 0.2480805665254593, -0.5107947587966919, -0.08156811445951462, -0.2626722455024719, -0.5217538475990295, 0.544305682182312, -0.4511913061141968, -0.0576247833669185...
mainfunc (func){ this[func].apply(this, Array.prototype.slice.call(arguments, 1)); } ``` This will work outside of the browser (`this` defaults to the global space). The use of call on mainfunc would also work:- ``` function target(a) { alert(a) } var o = { suffix: " World", target: function(s) { a...
[ -0.3057699203491211, -0.2023417353630066, 0.5184532999992371, -0.36014026403427124, 0.08581627905368805, 0.02692187950015068, 0.23494471609592438, 0.1583499163389206, -0.08597730845212936, -0.5220344066619873, -0.5956714749336243, 0.6543248295783997, -0.7397851347923279, -0.063395135104656...
I'm having a hard time trying to record something other than linear PCM on the iPhone :-( The samples I've found (SDK's SpeakHere, Zdziarski's and Sadun's books and the one at trailsinthesand.com) all use linear PCM but I'd like a commonly used compressed format instead (no ima4 or whatever the name is...). I just can...
[ 0.11864031851291656, 0.2401372194290161, -0.01675327867269516, 0.2708841860294342, 0.09132270514965057, -0.0919543132185936, 0.14531667530536652, -0.12501734495162964, -0.18688316643238068, -0.4217554032802582, 0.007992541417479515, 0.38750144839286804, -0.17859184741973877, -0.11844435334...
AAC does exist, or???) **Edit/Update:** I stumbled upon the following text in Apple's "iPhone Application Programming Guide", 2009-01-06, page 137, section: Recording Audio: "You can record audio in any of the formats listed in “Preferred Audio Formats in iPhone OS” (page 140)", and as preferred audio formats on pa...
[ 0.21353602409362793, 0.5044144988059998, 0.2126501351594925, -0.3071444630622864, 0.17386068403720856, -0.3665214776992798, 0.13007384538650513, 0.018166663125157356, -0.2938537895679474, 0.16485299170017242, -0.023625874891877174, 0.8488699793815613, -0.2571522295475006, -0.22544661164283...
possible, but even preferable, to record audio in AAC format wrapped up in a m4a file, which is just what I want. But still, I am not able to achieve that?! Thanks, /John Keep looking at those docs. In "Core Audio Essentials", the section "Core Audio Plug-ins: Audio Units and Codecs" notes that: > iPhone OS contains ...
[ 0.18080654740333557, 0.3488675057888031, 0.1564960479736328, 0.14670521020889282, 0.44568365812301636, -0.11575546115636826, 0.23271092772483826, -0.14102527499198914, -0.1268240213394165, -0.3611704409122467, -0.32322072982788086, 0.8608825206756592, -0.15040552616119385, -0.1098425984382...
does not include the ones you're looking for. If you want those formats you'll have to bring your own encoder.
[ 0.46816641092300415, 0.2693571448326111, 0.08632659912109375, 0.5891817212104797, 0.2610597610473633, -0.25716328620910645, -0.46566644310951233, 0.157660111784935, -0.47179242968559265, -0.3141716718673706, 0.014344632625579834, 0.3711746037006378, -0.26356270909309387, -0.307477712631225...
Is it possible to find out runtime using t-sql if a type (e.g. nvarchar or int) is fixed-length or not by querying some system-table? The reason I need to do this is that I need to generate sql-code runtime and need to generate some declarations (`DECLARE @foo SOMETYPE(LENGTH)` or `DECLARE @foo SOMETYPE`) depending on...
[ 0.39055201411247253, 0.004744612146168947, 0.24678122997283936, -0.019844887778162956, 0.18150658905506134, -0.1635279506444931, 0.30840447545051575, -0.35492751002311707, -0.04578043892979622, -0.4729060232639313, 0.16914102435112, 0.6557797789573669, -0.2612721025943756, -0.0237956624478...
a character typed column has a max length it will be specified in character\_maximum\_length, numeric fields have their precision defined in numeric\_precision. A couple notes, to the best of my knowledge the int type is always 4 bytes, also, any of the var types are by definition not fixed length, and only store up to...
[ -0.2156892716884613, -0.2529604434967041, 0.5567496418952942, -0.08208364248275757, -0.11287090927362442, 0.3991994559764862, 0.12831582129001617, -0.12686994671821594, -0.3027544319629669, -0.3320665657520294, 0.027095472440123558, 0.39430078864097595, -0.2258806675672531, -0.055703055113...