text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
a z-index if you are floating a div over)
3. A box element
Then a script that looks for these items and just add an iframe layer would be a neat solution
Paul | [
0.15256161987781525,
-0.0667610689997673,
0.23597832024097443,
0.2370932549238205,
-0.033004555851221085,
-0.17165908217430115,
0.0953577384352684,
-0.24561657011508942,
0.10302726924419403,
-0.7630002498626709,
0.018236707895994186,
0.32271942496299744,
-0.3607834279537201,
0.031330376863... | |
I'm working on bringing some old code from 1998 up to the 21st century. One of the first steps in the process is converting the printf statements to [QString](http://qt-project.org/doc/qt-4.8/qstring.html) variables. No matter how many times I look back at printf though, I always end up forgetting one thing or the othe... | [
0.1048157587647438,
0.31858178973197937,
0.45751887559890747,
0.000950017711147666,
0.10504107922315598,
-0.022776290774345398,
0.006846930366009474,
-0.05317433923482895,
-0.3240858316421509,
-0.6384570002555847,
0.04601587355136871,
0.44357237219810486,
-0.3641946315765381,
0.16865821182... | |
formatted?
Danny is mostly right.
a. unsigned decimal, minimum 4 characters, space padded
b. floating point, minimum 16 digits before the decimal (0 padded), 1 digit after the decimal
c. hex, minimum 4 characters, 0 padded, letters are printed in upper case
d. same as above, but minimum 2 characters
e. e i... | [
0.1763889342546463,
0.14880500733852386,
0.63809734582901,
0.09775354713201523,
-0.07857828587293625,
0.29771292209625244,
0.020113946869969368,
-0.29444485902786255,
-0.27332067489624023,
-0.33558958768844604,
-0.24324089288711548,
0.3404741883277893,
-0.2156543880701065,
-0.0934839472174... | |
It is interesting to note that in this case, the string does not need to be null terminated.
Edit: [jj33](https://stackoverflow.com/users/430/jj33) points out 2 errors in b and g above [here](https://stackoverflow.com/questions/7981/decoding-printf-statements-in-c-printf-primer#8051). | [
-0.1584429293870926,
0.07212743908166885,
-0.052641380578279495,
-0.132959246635437,
0.10100815445184708,
0.025329679250717163,
0.7044656872749329,
-0.05238000303506851,
-0.2695236802101135,
-0.05482085421681404,
-0.5102238655090332,
0.3631202280521393,
-0.40919801592826843,
-0.09000590443... | |
I'm using the .NETCF (Windows Mobile) `Graphics` class and the `DrawString()` method to render a single character to the screen.
The problem is that I can't seem to get it centred properly. No matter what I set for the Y coordinate of the location of the string render, it always comes out lower than that and the large... | [
0.3672392666339874,
0.13784447312355042,
0.6545829772949219,
-0.2917817533016205,
-0.2789640724658966,
0.4350869059562683,
-0.00384067022241652,
-0.17721569538116455,
-0.09045784920454025,
-0.7939548492431641,
-0.07298529893159866,
0.4037244915962219,
-0.06224757432937622,
0.04556902498006... | |
centred horizontally. Here's my basic code. `this` is referencing the user control it's being drawn in.
```
Graphics g = this.CreateGraphics();
float padx = ((float)this.Size.Width) * (0.05F);
float pady = ((float)this.Size.Height) * (0.05F);
float width = ((float)this.Size.Width) - 2 * padx;
float height = ((float)... | [
0.15581224858760834,
0.006645666901022196,
1.1280065774917603,
-0.20355041325092316,
-0.4014795124530792,
0.5186380743980408,
-0.1941644251346588,
-0.009422561153769493,
-0.3489619493484497,
-0.621569812297821,
-0.07467666268348694,
0.6853218674659729,
0.10047133266925812,
-0.1929497122764... | |
suggestions I got, I came up with this:
```
private void DrawLetter()
{
Graphics g = this.CreateGraphics();
float width = ((float)this.ClientRectangle.Width);
float height = ((float)this.ClientRectangle.Width);
float emSize = height;
Font font = new Font(FontFamily.Ge... | [
0.08048120141029358,
-0.07027339935302734,
0.9045078158378601,
-0.1638064831495285,
-0.14838115870952606,
0.5005968809127808,
0.12625885009765625,
-0.3731856048107147,
0.02373718097805977,
-0.7317479252815247,
0.12079223245382309,
0.4751547873020172,
-0.262767493724823,
0.06645280867815018... | |
font);
g.DrawString(letter, font, new SolidBrush(Color.Black), (width-size.Width)/2, 0);
}
private Font FindBestFitFont(Graphics g, String text, Font font, Size proposedSize)
{
// Compute actual size, shrink if needed
while (true)
{
SizeF size = g.MeasureString(... | [
-0.19869542121887207,
-0.0358244813978672,
0.9035255312919617,
-0.4065985679626465,
0.020968059077858925,
0.39788803458213806,
0.3260408341884613,
-0.6159580945968628,
-0.06408024579286575,
-0.7771499752998352,
-0.2421122044324875,
0.6026901602745056,
-0.17351169884204865,
-0.1650020033121... | |
if (size.Height <= proposedSize.Height &&
size.Width <= proposedSize.Width) { return font; }
// Try a smaller font (90% of old size)
Font oldFont = font;
font = new Font(font.Name, (float)(font.Size * .9), font.Style); | [
-0.02875717729330063,
0.15726585686206818,
0.6106413006782532,
-0.566756546497345,
0.1459106057882309,
0.31302326917648315,
0.07129029184579849,
-0.4539571702480316,
0.049042440950870514,
-0.7521232962608337,
-0.28406283259391785,
0.2865387797355652,
0.05199335142970085,
0.2891221940517425... | |
oldFont.Dispose();
}
}
```
So far, this works flawlessly.
The only thing I would change is to move the FindBestFitFont() call to the OnResize() event so that I'm not calling it every time I draw a letter. It only needs to be called when the control size changes. I just included it in the function for com... | [
-0.0445682629942894,
0.19973863661289215,
0.5373534560203552,
-0.4310053288936615,
0.4186975657939911,
-0.23123499751091003,
0.39768093824386597,
-0.300057053565979,
0.0539669506251812,
-0.8173115849494934,
-0.099952831864357,
0.9124661087989807,
-0.33524027466773987,
0.25872287154197693,
... | |
I use [rsync](http://rsync.samba.org/) to synchronize files to Windows clients in a server agnostic way. What methods are available to send the progress of rsync to the parent process for display in a gui progress bar?
I imagine two or three choices exist. (1) Watch STDOUT (2) Watch rsync.exe log file, similar to unix... | [
0.3289892375469208,
0.19903400540351868,
0.5330051779747009,
-0.17930489778518677,
-0.1299748718738556,
0.2597455084323883,
0.2188364714384079,
-0.05582224205136299,
-0.3381454348564148,
-0.6998052597045898,
0.07136300206184387,
0.6683415174484253,
-0.46473434567451477,
-0.2283947616815567... | |
like XCOPYs / PKZIPs to check if any error did happen).
I use AutoIt because it's free, very easy to use, and can compile quickly into an .EXE. I think it's an excellent alternative to a complete programming language for this type of tasks. The downside is that it's for Windows only.
```
$sCmd = "DIR E:\*.AU3 /S" ; ... | [
0.06197907030582428,
-0.19281944632530212,
0.5331342220306396,
-0.0342506468296051,
0.3922550678253174,
-0.08531694114208221,
0.5976483821868896,
-0.10165610164403915,
-0.13021835684776306,
-0.8418928980827332,
-0.1324642449617386,
0.7255308628082275,
-0.06932438164949417,
0.07894792407751... | |
; height/width of the main window (if fixed)
; $nWidth = 480
$sTitRun = "Executing process. Wait...." ;
$sTitDone = "Process done" ;
$sSound = @WindowsDir & "\Media\Ding.wav" ; End Sound
$sButRun = "Cancel" ; Caption of "Exec" button
$sButDone = "Close" | [
0.23660287261009216,
-0.17229600250720978,
0.8176010251045227,
-0.290876567363739,
0.4527474045753479,
0.11952536553144455,
0.4991829991340637,
-0.2901513874530792,
-0.27974915504455566,
-0.4968698024749756,
-0.5094777345657349,
0.6143908500671387,
-0.13568003475666046,
0.5125803351402283,... | |
; Caption of "Close" button
#include <GUIConstants.au3>
#include <Constants.au3>
#Include <GuiList.au3>
Opt("GUIOnEventMode", 1)
if $nDeskPct > 0 Then
$nHeight = @DesktopHeight * ($nDeskPct / 100)
$nWidth = @DesktopWidth * ($nDeskPct / 100)
EndIf
If $CmdLine[0] > 0 Then
$sCmd = ""
For $nCmd = 1 To $... | [
-0.5224739909172058,
-0.14365778863430023,
0.9975205659866333,
-0.10338278114795685,
0.1901777684688568,
0.1996041089296341,
0.18097101151943207,
-0.2242441624403,
-0.12544496357440948,
-0.7466720938682556,
-0.38110631704330444,
0.6315787434577942,
-0.30033719539642334,
0.21532252430915833... | |
= GUICreate($sTitRun, $nWidth, $nHeight)
GUISetOnEvent($GUI_EVENT_CLOSE, "CloseForm")
$nList = GUICtrlCreateList ("", 10, 10, $nWidth - 20, $nHeight - 50, $WS_BORDER + $WS_VSCROLL)
GUICtrlSetFont (-1, 9, 0, 0, "Courier New")
$nClose = GUICtrlCreateButton ($sButRun, $nWidth - 100, $nHeight - 40, 80, 30)
GUICtrlSetOnEv... | [
-0.29576653242111206,
-0.39915162324905396,
0.7928953766822815,
-0.16157573461532593,
0.12243103981018066,
0.5353919863700867,
0.33785101771354675,
-0.35445359349250793,
-0.12394845485687256,
-0.6810392141342163,
-0.34876391291618347,
0.6660854816436768,
-0.41177332401275635,
-0.1070847287... | |
0 then
$sLine = StringReplace ($sLine, Chr(13), "|")
$sLine = StringReplace ($sLine, Chr(10), "")
if StringLeft($sLine, 1)="|" Then
$sLine = " " & $sLine
endif
GUICtrlSetData ($nList, $sLine)
_GUICtrlListSelectIndex ($nList, _GUICtrlListCount ($nList) - 1)
... | [
-0.3988268971443176,
-0.40431225299835205,
0.8269361257553101,
-0.32244873046875,
-0.02964036911725998,
-0.05967621132731438,
0.19075267016887665,
-0.30419352650642395,
0.0321301594376564,
-0.4673446714878082,
-0.4298587143421173,
0.3116293251514435,
-0.26026830077171326,
-0.00673109991475... | |
1)
GUICtrlSetData ($nClose, $sButDone)
WinSetTitle ($sTitRun, "", $sTitDone)
If $sSound <> "" Then
SoundPlay ($sSound)
EndIf
$rInfo = DllStructCreate("uint;dword") ; # LASTINPUTINFO
DllStructSetData($rInfo, 1, DllStructGetSize($rInfo));
DllCall("user32.dll", "int", "GetLastInputInfo", "ptr", DllStructGetPt... | [
-0.03143853694200516,
-0.45215168595314026,
0.66901034116745,
-0.20052646100521088,
0.1934528350830078,
0.0617254264652729,
0.12022287398576736,
-0.42966222763061523,
0.06351402401924133,
-0.660569965839386,
-0.3222498297691345,
1.2661211490631104,
-0.32804831862449646,
0.04471470415592193... | |
EndIf
EndIf
If $nAutoTimeout > 0 And TimerDiff ($nTime) > $nAutoTimeOut * 1000 Then
ExitLoop
EndIf
Sleep (100)
Wend
Func CloseForm()
Exit
EndFunc
``` | [
-0.23822326958179474,
-0.16402341425418854,
0.6661639213562012,
-0.4750431180000305,
0.5202686786651611,
-0.26947256922721863,
0.2548936903476715,
-0.26403647661209106,
0.23677396774291992,
-0.5703757405281067,
-0.37414267659187317,
0.570019006729126,
-0.30367860198020935,
0.16927547752857... | |
I'm trying to fix some JavaScript bugs. Firebug makes debugging these issues a lot easier when working in Firefox, but what do you do when the code works fine on Firefox but IE is complaining?
you can also check out the [IE Developer Toolbar](http://www.microsoft.com/downloads/en/details.aspx?FamilyID=95e06cbe-4940-421... | [
0.4046204686164856,
0.45406049489974976,
0.30595019459724426,
-0.1269601583480835,
-0.15481238067150116,
-0.21207770705223083,
0.6146767735481262,
-0.007479474879801273,
-0.2692881226539612,
-0.5794320106506348,
0.026754355058073997,
0.5100138783454895,
-0.209732323884964,
-0.0495649240911... | |
What is the best way to transparently rewrite a URL over an SSL connection with Apache 2.2?
Apache 2 does not natively support multiple name-based virtual hosts for an SSL connection and I have heard that mod\_rewrite can help with this. I would like to do something like this:
I have set up the server so that the sit... | [
0.3268294930458069,
0.11278394609689713,
0.3627004027366638,
-0.035385578870773315,
-0.3676042854785919,
-0.39920708537101746,
0.6135479807853699,
-0.04856545478105545,
-0.28094321489334106,
-0.7805503606796265,
0.11116395145654678,
0.6096231937408447,
-0.3247736692428589,
0.43124872446060... | |
see dbadmin.example.com), all over https?
Configure a single VirtualHost to serve both secure.example.com and dbadmin.example.com (making it the only \*:443 VirtualHost achieves this). You can then use [mod\_rewrite](http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html) to adjust the URI for requests to dbadmin.exampl... | [
0.2439608871936798,
0.29780760407447815,
0.5514907836914062,
0.10565056651830673,
0.05722641944885254,
-0.14885245263576508,
0.5492592453956604,
-0.3288101851940155,
-0.3034658133983612,
-0.7757180333137512,
-0.24011512100696564,
0.33522316813468933,
-0.22531649470329285,
0.418800115585327... | |
trouble, first set it up on `<VirtualHost *>` and check that it works without SSL. The SSL connection and certificate is a separate layer of complexity that you can set up after the URI rewriting is working. | [
0.007118875160813332,
0.049950309097766876,
0.26291558146476746,
0.17431773245334625,
0.1627146154642105,
-0.09936022758483887,
0.3314271867275238,
-0.010033548809587955,
-0.35081571340560913,
-0.6089597940444946,
-0.005631899926811457,
0.48652929067611694,
-0.49284595251083374,
0.18475431... | |
I just saw this mentioned in Stack Overflow question *[Best WYSIWYG CSS editor](http://web.archive.org/web/20090503103538/http://stackoverflow.com:80/questions/7975/best-css-editor)* and didn't know it could be done. I'm a Visual Studio newbie, so how do you do it?
Is there a separate debugger for JavaScript? I know h... | [
0.34543782472610474,
0.21462734043598175,
-0.0719570741057396,
-0.0776364654302597,
-0.39567801356315613,
-0.10221210867166519,
0.2621312141418457,
-0.34866878390312195,
-0.3352835476398468,
-0.4843561351299286,
-0.054255057126283646,
0.649288535118103,
-0.14027324318885803,
-0.14850373566... | |
I have some reports in SQL Server Reporting Services 2005 that I need to keep audit logs for. The audit log should include who ran what report with what parameters. I can't use Windows authentication.
What is the best way to log this information?
The previous comments were dead on accurate that you can mine the data f... | [
0.30427035689353943,
0.371888667345047,
0.2764306366443634,
0.07925846427679062,
-0.2678976058959961,
-0.33772650361061096,
0.17339380085468292,
-0.1487327367067337,
-0.37687844038009644,
-0.4547708034515381,
0.45875629782676697,
0.5346511602401733,
-0.023216240108013153,
0.205308973789215... | |
a parameter in your reports. If this is the case, then the built-in table captures the parameters already. If you aren't passing the unique user identifier as a parameter, then you will probably need to rely on logging report executions in your application itself. | [
0.4881616532802582,
-0.09696202725172043,
0.20336034893989563,
0.3823036849498749,
-0.02089141309261322,
-0.1982003152370453,
0.1899430900812149,
-0.2165907323360443,
-0.5415790677070618,
-0.5526746511459351,
-0.0077048479579389095,
0.3082996904850006,
-0.25519490242004395,
0.1449556648731... | |
From time to time I see an enum like the following:
```
[Flags]
public enum Options
{
None = 0,
Option1 = 1,
Option2 = 2,
Option3 = 4,
Option4 = 8
}
```
I don't understand what exactly the `[Flags]` attribute does.
Anyone have a good explanation or example they could post?
The `[Flags]` attr... | [
0.1381129026412964,
-0.4478274881839752,
0.1986909806728363,
0.2599934935569763,
0.27301883697509766,
-0.06475692987442017,
-0.039418626576662064,
0.0027507846243679523,
-0.31152620911598206,
-0.6813646554946899,
-0.24540071189403534,
0.26850542426109314,
-0.11447317153215408,
0.0805672034... | |
that the `[Flags]` attribute **doesn't** enable this by itself - all it does is allow a nice representation by the `.ToString()` method:
```
enum Suits { Spades = 1, Clubs = 2, Diamonds = 4, Hearts = 8 }
[Flags] enum SuitsFlags { Spades = 1, Clubs = 2, Diamonds = 4, Hearts = 8 }
...
var str1 = (Suits.Spades | Suits.... | [
-0.20516355335712433,
0.28794410824775696,
0.43214136362075806,
-0.35218873620033264,
0.24097320437431335,
-0.13808436691761017,
0.04041726514697075,
-0.9212574362754822,
-0.4893754720687866,
-0.2815735638141632,
-0.42861905694007874,
0.4311147630214691,
-0.18346667289733887,
-0.0216293483... | |
enum values powers of two. If you omit the numeric values, the enum will not work as one might expect in bitwise operations, because by default the values start with 0 and increment.
Incorrect declaration:
```
[Flags]
public enum MyColors
{
Yellow, // 0
Green, // 1
Red, // 2
Blue // 3
}
`... | [
0.13823792338371277,
-0.243035227060318,
0.3745867609977722,
0.058177266269922256,
0.18433578312397003,
0.15619376301765442,
0.03152795508503914,
-0.3683803975582123,
-0.04804660379886627,
-0.6681609749794006,
-0.08583854138851166,
0.11022771149873734,
-0.38119855523109436,
0.2466712594032... | |
of a correct declaration:
```
[Flags]
public enum MyColors
{
Yellow = 1,
Green = 2,
Red = 4,
Blue = 8
}
```
To retrieve the distinct values in your property, one can do this:
```
if (myProperties.AllowedColors.HasFlag(MyColor.Yellow))
{
// Yellow is allowed...
}
```
or prior to .NET 4:
```
if... | [
0.11731848120689392,
0.03932512179017067,
0.36761701107025146,
0.05212530493736267,
0.2563394606113434,
-0.32443714141845703,
0.31357839703559875,
-0.3869093358516693,
-0.009187732823193073,
-0.5601087808609009,
-0.24906675517559052,
0.4480912983417511,
-0.22185581922531128,
0.225467339158... | |
in binary ones and zeros:
```
Yellow: 00000001
Green: 00000010
Red: 00000100
Blue: 00001000
```
Similarly, after you've set your property *AllowedColors* to Red, Green and Blue using the binary bitwise OR `|` operator, *AllowedColors* looks like this:
```
myProperties.AllowedColors: 00001110
```
So when... | [
-0.0024125969503074884,
-0.13648207485675812,
0.21748469769954681,
0.1478595733642578,
0.19300925731658936,
0.17381338775157928,
0.12094643712043762,
-0.18219853937625885,
-0.11747056990861893,
-0.7276301980018616,
-0.2911088466644287,
0.3804481029510498,
-0.18116696178913116,
0.0189140606... | |
00000010 // Hey, this is the same as MyColor.Green!
```
**The None = 0 value**
And regarding the use of `0` in your enumeration, quoting from MSDN:
```
[Flags]
public enum MyColors
{
None = 0,
....
}
```
> Use None as the name of the flag enumerated constant whose value is zero. **You cannot use the None ... | [
-0.02746380865573883,
-0.06667068600654602,
0.0065006073564291,
0.03549728915095329,
0.07182150334119797,
-0.09042242169380188,
0.11068212985992432,
0.005232342053204775,
-0.23026742041110992,
-0.41723597049713135,
0.05302761495113373,
0.09732232987880707,
-0.3047634959220886,
0.1710294932... | |
the None enumerated constant to determine whether any bits in the numeric value are set.
You can find more info about the flags attribute and its usage at [msdn](http://msdn.microsoft.com/en-us/library/system.flagsattribute.aspx) and [designing flags at msdn](http://msdn.microsoft.com/en-us/library/ms229062.aspx) | [
0.01634213700890541,
-0.1689353734254837,
0.0015073568793013692,
0.28474223613739014,
0.11651096493005753,
-0.23144100606441498,
0.07962056994438171,
-0.26171615719795227,
-0.3908616006374359,
-0.2735186517238617,
-0.19227135181427002,
0.16533902287483215,
-0.2801763713359833,
-0.067751407... | |
Anyone have a decent example, preferably practical/useful, they could post demonstrating the concept?
> (Edit: a small [Ocaml FP Koan](http://web.archive.org/web/20041012103936/http%3A//www.bagley.org/~doug/ocaml/Notes/okoans.shtml) to start things off)
>
>
>
> > **The Koan of Currying (A koan about food, that is no... | [
0.37245607376098633,
0.24906869232654572,
-0.10555705428123474,
-0.007381540257483721,
-0.35897475481033325,
0.2124234437942505,
-0.14707878232002258,
0.30857613682746887,
-0.1517542600631714,
-0.6708835363388062,
-0.10627476125955582,
0.28740251064300537,
0.11322571337223053,
0.0151799125... | |
stomach ache the following morning. So Jacques took the student to eat at a restaurant that served okonomiyaki every bit as good as the student's favorite, then took him across town to a shop that made excellent kanten where the student happily applied the remainder of his appetite. The student was sated, but he was no... | [
0.3575981557369232,
0.60322105884552,
-0.23522740602493286,
-0.08185800164937973,
-0.2986455261707306,
0.3480144739151001,
0.008671312592923641,
0.019703982397913933,
0.07421629875898361,
-0.8146896958351135,
0.09020838886499405,
0.33864083886146545,
-0.014452282339334488,
-0.0430376380681... | |
that you can think of applying in numerous situations.
We want to do a map over a tree. This function could be curried and applied to each node if it needs more then one argument -- since we'd be applying the one at the node as it's final argument. It doesn't have to be curried, but writing *another* function (assumin... | [
-0.00849847961217165,
-0.20406731963157654,
0.31543225049972534,
-0.041921671479940414,
0.056967612355947495,
0.04526154324412346,
-0.1375371813774109,
-0.4908592700958252,
-0.1220138743519783,
-0.7170259952545166,
-0.103122778236866,
0.44048023223876953,
-0.4809209406375885,
-0.1016372516... | |
| N(x,left,right) -> N(f x, tree_map f left, tree_map f right)
| E(x) -> E(f x)
let sample_tree = N(1,E(3),E(4)
let multiply x y = x * y
let sample_tree2 = tree_map (multiply 3) sample_tree
```
but this is the same as:
```
let sample_tree2 = tree_map (fun x -> x * 3) sample_tree
```
So this simple case isn't ... | [
-0.03892592713236809,
0.028587304055690765,
0.29932743310928345,
-0.22085727751255035,
-0.24131828546524048,
0.08461426943540573,
0.20606154203414917,
-0.4096061885356903,
-0.21268679201602936,
-0.5365545749664307,
0.08347511291503906,
0.5215888619422913,
-0.4218396246433258,
0.10622274130... | |
seed n =
match n with
| a -> seed
| _ -> let prev = f_recurrence f a seed (n-1) in
prev + (f n prev)
let rowland = f_recurrence gcd 1 7
let cloitre = f_recurrence lcm 1 1
let rowland_prime n = (rowland (n+1)) - (rowland n)
let cloitre_prime n = ((cloitre (n+1))/(cloitre n)) - 1
```
Ok, now ro... | [
-0.46896275877952576,
0.012391339987516403,
0.43557360768318176,
-0.12892284989356995,
0.201706662774086,
0.5141597986221313,
-0.17858460545539856,
-0.14051121473312378,
-0.18554578721523285,
-0.2049415558576584,
-0.2757287919521332,
0.6941763162612915,
-0.05219712108373642,
-0.14142398536... | |
f\_recurrence. | [
-0.4926362633705139,
-0.014954199083149433,
0.4278261661529541,
-0.32107341289520264,
0.15652026236057281,
-0.07267904281616211,
0.2270742654800415,
-0.049842193722724915,
0.04642307758331299,
-0.699529230594635,
-0.6100060343742371,
0.7413159608840942,
-0.6081200242042542,
0.0829215049743... | |
I've moved from TFS to SVN (TortoiseSVN) with my current company. I really miss the "Shelve" feature of TFS. I've read various articles on how to "Shelve" with SVN, but I've read nothing that gives a very simple experience to "shelve" work.
Ideally, I'd like extra items added to the TortoiseSVN context menu - "Shelve"... | [
0.13548752665519714,
-0.2253512442111969,
0.734843373298645,
-0.3024963140487671,
-0.495246946811676,
0.020373012870550156,
0.18264220654964447,
0.024438930675387383,
-0.4631117880344391,
-0.5857816934585571,
-0.16405117511749268,
0.8032607436180115,
0.14730127155780792,
0.2946445941925049... | |
following link doesn't really achieve the user experience I was looking for:
[Shelving Subversion](http://mikemason.ca/2005/03/30/)
One of the greatest things about TFS Shelve is how easy it is to use...
Shelving in SVN is starting to roll out with version 1.10, see [Release Notes](https://subversion.apache.org/docs/... | [
0.0070610311813652515,
-0.3414556682109833,
0.3294936418533325,
-0.21067751944065094,
-0.40244072675704956,
-0.33381783962249756,
0.35807549953460693,
-0.0700116753578186,
-0.5138437151908875,
-0.2835802137851715,
0.07998860627412796,
0.21865324676036835,
0.010902929119765759,
0.1546080857... | |
By looking at our `DB's` error log, we found that there was a constant stream of almost successful SQL injection attacks. Some quick coding avoided that, but how could I have setup a monitor for both the DB and Web server (including POST requests) to check for this? By this I mean if there are off the shelf tools for s... | [
0.6127259731292725,
0.15864704549312592,
-0.24681632220745087,
0.17573285102844238,
-0.3511374294757843,
-0.26691097021102905,
0.3440765142440796,
0.26415279507637024,
-0.366859495639801,
-0.4145035445690155,
0.089906245470047,
0.35551634430885315,
-0.14470338821411133,
0.11866538971662521... | |
potential threats. It's a pretty interesting read. | [
0.1605834811925888,
0.060759395360946655,
0.017683573067188263,
-0.06628671288490295,
0.03054697997868061,
-0.21251215040683746,
0.16277749836444855,
0.3924390375614166,
-0.08282646536827087,
-0.18977941572666168,
0.25706803798675537,
0.37131792306900024,
0.029759276658296585,
-0.098317384... | |
I've had this long term issue in not quite understanding how to implement a decent Lucene sort or ranking. Say I have a list of cities and their populations. If someone searches "new" or "london" I want the list of prefix matches ordered by population, and I have that working with a prefix search and an sort by field r... | [
0.29177650809288025,
-0.4184906780719757,
0.3956568241119385,
0.18597787618637085,
0.004265278112143278,
-0.07529151439666748,
-0.11449546366930008,
0.645401656627655,
-0.1913272887468338,
-0.6223454475402832,
-0.17405937612056732,
-0.23793047666549683,
0.02825711853802204,
0.1615527123212... | |
where the first London is in the UK and the second London is in Connecticut, even if Londonderry has a higher population than London CT.
Does anyone have a single query solution?
dlamblin,let me see if I get this correctly: You want to make a prefix-based query, and then sort the results by population, and maybe combi... | [
0.04220433905720711,
-0.5795364379882812,
0.5057328939437866,
-0.055557217448949814,
0.16865651309490204,
0.15663817524909973,
-0.01448050793260336,
0.060809340327978134,
-0.6441606283187866,
-0.5294713377952576,
-0.19634640216827393,
-0.3866035044193268,
-0.2309328317642212,
0.10577804595... | |
I've had an app doing prefix searches for a while. Recently the index size was increased and it turned out that some prefixes were too darned numerous for lucene to handle. It kept throwing me a [Too Many Clauses](http://web.archive.org/web/20080901205009/http://lucene.apache.org:80/java/2_3_2/api/core/org/apache/lucen... | [
0.2142990082502365,
0.09782543033361435,
0.2262328863143921,
0.04874043166637421,
-0.4804213345050812,
0.017297502607107162,
0.43326812982559204,
-0.11749695986509323,
-0.23965726792812347,
-0.15161865949630737,
0.4471268653869629,
0.27496665716171265,
-0.2569224238395691,
0.40669202804565... | |
there something fundamental to how queries are run that I'm not understanding; is it that they secretly become Boolean queries?
I've hit this before. It has to do with the fact that lucene, under the covers, turns many (all?) things into boolean queries when you call Query.rewrite()
From: <http://web.archive.org/web/2... | [
0.2382911741733551,
0.1448773592710495,
0.055264320224523544,
0.16063666343688965,
-0.06054222211241722,
-0.19522087275981903,
0.3104356825351715,
0.03475809842348099,
-0.1634986698627472,
-0.4147375226020813,
-0.030822062864899635,
0.5986831784248352,
-0.22663909196853638,
0.0855076611042... | |
BooleanQuery that consists of TermQuerys.
Throws:
IOException
``` | [
0.02821369096636772,
0.18322911858558655,
0.062201522290706635,
0.03683360293507576,
-0.048434458673000336,
-0.11040129512548447,
0.01552592869848013,
0.057333238422870636,
0.13756248354911804,
-0.17231854796409607,
-0.14607569575309753,
0.31809115409851074,
-0.3581523895263672,
0.16503937... | |
I need to try to lock on an object, and if its already locked just continue (after time out, or without it).
The C# lock statement is blocking.
I believe that you can use [`Monitor.TryEnter()`](http://msdn.microsoft.com/en-us/library/system.threading.monitor.tryenter%28VS.71%29.aspx).
The lock statement just transla... | [
0.42108243703842163,
-0.12818090617656708,
0.410913348197937,
-0.043488454073667526,
0.4929892122745514,
-0.2900961935520172,
0.49756520986557007,
0.016479844227433205,
-0.0563705675303936,
-0.5687810182571411,
-0.19273065030574799,
0.25222960114479065,
-0.38124948740005493,
0.282422900199... | |
Is there any Visual Studio Add-In that can do the remove method refactoring?
Suppose you have the following method:
```
Result DoSomething(parameters)
{
return ComputeResult(parameters);
}
```
Or the variant where Result is void.
The purpose of the refactoring is to replace all the calls to DoSometh... | [
0.06366578489542007,
-0.06363695859909058,
0.4733302593231201,
-0.24525883793830872,
-0.08475611358880997,
0.020633675158023834,
-0.05683232471346855,
-0.37845170497894287,
0.0034537382889539003,
-0.2501162886619568,
0.05021463334560394,
1.0216280221939087,
-0.47619304060935974,
-0.0058884... | |
I have a workspace for running an H.263 Video Encoder in a loop for 31 times i.e. the main is executed 31 times to generate 31 different encoded bit streams. This MS Visual Studio 2005 Workspace has all C source files. When i create a "DEBUG" configuration for the workspace and build and execute it, it runs fine, i.e. ... | [
0.1480126976966858,
0.29521217942237854,
0.03743081912398338,
-0.19119589030742645,
-0.25733545422554016,
0.1983383595943451,
0.7279216647148132,
-0.36024683713912964,
-0.29208245873451233,
-0.2719285190105438,
-0.014222702942788601,
0.47806793451309204,
-0.6410916447639465,
-0.11209730058... | |
to see if there was any variable initialization being missed out in every run of the encoder
2. Checked the various Workspace(Solution) options in both the modes (DEBUG and RELEASE).
There are some obvious differences, but i turned the optimization related options explicitly same in both modes.
But still could not n... | [
0.5842326283454895,
0.19617348909378052,
-0.17247307300567627,
0.02326597087085247,
-0.10795353353023529,
-0.13428550958633423,
0.43634986877441406,
-0.31516048312187195,
-0.14531002938747406,
-0.4728892743587494,
-0.079645074903965,
0.8541322350502014,
-0.28020283579826355,
-0.07572271674... | |
can do (like calling a function with the wrong number of arguments) that are not fatal in a debug build but crash horribly in a release build. Perhaps you could try changing the stack frame related options (I forget what they're called, sorry) in the release build to the same as the debug build and see whether that hel... | [
0.38252201676368713,
0.011503811925649643,
-0.10601506382226944,
0.2647396922111511,
0.08710165321826935,
-0.08672349900007248,
0.3967180848121643,
0.01911652646958828,
-0.2798643410205841,
-0.29668331146240234,
-0.12234640121459961,
0.989137589931488,
-0.3487207293510437,
-0.1524409055709... | |
I've started to add the time taken to render a page to the footer of our internal web applications. Currently it appears like this
> Rendered in 0.062 seconds
Occasionally I get rendered times like this
> Rendered in 0.000 seconds
Currently it's only meant to be a guide for users to judge whether a page is quick to... | [
0.3540855050086975,
-0.1256210058927536,
0.672573983669281,
-0.14303626120090485,
-0.20836922526359558,
0.2502049505710602,
0.5165175199508667,
-0.0786590501666069,
-0.4347570538520813,
-1.0877984762191772,
0.2600516676902771,
0.280537873506546,
0.3332754075527191,
0.0018953295657411218,
... | |
than a second
I like seeing the tenths of a second but the second example above is of no use to anyone, in fact it just highlights the limits of the calculation I use to find the render time. I'd rather not let the users see that at all! Any answers welcome, including whether anything should be included on the page.
I... | [
0.20133273303508759,
-0.3161807358264923,
0.2593335211277008,
0.5239864587783813,
-0.17672692239284515,
-0.09276324510574341,
0.584902286529541,
0.2777393162250519,
0.038581423461437225,
-0.7718679308891296,
0.33030909299850464,
0.10652673244476318,
0.3093682825565338,
0.10315267741680145,... | |
a second to draw the page but it takes 17 seconds for them to load it (due to network, javascript, page size, their rubbish PC, etc) their perception will be the latter.
Then again adding the render time might help you fend off the enquiries about any percieved slowness with a "talk to your local network admin" respon... | [
0.07575540244579315,
-0.2334449291229248,
0.7320109605789185,
0.22568966448307037,
-0.17656946182250977,
0.2401653677225113,
0.5243085026741028,
-0.0754341185092926,
0.02803787589073181,
-0.9183566570281982,
0.042697977274656296,
0.015064910054206848,
0.41988620162010193,
-0.25448635220527... | |
Are there any codes that allow for numerical formatting of data when using string.format?
Loads, stick `string.Format` into Google :-)
A quite good tutorial is at [iduno](http://web.archive.org/web/20150303084355/http://idunno.org:80/archive/2004/07/14/122.aspx) | [
-0.008384203538298607,
-0.17958596348762512,
0.10478852689266205,
0.43578603863716125,
0.11022970825433731,
-0.31736910343170166,
0.08025957643985748,
-0.108735091984272,
-0.16041956841945648,
-0.4350624680519104,
0.06312060356140137,
0.38627925515174866,
0.2543209195137024,
-0.11648609489... | |
I have an MFC application compiled with /clr and I'm trying to implement a final handler for otherwise un-caught managed exceptions. For native exceptions, overriding `CWinApp::ProcessWndProcException` works.
The two events suggested in Jeff's [CodeProject article](http://www.codeproject.com/KB/exception/ExceptionHand... | [
0.13407382369041443,
0.06047722324728966,
0.19388999044895172,
-0.12879543006420135,
-0.11709136515855789,
-0.1606013923883438,
0.468406081199646,
0.009307215921580791,
-0.40498772263526917,
-0.6008709669113159,
-0.10750025510787964,
0.3504698872566223,
-0.36502835154533386,
0.214581489562... | |
`System.Exception` and if you want a callstack you're going to have to roll your own walker.
In an MSDN forum question on this topic it was suggested to override a sufficiently low-level point of the main MFC thread in a `try ... catch (Exception^)`. For instance, `CWinApp::Run`. This may be a good solution but I have... | [
0.08532697707414627,
-0.25490155816078186,
0.13494977355003357,
-0.12845522165298462,
0.06317729502916336,
-0.25403907895088196,
0.36529311537742615,
-0.14610368013381958,
-0.4660739004611969,
-0.6631755828857422,
0.037722162902355194,
0.34459879994392395,
-0.6763544082641602,
0.0769156292... | |
get the unmanaged exceptions passing the filters on their way to your AppDomain. From [CLR and Unhandled Exception Filters](http://blogs.microsoft.co.il/blogs/sasha/archive/2007/12/30/clr-and-unhandled-exception-filters.aspx):
> The CLR relies on the SEH unhandled exception filter mechanism to catch unhandled exceptio... | [
0.038767218589782715,
0.12863413989543915,
0.4118969142436981,
0.10964250564575195,
0.26683396100997925,
-0.522515594959259,
0.23077018558979034,
-0.047042205929756165,
-0.4579869210720062,
-0.466412216424942,
-0.5379566550254822,
0.6205458641052246,
-0.39475953578948975,
-0.31184041500091... | |
I have a script that checks responses from HTTP servers using the PEAR HTTP classes. However, I've recently found that the script fails on FTP servers (and probably anything that's not HTTP or HTTPS). I tried Google, but didn't see any scripts or code that returned the server status code from servers other than HTTP se... | [
0.5132474899291992,
0.13380040228366852,
0.12102092802524567,
0.20289187133312225,
-0.28986361622810364,
0.019534597173333168,
0.45914509892463684,
0.152690127491951,
-0.18776702880859375,
-0.6245158314704895,
0.14746364951133728,
0.468808650970459,
0.007034250535070896,
-0.110166467726230... | |
is dead/gone, I'm not authorized to read, etc.
Please note that, although most of the time I'm language agnostic, the entire website is PHP-driven, so a PHP solution would be the best for easy of maintainability and extensibility in the future.
HTTP works slightly differently than FTP though unfortunately. Although bo... | [
0.33529144525527954,
0.10947368294000626,
0.3952903747558594,
0.0662350282073021,
-0.23932695388793945,
-0.4121262729167938,
0.4843549132347107,
0.4838567078113556,
-0.22833704948425293,
-0.516172468662262,
-0.06437766551971436,
0.3477296233177185,
-0.0905541181564331,
0.42498764395713806,... | |
and password, it's just defined as "anonymous" and your email address.
Checking if an FTP server is up means checking
1. That you can connect to the FTP server
`if (!($ftpfd = ftp_connect($hostname))) { ... }`
2. That you can login to the server:
`if (!ftp_login($ftpfd, $username, $password)) { ... }`
3. Then, if t... | [
0.18272702395915985,
0.009109639562666416,
0.6037970185279846,
0.01359141431748867,
0.23586338758468628,
-0.16995353996753693,
0.02090059220790863,
-0.16272926330566406,
-0.49279406666755676,
-0.7797501683235168,
-0.17899537086486816,
0.795634925365448,
-0.22822917997837067,
-0.01914527826... | |
I've got an MDI application written in Delphi 2006 which runs XP with the default theme.
Is there a way of controlling the appearance of the MDI Children to avoid the large XP-style title bar on each window?
I've tried setting the `BorderStyle` of the `MDIChildren` to `bsSizeToolWin` but they are still rendered as ... | [
0.36385786533355713,
0.08144037425518036,
0.5577001571655273,
-0.0421825535595417,
0.05667371302843094,
-0.17605046927928925,
0.1518474519252777,
-0.15633033215999603,
0.024747319519519806,
-0.7395419478416443,
-0.00043010496301576495,
0.5728461742401123,
-0.27416667342185974,
0.3351067304... | |
override;
end;
implementation
{$R *.dfm}
procedure TMDIChild.CreateWindowHandle(const Params: TCreateParams);
begin
inherited CreateWindowHandle(Params);
SetWindowLong(Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
end;
end.
``` | [
0.12410920858383179,
-0.10341200232505798,
0.5999724864959717,
-0.24426987767219543,
0.2705753445625305,
-0.14103291928768158,
0.48770347237586975,
-0.48537635803222656,
-0.08856139332056046,
-0.22406408190727234,
-0.4895492196083069,
0.6033889055252075,
-0.3745450973510742,
0.431996673345... | |
Does anyone have any good starting points for me when looking at making web pages/sites/applications specifically for viewing on the iPhone?
I've looked at templates like the one [Joe Hewitt](http://blog.wired.com/monkeybites/2007/07/meet-joe-hewitt.html) has made, and also seen some templates I can purchase, which I ... | [
0.5491226315498352,
0.4839862585067749,
-0.12527713179588318,
0.10703299194574356,
0.023379670456051826,
0.016485409811139107,
0.20609773695468903,
0.3146769106388092,
-0.6741015911102295,
-0.49668365716934204,
0.3527299165725708,
0.45777785778045654,
-0.08586018532514572,
-0.1687749475240... | |
trouble because it just isn't, but for now I want a framework I can start building on, and then in the process figure out how to make it distinctive enough to be perceived as a web app as well as looking like a native iPhone application.
Specifically I'm looking for features like:
* stylesheets set up, or pointers to... | [
0.1945701539516449,
-0.1918601393699646,
0.5305012464523315,
0.32209646701812744,
0.019288796931505203,
0.191594198346138,
0.04377846047282219,
0.06280330568552017,
-0.3879414498806,
-0.5709760189056396,
0.0746055394411087,
0.39084213972091675,
-0.13920918107032776,
-0.09564388543367386,
... | |
ie. not just one big page that has divs set up for each sub-item, which at least one such framework had as a sort of quick fix, I would need to have list item picking load the *page* for that item, and then when loaded, scroll to it
---
**Edit**: To avoid people reading only the question and answering, before reading... | [
0.4810333251953125,
0.26388049125671387,
0.30127620697021484,
0.03126423805952072,
-0.24162648618221283,
-0.5735871195793152,
0.3273462653160095,
0.06278129667043686,
-0.0005958451656624675,
-1.0198458433151245,
-0.003284935373812914,
0.4913606345653534,
-0.34100091457366943,
-0.0074053993... | |
GPL family of licenses allows for exceptions regarding library usage, but this won't apply to this since by necessity, the kind of framework I would need to use would be all source code.
The project can easily accomodate commercial libraries.
Also, I don't need a *library* or a *framework* as such, example files that... | [
0.014621099457144737,
0.4849211573600769,
0.4083150029182434,
-0.12724372744560242,
-0.28316864371299744,
-0.6846721768379211,
0.11886781454086304,
-0.03784981369972229,
-0.20462067425251007,
-0.6377075910568237,
-0.08738011866807938,
0.684380292892456,
-0.497914582490921,
0.03191786631941... | |
I'm trying to rebuild an old metronome application that was originally written using `MFC` in C++ to be written in `.NET` using `C#`. One of the issues I'm running into is playing the midi files that are used to represent the metronome "clicks".
I've found a few articles online about playing `MIDI` in .NET, but most o... | [
0.2927052080631256,
0.36864036321640015,
-0.017652032896876335,
-0.163177028298378,
0.3129895329475403,
-0.09136658161878586,
0.008942530490458012,
0.04386936128139496,
-0.09212874621152878,
-0.8975276947021484,
0.19536808133125305,
0.7471686601638794,
-0.23411887884140015,
0.2918671667575... | |
I missing something? Or is it just difficult to use MIDI inside of a .NET application?
I think you'll need to p/invoke out to the windows api to be able to play midi files from .net.
This codeproject article does a good job on explaining how to do this:
[vb.net article to play midi files](http://www.codeproject.com/KB... | [
0.13380900025367737,
-0.1334923505783081,
0.5724874138832092,
0.05087563768029213,
0.03598368912935257,
-0.2608293890953064,
0.20853154361248016,
-0.4121251702308655,
-0.2629913091659546,
-0.20522473752498627,
0.1099664568901062,
0.7198941111564636,
-0.41331249475479126,
0.6016637086868286... | |
Int32 bufferSize, IntPtr hwndCallback);
```
Hope this helps - good luck! | [
-0.21433214843273163,
0.016686690971255302,
0.28832849860191345,
-0.33369120955467224,
0.19588270783424377,
-0.07885966449975967,
0.5363420248031616,
0.397887259721756,
-0.10670439153909683,
-0.7196131348609924,
-0.22077737748622894,
0.4961957633495331,
-0.28627046942710876,
-0.01286175288... | |
I have a build script and as part of that script it copies a jar file to a directory, for ease lets call it the utils jar. the utils jar is built by another build script sitting in another directory. What im trying to do have my build script run the utils build script so that I can ensure the utils jar is up to date.
... | [
0.21745264530181885,
0.04915422946214676,
0.12695589661598206,
-0.2705427408218384,
-0.2817566990852356,
-0.03202038258314133,
0.1730826199054718,
0.02462158352136612,
0.28083404898643494,
-1.0611392259597778,
0.1553344875574112,
0.6361591219902039,
-0.22488859295845032,
-0.075148344039916... | |
to get around that I have this little ditty, which does successfully import the build file
```
<property name="baseDirUpOne" location=".." />
<import file="${baseDirUpOne}/utils/build/build.xml" />
```
So now that ive solved my import problem I need to call the task, well that should be easy right:
```
<antcall... | [
0.05980733036994934,
0.11562532931566238,
0.25200754404067993,
-0.22362485527992249,
-0.20332662761211395,
-0.030038977041840553,
0.2749049961566925,
-0.3299995958805084,
-0.11430679261684418,
-0.7748684287071228,
-0.0571160651743412,
0.5984671115875244,
-0.2813173532485962,
-0.00736471498... | |
step to select which code to copy to the jar is based on relative paths so as to avoid hardcoding paths in my ant file. Any ideas?
I've got something similar set up: I have a main Ant build.xml which calls a separate build.xml that takes care of building my tests. This is how I do it:
```
<target name="build-tests">
... | [
0.48522162437438965,
0.1636456400156021,
-0.182084858417511,
-0.1177075207233429,
-0.21998701989650726,
-0.05868372321128845,
0.5107179880142212,
-0.27207040786743164,
0.21841996908187866,
-0.9977145791053772,
0.38683539628982544,
0.4304365813732147,
-0.06510132551193237,
-0.11987434327602... | |
I would like to create a stored procedure in MySQL that took a list as argument. For example, say that I would like to be able to set multiple tags for an item in one call, then what I want to do is to define a procedure that takes the ID of the item and a list of tags to set. However, I can't seem to find any way to d... | [
0.49576589465141296,
-0.06171617656946182,
0.11219935864210129,
0.17467603087425232,
-0.051787491887807846,
0.11614915728569031,
-0.11168128997087479,
-0.20009277760982513,
-0.25363150238990784,
-0.5496777296066284,
0.34088563919067383,
0.48329004645347595,
-0.5682789087295532,
0.123176641... | |
be split and looped over?
How do you usually work with lists in MySQL stored procedures?
[This](http://forums.mysql.com/read.php?98,50521,50521#msg-50521) article has some good discussion on the problem of parsing an array to a stored procedure since stored procedures only allow valid table column data-types as parame... | [
0.6558339595794678,
-0.3290339410305023,
-0.027935033664107323,
0.24182599782943726,
-0.3698675036430359,
-0.000533897487912327,
-0.1231166422367096,
-0.2606448233127594,
-0.649546205997467,
-0.4536554217338562,
0.08577151596546173,
0.30697062611579895,
-0.5495818853378296,
0.1516046077013... | |
table. This [answer](http://forums.mysql.com/read.php?98,50521,184245#msg-184245) in the above mentioned thread shows a way of doing this.
Generally I would split the array before I come to the database and then perform the query individually on each item. | [
0.18926499783992767,
-0.00712254922837019,
0.1728070080280304,
0.17160989344120026,
-0.048110056668519974,
0.1329280436038971,
-0.19990098476409912,
-0.3250170946121216,
-0.5885539054870605,
-0.49526241421699524,
0.16607746481895447,
0.03364434093236923,
-0.257672518491745,
0.2473746985197... | |
So I've been poking around with C# a bit lately, and all the Generic Collections have me a little confused. Say I wanted to represent a data structure where the head of a tree was a key value pair, and then there is one optional list of key value pairs below that (but no more levels than these). Would this be suitable?... | [
0.09829752892255783,
0.005980875343084335,
-0.1313885748386383,
0.17961840331554413,
-0.14806431531906128,
-0.04125330597162247,
0.02959442511200905,
-0.02440764755010605,
-0.4002487063407898,
-0.2861105799674988,
0.018935715779662132,
0.06809346377849579,
-0.3749280571937561,
-0.020938148... | |
it from msdn. As far as I can tell, IDictionary is an
* interface, and Dictionary is the default implementation of
* that interface, right?
*/
SubPairs = new Dictionary<string, string>();
}
public string Key;
public string Value;
public IDictionary<string, string> Sub... | [
0.048403602093458176,
-0.5148938298225403,
0.47168153524398804,
-0.10438766330480576,
-0.2768291234970093,
-0.042433109134435654,
0.03627387806773186,
-0.030658911913633347,
-0.23768599331378937,
-0.3752158284187317,
0.013056762516498566,
0.4774309992790222,
-0.4127587676048279,
-0.0923393... | |
KeyValuePair, use like this
```
KeyValuePair<string, string> myKeyValuePair = new KeyValuePair<string,string>("defaultkey", "defaultvalue");
``` | [
-0.4701075255870819,
-0.24001343548297882,
0.5483601093292236,
-0.3392762541770935,
0.44756823778152466,
0.0910591334104538,
0.2235916405916214,
-0.19794100522994995,
0.010678578168153763,
-0.7001321315765381,
-0.2434045523405075,
0.735588550567627,
-0.14960089325904846,
0.2860333919525146... | |
I want to implement a paperless filing system and was looking to use WIA with C# for the image acquisition. There are quite a few sample projects on CodeProject, etc. However, after downloading every one of them that I can find, I have run into a problem.
In each and every one of them, the reference to WIALib is broke... | [
0.6216329336166382,
0.21574141085147858,
0.35219061374664307,
0.050113290548324585,
-0.011712184175848961,
-0.35917744040489197,
0.21449391543865204,
0.11821691691875458,
-0.11640488356351852,
-0.7522446513175964,
0.120681993663311,
0.6637345552444458,
-0.34756848216056824,
0.1859594434499... | |
1.x. The reference goes in as "WIA" instead of "WIALib". I took a shot, just changing the namespace import, but clearly the API is drastically different.
Is there any information on either implementing v2.0 or on upgrading one of these existing sample projects out there?
To access WIA, you'll need to add a reference t... | [
0.4734289050102234,
-0.20464949309825897,
0.5099663138389587,
-0.12320102006196976,
-0.13273683190345764,
-0.16972628235816956,
0.289768248796463,
-0.26951026916503906,
-0.02170787937939167,
-0.9382410049438477,
0.1338733732700348,
0.526930034160614,
-0.5616166591644287,
0.1216907054185867... | |
WiaImageBias.MaximizeQuality,
wiaFormatJPEG, true, true, false);
WIA.Vector vector = wiaImage.FileData;
```
(System.Drawing)
```
Image i = Image.FromStream(new MemoryStream((byte[])vector.get_BinaryData()));
i.Save(filename)
```
Thats a basic way, works with my flatbed/doc feeder. If you need more than o... | [
0.15111054480075836,
-0.2250821590423584,
0.30397725105285645,
-0.0031536996830254793,
-0.0802377313375473,
0.13752049207687378,
0.4035913944244385,
-0.38689714670181274,
-0.3371545672416687,
-0.994635283946991,
0.1468563675880432,
0.5048618316650391,
-0.2038808912038803,
-0.17493475973606... | |
to go further than that myself)
If its for a paperless office system, you might want also check out MODI (Office Document Imaging) to do all the OCR for you. | [
0.4410059154033661,
-0.036646947264671326,
0.34632059931755066,
0.1998608559370041,
0.2198844999074936,
-0.515345573425293,
0.09733381122350693,
0.09619277715682983,
-0.04421849548816681,
-0.5173001289367676,
-0.1309269517660141,
0.7018942832946777,
0.26023951172828674,
-0.3664741814136505... | |
We need to add WorkFlow to our Spring managed application. Does anyone have any useful experience in using any of the myriad of OSS Work Flow solutions? Which one is best? Which one integrates with Spring best? Which ones should we avoid?
If you only need some simple process orchestration, Spring's own [Web Flow](http:... | [
0.2618272006511688,
-0.2870270907878876,
-0.015801161527633667,
0.21191056072711945,
-0.13744275271892548,
-0.04597190022468567,
0.07501121610403061,
-0.10003834217786789,
-0.3841811716556549,
-0.40972891449928284,
-0.08546700328588486,
0.24676112830638885,
0.06116177886724472,
-0.04623521... | |
once a clearer picture of the BPEL/BPM/Workflow space emerges you will see Spring provide an abstraction layer the same way they have for JDBC, Transactions, ORM frameworks etc... | [
0.04747394844889641,
-0.016624007374048233,
-0.07157106697559357,
0.21949775516986847,
-0.35273033380508423,
0.17234399914741516,
-0.44911423325538635,
0.0031021232716739178,
-0.6505675911903381,
-0.2574697434902191,
-0.10298183560371399,
0.14841927587985992,
0.20963123440742493,
0.0305037... | |
When I use the sp\_send\_dbmail stored procedure, I get a message saying that my mail was queued. However, it never seems to get delivered. I can see them in the queue if I run this SQL:
```
SELECT * FROM msdb..sysmail_allitems WHERE sent_status = 'unsent'
```
This SQL returns a 1:
```
SELECT is_broker_enabled FROM... | [
0.15948118269443512,
0.1886550337076187,
0.6498619318008423,
-0.1445673704147339,
-0.22410137951374054,
0.03626736253499985,
0.4416714310646057,
-0.08509539812803268,
-0.536933958530426,
-0.8447778224945068,
-0.03834440931677818,
0.2513076364994049,
-0.37114182114601135,
0.2069833129644394... | |
Router outage
* Service account changes
* SQL Server running out of disk space
So until it happens again, I wouldn't freak out over it. | [
0.4136005640029907,
0.32016023993492126,
0.4485626220703125,
-0.019892418757081032,
0.03782644495368004,
-0.2470317780971527,
0.4057467579841614,
0.4551927447319031,
-0.3136709928512573,
-0.6623139977455139,
0.06352924555540085,
0.26481693983078003,
-0.14046908915042877,
0.2459517419338226... | |
This snippet of Perl code in my program is giving the wrong result.
```
$condition ? $a = 2 : $a = 3 ;
print $a;
```
No matter what the value of `$condition` is, the output is always 3, how come?
This is explained in the Perl [documentation](http://perldoc.perl.org/perlop.html#Conditional-Operator).
Because of Perl... | [
-0.16360941529273987,
-0.01891499198973179,
0.2887156009674072,
-0.43526676297187805,
-0.043874628841876984,
0.11264040321111679,
0.4433088004589081,
-0.34608331322669983,
-0.16958671808242798,
-0.17172841727733612,
-0.15588496625423431,
0.557428240776062,
-0.5427750945091248,
-0.135087653... | |
= ( $condition ? 2 : 3 );
print $a;
```
We got bitten by this at work, so I am posting here hoping others will find it useful. | [
0.47236207127571106,
0.2920324206352234,
0.03043891116976738,
-0.25886163115501404,
0.13150116801261902,
-0.1805671602487564,
0.5135892629623413,
0.28020861744880676,
0.23669590055942535,
-0.6485999822616577,
0.15330784022808075,
0.48584187030792236,
-0.6984599232673645,
0.1224230602383613... | |
I am working at a client site where there is a proxy server (`HTTP`) in place. If I do a hard reset of the emulator it forgets network connection settings for the emulator and settings in the hosted Windows Mobile OS. If I 'save state and exit' it will lose all of these settings. I need to do hard resets regularly whic... | [
0.18959404528141022,
0.45439228415489197,
0.5095193386077881,
-0.007297484669834375,
0.411641001701355,
0.14715363085269928,
0.286899596452713,
0.030267616733908653,
-0.09794599562883377,
-0.8408810496330261,
-0.21495091915130615,
0.5488966703414917,
-0.16357897222042084,
0.262820273637771... | |
my life easier? Can I save this as defaults in the emulator, or create an installer easily?
This is explained in the Perl [documentation](http://perldoc.perl.org/perlop.html#Conditional-Operator).
Because of Perl operator precedence the statement is being parsed as
```
($condition ? $a= 2 : $a ) = 3 ;
```
Because t... | [
0.24937237799167633,
0.03782571479678154,
0.4012097120285034,
-0.3185409605503082,
0.11708709597587585,
0.0638430044054985,
0.5899804830551147,
-0.16946794092655182,
-0.07000447064638138,
-0.40123844146728516,
0.056350961327552795,
0.8907139897346497,
-0.4196861684322357,
-0.35257703065872... | |
hoping others will find it useful. | [
0.5252065062522888,
0.28924116492271423,
-0.12877362966537476,
0.12350963801145554,
0.09611480683088303,
0.15381793677806854,
-0.07980562001466751,
0.1702686846256256,
-0.06357236951589584,
-0.6453554630279541,
-0.03006640635430813,
0.39798101782798767,
0.13245972990989685,
-0.180633842945... | |
I'm using `IIS 5.1` in Windows XP on my development computer. I'm going to set up HTTPS on my company's web server, but I want to try doing it locally before doing it on a production system.
But when I go into the Directory Security tab of my web site's configuration section, the "Secure communication" groupbox is dis... | [
0.706325113773346,
0.11895305663347244,
0.3165818750858307,
-0.17171308398246765,
-0.10960199683904648,
-0.15349046885967255,
0.3847649395465851,
-0.42242181301116943,
-0.012981203384697437,
-0.7157732248306274,
0.01583341881632805,
0.49294304847717285,
-0.5213075876235962,
-0.031784743070... | |
arithabort arith_overflow on
```
However, this doesn't work well in a select. It will work well in a cursor (boo) or in logic before / after a SQL batch. | [
-0.07658442109823227,
0.14847835898399353,
0.04875018820166588,
-0.07705053687095642,
-0.28064560890197754,
-0.23602226376533508,
0.5115513205528259,
-0.14241185784339905,
0.262590616941452,
-0.48945844173431396,
-0.04578426852822304,
0.46955403685569763,
-0.4384280741214752,
0.26915624737... | |
I'm trying to use a select statement to get all of the columns from a certain MySQL table except one. Is there a simple way to do this?
EDIT: There are 53 columns in this table (NOT MY DESIGN)
Actually there is a way, you need to have permissions of course for doing this ...
```
SET @sql = CONCAT('SELECT ', (SELECT R... | [
-0.03911443054676056,
0.08501116931438446,
0.5864502787590027,
-0.019164135679602623,
-0.0390726700425148,
0.05975986272096634,
0.36265257000923157,
-0.49027884006500244,
-0.1098967045545578,
-0.5711339712142944,
-0.2039005160331726,
0.4152482748031616,
-0.6794604659080505,
-0.197712853550... | |
My C# project - we'll call it the SuperUI - used to make use of a class from an external assembly. Now it doesn't, but the compiler won't let me build the project without the assembly reference in place. Let me elaborate.
This project used to throw and catch a custom exception class - the `SuperException` - which was ... | [
0.2369394302368164,
0.04467000439763069,
-0.16699503362178802,
0.037173960357904434,
-0.17118163406848907,
-0.06041306257247925,
0.2948049306869507,
0.2243562936782837,
-0.14355643093585968,
-0.3356638550758362,
-0.06520191580057144,
0.26232221722602844,
-0.47326651215553284,
0.37399893999... | |
met with the following on trying to compile the project:
> The type 'SuperException' is defined in an assembly that is not referenced. You must add a reference to assembly 'SuperException, Version=1.1.0.0 (...)'
The source file referenced by the error doesn't seem relevant; it's the project namespace that gets highli... | [
0.4447329044342041,
0.20127393305301666,
0.19136080145835876,
0.011783381924033165,
-0.19236516952514648,
-0.18720552325248718,
0.5146805644035339,
-0.0894622877240181,
-0.24126675724983215,
-0.45732131600379944,
-0.07070602476596832,
0.47651588916778564,
-0.5238291621208191,
0.36896079778... | |
these dependencies could throw `SuperExceptions`, I'm only catching the base Exception class and in any case... the other project builds fine!
3. I've done Visual Studio's "Clean Solution" and cleared everything out by hand, many times.
It's not the end of the world to include this reference, I just don't see why it's... | [
0.13116705417633057,
0.09469606727361679,
0.23362547159194946,
0.0781620517373085,
-0.28777316212654114,
-0.22511616349220276,
0.5143598318099976,
-0.061097484081983566,
-0.4246218204498291,
-0.5623485445976257,
-0.034909799695014954,
0.515140175819397,
-0.40626174211502075,
0.184667706489... | |
to be able to have information about that type at some point.
Resharper would tell you where it's the case that you need to add a reference, and you could use Lütz Roeder's aka RedGate's Reflector to scan compiled IL for a reference to this type in two ways: 1) use the search-facility, 2) open each public type you're... | [
0.44809436798095703,
-0.03140903636813164,
0.629045844078064,
0.17813609540462494,
0.08851169049739838,
-0.019967179745435715,
0.18433499336242676,
-0.29542335867881775,
-0.36853131651878357,
-0.48708459734916687,
-0.12419547140598297,
-0.007961563766002655,
-0.22496064007282257,
0.3670741... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.