text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
(perhaps through some sort of thunking layer)? No, you can't. > Both 16-bit and 32-bit Windows lived in a 32-bit linear address space. The terms 16 and 32 refer to the size of the offset relative to the selector. > > > ... > > > First, notice that a full-sized 16-bit pointer and a 32-bit flat pointer are the same ...
[ 0.025157146155834198, 0.1628970056772232, 0.17747826874256134, 0.19923074543476105, -0.22805875539779663, 0.10690910369157791, -0.1367187798023224, -0.11792781203985214, -0.2929040193557739, -0.6714805364608765, 0.007909993641078472, 0.46748441457748413, -0.09360001236200333, -0.0108552258...
observations holds true for 32-bit to 64-bit thunking. The size of the pointer has changed, which means that converting a 32-bit structure to a 64-bit structure and vice versa changes the size of the structure**. And the 64-bit address space is four billion times larger than the 32-bit address space. If there is some m...
[ 0.06104795262217522, 0.23232033848762512, 0.20099970698356628, 0.19895398616790771, 0.10909730195999146, 0.3944668769836426, 0.12843377888202667, -0.06323733925819397, -0.6580527424812317, -0.5228636264801025, 0.41866108775138855, 0.09818894416093826, -0.12573625147342682, 0.27321773767471...
We have a collection of photo images sizing a few hundred gigs. A large number of the photos are visually duplicates, but with differing filesizes, resolution, compression etc. Is it possible to use any specific image processing methods to search out and remove these duplicate images? I recently wanted to accomplish ...
[ 0.658726155757904, 0.15598730742931366, 0.3247603178024292, 0.20262441039085388, -0.01723884418606758, 0.025584179908037186, -0.17856371402740479, -0.2828163206577301, -0.14060558378696442, -0.5256036520004272, 0.42754724621772766, 0.34736379981040955, 0.0491853803396225, -0.08670434355735...
resizing the uploaded image to 150 pixels wide, reducing it to greyscale, rounding the value of each colour off to the nearest multiple of 16 (giving 17 possible shades of grey between 0 and 255), normalise them and store them in an array, thereby creating a "fuzzy" colour histogram, then creating an md5sum of the hist...
[ 0.2749086320400238, -0.18641367554664612, 0.6115704774856567, -0.17420342564582825, -0.23978586494922638, 0.6573956608772278, 0.2717277407646179, -0.396664023399353, -0.09324052929878235, -0.54050612449646, -0.11421065777540207, 0.37050166726112366, -0.2864459753036499, 0.10131951421499252...
to 16x16, and analysed them pixel by pixel and took the RGB value of each pixel away from the value of the corresponding pixel in the other image, adding all the values together and dividing by the number of pixels giving me an average colour deviation. Anything less than specific value was determined to be a duplicate...
[ 0.28847721219062805, 0.07215489447116852, 0.46609753370285034, -0.22342537343502045, -0.0439114086329937, 0.5329334139823914, -0.061685994267463684, -0.3072393536567688, -0.550467848777771, -0.33976033329963684, 0.20254108309745789, 0.3446280062198639, -0.44285961985588074, -0.030977232381...
I am working on a project that is replacing an old portal system (Plumtree) with sharepoint and we want to make the transition as smooth as possible. One thing we are look at currently is taking all the gadgets (Plumtree term for WebParts) and making sure they appear in the same place on the users new MySite. Plumtre...
[ 0.47008806467056274, -0.0908905491232872, 0.2653617262840271, 0.42973053455352783, 0.16356991231441498, 0.012163931503891945, 0.14365288615226746, 0.3007844090461731, -0.15333004295825958, -0.9090557098388672, 0.18744534254074097, 0.2351340651512146, -0.05240043252706528, 0.170718133449554...
hundreds of users. I'm told modifying Sharepoint tables in SQL Server directly is not a good option as it may affect our support arrangements, but if it saves doing this by hand then I would concider it. Other options that spring to mind are creating a equivalent table and using API calls to load the WebParts the fir...
[ 0.458306223154068, 0.31557127833366394, 0.4046068787574768, -0.03162452578544617, -0.03017120435833931, -0.05123119428753853, 0.17085665464401245, 0.2977428734302521, -0.5779862999916077, -0.443412721157074, 0.3165226876735687, 0.4320346713066101, -0.06611236929893494, 0.3986683785915375, ...
I want to call my .NET code from unmanaged C++. My process entrypoint is .NET based, so I don't have to worry about hosting the CLR. I know it can be done using COM wrappers for .NET objects, but I would like to access individual static methods of managed classes, so COM isn't my shortest/easiest route. Assuming you ar...
[ 0.40033093094825745, 0.18693877756595612, 0.2543555796146393, -0.0046499064192175865, -0.1472257524728775, -0.12185302376747131, -0.10448876023292542, 0.1707233339548111, -0.37385356426239014, -0.4997958838939667, -0.23835165798664093, 0.6759621500968933, -0.2758789658546448, 0.21979404985...
marking them with \_\_declspec(dllexport). Alternatively, if you have control over the invocation of the unmanaged code, you can marshal function-pointers to your .NET methods and pass them to the unmanaged code.
[ 0.475058376789093, -0.2755066156387329, 0.2330668419599533, 0.3426892161369324, 0.06112752854824066, -0.07167387753725052, 0.06670819222927094, -0.08769676834344864, -0.30022865533828735, -0.7194328904151917, -0.23417973518371582, 0.31055188179016113, -0.22645020484924316, 0.12314099818468...
I have an application, written in C++ using MFC and Stingray libraries. The application works with a wide variety of large data types, which are all currently serialized based on MFC Document/View serialize derived functionality. I have also added options for XML serialization based on the Stingray libraries, which imp...
[ 0.28255313634872437, 0.3094962537288666, 0.21740911900997162, 0.11756289005279541, -0.010274366475641727, -0.18121273815631866, 0.1429939866065979, -0.12490494549274445, -0.13188429176807404, -0.609118640422821, 0.024612102657556534, 0.47659626603126526, -0.18714196979999542, 0.31383761763...
hog, and I'm already dealing with large in memory data. Ideally, i'd like a streaming parser that is fast, and easy to use with MFC. My current front runner is [expat](http://expat.sourceforge.net/) which is fast and simple, but would require a lot of class by class serialization code to be added. Any other efficient a...
[ 0.2732456624507904, -0.11909148842096329, 0.42936238646507263, -0.06432346254587173, -0.08935008943080902, 0.013159424066543579, -0.36577966809272766, -0.22517035901546478, -0.3629775941371918, -0.5735940933227539, -0.1914023607969284, 0.6309499144554138, -0.5386529564857483, -0.2122921049...
MFC is support for XML. Note that you don't necessarily control the XML schema of this serialization. It uses its own schema.
[ 0.07804181426763535, 0.029314838349819183, 0.5586726665496826, 0.03503352031111717, 0.14586323499679565, -0.39507395029067993, -0.1299898773431778, -0.1198449581861496, -0.5301592946052551, -0.3046616315841675, -0.4348829686641693, 0.31691238284111023, -0.6373624801635742, 0.07696344703435...
I'm writing a tool to report information about .NET applications deployed across environments and regions within my client's systems. I'd like to read the values of assembly attributes in these assemblies. This can be achieved using `Assembly.ReflectionOnlyLoad`, however even this approach keeps the assembly loaded. ...
[ 0.5798187851905823, 0.22533534467220306, 0.0756421610713005, -0.017648901790380478, -0.08106531202793121, 0.017893750220537186, 0.12249132990837097, -0.22782573103904724, -0.36916568875312805, -0.7643227577209473, 0.11751435697078705, 0.48595520853996277, -0.3438796401023865, 0.22025187313...
then unload the `AppDomain`? This needs to work for assemblies on the file system as well as those at URL addresses. From the [MSDN documentation of System.Reflection.Assembly.ReflectionOnlyLoad (String)](http://msdn.microsoft.com/en-us/library/0et80c7k.aspx) : > The reflection-only context is no > different from ot...
[ 0.2213875651359558, 0.2748764157295227, 0.7164469361305237, -0.33156251907348633, -0.05511118471622467, 0.024311261251568794, 0.396587997674942, -0.49530234932899475, -0.37402820587158203, -0.4956287443637848, -0.4691392779350281, 0.5087628960609436, -0.7623004913330078, 0.2621386051177978...
Assembly.ReflectionOnlyLoad("YourAssembly"); // Do your stuff here } ```
[ 0.3901606798171997, 0.16059231758117676, 0.23645547032356262, -0.026285571977496147, 0.19695551693439484, -0.2794874310493469, 0.29864513874053955, 0.013135042041540146, -0.15278220176696777, -0.7913705706596375, -0.14453817903995514, 0.7557766437530518, -0.20322071015834808, -0.0936444699...
I have some numbers of different length (like 1, 999, 76492, so on) and I want to convert them all to strings with a common length (for example, if the length is 6, then those strings will be: '000001', '000999', '076492'). In other words, I need to add correct amount of leading zeros to the number. ``` int n = 999;...
[ 0.10138566046953201, 0.17578037083148956, 0.29997700452804565, -0.1913916915655136, -0.12694178521633148, 0.13014915585517883, 0.2642744779586792, -0.33028489351272583, -0.0632554292678833, -0.4446983337402344, -0.09118303656578064, 0.31756383180618286, -0.24552032351493835, 0.132937848567...
iostreams more. Besides, you can equally use this code on any other output stream.
[ 0.32485583424568176, -0.10193739086389542, 0.34394946694374084, 0.376432329416275, 0.04827384278178215, -0.14217999577522278, 0.07530926167964935, 0.356340229511261, -0.34603235125541687, -0.9724727272987366, -0.058066654950380325, 0.6997076869010925, -0.2550581097602844, -0.27299839258193...
I'm developing a Java application using Eclipse. My project has two source directories that are both built and then some files are copied into the output folder. From the output directory I then run my application and all works well. However, I keep having these warnings: [Snapshot from Problems tab in Eclipse http:/...
[ 0.4733904302120209, 0.338179349899292, -0.060171715915203094, -0.10631460696458817, -0.0004694036615546793, -0.3114093840122223, 0.3143945336341858, -0.0780004933476448, -0.3068828582763672, -0.575811505317688, 0.011130130849778652, 0.6294867992401123, -0.3195545971393585, 0.00493158772587...
path settings?
[ 0.3513072729110718, 0.0023965775035321712, 0.06282046437263489, 0.21789421141147614, 0.15620142221450806, 0.008243999443948269, 0.2707333266735077, 0.12252065539360046, -0.3371725380420685, -0.42332738637924194, 0.2515014708042145, 0.33425840735435486, -0.05403030663728714, -0.244899868965...
I have a List of strings that is regenerated every 5 seconds. I want to create a Context Menu and set its items dynamically using this list. The problem is that I don't have even a clue how to do that and manage the Click action for every item generated (which should use the same method with different parameter DoSomet...
[ -0.019757889211177826, -0.2947656810283661, 0.39884433150291443, -0.044340718537569046, 0.0272146537899971, -0.02689196541905403, 0.42091104388237, -0.061907023191452026, -0.3736923038959503, -0.6180840730667114, -0.21549749374389648, 0.6080207228660583, -0.5407174825668335, 0.226799741387...
DoSomething(e.ClickedItem.Text); } ``` Seems to work OK for me. Let me know if I misunderstood your question.
[ 0.12198937684297562, 0.22062082588672638, 0.3062513768672943, -0.11399918049573898, -0.058637551963329315, -0.352627158164978, 0.10707604140043259, 0.2293582409620285, 0.2107604295015335, -0.703427255153656, 0.2754096984863281, 0.7005963325500488, -0.2725922167301178, 0.29857391119003296, ...
With VS2005, I want to create a DLL and automatically export all symbols without adding `__declspec(dllexport)` everywhere, and without hand-creating `.def` files. Is there a way to do this? Short answer ------------ You can do it with help of the new version of the CMake (any version cmake-3.3.20150721-g9cd2f-win32-x...
[ 0.22260890901088715, -0.04163500294089317, 0.8309603929519653, 0.13413205742835999, -0.16531576216220856, -0.2918451726436615, 0.46241295337677, -0.27043500542640686, -0.19165027141571045, -0.7552505135536194, -0.19122900068759918, 0.7377702593803406, -0.23954111337661743, -0.2379842698574...
or Visual Studio. If you use other compilers like gcc on Linux or MinGW gcc compiler on Windows you don't have linking errors due to not exported symbols, because gcc compiler export all symbols in a dynamic library (dll) by default instead of MSVC or Intel windows compilers. In windows you have to explicitly export ...
[ 0.14812509715557098, -0.19011856615543365, 0.03921949863433838, 0.06956332176923752, -0.26146379113197327, -0.06965246051549911, 0.19133999943733215, -0.16728468239307404, -0.21109531819820404, -0.6446857452392578, -0.3124293088912964, 0.5299873352050781, -0.33618640899658203, -0.230738326...
definition. * Create a module definition (.def) file and use the .def file when building the DLL. --- *1. Use the keyword \_\_declspec(dllexport) in the class/function's definition* --- *1.1. Add "\_\_declspec(dllexport) / \_\_declspec(dllimport)" macros to a class or method you want to use. So if you want to expor...
[ 0.16937507688999176, -0.3253350257873535, 0.2648557722568512, -0.031546734273433685, 0.047522805631160736, 0.05695389583706856, 0.0237592663615942, -0.5271589756011963, -0.23253877460956573, -0.7599502205848694, -0.47506847977638245, 0.32240596413612366, -0.5068721771240234, -0.07011112570...
dll. Define "PROJECTLIBRARY\_EXPORTS" for the dll. Example of class export: ``` #include "ProjectExport.h" namespace hello { class PROJECTAPI Hello {} } ``` Example of function export: ``` #include "ProjectExport.h" PROJECTAPI void HelloWorld(); ``` *Caution:* don't forget to include "ProjectExport.h" f...
[ 0.12567733228206635, -0.261128306388855, 0.5399595499038696, -0.056934256106615067, -0.24340097606182098, -0.22239820659160614, 0.15464459359645844, -0.14301235973834991, -0.21171478927135468, -0.589279294013977, -0.49891141057014465, 0.5431216955184937, -0.40676069259643555, 0.21112783253...
the .def file when building the DLL* More info about this is provided by link: [Exporting from a DLL Using DEF Files](https://msdn.microsoft.com/en-us/library/d91k01sh.aspx) Further I describe three approach about how to create .def file. --- *2.1. Export C functions* In this case you could simple add function de...
[ 0.26300567388534546, -0.1122938022017479, 0.34652912616729736, -0.23014700412750244, -0.5414671897888184, -0.1845490038394928, 0.2641858458518982, -0.4270918369293213, -0.20610184967517853, -0.5481459498405457, -0.28030645847320557, 0.8041309714317322, -0.47191309928894043, -0.066483534872...
the .def file. I used this approach, but it's not very convinient to always create two builds (one as a static and the other as a dynamic library). However, I have to admit, this approach really works. --- *2.3. Export symbols from .obj files or with help of the CMake* --- *2.3.1. With CMake usage* *Important not...
[ 0.31199532747268677, -0.029021291062235832, 0.21116787195205688, -0.15258581936359406, -0.29636943340301514, -0.050746023654937744, 0.29544979333877563, -0.2575266361236572, -0.1926341950893402, -0.9307155609130859, -0.14370214939117432, 0.6870011687278748, -0.349044531583786, -0.352192640...
(cmake-gui)". * Compile the project. Example of usage: *Root folder* CMakeLists.txt (Root folder) ``` cmake_minimum_required(VERSION 2.6) project(cmake_export_all) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) set(dir ${CMAKE_CURRENT_SOURCE_DIR}) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${dir}/bin") set(SOURCE_EXE main.cp...
[ -0.13439878821372986, 0.3699377477169037, 0.8187220692634583, -0.20844435691833496, -0.03777763247489929, 0.05923772230744362, 0.07627955824136734, -0.3098379969596863, -0.26409363746643066, -0.7333206534385681, -0.3823024332523346, 0.30215442180633545, -0.4264797866344452, -0.003525645704...
create .obj files. 3) Based on "objects.txt" file information extract all symbols from .obj file. Example of usage: ``` DUMPBIN /SYMBOLS example.obj > log.txt ``` More info about this is provided by link: [/SYMBOLS](https://msdn.microsoft.com/en-us/library/b842y285.aspx) 4) Parse extracted from .obj file informa...
[ 0.03487890586256981, -0.010096109472215176, 0.3160848915576935, 0.20131805539131165, -0.09134580194950104, 0.034815266728401184, 0.24378778040409088, -0.09154048562049866, -0.29253488779067993, -0.8606992959976196, -0.20945945382118225, -0.03856929391622543, -0.3168174922466278, 0.19226516...
dll with usage of a .def created file. Steps 4)-5), that is parse .obj files and create a .def file before linking and using the .def file CMake does with help of "Pre-Link event". While "Pre-Link event" fires you could call any program you want. So in case of "CMake usage" "Pre-Link event" call the CMake with the fol...
[ 0.2107359915971756, -0.18730798363685608, 0.6832077503204346, 0.041624922305345535, -0.3966060280799866, -0.150253564119339, 0.2997981309890747, -0.6430687308311462, -0.2376701980829239, -0.7390719652175903, -0.3955231010913849, 0.8356580138206482, -0.27552852034568787, 0.1486731320619583,...
a project without "set(CMAKE\_WINDOWS\_EXPORT\_ALL\_SYMBOLS ON)" or with "set(CMAKE\_WINDOWS\_EXPORT\_ALL\_SYMBOLS OFF)" you will get linking errors, due to the fact that symbols are not exported from a dll. More info about this is provided by link: [Understanding Custom Build Steps and Build Events](https://msdn.mic...
[ 0.16274510324001312, 0.04141560196876526, -0.02201235294342041, 0.1189788356423378, -0.06382705271244049, -0.22246190905570984, 0.47016069293022156, -0.09346479922533035, -0.16791656613349915, -0.7991507053375244, -0.07277175039052963, 0.3511553406715393, -0.3918830156326294, 0.06624966859...
We have to train the client professionals on the source code for an application we developed. What shall I include in their training plan for source code? Any help would be really appreciated. regards 1.) If possible show them various changes/revisions the code has gone through, then that will help them to understand ...
[ 0.49541088938713074, 0.17980767786502838, 0.21053120493888855, 0.25722774863243103, 0.267885684967041, -0.008066452108323574, 0.050088245421648026, -0.3523526191711426, -0.2256077378988266, -0.5105225443840027, -0.2196754813194275, 0.902175784111023, 0.17951156198978424, -0.011287820525467...
document -AD
[ 0.08484155684709549, 0.4615177810192108, 0.3758004307746887, 0.05898614600300789, -0.39882636070251465, 0.11443286389112473, -0.4934127926826477, -0.5087364912033081, -0.0034970634151250124, -0.24766169488430023, -0.10297904908657074, 0.07567791640758514, -0.12223748117685318, 0.2054659426...
I have an `ActiveRecord` model, `Foo`, which has a `name` field. I'd like users to be able to search by name, but I'd like the search to ignore case and any accents. Thus, I'm also storing a `canonical_name` field against which to search: ``` class Foo validates_presence_of :name before_validate :set_canonical_na...
[ 0.13474451005458832, 0.17779606580734253, 0.6437413692474365, -0.08147786557674408, -0.179410919547081, 0.03476349636912346, 0.3357715904712677, -0.1244659274816513, -0.16641969978809357, -0.5323961973190308, -0.08370640128850937, 0.7012564539909363, -0.22711779177188873, 0.071000687777996...
I'm not on Ruby 1.9, I can't put those Unicode literals in my code. The actual regular expressions will look much uglier. Rails has already a builtin for normalizing, you just have to use this to normalize your string to form KD and then remove the other chars (i.e. accent marks) like this: ``` >> "àáâãäå".mb_chars.no...
[ 0.044153474271297455, 0.08057086914777756, 0.33466818928718567, -0.12919603288173676, -0.20507284998893738, 0.2271798551082611, 0.808415412902832, 0.2254650890827179, 0.035436078906059265, -0.6087964177131653, -0.1629021018743515, 0.41619154810905457, -0.4307931065559387, -0.12171860039234...
In regular Java, you can get the text of a stack trace by passing a PrintWriter to printStackTrace. I have a feeling I know the answer to this (i.e. "No") but, Is there any way to obtain the text of a stack trace in JavaME as a String? **Update:** I should mention that I'm restricted to CLDC 1.0 AFAIK there is no wa...
[ 0.004707790445536375, 0.021546320989727974, 0.2238607406616211, -0.2386419028043747, 0.034701935946941376, -0.40520521998405457, 0.3875560164451599, 0.0027970822993665934, -0.36317625641822815, -0.643936038017273, 0.008532200939953327, 0.41240355372428894, -0.3595728576183319, -0.224606871...
doesn't do this on `catch(Throwable)` and gives access to the stack trace through the device event log. What I've ended up doing is catching Throwable rather than Exception at the last possible moment and printing the stack trace from there. This of course has the danger that you're also catching `java.lang.Error` wh...
[ 0.2669699788093567, -0.026140129193663597, 0.008938935585319996, -0.0924466922879219, 0.11360631883144379, -0.3663530647754669, 0.4602571725845337, -0.07025589048862457, -0.6743487119674683, -0.6330009698867798, -0.15640637278556824, 0.40732815861701965, -0.32268115878105164, -0.0009234158...
hook up a debugger and it should appear on the console output, although it sounds like you're after getting stack traces 'in the field'.
[ 0.5604655742645264, 0.024987462908029556, 0.4578368365764618, 0.08555545657873154, 0.43875616788864136, -0.39398106932640076, -0.13700136542320251, -0.3228721618652344, -0.13482630252838135, -0.33331334590911865, -0.15559160709381104, 0.769343376159668, -0.10282894968986511, -0.36374640464...
Is there any way to display scrollabletext in loose xaml? The equivalent in HTML would be ``` <div style="overflow:scroll">some long bit of text here</div> ``` Can you do this in loose xaml? From my experiments so far it seems that in loose xaml: 1. You cannot use TextBox -- it must be TextBlock. 2. TextBlock do...
[ 0.28075265884399414, 0.12703250348567963, 0.4829876720905304, 0.09099157899618149, -0.326417475938797, -0.5486930012702942, 0.6317843198776245, -0.30002790689468384, -0.09166182577610016, -0.8141557574272156, -0.12662909924983978, 0.5324950218200684, -0.24788843095302582, -0.17997846007347...
as Network Service, your Kerberos SPNs should attached to the machine account. As a domain account, the SPN's need to be on that account. As to why IE 6 is different than IE 7, its most likely due to some of the Kerberos HotFixes that apply to CNames and ticket time outs. Search MS Support for "kerberos HotFix" To tu...
[ 0.21991291642189026, -0.31545332074165344, 0.8248066902160645, 0.29540514945983887, -0.09564032405614853, -0.21100744605064392, 0.4052387475967407, 0.1068885549902916, -0.4677285850048065, -0.739640474319458, -0.21511174738407135, 0.36551520228385925, -0.17538981139659882, 0.39751112461090...
I have a Makefile that starts by running a tool before applying the build rules (which this tool writes for me). If this tool, which is a python script, exits with a non-null status code, I want GNU Make to stop right there and not go on with building the program. Currently, I do something like this (top level, i.e. c...
[ 0.7547698020935059, 0.14817041158676147, 0.2056685984134674, -0.255354106426239, 0.04060561954975128, -0.23647147417068481, 0.2278827279806137, -0.1424509584903717, -0.027795102447271347, -0.4045780897140503, 0.13976766169071198, 0.7190782427787781, -0.4196200370788574, 0.20236758887767792...
I'm looking in the wrong direction. If at all possible, the solution should even work when a simple MS-DOS shell is the standard system shell. Any suggestion? Ok, here's my own solution, which is unfortunately not based on the status code of the collect\_sources.py script, but which Works For Me (TM) and lets me see ...
[ 0.05409014970064163, 0.07739398628473282, 0.2555501163005829, -0.1261337548494339, 0.12007233500480652, -0.08999679982662201, 0.41257813572883606, -0.22903867065906525, -0.10828305780887604, -0.5320814847946167, -0.024328963831067085, 0.9227731227874756, -0.46433141827583313, -0.2072180509...
error message containing the message `"[Errno 2]"` or similar. So this little piece of code just captures the output (redirecting stderr to stdout) and searches for error messages. If none is found, it simply uses `$(info)` to print the output, otherwise it uses `$(error)`, which effectively makes Make stop. Note that...
[ 0.30157649517059326, -0.04968179762363434, 0.12248144298791885, -0.22284537553787231, 0.09105566889047623, -0.16201834380626678, 0.4808807671070099, 0.04406358674168587, -0.0054148342460393906, -0.5532732009887695, -0.30036038160324097, 0.5570857524871826, -0.48986148834228516, 0.216090768...
Where can I find algorithms for image distortions? There are so much info of Blur and other classic algorithms but so little of more complex ones. In particular, I am interested in swirl effect image distortion algorithm. I can't find any references, but I can give a basic idea of how distortion effects work. The key ...
[ 0.019859153777360916, 0.17308317124843597, 0.5565757155418396, 0.27142825722694397, -0.2233278602361679, 0.41696515679359436, -0.13543769717216492, -0.24768158793449402, 0.11253621429204941, -0.881372332572937, 0.3868328630924225, 0.5373091697692871, -0.10636596381664276, 0.308395475149154...
distorted image, one loops over x and y, calculates the point (u,v) from (x,y) using the inverse distortion function, and sets the colour components at (x,y) to be the same as those at (u,v) in the original image. One ususally uses interpolation (e.g. <http://en.wikipedia.org/wiki/Bilinear_interpolation> ) to determine...
[ 0.4232524037361145, -0.19193439185619354, 0.4785442054271698, 0.09689000993967056, -0.3152312636375427, 0.27126723527908325, 0.051812607795000076, 0.03357850760221481, -0.06325618922710419, -0.6384140849113464, -0.09120608866214752, 0.27229151129722595, -0.3764398694038391, 0.6463235616683...
rotation b = size of effect angle = a*exp(-(x*x+y*y)/(b*b)) u = cos(angle)*x + sin(angle)*y v = -sin(angle)*x + cos(angle)*y ``` Here, I assume for simplicity that the centre of the swirl is at (0,0). The swirl can be put anywhere by subtracting the swirl position coordinates from x and y before the distortion funct...
[ 0.3064021170139313, -0.05301648750901222, 0.7023701667785645, -0.29521578550338745, -0.6366055607795715, -0.0018959351582452655, 0.2204573154449463, -0.33836597204208374, -0.15074214339256287, -0.527042031288147, 0.07773277163505554, -0.0026878351345658302, -0.15612666308879852, 0.52419352...
done by playing about with the angle= line, e.g. ``` angle = a*(x*x+y*y) ```
[ 0.1653188169002533, 0.07819560170173645, 0.08462820947170258, -0.314596951007843, -0.05402616411447525, -0.040308691561222076, -0.04017011821269989, -0.430263489484787, -0.01098643895238638, -0.6390831470489502, -0.10107090324163437, 0.5582257509231567, -0.03750064596533775, 0.077354393899...
I've implemented a set of draggable elements that can be dropped into some containers using jQuery. What I need is an animation that moves an element to a specific container without user interaction. The problem is that the elements and the drop containers are in completely **different parts of the DOM** and mostly pos...
[ 0.16006240248680115, -0.2107846438884735, 0.48373129963874817, 0.14967942237854004, 0.10355531424283981, 0.07428465783596039, -0.14217039942741394, -0.1101662665605545, -0.25783684849739075, -0.4103786051273346, 0.11117570847272873, 0.2250165194272995, -0.32052937150001526, 0.0935833007097...
IE or whatever"). Best would be something like this: ``` var distance = getDistance(element1, element2); ``` or in jQuery notation: ``` var distance = $(element1).distanceTo($(element2)); ``` I never used jQuery, just looked up API, so I can assume you can do the following: ``` var o1 = $(element1).offset(); va...
[ 0.24384033679962158, -0.07069996744394302, 0.31733542680740356, -0.05519014596939087, 0.07687436044216156, -0.0642809122800827, 0.049703408032655716, -0.3975600004196167, -0.006183356512337923, -0.5280876755714417, -0.19153152406215668, 0.7467429041862488, -0.16643589735031128, -0.28696498...
When printing RFC documents on my A4 format printer I noticed that I print more than it is considered to be one page in RFC document. I figure this is because probably RFC is written in North American paper letter format (216 × 279 mm) and I want to use ISO A4 format (210 × 297 mm). Info on [Paper size](http://en.wikip...
[ 0.49952471256256104, 0.33941349387168884, 0.3591434359550476, 0.07609321177005768, -0.4152684509754181, -0.03484276309609413, -0.06154361739754677, -0.3785528838634491, -0.3797866702079773, -0.6208340525627136, 0.09013955295085907, 0.13793830573558807, -0.3945099115371704, 0.16914908587932...
space at the bottom but at least there will just be one text page per A4 paper page. I tried changing paper size on printer from A4 to letter, but it didn't help. The RFC documents contain page breaks and such in the form of line printer control codes. Just printing a plain text rfc out of vi / notepad / word / whateve...
[ 0.20031613111495972, 0.18541568517684937, 0.49459704756736755, 0.3156435787677765, -0.23195718228816986, 0.12388075888156891, 0.08729583024978638, -0.08184884488582611, -0.38607725501060486, -0.7559040784835815, -0.09905066341161728, 0.18512505292892456, -0.12189248949289322, 0.14187602698...
printer dialogues "shrink to fit" feature should handle it. Oh and shop around, some PDFs are much nicer than others... You could find PDF format here <http://tools.ietf.org/pdf/>, for RFC 1928, it's <http://tools.ietf.org/pdf/rfc1928.pdf> .
[ -0.0005028852610848844, -0.004177481401711702, 0.7607683539390564, 0.13792386651039124, -0.33422842621803284, -0.10274872183799744, -0.6013820171356201, -0.18729040026664734, -0.6337574124336243, -0.5139827132225037, 0.09298060834407806, 0.5014663338661194, -0.4534482955932617, 0.072959870...
Can `Thread.getContextClassLoader()` be null ? The javadoc is not really clear. Should a library take this case into account ? Update: the reason I asked is that `beansbinding.dev.java.net` does *not* work in this case (and my code does `setContextClassLoader(null)` Java threads created from JNI code in a non-java ...
[ 0.15943829715251923, -0.08732075244188309, -0.01669332943856716, -0.2609208822250366, 0.15932880342006683, -0.38681846857070923, 0.41471031308174133, 0.06516958773136139, -0.4331000745296478, -0.5991182923316956, -0.03025767393410206, 0.2853139638900757, -0.5358101725578308, 0.325437247753...
Is there any plans for Microsoft to support LINQ to SQL beyond MS SQL server? Microsoft has no plans to extend LINQ to SQL beyond SQL Server and it wouldn't make much sense to do so. The majority of code in LINQ to SQL is in the implementation of the SQL Provider. Microsoft offers Entity Framework as its cross-databas...
[ 0.20294557511806488, 0.2583446204662323, 0.5846940875053406, 0.21024052798748016, 0.26837316155433655, -0.209882915019989, -0.1751002073287964, -0.1145019605755806, -0.17837996780872345, -0.19141389429569244, -0.1206173300743103, 0.25716066360473633, -0.27381467819213867, -0.11218781024217...
Anyone know of a JS library that will allow me to syntax highlight a code block, then highlight line-level diffs? For example, in a subversion diff, I'd like to highlight the characters on the line that have changed (as well as highlighting the fact that there are change(s) on the line). Edit: I'm after something that...
[ 0.18837906420230865, -0.16378794610500336, 0.05862855166196823, 0.017813274636864662, -0.2238883525133133, 0.02317843772470951, 0.13434503972530365, 0.13871139287948608, -0.13517646491527557, -0.6162948608398438, -0.2263779640197754, 0.3856489360332489, -0.2908017635345459, -0.148046121001...
at that yet. Microsoft has no plans to extend LINQ to SQL beyond SQL Server and it wouldn't make much sense to do so. The majority of code in LINQ to SQL is in the implementation of the SQL Provider. Microsoft offers Entity Framework as its cross-database-platform ORM solution and other ORM solutions are implementing ...
[ 0.13266503810882568, 0.24706390500068665, 0.6866000294685364, 0.19298312067985535, 0.23557721078395844, -0.25150495767593384, -0.19463694095611572, -0.1267547607421875, -0.1198311597108841, -0.22203169763088226, -0.11107076704502106, 0.31430524587631226, -0.11939772963523865, -0.1256086230...
This is a slightly.. vain question, but BuildBot's output isn't particularly nice to look at.. For example, compared to.. * [phpUnderControl](http://phpundercontrol.org/about.html) * [Jenkins](http://jenkins-ci.org/content/about-jenkins-ci) + [Hudson](http://blogs.oracle.com/arungupta/entry/top_10_features_of_hudson...
[ -0.1244829073548317, -0.2769056558609009, 0.1344747245311737, -0.19878697395324707, -0.030874721705913544, -0.04538152366876602, -0.21177156269550323, 0.12279658764600754, -0.3890063762664795, -0.2300904393196106, 0.02419581077992916, 0.6722882986068726, -0.29380762577056885, -0.1015018373...
standard package on Ubuntu/Debian, RedHat/Fedora/CentOS, and others. The following update is still essentially correct. The starting point to do this with [Jenkins](http://jenkins-ci.org) is different. ***Update:*** After trying a few alternatives, I think I'll stick with Hudson. [Integrity](http://integrityapp.com/) ...
[ 0.18763044476509094, -0.06416827440261841, -0.26312461495399475, -0.4110325872898102, -0.18782423436641693, -0.15660417079925537, 0.2436084896326065, -0.13041390478610992, -0.04660695791244507, -0.6340407133102417, 0.21719561517238617, 0.8073745965957642, -0.4827847480773926, -0.2528093159...
click "Update" or similar * Install the Git plugin (I had to set the `git` path in the Hudson global preferences) * Create a new project, enter the repository, SCM polling intervals and so on * Install `nosetests` via `easy_install` if it's not already * In the a build step, add `nosetests --with-xunit --verbose` * Che...
[ 0.30825555324554443, -0.016486622393131256, 0.404234379529953, -0.042960502207279205, -0.1223207339644432, -0.20925062894821167, 0.14576849341392517, -0.20878669619560242, 0.08224769681692123, -0.8727089166641235, 0.20409853756427765, 0.6274797320365906, -0.04960421472787857, -0.3275215029...
install [sloccount](http://www.dwheeler.com/sloccount/) separately * [Violations](http://wiki.hudson-ci.org/display/HUDSON/Violations) to parse the PyLint output (you can setup warning thresholds, graph the number of violations over each build) * [Cobertura](http://wiki.hudson-ci.org/display/HUDSON/Cobertura+Plugin) ca...
[ 0.39994287490844727, -0.05130826681852341, 0.3422302305698395, -0.000496099644806236, 0.1358698010444641, -0.1734648048877716, 0.16704058647155762, -0.5212637186050415, -0.11072669178247452, -0.7983372211456299, -0.0066828359849750996, 0.7546278834342957, -0.07943490147590637, -0.154910236...
capture the output of pylint using the [violations plugin for Jenkins](https://wiki.jenkins-ci.org/display/JENKINS/Violations)
[ -0.03748898580670357, -0.38983163237571716, 0.14515480399131775, 0.18149973452091217, 0.09913387894630432, -0.014791031368076801, 0.06389891356229782, -0.4216786026954651, -0.45130717754364014, -0.505411684513092, -0.5000271797180176, 0.1172071322798729, -0.6038302779197693, 0.077004104852...
I'm trying to get this piece of code working a little better. I suspect it's the loop reading one byte at a time. I couldn't find another way of doing this with gzip decompression. Implementing a `StreamReader` is fine, but it returns a string which I can't pass to the decompression stream. Is there a better way? ```...
[ 0.048350099474191666, -0.007862061262130737, 0.3594285845756531, -0.16584327816963196, -0.18606407940387726, -0.08481688797473907, 0.8147004246711731, -0.3770807683467865, -0.1476682722568512, -0.7944185137748718, -0.450456440448761, 0.4001239836215973, -0.6513882875442505, 0.2022967785596...
webRequest.Accept = "text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1"; webRequest.Credentials = CredentialCache.DefaultCredentials; webRequest.Referer = resourceUri.OriginalString; webRequest.Timeout = 5000; webResponse = (HttpWebRes...
[ -0.2024911642074585, -0.08091913163661957, 0.948988676071167, 0.07723937183618546, 0.01805444434285164, -0.14498233795166016, 0.46534642577171326, -0.5692013502120972, -0.15466484427452087, -0.8635032176971436, -0.40737384557724, 0.5197696089744568, -0.3392111659049988, 0.11636316776275635...
webStream = new DeflateStream(webStream, CompressionMode.Decompress); } } do { byteValue = webStream.ReadByte(); if (byteValue != -1) { resourceBytes.Add((byte)byteValue); } } while (byteValue != -1); //Free up resources webStream.Close(); webRespo...
[ -0.06341143697500229, -0.1556270718574524, 0.7218486666679382, -0.15936630964279175, 0.04700378328561783, -0.22359196841716766, 0.27150869369506836, -0.1312231719493866, -0.2958329916000366, -0.6325328946113586, -0.3825472295284271, 0.5671181082725525, -0.28274208307266235, 0.1496740132570...
would be far simpler, in particular WebClient.DownloadData. re the actual question, the problem is that you are reading single bytes, when you should probably have a fixed buffer, and loop - i.e. ``` int bytesRead; byte[] buffer = new byte[1024]; while((bytesRead = webStream.Read(buffer, 0, buffer.Length)) > 0) { /...
[ 0.10866223275661469, -0.1196528747677803, 0.2078624963760376, 0.26912257075309753, -0.16603940725326538, -0.09266792237758636, 0.157079815864563, -0.05569136515259743, -0.4368053674697876, -0.5757494568824768, -0.19628779590129852, 0.32745638489723206, -0.20654058456420898, 0.1303308606147...
Using the client-side ASP.NET AJAX library, I have created an instance of a client component with the $create shortcut-method (<http://msdn.microsoft.com/da-dk/library/bb397487(en-us).aspx>). The object is attached to a DOM element. Now I need to get a reference to the instance, but it is neither registered on window o...
[ 0.1893557608127594, 0.07804349064826965, 0.06466935575008392, 0.15434150397777557, 0.16351178288459778, -0.2644742429256439, 0.2699040472507477, -0.08125653117895126, -0.19555017352104187, -0.7652427554130554, 0.054029226303100586, 0.5548396110534668, -0.2598087191581726, 0.208810672163963...
I have a CompositeControl that contains a DropDownList. I have set the AutoPostBack property of the DropDownList to true. On the page, I have: ``` <asp:UpdatePanel ID="UpdatePanel" runat="server"> <ContentTemplate> <MyControl:Control ID="CustomControl" runat="server" /> </ContentTemplate> </asp:Updat...
[ 0.13392116129398346, 0.15250273048877716, 0.5421605706214905, -0.12660683691501617, 0.03543384000658989, 0.6214358806610107, 0.21817409992218018, -0.11819815635681152, -0.32230085134506226, -0.7432097792625427, 0.1534162163734436, 0.36610037088394165, -0.061243556439876556, -0.340838164091...
EventHandler(country_SelectedIndexChanged); protected void country_SelectedIndexChanged(Object sender, EventArgs e) { states.DataSource = XXX; states.DataBind(); } ``` Ok so this may not be the best answer, but I think the problem you're having it that the UpdatePanel just can't see the child control's event....
[ -0.027952149510383606, -0.3206457793712616, 0.1348213106393814, 0.16316670179367065, 0.22074945271015167, -0.14946115016937256, 0.20133142173290253, 0.10920311510562897, -0.298692524433136, -0.3751644194126129, -0.23472726345062256, 0.2621106207370758, -0.26497748494148254, 0.2358368039131...
really do that. So let's change that: ``` public partial class CatchMyEvent : System.Web.UI.UserControl { public delegate void ChangedIndex(object sender, EventArgs e); public event ChangedIndex SelectedIndexChanged; protected override void OnInit(EventArgs e) { base.OnInit(e); dropDow...
[ 0.26773473620414734, -0.6502779722213745, 0.41309335827827454, 0.10167044401168823, 0.1684354841709137, 0.06721141189336777, 0.3975677788257599, -0.17063042521476746, -0.32565635442733765, -0.5306781530380249, -0.3544243574142456, 0.53285151720047, -0.32532745599746704, 0.3831057548522949,...
if(SelectedIndexChanged != null) { SelectedIndexChanged(sender, e); } } } ``` Basically all I did is have the control capture the DropDownList's SelectedIndexChanged event and fired it so that any parent page or control could see it. Essentially all I've done is passed it on. Now on th...
[ -0.057615671306848526, -0.5764409899711609, 0.35839226841926575, 0.14409412443637848, 0.14450132846832275, -0.06819906830787659, 0.020789461210370064, -0.17409192025661469, -0.22068433463573456, -0.12540282309055328, -0.15021374821662903, 0.4338395893573761, -0.4263309836387634, 0.06976951...
this to the code behind for the parent page: ``` protected override void OnInit(EventArgs e) { base.OnInit(e); catchMyEventMain.SelectedIndexChanged += dropDownListThrow_SelectedIndexChanged; } public void dropDownListThrow_SelectedIndexChanged(object sender, EventArgs e) { labelSelectedValue.Text...
[ 0.17427493631839752, -0.3153570890426636, 0.3655121326446533, 0.11498984694480896, 0.18018409609794617, -0.3483072519302368, 0.6000259518623352, -0.29229098558425903, 0.004549942910671234, -0.6654112339019775, -0.37363436818122864, 0.789548933506012, 0.017596635967493057, 0.072428107261657...
I have a page (page1.html) which references a css file (style1.css) All is good. I need Page1.html to additionally reference Style2.css However when I add the reference, some stuff on Page1.html screws up. How can I determine what it is about Style2.css that is causing this problem? Some diff Tool? Some Process? [Fi...
[ 0.4477236866950989, 0.09717337042093277, 0.5189504623413086, -0.01679561473429203, -0.2522660791873932, -0.3165225684642792, 0.501325786113739, -0.28764256834983826, -0.287344753742218, -0.8496406674385071, -0.0114058842882514, 0.428212434053421, -0.37153753638267517, -0.029117893427610397...
I believe I'm getting bitten by some combination of nested scoping rules and list comprehensions. [Jeremy Hylton's blog post](http://www.python.org/~jeremy/weblog/040204.html) is suggestive about the causes, but I don't really understand CPython's implementation well-enough to figure out how to get around this. Here ...
[ 0.3691643476486206, 0.17835384607315063, 0.05699353292584419, 0.0322168730199337, -0.04127325490117073, -0.09881504625082016, 0.4884464740753174, -0.03901180252432823, -0.47321146726608276, -0.562342643737793, 0.12309198081493378, 0.3868221938610077, -0.3688186705112457, 0.1827198565006256...
the function is running the correct number of times, but the list comprehensions end up with the *final* value instead of the result of each loop. Some hypotheses: * generators? * lazy filling of list comprehensions? **code** ``` import itertools def digit(n): digit_list = [ (x,False) for x in xrange(1,n+1)] ...
[ -0.109337218105793, -0.3401685953140259, 0.40508195757865906, -0.09622160345315933, -0.09196469932794571, 0.29305577278137207, 0.5520071387290955, -0.4043009281158447, -0.3283269703388214, -0.75214022397995, -0.04525173082947731, 1.0500649213790894, -0.3999123275279999, -0.2531087100505829...
ii in range(2) ] self.totalcount=0 self.display = [0,] * 2 def next(self): self.totalcount += 1 self.display[-1] = self.counter[-1].next()[0] print self.totalcount, self.display return self.display def next2(self,*args): self._cycle(1) self.total...
[ -0.030203159898519516, -0.23063305020332336, 0.630803108215332, -0.5300226211547852, -0.22618725895881653, 0.3117808401584625, 0.33601078391075134, -0.6907566785812378, -0.3016411364078522, -0.7161691188812256, -0.06488999724388123, 0.5660525560379028, -0.30407997965812683, -0.109551191329...
self.totalcount, self.display return self.display def _cycle(self,digit): d,first = self.counter[digit].next() #print digit, d, first #print self._display self.display[digit] = d if first and digit > 0: self._cycle(digit-1) C = counter() [C.next() for x ...
[ 0.001495854463428259, -0.10236117988824844, 0.6721842288970947, -0.4816616475582123, -0.1374051868915558, 0.5757262706756592, 0.2345529943704605, -0.564611554145813, -0.3591293394565582, -0.6121845245361328, 0.06357969343662262, 0.7982309460639954, -0.07359521090984344, -0.0252682268619537...
2] 3 [0, 3] 4 [0, 4] 5 [0, 1] 6 [0, 2] Out[44]: [[0, 2], [0, 2], [0, 2], [0, 2], [0, 2], [0, 2]] In [45]: [C.next2() for x in range(6)] 7 [0, 3] 8 [0, 4] 9 [1, 1] 10 [1, 2] 11 [1, 3] 12 [1, 4] Out[45]: [[1, 4], [1, 4], [1, 4], [1, 4], [1, 4], [1, 4]] # this should be: [[0,3],[0,4]....[1,4]] or similar ``` The probl...
[ 0.24409382045269012, 0.34304359555244446, 0.486408531665802, -0.150403693318367, 0.18229474127292633, 0.3188009262084961, 0.2703925371170044, -0.6597963571548462, -0.12138006091117859, -0.4065721035003662, -0.010800953023135662, 0.5128743648529053, -0.4193982779979706, 0.15220025181770325,...
b = [a,a] >>> b [[1, 2], [1, 2]] >>> a.append(3) >>> b [[1, 2, 3], [1, 2, 3]] ``` You probably want to use something like `return self.display[:]`.
[ -0.05666770786046982, 0.20261400938034058, 0.15859873592853546, -0.8081433176994324, -0.41037115454673767, 0.409355491399765, 0.4030356705188751, -0.3914145529270172, 0.2058829665184021, -0.5700904726982117, -0.09468857944011688, 0.5321004986763, -0.7455151677131653, -0.10559047758579254, ...
Given a FieldInfo object and an object, I need to get the actual bytes representation of the field. I know that the field is either `int,Int32,uint,short` etc. How can I get the actual byte representation? BinaryFormatter.Serialize won't help, since it'll give me more information than I need (it also records type name...
[ 0.16315104067325592, 0.021449029445648193, 0.14983338117599487, 0.09267770498991013, -0.05555744096636772, -0.28424930572509766, 0.11176441609859467, -0.42877569794654846, -0.2508438527584076, -0.504321813583374, 0.02699328027665615, 0.5331252813339233, -0.27936720848083496, 0.084996253252...
GCHandleType.Pinned); Marshal.StructureToPtr(value, handle.AddrOfPinnedObject(), false); handle.Free(); ``` This converts the given object *value* to the byte array rawdata. I've taken this from code I previously wrote, and you may need to adapt it to your needs to make it actually work. I used it for communication w...
[ 0.1514991819858551, 0.056309774518013, 0.507892906665802, -0.29572877287864685, -0.1946500688791275, -0.2021200805902481, 0.33565494418144226, -0.6393685340881348, -0.20082759857177734, -0.5810677409172058, 0.022822216153144836, 0.503049910068512, -0.5422702431678772, -0.09993215650320053,...
from the byte array is something like this: ``` public T GetValue<T>() { GCHandle handle = GCHandle.Alloc(RawValue, GCHandleType.Pinned); T structure = (T)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(T)); handle.Free(); return structure; } ``` Of course you'll nee...
[ 0.23531298339366913, -0.04841720312833786, 0.16926279664039612, -0.24151915311813354, -0.13099093735218048, -0.21397852897644043, 0.23930037021636963, -0.3296207785606384, -0.19353879988193512, -0.542888343334198, -0.08229115605354309, 0.47481146454811096, -0.468883216381073, 0.26013696193...
just made the fields private and added public properties that would take care of the endianness ([Jon Skeet's link](http://pobox.com/~skeet/csharp/miscutil) from a comment to his answer may help you, I wrote some utility functions for this since I needed only few). When I needed this, I created a Message class that wo...
[ 0.44927236437797546, -0.246492400765419, -0.05163424089550972, 0.24025213718414307, -0.2684820294380188, -0.3238474130630493, 0.2336554229259491, -0.02298724837601185, -0.14069654047489166, -0.1842561513185501, -0.05611337348818779, 0.5077990293502808, -0.21925681829452515, -0.130567118525...
Is there a way to set the StartPosition of a Windows Forms form using code? It seems whatever I try results in the StartPostion being the default. Here is what I am doing in the form to display: ``` public DealsForm() { InitializeComponent(); this.StartPosition = FormStartPosition.CenterParent...
[ 0.08115363121032715, -0.004724352620542049, 1.018014669418335, -0.3681793510913849, 0.013691379688680172, -0.36291220784187317, 0.013011704199016094, -0.5095663070678711, -0.3794059753417969, -0.8021565675735474, -0.27235543727874756, 0.5436333417892456, -0.2001194953918457, 0.004954489413...
new DealsForm(); frm.DataSource = this.Deals; frm.Show(this); } ``` I have tried putting the following in each of the above methods, to no avail: ``` this.StartPosition = FormStartPosition.CenterParent; ``` If I set it via the Property Editor ... it works perfectly, but I would **really** lik...
[ 0.3732821047306061, 0.10989457368850708, 1.046478271484375, -0.34022533893585205, 0.018981771543622017, -0.5336894989013672, 0.06798217445611954, -0.601579487323761, -0.207103431224823, -0.7826634049415588, -0.18376266956329346, 0.6594634056091309, -0.26106199622154236, 0.18385398387908936...
want to show it as a Dialog. > If I do a ShowDialog() and pass the > parent it works ... but I really don't > want to show it as a Dialog. That is correct since ShowDialog would set frm.Parent == nvShowDeals.Parent Since you are using .Show() then frm.Parent == null thus FormStartPosition.CenterParent is ignored. ...
[ 0.06065713241696358, -0.07494736462831497, 0.9622440934181213, -0.3922399878501892, -0.08201335370540619, -0.2064409703016281, -0.027402007952332497, -0.5423226356506348, -0.26487040519714355, -0.7508763074874878, -0.1231670156121254, 0.37497666478157043, -0.46848490834236145, 0.1112193390...
e) { DealsForm frm = new DealsForm(); frm.DataSource = this.Deals; frm.StartPosition = FormStartPosition.Manual; //NEW CODE frm.Show(this); } ```
[ 0.11723192781209946, 0.04852684587240219, 1.073639154434204, -0.25341880321502686, 0.14102932810783386, -0.3024338185787201, 0.04916607588529587, -0.8377231955528259, -0.5083991885185242, -0.6457363963127136, -0.6044063568115234, 0.7442114353179932, -0.2393685132265091, 0.06906258314847946...
For a web app I'm working on, I need to know the lat/lon of about 300 US cities. I also need to know the lat/lon for every US zip code. Does anyone know of a free source to get this information? [Freebase](http://freebase.com) will likely be able to help you. [Here is New York](http://www.freebase.com/view/guid/9202a8...
[ 0.9435203671455383, -0.24823935329914093, 0.4212547540664673, 0.38382986187934875, 0.30153337121009827, -0.2975139319896698, -0.1437058001756668, 0.36773988604545593, -0.4212862253189087, -0.6845529079437256, 0.08049486577510834, 0.0011496690567582846, -0.4395264685153961, 0.00032858559279...
Since a lot of email clients ignore the HEAD tag, can I embed an inline stylesheet in the body? The short answer is no. Gmail strips the tag and it's content. Hotmail, Yahoo! Mail and Windows Live Mail does not strip style-tags in the body-element. But take a look at ["The Ultimate Guide to CSS" for HTML email](http:...
[ 0.8422725200653076, 0.04647522419691086, 0.4584248960018158, 0.07904443144798279, -0.37097087502479553, -0.1680510938167572, 0.1910584270954132, -0.17248842120170593, -0.00987259205430746, -0.609741747379303, 0.18915300071239471, 0.3840605616569519, -0.2801925241947174, -0.4637230634689331...
I have to add a coupon table to my db. There are 3 types of coupons : percentage, amount or 2 for 1. So far I've come up with a coupon table that contains these 3 fields. If there's a percentage value not set to null then it's this kind of coupon. I feel it's not the proper way to do it. Should I create a CouponType ...
[ 0.7213255763053894, 0.0403967946767807, 0.07109794020652771, 0.2317943423986435, -0.2852505147457123, 0.43944820761680603, -0.4004287123680115, -0.31871652603149414, -0.057754576206207275, -0.6713717579841614, 0.5273230671882629, 0.41547828912734985, -0.2708060145378113, 0.1483259052038192...
CouponTypeId inside the Coupons table. So for an example, you'll have a Coupon record called "50% off", if would reference the percent off CouponType record and from there you could determine the logic to take 50% off the cost of the item. So now you can create unlimited coupons, if it's a dollar amount coupon type i...
[ 0.5197758674621582, -0.03364068269729614, 0.33522358536720276, 0.2468411773443222, 0.04458329826593399, 0.09967286884784698, -0.5095415711402893, 0.010133783333003521, -0.32534486055374146, -0.5628019571304321, 0.25617921352386475, 0.7115688323974609, -0.028076542541384697, 0.2418708354234...
- name - coupon_type_id # (or whatever fits your style guidelines) - amount # Example: 10.00 (treated as $10 off for amount type, treated as # 10% for percent type or 10 for 1 with the final type) - expiration_date - Table CouponTypes - ID - type # (amount, percent, <whatever you decided to cal...
[ 0.3775039315223694, 0.006567772943526506, 0.5239477753639221, -0.16073200106620789, 0.08714522421360016, 0.04298192262649536, -0.25992441177368164, -0.21088407933712006, -0.09171351045370102, -0.3425602912902832, -0.044189050793647766, 0.39760592579841614, -0.0954957976937294, 0.1800968945...
I'm trying to track down an issue in our system and the following code worries me. The following occurs in our doPost() method in the primary servlet (names have been changed to protect the guilty): ``` ... if(Single.getInstance().firstTime()){ doPreperations(); } normalResponse(); ... ``` The singleton 'Single' ...
[ 0.2827909588813782, -0.275913804769516, 0.3877962529659271, 0.04477844014763832, -0.14321577548980713, -0.052994146943092346, 0.3139646053314209, -0.40220892429351807, -0.26137715578079224, -0.5310419797897339, -0.2313421219587326, 0.585231363773346, -0.611947238445282, 0.23053914308547974...
1.4 I found this on Sun's site: > ### Multiple Singletons Simultaneously Loaded by Different Class Loaders > > > When two class loaders load a class, > you actually have two copies of the > class, and each one can have its own > Singleton instance. That is > particularly relevant in servlets > running in certa...
[ 0.18213911354541779, -0.396303653717041, 0.020866475999355316, -0.02159019559621811, -0.2740546464920044, 0.11710162460803986, -0.0758558139204979, -0.26237085461616516, -0.35627827048301697, -0.873879611492157, -0.1624671369791031, 0.21259500086307526, -0.5901650190353394, 0.2234962433576...
you might think. When > browsers load classes from the network > for use by applets, they use a > separate class loader for each server > address. Similarly, Jini and RMI > systems may use a separate class > loader for the different code bases > from which they download class files. > If your own system uses cu...
[ -0.11542779207229614, -0.11964824050664902, -0.19194857776165009, 0.14272050559520721, -0.18443402647972107, 0.06891407072544098, 0.11177068948745728, -0.06157739460468292, -0.2807401418685913, -0.8837870955467224, -0.21878299117088318, 0.3228572905063629, -0.40699681639671326, 0.288074016...
fact, they are > byte-for-byte the same class. The > different class loaders represent > different namespaces that distinguish > classes (even though the classes' > names are the same), so that the two > `MySingleton` classes are in fact > distinct. (See "Class Loaders as a > Namespace Mechanism" in Resources.)...
[ 0.2729977071285248, -0.15348128974437714, -0.12867362797260284, 0.29245856404304504, 0.059401366859674454, -0.09414982795715332, 0.013948274776339531, 0.03544106334447861, -0.47988030314445496, -0.7287245988845825, -0.16357973217964172, 0.4112870991230011, -0.36971333622932434, 0.231832966...
there as well.
[ 0.1204327866435051, 0.2349998950958252, -0.10779795795679092, 0.11836620420217514, 0.01095141377300024, 0.10810359567403793, -0.010427875444293022, 0.11660634726285934, -0.34042221307754517, -0.06037481501698494, 0.12077019363641739, 0.2868293523788452, 0.2231387495994568, 0.01761443354189...
I can see people asking all the time whether multiple inheritance should be included into the next version of C# or Java. C++ folks, who are fortunate enough to have this ability, say that this is like giving someone a rope to eventually hang themselves. What’s the matter with multiple inheritance? Are there any conc...
[ 0.44271326065063477, -0.2392560988664627, -0.23496055603027344, 0.2690008580684662, -0.2924478054046631, -0.24243512749671936, -0.11682049930095673, -0.32733675837516785, -0.42059221863746643, -0.2506479024887085, 0.12767687439918518, 0.556025505065918, -0.6137462854385376, 0.2972220182418...
seed this code... ``` C c = new C(); c.doSomething(); ``` ...which implementation of the method should it use? Without any further clarification, it's impossible for the compiler to resolve the ambiguity. Besides overriding, the other big problem with multiple inheritance is the layout of the physical objects in me...
[ 0.16870816051959991, 0.1039440706372261, -0.038107648491859436, 0.04593215882778168, 0.3292997479438782, 0.09720667451620102, -0.18336844444274902, -0.5257477164268494, -0.06900085508823395, -0.39672982692718506, 0.27056872844696045, 0.501767635345459, -0.3629103899002075, 0.19113063812255...
byte function pointer class B: at offset 0 ... "foo" ... 2 byte short field at offset 2 ... 2 bytes of alignment padding at offset 4 ... "bar" ... 4 byte array pointer at offset 8 ... "baz" ... 4 byte function pointer ``` When the compiler generates machine code (or bytecode), it uses those numeric o...
[ 0.02451467700302601, 0.3098689317703247, 0.14434662461280823, -0.274239718914032, -0.14541774988174438, 0.39782723784446716, -0.01728234998881817, -0.4910140335559845, -0.01830344647169113, -0.44381648302078247, -0.2551528811454773, 0.45581260323524475, -0.47786641120910645, 0.076545774936...
in `BA` order. But now imagine that you're calling methods on a `B` object. Is it really just a `B`? Or is it actually a `C` object being called polymorphically, through its `B` interface? Depending on the actual identity of the object, the physical layout will be different, and its impossible to know the offset of th...
[ 0.46160316467285156, 0.2641492784023285, -0.06233619526028633, -0.0029405278619378805, -0.11678823828697205, 0.12975573539733887, 0.1893775463104248, -0.31803545355796814, -0.3002208173274994, -0.2387756109237671, -0.22950756549835205, 0.5352243781089783, -0.6430597305297852, 0.26521199941...