text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
software on your
> premises to design, develop and test
> your programs for use with the
> software.
> * You may not test the
> software in a live operating
> environment unless Microsoft permits
> you to do so under another agreement.
So no, you can not use it in a production environment without violating the l... | [
0.9158186912536621,
0.46686801314353943,
-0.18053695559501648,
0.14235857129096985,
0.26640379428863525,
-0.40960755944252014,
0.4660397171974182,
-0.08434771746397018,
0.11337894946336746,
-0.44116896390914917,
-0.28548431396484375,
0.4664807915687561,
-0.0482710637152195,
0.2202543318271... | |
In the IntelliJ console, stack traces automatically contain hyperlinks that bring you to the relevant source files. The links appear at the end of each line in the format (Log4jLoggerTest.java:25). I can configure log4j to output text in a similar format.
```
log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE... | [
-0.23878829181194305,
0.01388765312731266,
0.5764373540878296,
-0.17092777788639069,
-0.01998846046626568,
-0.04971379041671753,
0.1985197514295578,
-0.009378461167216301,
0.1570281684398651,
-0.9595226049423218,
-0.28818315267562866,
0.8114851713180542,
-0.2941828668117523,
-0.31258156895... | |
In using vim, when I start a comment with //, immediately after I type a space, it begins a new comment line.
For instance, if I typed the following:
```
//hello world my name is stefan
```
I would get:
```
//hello
//world
//my
//name
//is
//stefan
```
This behavior has manifested itself in python code as well, ... | [
-0.010093824937939644,
-0.007349537685513496,
0.5783195495605469,
-0.08331025391817093,
-0.37663260102272034,
-0.15049268305301666,
0.7590987086296082,
0.021078914403915405,
-0.1412350982427597,
-0.5698168873786926,
-0.16105908155441284,
0.369551420211792,
-0.6521716117858887,
0.4835422039... | |
16
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
finish
endif
" TagList plugin settings
nmap <... | [
-0.00690178107470274,
0.004492290783673525,
0.7314264178276062,
0.04382311552762985,
0.24719169735908508,
-0.044992055743932724,
0.09573037177324295,
-0.3716352581977844,
-0.39343318343162537,
-0.2666199803352356,
-0.3245244324207306,
1.0971462726593018,
-0.44605767726898193,
0.05372345447... | |
" do not keep a backup file, use versions instead
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
" For Win32 GUI: remove 't' flag from 'guioptions': no tearo... | [
-0.48827341198921204,
-0.2797883152961731,
0.8300816416740417,
-0.2504960894584656,
0.1627204567193985,
-0.12775322794914246,
0.3705436587333679,
-0.19375842809677124,
-0.11277841031551361,
-0.6832653284072876,
-0.06329325586557388,
0.7412583827972412,
-0.44534844160079956,
-0.199403658509... | |
works just fine, thus enable it.
" set mouse=a
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd"... | [
0.05696968734264374,
-0.24966321885585785,
0.767509937286377,
-0.19423259794712067,
0.20524223148822784,
-0.20809529721736908,
0.25635239481925964,
-0.24976091086864471,
-0.012283441610634327,
-1.1021941900253296,
-0.28045910596847534,
0.8701420426368713,
-0.3852967619895935,
-0.2720741629... | |
autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event ... | [
-0.1323281228542328,
-0.24114608764648438,
0.6800868511199951,
-0.441884845495224,
0.10998468101024628,
0.2594727575778961,
0.32623180747032166,
-0.3353794515132904,
-0.17337098717689514,
-0.4659169316291809,
-0.24736632406711578,
1.1507902145385742,
-0.5673134326934814,
-0.520454108715057... | |
\ endif
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
set backupdir=./.backup,.,/tmp
set directory=.,./.backup,/tmp
map <F1> :NERDTree <CR>
map <F2> :q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR>:q!<CR... | [
-0.11340507864952087,
-0.18128058314323425,
0.768355131149292,
-0.3408687114715576,
-0.07400472462177277,
0.20011241734027863,
0.4224736988544464,
-0.5053234100341797,
-0.3019912540912628,
-0.7345070242881775,
-0.22161568701267242,
0.6118195652961731,
-0.04842991381883621,
-0.2547451257705... | |
have the same effect as "tw=77". So if your tw is set to something very small, it would try to wrap after every word. | [
0.587561845779419,
-0.2640872597694397,
0.0407080352306366,
-0.2945907711982727,
-0.1756419986486435,
-0.17572660744190216,
0.39257168769836426,
-0.052574273198843,
-0.16377265751361847,
-0.48714596033096313,
-0.2413783222436905,
0.4018948972225189,
-0.017253829166293144,
0.044123776257038... | |
I have an interface called ICommand from which various classes inherit. These classes all do various different things with the Run() method, but they all need to have a Name property and a Description property that specifies what they do.
The question is, how should I let each subclass specify those properties (Name a... | [
0.4574851095676422,
-0.2201530784368515,
-0.0905381292104721,
0.3252394497394562,
0.10092848539352417,
-0.20478732883930206,
0.0442592017352581,
-0.2619650065898895,
-0.06318087130784988,
-0.4724985659122467,
0.30594325065612793,
0.462188184261322,
-0.19908539950847626,
0.4938809871673584,... | |
way?
Sorry if this seems like a silly question - I'm just starting with this OOP design stuff and I want to check I'm doing it right.
I think, defining a Readonly Property in the interface is the best way. | [
0.6026685237884521,
-0.021347884088754654,
0.43360385298728943,
0.20681262016296387,
0.09354645758867264,
-0.12168804556131363,
0.05175730586051941,
0.002259406726807356,
-0.15782038867473602,
-0.7386064529418945,
0.1956046223640442,
0.4757932722568512,
0.0788356140255928,
-0.0185467433184... | |
I can't display the first entry from my query that returns multiple answers. For example, a search with a result set of five will return the second to fifth and miss the first entry. If I search for something that has one entry as output it doesn't return anything but just hangs because it is the first and only entry i... | [
0.3662269115447998,
-0.03697267174720764,
0.04640647768974304,
0.0548056922852993,
-0.2805190682411194,
0.25724560022354126,
0.4575805366039276,
-0.3756784498691559,
-0.22593165934085846,
-0.42585673928260803,
-0.018049392849206924,
0.09470416605472565,
-0.1881340891122818,
0.6897698640823... | |
entry to be printed also?
CODE:
```
try {
ResultSet rs;
String comparex = jTextField2.getText().trim().toUpperCase();// puts the textfield into a string object
rs = stmt.executeQuery(
"SELECT * FROM BASTIMP where DETAILS like '%"+comparex+"%'"
); //paradox equivalent '..comparex..'
String ... | [
0.049711909145116806,
-0.21834537386894226,
0.7480173707008362,
0.017235515639185905,
0.10945836454629898,
0.33982986211776733,
0.020500022917985916,
-0.42078471183776855,
-0.06348948925733566,
-0.4617629051208496,
-0.36745333671569824,
0.24120023846626282,
-0.19937103986740112,
0.30975815... | |
}
while (rs.next()) { // **Line 15**
String details = rs.getString("DETAILS"); //get results from DETAILS
date = rs.getString ("DATE PAID"); //CORRECT?
amount = rs.getString ("AMOUNT BANK");
attached = attached + details +":"+ '\n'+ "Date " +date+ " / "+
"Amount ... | [
0.1297713965177536,
-0.3594818115234375,
0.8732314705848694,
-0.06131277233362198,
0.1911865621805191,
0.18636487424373627,
-0.2280387133359909,
-0.3046088218688965,
-0.429019033908844,
-0.33863314986228943,
-0.21365463733673096,
0.34200674295425415,
0.03724579140543938,
0.2230817824602127... | |
OUTPUT OF jList!
DisplayAreaX.setText(attached);
System.out.println(details+":"+ '\n'+ "Date "+date+ " / "+
"Amount £"+ amount+ '\n');
}
} catch (SQLException e) {
System.out.println("SQL Exception: " + e.toString());
} catch (ClassNotFoundException cE) {
System.out.println("Clas... | [
0.17079681158065796,
-0.12229645252227783,
0.6246484518051147,
-0.4261906147003174,
0.014683722518384457,
-0.0009136157459579408,
0.21481794118881226,
-0.3162892758846283,
-0.21640107035636902,
-0.5726610422134399,
-0.18244971334934235,
0.42274144291877747,
-0.3559930622577667,
0.065204218... | |
if/else statement and keep track of the results in a counter, and at the end check if the counter is 0 and display the message then. | [
0.25701987743377686,
-0.10969434678554535,
0.03251240774989128,
-0.17310361564159393,
0.03526442497968674,
-0.07910490036010742,
0.2982923984527588,
-0.13029317557811737,
0.17985638976097107,
-0.2718959450721741,
-0.2739529311656952,
0.45726555585861206,
-0.007154668215662241,
0.0746922120... | |
I can search word in vim with `/word`. How can I search only for `word`, excluding searches for `word1` and `word2`?
like this:
```
/\<word\>
```
`\<` means beginning of a word, and `\>` means the end of a word,
Adding @Roe's comment:
VIM provides a shortcut for this. If you already have *word* on screen and you... | [
0.11127310991287231,
-0.0306328646838665,
0.6773257851600647,
-0.02731305919587612,
-0.17109210789203644,
-0.08903289586305618,
0.46298643946647644,
-0.06781208515167236,
-0.09952443093061447,
-0.7855614423751831,
-0.0978371649980545,
0.6425309181213379,
0.1304696500301361,
0.3549797832965... | |
I am trying to configure my CruiseControl.NET server to send emails to those the contribute to the source; however, I cannot seem to configure the email publisher properly. I am receiving the following error from CruiseControl.NET.
> Exception: Unused node detected: <subjectSettings><subject buildResult="Success" valu... | [
0.2860480844974518,
0.26077502965927124,
0.6528711318969727,
-0.23185564577579498,
0.40490931272506714,
-0.09170107543468475,
0.4984494745731354,
-0.23225094377994537,
-0.4200963079929352,
-0.47872331738471985,
0.02831137180328369,
0.5755302906036377,
0.009884495288133621,
0.11536258459091... | |
<user name="jane@companyx.com" group="buildMasters" address="jane@companyx.com"/>
<user name="joe@companyx.com" group="developers" address="joe@companyx.com"/>
<user name="jill@companyx.com" group="developers" address="jill@companyx.com"/>
<user name="jerry@companyx.com" group="devel... | [
0.3227531909942627,
0.20982149243354797,
-0.12845872342586517,
-0.18210066854953766,
-0.013590366579592228,
0.37654098868370056,
0.14788538217544556,
-0.28939685225486755,
-0.2797861695289612,
-0.11878956854343414,
-0.3785470426082611,
0.5038246512413025,
-0.07367381453514099,
0.2410795092... | |
notification="change"/>
</groups>
<modifierNotificationTypes>
<NotificationType>Failed</NotificationType>
<NotificationType>Fixed</NotificationType>
<NotificationType>Success</NotificationType>
</modifierNotificationTypes>
<subjectSettings>
... | [
0.2740430533885956,
0.18426458537578583,
0.2826923131942749,
-0.021189330145716667,
-0.24904164671897888,
0.20552289485931396,
0.6370165348052979,
-0.604545533657074,
-0.44822514057159424,
-0.6368894577026367,
-0.11028281599283218,
0.3783981204032898,
0.01649221032857895,
-0.09128333628177... | |
</email>
</publishers>
```
How can I properly configure the email publisher to avoid this error?
Are you building CruiseControl from scratch? because it looks like that functionality was only checked in a few weeks ago, and if you are using one of the releases that functionality isn't in there. | [
0.3380575180053711,
0.20741136372089386,
0.7209330201148987,
0.3032647669315338,
0.20291587710380554,
-0.5699253678321838,
0.09603050351142883,
0.28402310609817505,
-0.21990971267223358,
-0.3881582021713257,
0.32668164372444153,
0.7327573895454407,
0.02154824696481228,
0.237233504652977,
... | |
This morning, when I tried to add a new ASPX page to my project, Visual Studio decided that I no longer needed any .CS files associated with it. Trying to add a web control produced same results: .ascx file with no .cs. I've got two questions so far:
1. Considering that no changes have been made to the system over the... | [
0.38950541615486145,
0.07342425733804703,
0.49222680926322937,
-0.04853738099336624,
-0.3838160037994385,
-0.27635300159454346,
0.5455071330070496,
0.08956611901521683,
-0.4806688725948334,
-0.6822121143341064,
0.03458698093891144,
0.7091109752655029,
-0.0275004543364048,
0.077116683125495... | |
not see it. I will blame this one on Monday...
there is a check box you may have accidentaly un-checked: Place code in separate file
[](https://i.stack.imgur.com/ILKs6.png)
(source: [msdn.com](http://blogs.msdn.com/blogfiles/mikeormond/WindowsLiveWriter/NewWebItemTemp... | [
0.07767839729785919,
0.04678468033671379,
0.5015542507171631,
0.007206015754491091,
0.25533273816108704,
-0.24629651010036469,
0.7744041681289673,
0.2773033678531647,
-0.5987450480461121,
-0.6047658324241638,
-0.3995792269706726,
0.5395351052284241,
-0.37064850330352783,
0.2207384556531906... | |
I have the 4 sources of IP addresses , I want to store them in SQL Server and allow the ranges, that can be categorised by the originating country code, to be maked in an Exclusion list by country.
For this I have 2 tables.
IPAddressRange
CountryCode
What I need to know is, if this data was returned to the client t... | [
0.15560688078403473,
0.3459888696670532,
0.665939211845398,
0.08507662266492844,
0.11373335868120193,
0.1961464136838913,
0.24285276234149933,
-0.0873149111866951,
-0.4227626323699951,
-0.5486932992935181,
0.09986928105354309,
-0.14622782170772552,
-0.19222809374332428,
0.24963171780109406... | |
is in the db is for easy storage.
The reason I want to cache then use the data on the client is that I have heard that searching IP addresses is faster in a trie structure. So , I am think I need to get the list from the db , store in cache in a structure that is very quick to search.
Any help in the A) The SQL stuc... | [
0.17693176865577698,
0.1466042697429657,
0.2029210329055786,
0.09785392880439758,
-0.28035470843315125,
-0.301704078912735,
0.09628383815288544,
-0.12795908749103546,
0.007993609644472599,
-0.7012733221054077,
-0.0035420130006968975,
0.37405121326446533,
-0.14769911766052246,
0.15795977413... | |
this with the storage aspect.
Ideally without the use of a third party library. The code must be on our own server.
I've done a filter by country exactly like you describe.
However, after experimenting a while, I found out that it can't be done in a performant way with SQL. That's why IP databases like [this one](ht... | [
0.5119061470031738,
-0.25806334614753723,
0.3246494233608246,
0.48148971796035767,
0.19147826731204987,
-0.22256560623645782,
-0.07237650454044342,
0.09221436083316803,
-0.3489338159561157,
-0.8425933122634888,
0.1304347813129425,
0.2729812562465668,
-0.40020981431007385,
-0.14997231960296... | |
seconds. If
> performance is an issue, the binary
> format is much faster, and can handle
> thousands of lookups per second.
Plus, they even give you [the code](http://www.maxmind.com/app/csharp) to query this database.
I'm using this in a production website with medium traffic, filtering every request, with no pe... | [
0.4771777391433716,
-0.2283816784620285,
0.17714254558086395,
0.3671707212924957,
0.06664862483739853,
-0.14258702099323273,
-0.008133791387081146,
0.06774020195007324,
-0.08113709837198257,
-0.781116783618927,
0.05562128126621246,
0.10796096175909042,
0.06541010737419128,
-0.0409220531582... | |
I am trying to insert a conditional page break, actually i had a report of 50 pages with invoices each invoice is 3 pages long so i need a paghebreak for the 2nd invoice t printon the next page as i need the whole report ot print back to back,so i inserted one page break,so this starts the next invoice to start on 4th ... | [
-0.05908477306365967,
-0.050852272659540176,
0.34401848912239075,
0.1428685337305069,
-0.3198588788509369,
0.10556817054748535,
0.4048323333263397,
-0.2044568657875061,
-0.2981523275375366,
-0.4722636044025421,
-0.20517060160636902,
0.4427875280380249,
-0.09011270850896835,
-0.174049362540... | |
page is filled and the invoice goes on to 4th page then i dont need this additional page break
I tried doign this by taking two rectangles
--first with inert page break at the end
--second with conditional visibility of the rectangle2 and with page break at the start.
and the condition for the rectangle2 to be visible... | [
-0.35340213775634766,
-0.10886364430189133,
0.6690329313278198,
-0.09336915612220764,
-0.27060502767562866,
0.09664760529994965,
0.4208577573299408,
-0.5093017816543579,
-0.2566831409931183,
-0.6479703783988953,
-0.1575298011302948,
0.3371642827987671,
-0.29339417815208435,
-0.304847776889... | |
i need another page break and i am not hiding the rectanlge2
BUT THE VISIBILITY IS NOT WORKING AND THE RECTANGLE2 IS NOT WORKING.
Please help me with this..
I've done a filter by country exactly like you describe.
However, after experimenting a while, I found out that it can't be done in a performant way with SQL. ... | [
0.37903642654418945,
-0.256692498922348,
0.49121609330177307,
0.41305235028266907,
0.04075092077255249,
-0.28919219970703125,
0.24022004008293152,
0.13788537681102753,
-0.4205273687839508,
-0.9516870379447937,
0.1782214194536209,
0.23242269456386566,
-0.516838014125824,
-0.1805634796619415... | |
take up to a few seconds. If
> performance is an issue, the binary
> format is much faster, and can handle
> thousands of lookups per second.
Plus, they even give you [the code](http://www.maxmind.com/app/csharp) to query this database.
I'm using this in a production website with medium traffic, filtering every re... | [
0.5610233545303345,
-0.09930235892534256,
0.4873332679271698,
0.2803444564342499,
0.18563254177570343,
-0.19722890853881836,
0.13159455358982086,
0.023879114538431168,
-0.1798272579908371,
-0.7835040092468262,
0.058111678808927536,
0.25990813970565796,
0.31375887989997864,
-0.2111347168684... | |
On Microsoft Windows, is it possible to have a click through window (where all mouse clicks will go straight through), similar to WS\_EX\_TRANSPARENT, without the redrawing issues that WS\_EX\_TRANSPARENT has?
I am not talking about a layered window, but a fully opaque window where all clicks just go through to the it... | [
0.17598573863506317,
-0.26296404004096985,
0.30558040738105774,
0.06716743856668472,
0.022648068144917488,
-0.20782627165317535,
0.220608189702034,
0.3718126118183136,
-0.35466134548187256,
-0.7347453236579895,
-0.15812213718891144,
0.6114032864570618,
-0.31649142503738403,
0.1268298178911... | |
What is the best way of converting a multi-dimensional javascript array to JSON?
Most of the popular JavaScript frameworks have JSON utility functions included. For instance, jQuery has a function that directly calls a url and loads the JSON result as an object : <http://docs.jquery.com/Getjson>
However, you can get a... | [
0.29601725935935974,
-0.1465132087469101,
0.15487828850746155,
-0.10048843175172806,
-0.4769270718097687,
-0.1700265258550644,
0.04294596239924431,
-0.2453814148902893,
-0.18137294054031372,
-0.4674026668071747,
-0.2784605622291565,
0.44201359152793884,
-0.493737131357193,
-0.2000242024660... | |
I have a C++ method signature that looks like this:
```
static extern void ImageProcessing(
[MarshalAs(UnmanagedType.LPArray)]ushort[] inImage,
[MarshalAs(UnmanagedType.LPArray)]ushort[] outImage,
int inYSize, int inXSize);
```
I've wrapped the function in timing methods, both internal an... | [
0.31552255153656006,
0.15169468522071838,
0.5473105907440186,
-0.2001100480556488,
0.2415505349636078,
0.14800792932510376,
0.5222358107566833,
-0.38853588700294495,
-0.20986180007457733,
-0.5577799081802368,
0.1218297928571701,
0.6496370434761047,
-0.2700786590576172,
-0.00755772506818175... | |
use pointers or something? I'm sort of flummoxed as to where the extra time cost is coming from.
The answer is, sadly, far more mundane than these suggestions, although they do help. Basically, I messed up with how I was doing timing.
The timing code that I was using was this:
```
Ipp32s timer;
ippGetCpuFreqMhz(&time... | [
0.12493517249822617,
-0.02636556141078472,
0.42412638664245605,
0.040315717458724976,
-0.023945318534970284,
-0.05281832069158554,
0.25721701979637146,
-0.2742629051208496,
-0.3451603353023529,
-0.6027955412864685,
0.25068268179893494,
0.46414491534233093,
-0.3689475655555725,
0.1013793125... | |
<< std::endl;
```
This code is specific to the intel compiler, and is designed to give extremely precise time measurements. Unfortunately, that extreme precision means a cost of roughly 2.5 seconds per run. Removing the timing code removed that time constraint.
There still appears to be a delay of the runtime, thoug... | [
0.21072225272655487,
-0.15345226228237152,
0.6185500025749207,
-0.14253805577754974,
0.04152138903737068,
0.08446437865495682,
0.4359535574913025,
-0.04842153936624527,
-0.07256489247083664,
-0.7890065312385559,
-0.14463436603546143,
0.5119750499725342,
-0.47389861941337585,
-0.02889119461... | |
outImage, //[MarshalAs(UnmanagedType.LPArray)]ushort[] outImage,
int inYSize, int inXSize);
```
and called like:
```
unsafe {
fixed (ushort* inImagePtr = theInputImage.DataArray){
fixed (ushort* outImagePtr = theResult){
ImageProcessing((IntPtr)inImagePtr,... | [
-0.042481470853090286,
-0.26089760661125183,
0.5222587585449219,
-0.15845735371112823,
0.16705887019634247,
0.38507896661758423,
0.15374471247196198,
-0.3932337164878845,
-0.3276270627975464,
-0.32262223958969116,
-0.1904708743095398,
0.5829271078109741,
-0.7135021090507507,
-0.13770152628... | |
(IntPtr)outImagePtr,//theResult,
ysize,
xsize);
}
}
}
```
drops the executable time to 0.3 s (average of three runs). Still too slow for | [
-0.03308970108628273,
-0.14474870264530182,
0.6347605586051941,
-0.3545536398887634,
0.024284381419420242,
0.003980784676969051,
0.6977289319038391,
-0.30402570962905884,
-0.018074089661240578,
-0.5513312816619873,
-0.28781673312187195,
0.5924339890480042,
-0.30120110511779785,
-0.05748038... | |
my tastes, but a 10x speed improvement is certainly within the realm of acceptability for my boss. | [
0.3415071964263916,
0.06705795973539352,
0.3432868421077728,
0.0824708342552185,
0.3917204737663269,
0.11079956591129303,
0.10889191180467606,
0.4805103540420532,
0.07020693272352219,
-0.39616256952285767,
0.4685046672821045,
0.4845016896724701,
0.4973394572734833,
-0.0189931970089674,
0... | |
I'm looking into horizontal partitioning for a table that has time-series data in it. I've discovered that partitioning is much easier in 2005 than it was in 2000 but I can't seem to find this answer:
**Can I add/drop columns of a partitioned table?**
Are special steps required because it's partitioned?
I couldn't fi... | [
-0.028910735622048378,
0.10098286718130112,
0.235926553606987,
-0.00817011296749115,
0.07966776192188263,
-0.006163479294627905,
-0.1334758698940277,
-0.12770408391952515,
-0.6698518991470337,
-0.6700681447982788,
-0.042951375246047974,
0.19827280938625336,
-0.0017850019503384829,
0.237864... | |
will contains partitioned values
alter database adventureworks add filegroup YearFG1;
alter database adventureworks add filegroup YearFG2;
-- Now we need to add file to filegroups
alter database adventureworks add file (name = 'YearF1', filename = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdvWorksF1.nd... | [
-0.1529405415058136,
-0.2112017422914505,
0.985741376876831,
0.03057262860238552,
0.35610634088516235,
-0.1047186329960823,
-0.17587704956531525,
-0.5375946164131165,
-0.2889312207698822,
-0.6337933540344238,
-0.24074687063694,
0.5225503444671631,
-0.07899732142686844,
-0.16830739378929138... | |
null,
) on YearPS(DueDate)
-- And now we just have to use the table!
insert into PartitionedOrders values('20020101')
insert into PartitionedOrders values('20030101')
insert into PartitionedOrders values('20040101')
insert into PartitionedOrders values('20050101')
insert into PartitionedOrders values('20060101')
-- N... | [
-0.06618037074804306,
0.20978224277496338,
0.7173517346382141,
-0.07563161849975586,
-0.0688806027173996,
0.1631770133972168,
0.21338166296482086,
-0.5680476427078247,
-0.216347798705101,
-0.2980213761329651,
-0.003038488095626235,
0.2265421450138092,
0.14826440811157227,
0.224345162510871... | |
YearPS;
drop partition function YearPF;
alter database adventureworks remove file YearF1;
alter database adventureworks remove file YearF2;
alter database adventureworks remove filegroup YearFG1;
alter database adventureworks remove filegroup YearFG2;
*/
``` | [
-0.0030134939588606358,
0.0594574473798275,
0.5135918259620667,
-0.31849274039268494,
0.22228936851024628,
0.14867547154426575,
0.050996217876672745,
-0.17557579278945923,
-0.5562764406204224,
-0.2212037593126297,
-0.7356930375099182,
0.18109118938446045,
-0.2135169506072998,
0.33731067180... | |
Django templates offer the builtin tag `cycle` for alternating between several values at different points in a template (or for loop in a template) but this tag does not reset when it is accessed in a scope outside of the `cycle`s definition. I.e., if you have two or more lists in your template, the rows of all of whic... | [
0.3177888095378876,
-0.06806273013353348,
-0.0461161769926548,
-0.14712916314601898,
-0.29911327362060547,
-0.20527343451976776,
-0.11585281044244766,
0.04084324836730957,
-0.4942752420902252,
-0.3344418704509735,
0.23932194709777832,
0.2571236491203308,
-0.5955758690834045,
-0.20260794460... | |
first blog has an odd number of entries, then the first entry in a second blog will start as `even`, when I want it to start at `odd`.
```
{% for blog in blogs %}
{% for entry in blog.entries %}
<div class="{% cycle 'odd' 'even' %}" id="{{entry.id}}">
{{entry.text}}
</div>
{% endfor %}
{% endfor %}
... | [
0.06578325480222702,
0.032807908952236176,
0.4558902382850647,
0.10445767641067505,
-0.328739196062088,
0.0015865752939134836,
0.08944243937730789,
0.1305444985628128,
-0.3880772888660431,
-0.7481799125671387,
0.2596714198589325,
0.469790518283844,
-0.3588869571685791,
0.026852793991565704... | |
inner loop into a custom tag, but this also did not work, perhaps because the compile/render cycle moves the loop back into the outer loop? (Regardless of why, it didn't work for me.)
How can I accomplish this simple task!? I'd prefer not to create a data structure in my view with this information pre-compiled; that s... | [
0.24402600526809692,
-0.23091624677181244,
0.36032167077064514,
0.1161109209060669,
0.05430036038160324,
-0.15917375683784485,
0.5949164628982544,
-0.20213788747787476,
-0.16566914319992065,
-0.8552651405334473,
0.042594000697135925,
0.7528218030929565,
-0.42424196004867554,
-0.02928329072... | |
{{ entry.text }}
</div>
{% endfor %}
```
A little more verbose, but not hard to understand and it works great. | [
-0.13740846514701843,
0.15414762496948242,
0.5609179139137268,
-0.00936981849372387,
-0.2946917712688446,
-0.3010355532169342,
0.3460093140602112,
0.31725800037384033,
0.17390349507331848,
-0.6675848364830017,
-0.40013226866722107,
0.5716770887374878,
-0.022706402465701103,
-0.147615507245... | |
How can I use expect to send a password to an ssh connection.
say the password was p@ssword
and the ssh command was
ssh me@127.0.0.1
What would I do with expect to a make it input the password when it says
me@127.0.0.1's password:
?
The proper action of using an SSH key pair isn't an option because I would have ... | [
0.2465948909521103,
-0.27585652470588684,
0.2644851505756378,
-0.22672288119792938,
-0.28871530294418335,
-0.2017492651939392,
0.36028993129730225,
-0.31590914726257324,
0.07335688918828964,
-0.7943692207336426,
-0.04459015280008316,
0.6499548554420471,
-0.3550020754337311,
-0.236687600612... | |
I am looking to make a phone call from software and have the software read a message to the recipient. I have been using Asterisk, but have found it somewhat are to maintain and it was a pain to configure. I'm wondering if there are any services where you can send it a piece of text and a phone number and it will read ... | [
0.8171796202659607,
0.40538114309310913,
0.311077356338501,
0.11491357535123825,
0.11763838678598404,
0.07825759053230286,
0.7726842761039734,
0.3610704839229584,
0.013901522383093834,
-0.7772868275642395,
0.350048303604126,
-0.000020987748939660378,
0.008311509154736996,
-0.34643837809562... | |
but I used expect in other situations.
[Here](http://linux-bsd-central.com/index.php/content/view/26/) I found following suggestion:
```
#!/usr/local/bin/expect
spawn sftp -b cmdFile user@yourserver.com
expect "password:"
send "shhh!\n";
interact
``` | [
0.1996864229440689,
-0.22893129289150238,
0.29280537366867065,
-0.28450697660446167,
-0.17455348372459412,
-0.2116289585828781,
0.18582579493522644,
0.033309753984212875,
-0.05869641527533531,
-0.6178460717201233,
-0.21700313687324524,
0.6315633058547974,
-0.4545367360115051,
-0.3403057456... | |
I have a VB.NET program that I wish to to publish. In the code it references a HTML page that I created. Instead of having the URL hard coded (example: www.test2.com/folder/index.html)
I would like to have it relative to wherever the encoder is installed to (example: /folder/index.html)
How can I do this?
Thanks!
In... | [
0.7184266448020935,
0.20483757555484772,
0.6625277400016785,
-0.09983682632446289,
-0.1400374174118042,
-0.15370488166809082,
0.15247377753257751,
-0.017385873943567276,
-0.3589600622653961,
-0.6373293399810791,
0.029748693108558655,
0.7091333270072937,
-0.43141189217567444,
0.040521502494... | |
our own deployment method at work but if you :-
1. Add your file via Project Explorer
2. Right click on file, select properties and set Build Action to "content"
3. Go to Project, yourprojectnameProperties, then Publish tab, then
Application Files button
4. you should see the file listed there then set to Include(auto... | [
0.5051368474960327,
-0.035701993852853775,
0.5447563529014587,
0.13723380863666534,
0.2090812623500824,
-0.30472782254219055,
0.2950493097305298,
-0.21249356865882874,
-0.036518316715955734,
-0.8739150762557983,
-0.267280250787735,
0.7207112908363342,
-0.17184628546237946,
-0.0795335695147... | |
Is it possible to use SimpleModal (jquery plugin) with ASP.NET MVC? Since it has postback stuff in it.
Yes you can | [
0.1775735765695572,
-0.31009769439697266,
0.07482220232486725,
0.21148298680782318,
-0.028214115649461746,
-0.30994051694869995,
0.1595003306865692,
0.07226449996232986,
-0.14936193823814392,
-0.49969539046287537,
-0.29872724413871765,
0.6381147503852844,
-0.21221807599067688,
-0.275481849... | |
I am doing some maintenance on a VB6 Windows application. I have a .Net custom control component that I would like to use on a VB6 form. Is this possible? I know how to access non-visual .Net components from VB6 by generating a COM type library for the .Net DLL, but can a .Net custom control be used like a .OCX from VB... | [
0.6094455718994141,
-0.052197929471731186,
0.22905617952346802,
0.3911077678203583,
0.026747912168502808,
-0.011297415010631084,
-0.07758626341819763,
0.10944858938455582,
-0.2135128229856491,
-0.695543646812439,
0.07781407237052917,
0.5084192156791687,
-0.10651537030935287,
0.247049137949... | |
then add to VB6. It also lets you display .net forms from your VB6 code.
I've used it successfully to give my old VB6 code the .net toolbars - much nicer! | [
0.5712906122207642,
0.1355236917734146,
0.5266920328140259,
0.07390014827251434,
-0.13879233598709106,
-0.15500149130821228,
-0.18043208122253418,
0.0030289620626717806,
-0.34011954069137573,
-0.7177247405052185,
0.04696524143218994,
0.4585148096084595,
0.04054933786392212,
0.2060196697711... | |
I'm wondering if word wrapping should be applied in text emails? And what about HTML emails? If so, what character would you normally wrap at?
[RFC 2646](http://www.ietf.org/rfc/rfc2646.txt) says:
> The Text/Plain media type is the lowest common denominator of Internet email, with lines of no more than 997 characters ... | [
0.20237351953983307,
-0.16908636689186096,
0.37653619050979614,
-0.14536528289318085,
-0.2943597137928009,
0.1659509390592575,
0.2398446798324585,
-0.1059243306517601,
-0.4408445656299591,
-0.5061309337615967,
-0.26435330510139465,
0.2221118062734604,
-0.2947632074356079,
-0.02017318457365... | |
I have a DataGridView binded to this table:
```
[Users]
ID Name
-- ----
11 Qwe
22 Asd
```
Grid is direclty binded to typed dataset table.
I have a second table like this:
```
[Records]
ID UserID Data
-- ------ ----
67 11 ....
68 11 ....
```
Records.UserID is connected to Users with a foreign key.... | [
-0.013653518632054329,
0.286565363407135,
0.30028343200683594,
-0.33312392234802246,
-0.11299044638872147,
0.003674678970128298,
0.2425682246685028,
-0.28074800968170166,
-0.2512950301170349,
-0.9704367518424988,
0.07136522978544235,
0.6149476170539856,
-0.39004138112068176,
0.166812166571... | |
if I was doing this connected with sprocs but I want it to be binded and I simply have no idea how to do this.
Can you please give me any ideas?
In the end I had to this:
1. Create a DB class, with a public property (MyDataSetProperty) that returns the typedDataset
2. Create a custom Fill function in DataSet that ac... | [
-0.013868250884115696,
-0.05236709117889404,
0.3179970383644104,
-0.06373653560876846,
-0.18408647179603577,
-0.03576824441552162,
0.27600163221359253,
-0.5211589932441711,
0.31021928787231445,
-0.5115740299224854,
-0.018647128716111183,
0.39891788363456726,
-0.6540659666061401,
0.23625113... | |
I'm working on a Data Warehouse which, in the end, will require me to create reports based on business hours. Currently, my time dimension is granular to the hour. I'm wondering if I should be modifying my Time dimension to include a bit field for "business hour" or should I be creating some sort of calculated measure ... | [
0.5531368851661682,
0.1391865760087967,
0.4527283012866974,
0.09395783394575119,
0.12172438949346542,
-0.002497307723388076,
-0.013656842522323132,
0.08524388819932938,
-0.47128772735595703,
-0.5319973826408386,
0.19285719096660614,
0.45683392882347107,
0.10479039698839188,
0.4008866548538... | |
unable to reproduce historical reports. | [
0.037763986736536026,
0.4868617653846741,
-0.050103701651096344,
0.27238819003105164,
0.14841346442699432,
0.10842861980199814,
0.5151952505111694,
0.22701933979988098,
-0.017188003286719322,
0.036369435489177704,
-0.25131234526634216,
0.019591456279158592,
-0.03445756062865257,
0.30604195... | |
I'm using a `QTabWidget` to render multiple documents in a window, and I want to draw a close button on each tab. I'm using *Vista* and *Qt4*, so the tab widget is a native windows control; this may affect the feasibility.
Does anyone know if it is possible to do this using the `QTabWidget` control, or do I have to cr... | [
0.29534998536109924,
0.14571337401866913,
0.5807361006736755,
-0.011559669859707355,
0.0343453586101532,
-0.010999279096722603,
0.4878748059272766,
0.11799115687608719,
0.027708804234862328,
-1.024656057357788,
0.1213773638010025,
0.7819023132324219,
-0.16417336463928223,
0.229027658700943... | |
to be released in March 2009) will have the [ability to add close buttons](http://labs.trolltech.com/blogs/2008/07/02/some-qtabbar-qtabwidget-love/) to tabs either manually or by setting a `QTabBar.TabsClosable` property.
Until then, the only way to get close buttons is to subclass `QTabWidget` or `QTabBar` and add it... | [
0.04424776881933212,
-0.0480266772210598,
1.4493328332901,
0.066062331199646,
-0.010772043839097023,
0.13030961155891418,
-0.021657243371009827,
-0.1318788230419159,
0.11292804032564163,
-0.24716247618198395,
-0.20299185812473297,
0.4099158048629761,
-0.4495527446269989,
0.0282895322889089... | |
My organization builds a C++ application that runs on multiple operating systems.
Should the build number, visible to customer, be the same for a given state of the source code tree on all the platforms?
Yes, I think so.
One practice you can use is to use the changelist number or however your source control system i... | [
0.7771337032318115,
0.41504737734794617,
0.21247106790542603,
-0.09032811969518661,
0.2606303095817566,
0.04815354570746422,
-0.2203419953584671,
0.09507795423269272,
-0.31519943475723267,
-0.4317864775657654,
0.1322632133960724,
0.4549594521522522,
0.02162199094891548,
-0.0581889972090721... | |
We are using a programming language that does not have a linear regression function in it. We have already implemented a single variable linear equation:
> y = Ax + B
and have simply calculated the A and B coefficents from the data using a solution similar to [this Stack Overflow answer](https://stackoverflow.com/que... | [
-0.08806739747524261,
0.13140761852264404,
0.17497414350509644,
0.2755432426929474,
0.23750706017017365,
-0.006348688155412674,
0.10513567924499512,
-0.45535507798194885,
-0.09737101197242737,
-0.5958981513977051,
0.04464626684784889,
0.4576171636581421,
-0.12895774841308594,
0.08713238686... | |
of x, y, and z's?
so you have three linear equations
```
k = aX1 + bY1 + cZ1
k = aX2 + bY2 + cZ2
k = aX3 + bY3 + cZ3
```
What you can do is rewrite it as matriz
```
| x1 y1 z1 | | a | | k |
| x2 y2 z2 | | b | = | k |
| x3 y3 y3 | | c | | k |
```
to work out `[a b c ]` do the following matrix operation
```
| ... | [
-0.5399373769760132,
0.2879837155342102,
0.5690770149230957,
-0.08902398496866226,
-0.19220630824565887,
0.1450585126876831,
0.4008634090423584,
-0.7510063648223877,
-0.49394676089286804,
-0.12974782288074493,
-0.20158761739730835,
0.2679468095302582,
-0.16680079698562622,
0.45568743348121... | |
z1 | | k |
| b | = inverse( | x2 y2 z2 | ) | k |
| c | | x3 y3 y3 | | k |
```
The formula for a 3x3 matrix inverse can be found [here](http://www.dr-lex.be/random/matrix_inv.html) | [
-0.07421734184026718,
-0.17016169428825378,
0.415897011756897,
-0.2771633565425873,
-0.3764641582965851,
0.03131812810897827,
-0.26473504304885864,
-0.5822972059249878,
-0.14615130424499512,
-0.06902096420526505,
-0.00668848492205143,
0.3199085295200348,
-0.35145166516304016,
0.14462383091... | |
Why does the compiler give me the following error message on the provided code: "initializer element is not constant". The corresponding C/C++ code compiles perfectly under gcc.
```
#import <Foundation/Foundation.h>
const float a = 1;
const float b = a + a; // <- error here
int main (int argc, const char * argv[]) {... | [
0.1696525365114212,
0.07378962635993958,
0.2003055214881897,
-0.2564745843410492,
0.33005934953689575,
-0.041728995740413666,
0.47939836978912354,
-0.3290192186832428,
-0.13722728192806244,
-0.28833651542663574,
-0.0030226148664951324,
0.5900821685791016,
-0.5200608968734741,
0.08422201871... | |
part of the standard, apparently. It is important that all file-scope declared variables are initialised with constant expressions, not expressions involving constant variables.
You are initialising the float 'b' with the value of another object. The value of any object, even if it is a const qualified, is not a const... | [
0.7217111587524414,
-0.043839894235134125,
0.13810844719409943,
-0.08027010411024094,
0.07578790932893753,
-0.47848284244537354,
-0.28649207949638367,
-0.14459499716758728,
-0.06831658631563187,
0.3358834385871887,
-0.25523707270622253,
0.4275820553302765,
-0.5158071517944336,
0.0008536811... | |
This tool will be used to estimate project costs for clients. These are not necessarily software projects. Currently there is an Excel spreadsheet with a number of categories with individual tasks for each category. Each of these has some sort of weight or constant involved and is partially responsible in determining t... | [
0.5029600858688354,
-0.059370964765548706,
0.2729688286781311,
0.4608975946903229,
-0.07112106680870056,
0.26464465260505676,
-0.12824173271656036,
-0.41794997453689575,
-0.17125818133354187,
-0.592207670211792,
0.06801509857177734,
0.6504111886024475,
0.34279558062553406,
-0.0092456303536... | |
what we think the costs and hours will be for the project.
Tool requirements:
* Need to be able to add new categories/tasks
* Need to be able to save a bid and recall it when necessary
* Need to be able to modify current weights/constants
At the moment I could easily design a database schema and an ASP.NET page layo... | [
0.53008633852005,
0.08238563686609268,
0.12747228145599365,
0.4577201306819916,
0.12813587486743927,
0.028077326714992523,
-0.013199109584093094,
-0.25475069880485535,
-0.30192065238952637,
-0.7713894248008728,
0.1651184856891632,
0.653016209602356,
0.21290411055088043,
-0.0130874328315258... | |
the problem of displaying the bid, how will I be able to determine how to display it if there are 90 versions of the data running around?
Any ideas are appreciated.
PS: No idea how to tag this.
The daily builds of AnkhSVN 2.0 have a completely new annotate (blame) implementation inspired by the TFS annotate feature.
... | [
0.13661804795265198,
-0.2464463710784912,
0.41354286670684814,
0.07126830518245697,
-0.5933964252471924,
-0.060134679079055786,
0.3201032876968384,
-0.6350692510604858,
-0.03776310011744499,
-0.6136918067932129,
0.136100172996521,
0.12140453606843948,
-0.25293421745300293,
-0.1033357158303... | |
also allows several commands on the revision regions in the left bar.
It currently doesn't implement the jump to active line. But you can use the Visual Studio goto line (Ctrl+G) command in it. (You might be able to script this in a macro)
The easiest way to start annotate is right click on the editor ->Subversion->A... | [
-0.22414150834083557,
-0.178292915225029,
0.6568612456321716,
0.16940511763095856,
-0.2935638129711151,
-0.04176711663603783,
0.3745687007904053,
-0.13491104543209076,
-0.2464151233434677,
-0.5035170316696167,
-0.24248382449150085,
0.40887460112571716,
-0.15880896151065826,
-0.132251426577... | |
*I was having trouble parsing some dodgy HTML with BeautifulSoup. Turns out that the HTMLParser used in newer versions is less tolerant than the SGMLParser used previously.*
---
Does BeautifulSoup have some kind of debug mode? I'm trying to figure out how to stop it borking on some nasty HTML I'm loading from a crabb... | [
-0.0031895062420517206,
0.23744097352027893,
0.2556617259979248,
-0.15470682084560394,
-0.2618459463119507,
-0.2613632380962372,
0.7496122121810913,
0.2635549008846283,
-0.0023001430090516806,
-0.401871919631958,
0.011415384709835052,
0.22009176015853882,
-0.1585347056388855,
0.33248829841... | |
</BODY>
</HTML>
```
BeautifulSoup gives up after the `<HTTP-EQUIV...>` tag
```
In [1]: print BeautifulSoup(c).prettify()
<html>
<head>
<title>
Title
</title>
</head>
</html>
```
The problem is clearly the HTTP-EQUIV tag, which is really a *very* malformed `<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">` ta... | [
-0.4440927505493164,
0.20798079669475555,
1.0747883319854736,
-0.11247552186250687,
-0.40211963653564453,
0.12835560739040375,
0.3581503927707672,
-0.04963325709104538,
0.19510889053344727,
-0.3144718110561371,
-0.6363648176193237,
0.4580152928829193,
-0.17606167495250702,
0.09528367221355... | |
in which BeautifulSoup will tell me what it is doing, so I can figure out what it is treating as the tag name in this case?
Your problem must be something else; it works fine for me:
```
In [1]: import BeautifulSoup
In [2]: c = """<HTML>
...: <HEAD>
...: <TITLE>Title</TITLE>
...: <HTTP-E... | [
-0.06781576573848724,
-0.21200639009475708,
0.6691145300865173,
0.06624586135149002,
-0.15511952340602875,
0.004694806877523661,
-0.06450287252664566,
-0.29302293062210083,
-0.09294973313808441,
-0.11326083540916443,
-0.40849965810775757,
0.2155701071023941,
-0.5910415053367615,
-0.2467956... | |
...
...: ...
...: </BODY>
...: </HTML>
...: """
In [3]: print BeautifulSoup.BeautifulSoup(c).prettify()
<html>
<head>
<title>
Title
</title>
<http-equiv>
</http-equiv>
</head>
<body>
...
...
</body>
</html>
In [4]:
```
This is Python 2.5.2 with BeautifulSoup 3.0.7a ... | [
-0.035536427050828934,
-0.004269968718290329,
0.46427053213119507,
-0.1108093336224556,
-0.41741207242012024,
0.2377760261297226,
0.031740378588438034,
0.15271306037902832,
-0.24014697968959808,
-0.46841201186180115,
-0.24838046729564667,
0.16750122606754303,
-0.373708575963974,
-0.1099346... | |
to the structure that you haven't mentioned in the problem? | [
0.5319837331771851,
0.08920777589082718,
-0.006923168431967497,
0.1021866574883461,
0.31214362382888794,
-0.13306741416454315,
0.09170863032341003,
-0.08956237137317657,
-0.6278196573257446,
-0.22352802753448486,
0.08257849514484406,
0.2847748100757599,
-0.35223257541656494,
0.181522265076... | |
I have a .net library dll that acts like a functional library. There are a bunch of static types along with static methods.
There is some initialization code that I need to run to set up the library ready for use.
When the assembly gets loaded is there a way to ensure that a particular method is run? Something like A... | [
0.49754902720451355,
-0.1018514633178711,
0.06201164796948433,
0.14871607720851898,
-0.14623039960861206,
-0.21616894006729126,
0.10765964537858963,
-0.08847877383232117,
-0.26079559326171875,
-0.6703884601593018,
0.07613792270421982,
0.4479312598705292,
-0.448853462934494,
0.1711184978485... | |
entry points there is no guarantee that this particular type will be used.
Thanks!
Why do you need all the data to be loaded before *any* of it is used, rather than just when the first type which needs it is used?
I don't believe there's any way of forcing a method to be run on assembly load, from within the assembly... | [
0.2282637357711792,
0.2972339391708374,
0.1769717037677765,
0.41826876997947693,
-0.11410567164421082,
0.10530248284339905,
-0.00874658115208149,
-0.07529349625110626,
-0.3813555836677551,
-0.49842050671577454,
0.07721412926912308,
0.3185628652572632,
-0.045057378709316254,
0.1350301653146... | |
(If you've got separate bits of data which can be used independently, perhaps create separate types for them.) | [
0.46905097365379333,
0.15881311893463135,
-0.4262916147708893,
0.37144243717193604,
0.025793423876166344,
0.07690585404634476,
-0.06605251133441925,
-0.21154287457466125,
-0.186891108751297,
-0.3876553475856781,
-0.16678626835346222,
0.1953485906124115,
-0.2001429796218872,
0.0246857814490... | |
I'm trying to determine at runtime what the SqlDbType of a sql server table column is.
is there a class that can do that in System.Data.SqlClient or should I do the mapping myself? I can get a string representation back from
```
SELECT DATA_TYPE, CHARACTER_MAXIMUM_LENGTH
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABL... | [
0.10327000916004181,
0.057808469980955124,
0.4168497920036316,
0.16952693462371826,
-0.11852699518203735,
-0.14438952505588531,
0.08210474252700806,
0.03195333853363991,
-0.14712493121623993,
-0.706843912601471,
0.13890238106250763,
0.24319402873516083,
-0.30395686626434326,
0.206165686249... | |
make a function that I can call that will return me a SqlDBType when passed a SqlConnection, a table name, and a column name.
In SQL Server you can use the FMTONLY option. It allows you to run a query without getting any data, just returning the columns.
```
SqlCommand cmd = connection.CreateCommand();
cmd.CommandText... | [
0.012717095203697681,
-0.004010121338069439,
0.9226515889167786,
-0.16465364396572113,
0.18880106508731842,
-0.07474088668823242,
0.29073524475097656,
-0.31029483675956726,
-0.16060267388820648,
-0.5215045809745789,
-0.24383527040481567,
0.7382802963256836,
-0.36467593908309937,
0.33599793... | |
```
module Superpower
# instance method
def turn_invisible
...
end
# module method
def Superpower.turn_into_toad
...
end
module Fly
def flap_wings
...
end
end
end
Class Superman
include Superpower
...
def | [
0.012102686800062656,
-0.08853176981210709,
0.357646644115448,
0.23684652149677277,
-0.2828562557697296,
-0.04728715121746063,
0.4058094322681427,
-0.2785377502441406,
-0.3256933093070984,
-0.19607704877853394,
-0.31540536880493164,
0.3580714166164398,
-0.40166807174682617,
-0.019975647330... | |
run_away
# how to call flap_wings?
# how to call turn_invisible?
end
def see_bad_guys(bad_guy = lex_luthor)
#is this correct?
Superpower.turn_into_toad(bad_guy)
end
end
```
Hi I saw some ruby code which I couldn't understand. How do you call flap\_wings from within the Sup... | [
0.5133688449859619,
-0.1871439665555954,
0.23571118712425232,
0.2186596542596817,
-0.10029369592666626,
-0.22503028810024261,
0.417512446641922,
0.14687055349349976,
-0.6579599380493164,
-0.3206704258918762,
-0.1643831878900528,
0.20478805899620056,
-0.6892032623291016,
-0.1511626988649368... | |
and when should you do that?
I'm assuming that when you say embedding a module you mean the "Fly" module from your example is embedded in "Superpower".
If that is the case, I would call it a nested module. The only time I would use a Nested Module is when the nested module deals specifically with the main module, such... | [
0.5827475190162659,
-0.29062655568122864,
-0.19514821469783783,
0.3419961929321289,
-0.28788721561431885,
-0.23134540021419525,
0.016640765592455864,
-0.2969818711280823,
-0.15716417133808136,
-0.39154547452926636,
-0.14352796971797943,
0.6095279455184937,
-0.3957187235355377,
-0.140952229... | |
include Fly
# ...
end
```
The details are described further on [this blog](http://rubyonrailswin.wordpress.com/2007/03/08/nested-modules/). | [
0.5948615074157715,
-0.16900505125522614,
-0.061511773616075516,
-0.16808854043483734,
0.26203033328056335,
-0.2847347557544708,
0.4331430196762085,
-0.5368620157241821,
-0.2124575823545456,
-0.18061289191246033,
-0.15038475394248962,
0.28571653366088867,
-0.5390155911445618,
-0.1488209515... | |
I am writing a perl script that manipulates password protected zip files. Consequently I need to store & retrieve passwords to do this. I have three options for storing the password:
1. Store in plain text. Before you jump in, I have pretty much ruled out this option.
2. Use a simple password munger to prevent casual/... | [
0.40461406111717224,
-0.022558486089110374,
0.27085384726524353,
0.001966292504221201,
-0.042739447206258774,
-0.23237013816833496,
0.43729662895202637,
0.014010407961905003,
-0.05847182497382164,
-0.6495041251182556,
-0.2330821007490158,
0.44525155425071716,
-0.3199916183948517,
-0.092240... | |
ActivePerl package manager.
You can also use the pure Perl version of those modules (look for the name ending in \_PP).
I found these modules on CPAN:
* [Crypt::Blowfish](http://search.cpan.org/~dparis/Crypt-Blowfish-2.12/)
* [Crypt::Rijndael](http://search.cpan.org/~bdfoy/Crypt-Rijndael-1.07/) | [
-0.15127886831760406,
-0.3532923460006714,
0.5188072323799133,
-0.30339324474334717,
-0.0666833147406578,
-0.15943138301372528,
0.5144708156585693,
-0.19043117761611938,
-0.07608795911073685,
-0.3374069333076477,
-0.404362291097641,
0.705901026725769,
-0.6277740597724915,
-0.24927619099617... | |
```
typedef void (FunctionSet::* Function)();
class MyFunctionSet : public FunctionSet
{
protected:
void addFunctions()
{
addFunction(Function(&MyFunctionSet::function1));
}
void function1()
{
// Do something.
}
};
```
The addFunction method adds the function to a list in the... | [
0.11231172829866409,
-0.03787770867347717,
0.24438126385211945,
-0.23357249796390533,
0.05491496995091438,
-0.03316779434680939,
0.13679294288158417,
-0.29694420099258423,
-0.02402767725288868,
-0.48346737027168274,
-0.41061004996299744,
0.7550472617149353,
-0.6227374076843262,
0.013492374... | |
to a member function pointer to a function of the base class. Well, that's forbidden, because it opens up a hole in the type-system. It comes at a surprise (at least for me, the first time i heard that). Read [this answer](https://stackoverflow.com/questions/420726/how-to-cast-member-variable-pointer-to-generic-type-in... | [
-0.06413710117340088,
-0.057923004031181335,
0.2307332456111908,
-0.24471883475780487,
-0.12070071697235107,
-0.1623980551958084,
0.14500391483306885,
-0.37856826186180115,
0.04924702271819115,
-0.17232345044612885,
-0.19341105222702026,
0.43574243783950806,
-0.614484429359436,
0.343841552... | |
I'm coming to learn Perl from a Python background where the following hash-to-string conversion is built in to the language:
```
>>> d = {'a': 1, 'b': 2, 'c': 3}
>>> str(d)
"{'a': 1, 'c': 3, 'b': 2}"
```
Is there a builtin and/or module that has a subroutine with output along the lines of:
```
"('a' => 1, 'b' => 2,... | [
0.07377442717552185,
-0.09609302878379822,
0.7282125949859619,
-0.2645210325717926,
-0.08660544455051422,
0.04390517994761467,
0.21625570952892303,
0.5494531989097595,
-0.019631890580058098,
-0.6520174741744995,
-0.041865911334753036,
0.32276594638824463,
-0.1423841118812561,
0.28273499011... | |
What is the best way to time a code section with high resolution and portability?
```
/* Time from here */
ProcessIntenseFunction();
/* to here. */
printf("Time taken %d seconds %d milliseconds", sec, msec);
```
Is there a standard library that would have a cross-platform solution?
I think this should work:
```
#i... | [
0.02498472109436989,
-0.07559721916913986,
0.36976689100265503,
0.11677416414022446,
0.3600763976573944,
0.09567654877901077,
0.1759306639432907,
-0.35339802503585815,
-0.19170820713043213,
-0.8087691068649292,
-0.16086918115615845,
0.6021366119384766,
-0.16197329759597778,
0.0481795631349... | |
I'm trying to redirect site.com w.site.com ww.site.com and wwww.site.com to www.site.com.
My boss wants to ensure typos make it to the site as well.
They redirect fine. I'm using ASP.Net and throw a 301 redirect back using a regular expression, however, tools such as <http://www.seoconsultants.com/tools/headers.asp> ... | [
0.7062214016914368,
0.17779667675495148,
0.1957695633172989,
-0.2764531970024109,
-0.09687627106904984,
-0.21679767966270447,
0.49900683760643005,
0.08009739220142365,
-0.20457658171653748,
-0.6639302372932434,
0.14978422224521637,
0.36259227991104126,
-0.2932765483856201,
-0.0325907021760... | |
web tools to see if these work, so does anyone know a way to prove that a 301 is being sent back correctly. Or can anyone recommend a way I can check for myself if a proper 301 is being returned?
Add a **\* A record** to your dns entry. Yes that is an asterisk. This will cause anything that is not explicitly defined to... | [
0.740219235420227,
-0.10095997899770737,
-0.21162168681621552,
0.32055097818374634,
0.0006710917223244905,
-0.6384284496307373,
0.43272045254707336,
0.20365118980407715,
-0.4571859538555145,
-0.5722302794456482,
0.0567379891872406,
0.2615475654602051,
0.04007764160633087,
0.133912757039070... | |
I would like to produce an executable that could make an update verification before it loads, and then, if there is some update, I would like it to replace its file and then reload.
I think it would be better than to have an "updater" exe separated, because what if the updater has to be updated?
It is not possible fo... | [
0.30568501353263855,
0.1105194240808487,
0.40011680126190186,
-0.1681525856256485,
-0.03331499546766281,
-0.2331385761499405,
0.25692930817604065,
0.32461437582969666,
-0.33736348152160645,
-0.5650549530982971,
-0.43841394782066345,
0.5906985402107239,
-0.6491416096687317,
0.31835377216339... | |
over the old version when the program is running, and the solution is that you CAN rename the running exe and THEN download the new with the same name as the running exe had before the renaming occured. Then its just a verification of the downloaded exe:s size and a restart of the program and you are up and running! | [
0.3585957884788513,
-0.09657694399356842,
0.5412399172782898,
0.20003174245357513,
0.1654299795627594,
-0.19889205694198608,
0.40158453583717346,
0.07939378917217255,
-0.27773043513298035,
-0.5718610882759094,
-0.41682350635528564,
0.812823474407196,
-0.2307547926902771,
0.2709722518920898... | |
Why would SDL\_Mixer not play music for certain mp3s?
I am utilizing SDL\_Mixer for music playback in an application I am creating. On certain songs (entire albums actually), the music will simply not play without returning any errors. The music data loads successfully using Mix\_LoadMUS and when executing Mix\_PlayMu... | [
0.449624627828598,
0.06171691417694092,
0.05812165513634682,
0.18488822877407074,
-0.17334622144699097,
-0.44911372661590576,
0.19736218452453613,
-0.27460482716560364,
0.09272440522909164,
-0.47761669754981995,
0.010312278755009174,
0.9144517779350281,
-0.29242122173309326,
0.263786196708... | |
mp3?
I know the mp3's are functional since I can play them in other music players. I also know for a fact that they are not playing (as opposed to perhaps the volume being turned down) since Mix\_PlayingMusic returns 0.
Thanks everyone!
This actually wound up being a sound issue with that particular computer. Upon tr... | [
0.32931452989578247,
0.11499938368797302,
0.293892502784729,
0.309701144695282,
-0.10949496179819107,
-0.292028546333313,
0.3181270956993103,
-0.02329879067838192,
-0.31344932317733765,
-0.4862810969352722,
0.24279694259166718,
1.1073328256607056,
0.015537235885858536,
-0.09579840302467346... | |
We've been having an problem recently where other sites are running our e-commerce site inside a frameset where our site (with the offenders affiliate id tacked on) is the only content in a single full width frame. So essentially it looks and feels like our site with their URL at the top. We can cut off their affiliate... | [
0.8532545566558838,
0.24129757285118103,
0.3078998625278473,
0.3181734085083008,
0.08420572429895401,
-0.343448281288147,
0.35927140712738037,
0.18682965636253357,
-0.430396169424057,
-0.5231032967567444,
0.20900939404964447,
0.2057938277721405,
-0.3059494197368622,
0.2168199121952057,
-... | |
from happening? Note that adding targets to to all links is not feasible, but adding a snippet of JS to all pages is, since the header and footer portions are shared sitewide from a single source.
Another possibility would be at the Apache level (if there is anything we could do server side) as we do pass all request... | [
0.5802224278450012,
-0.22922120988368988,
0.6643001437187195,
0.11485390365123749,
0.08594996482133865,
-0.3130214810371399,
0.4393916130065918,
-0.11848802864551544,
-0.08965573459863663,
-0.48548927903175354,
-0.09307855367660522,
0.2780531942844391,
-0.24001623690128326,
0.1479098945856... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.