text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
A bit of backstory: I am working on an web application that requires quite a bit of time to prep / crunch data before giving it to the user to edit / manipulate. The data request task ~ 15 / 20 secs to complete and a couple secs to process. Once there, the user can manipulate vaules on the fly. Any manipulation of valu... | [
0.2807976305484772,
-0.11337216943502426,
0.47795265913009644,
0.14237362146377563,
-0.024927465245127678,
0.17816905677318573,
0.4245453178882599,
-0.10955609381198883,
-0.016533903777599335,
-0.3564223051071167,
-0.05477854609489441,
0.44017520546913147,
0.37018346786499023,
-0.246959373... | |
will not have to call it again until the user is 100% done working with it. So, the first pull will take a while, but, using Ajax, I am going to hit the in-memory data to constantly update and keep the response time to around 2 secs or so (I hope).
In order to make this efficient, I am moving the intial data into memo... | [
-0.12269485741853714,
0.01949921064078808,
0.6226558089256287,
-0.003567431354895234,
-0.17782530188560486,
-0.007049192674458027,
0.3499755859375,
-0.01818176731467247,
-0.1634761393070221,
-0.7635692954063416,
-0.06454146653413773,
0.9016969203948975,
-0.07666581869125366,
-0.42596957087... | |
best way to storing this data, assuming that only 1 user will be working w/ this data at any given moment.
Also, the user could potentially be working in this process for a few hours. When the user is working w/ the data, I will need some kind of failsafe to save the user's current data (either in a db or in a serial... | [
0.21088339388370514,
0.07992623001337051,
0.18895168602466583,
0.21112920343875885,
0.20428603887557983,
-0.11410026997327805,
0.3269650638103485,
-0.2501302659511566,
-0.09403689950704575,
-0.673446536064148,
-0.06223771721124649,
0.589525043964386,
0.017300041392445564,
0.113079003989696... | |
that the user gets disconnected / distracted for too long.
So far, here are my musings:
Session State - Pros: Locked to one user. Has the Session End event which will meet my failsafe requirements. Cons: Slowest perf of the my current options. The Session End event is sometimes tricky to ensure it fires properly.
Ca... | [
-0.01295637059956789,
0.18065175414085388,
0.5843219757080078,
-0.052721042186021805,
0.02145657315850258,
-0.1456097960472107,
0.5459573268890381,
-0.07247799634933472,
-0.18318232893943787,
-0.30282577872276306,
-0.19765132665634155,
0.8238757252693176,
-0.26768243312835693,
0.1389219313... | |
do not collide w/ each other's work.
Static - Pros: Best Perf. Easies to maintain as I can directly leverage my current class structures. Cons: No easy failsafe step other than a write based on time intervals. Global in scope - will have to ensure that users do not collide w/ each other's work.
Does anyone have any s... | [
0.028116701170802116,
-0.05903811752796173,
0.20476052165031433,
0.10657131671905518,
-0.31632205843925476,
-0.33730530738830566,
0.21166062355041504,
0.1299763172864914,
-0.2661178410053253,
-0.6957405209541321,
0.1359994113445282,
0.6550336480140686,
-0.333579421043396,
-0.11165233701467... | |
cache you want to store the data in to avoid conflicts.
For tracking user-made changes, I'd go with a more old-school approach: append to a text file each time the user makes a change and then sweep that file at intervals to save changes back to DB. If you name the files based on the user/account or some other session... | [
0.40335625410079956,
0.1863953322172165,
0.20738184452056885,
-0.010534783825278282,
0.09053166210651398,
0.0028768349438905716,
0.19998884201049805,
-0.45905381441116333,
-0.12089764326810837,
-0.5610935091972351,
0.0786728486418724,
0.6218104958534241,
-0.2617725729942322,
-0.03367331996... | |
of this can be adjusted to stagger the write out more: save changes to Session, then write that to file at intervals, then sweep the file at larger intervals. you can tune it to performance and choose what level of possible user-change loss will be possible. | [
0.27490556240081787,
-0.03671231120824814,
0.4894619882106781,
0.2683491110801697,
0.23320038616657257,
-0.13450802862644196,
0.3596530556678772,
-0.3431592285633087,
-0.34261393547058105,
-0.7102923393249512,
0.2567097246646881,
0.9006839394569397,
-0.023347390815615654,
0.015184737741947... | |
Is it possible to use an image captured with the iPhone's camera as a texture that is then manipulated in OpenGL ES (flag wave effect, etc.)? The main problem being the size of the iPhone screen being 320x480 (no status bar) and thus the image won't have dimensions that are power-of-2. Is the main option copying it int... | [
-0.19349034130573273,
-0.05850962549448013,
0.3785305321216583,
0.3882991373538971,
0.18751591444015503,
0.16658005118370056,
0.335153728723526,
0.00023873454483691603,
-0.24817492067813873,
-0.6083857417106628,
0.15381798148155212,
0.5061171054840088,
-0.1792508065700531,
-0.3794870674610... | |
I have some windows services written in C#. When somebody stops or starts the service, I would like to be able to determine who it was and log that information.
I tried logging `Environment.UserName` but that evaluates to SYSTEM even on my local machine.
Also, for the time being these services are running on Windows ... | [
0.3592950999736786,
0.14179706573486328,
0.17149509489536285,
-0.038666609674692154,
0.05034675821661949,
-0.19622789323329926,
0.5149031281471252,
0.25047919154167175,
-0.3254278600215912,
-0.6114516854286194,
-0.06932641565799713,
0.6811368465423584,
-0.13250532746315002,
0.1229342445731... | |
to query or hook those events from the Service Control Manager as they happen, or
2. You can definitely just query the Event Viewer's "System" log to look for those events for your Service.
Hope that leads you to your solution. | [
0.09322534501552582,
-0.40141957998275757,
0.2779855728149414,
0.41606780886650085,
0.0872153639793396,
-0.31121504306793213,
0.14476092159748077,
0.2596360146999359,
-0.2567829191684723,
-0.6975475549697876,
0.03236459940671921,
0.48392757773399353,
-0.13007809221744537,
-0.00618246244266... | |
Does anyone know of an alternative to the **[Internet Developer Toolbar](http://www.microsoft.com/downloads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en)** for IE7 that I can use for dom browsing and css debugging? I've used Firebug in the past and the IDT seemed anemic in comparison. It al... | [
0.0727604553103447,
0.007874202914536,
0.08618459850549698,
-0.09636930376291275,
-0.1918032467365265,
-0.17853805422782898,
0.3955138921737671,
0.19343748688697815,
-0.14405670762062073,
-0.7414480447769165,
-0.06344250589609146,
0.6333011388778687,
-0.16769692301750183,
0.040360596030950... | |
damn thing. All the menu options are grayed out even after restarting IE7. Good thing I asked this question, looks like the IDT is just as buggy as I remember.
[Debug Bar](http://www.debugbar.com/) is pretty nice, and is free for personal use. You have to pay for it if using commercially though.
**Update:** I should a... | [
0.29845717549324036,
0.2605913281440735,
0.1958480179309845,
0.061552777886390686,
-0.002026880392804742,
-0.28309640288352966,
0.71614009141922,
0.5903980135917664,
-0.2816509008407593,
-0.49790114164352417,
-0.13295428454875946,
0.5763241648674011,
-0.04673664644360542,
0.133469164371490... | |
How do I connect to a remote URL in Java which requires authentication. I'm trying to find a way to modify the following code to be able to programatically provide a username/password so it doesn't throw a 401.
```
URL url = new URL(String.format("http://%s/manager/list", _host + ":8080"));
HttpURLConnection connectio... | [
0.049392808228731155,
0.17840154469013214,
0.5757767558097839,
0.022609803825616837,
0.19856534898281097,
-0.23551814258098602,
0.3429906368255615,
-0.34504279494285583,
0.050398070365190506,
-0.7152428030967712,
-0.17492777109146118,
0.4436861574649811,
-0.014643745496869087,
0.2238024026... | |
more authentication options (as well as session support, etc.) | [
0.19725264608860016,
-0.055249959230422974,
0.007761307526379824,
0.3476804196834564,
0.09606903046369553,
-0.34930548071861267,
0.4132424592971802,
-0.23821096122264862,
-0.18089595437049866,
-0.5691995620727539,
-0.3327726721763611,
0.3917718827724457,
0.07568282634019852,
-0.49948006868... | |
Here's my situation:
I'm trying to create a SSL certificate that will be installed on all developer's machine's, along with two internal servers (everything is non-production).
What do I need to do to create a certificate that can be installed in all of these places?
Right now I've got something along these lines, u... | [
0.39871081709861755,
0.3791205585002899,
0.7225143909454346,
0.01461542584002018,
0.022789383307099342,
-0.06959865242242813,
0.4521757960319519,
0.06710130721330643,
-0.2932365834712982,
-0.9721794724464417,
-0.02094721980392933,
0.3327384293079376,
-0.07014758884906769,
0.216689497232437... | |
and when I install it on my local machine IIS, everytime I visit a page via https:, I get the security prompt (even after I've installed the certificate). Has anyone done this before?
Here are my scripts for doing this:
### Create Certificate Authority
Create a self-signed certificate (-r), with an exportable private... | [
0.20615048706531525,
0.37465453147888184,
0.6432361602783203,
-0.1237444058060646,
0.02585228532552719,
-0.2637089490890503,
0.17099052667617798,
-0.28835681080818176,
-0.2040092796087265,
-0.7523603439331055,
-0.30549272894859314,
0.2630288302898407,
-0.03703618049621582,
0.34050366282463... | |
line)
### Create Server Certificate
Create a server certificate, with an exportable private key (-pe), using SHA1 (-a) for key exchange (-sky exchange).
It can be used as an SSL server certificate (-eku 1.3.6.1.5.5.7.3.1).
The issuing certificate is in a file (-ic), as is the key (-iv).
Use a particular crypto provid... | [
0.1440727412700653,
-0.1530253291130066,
1.1869930028915405,
0.11088912934064865,
-0.020476236939430237,
0.21873833239078522,
0.09753423929214478,
-0.08920746296644211,
0.04517795890569687,
-0.3682253658771515,
-0.4609110653400421,
-0.15517060458660126,
-0.07062746584415436,
0.340278893709... | |
-pvk server.pvk -spc server.cer -pfx server.pfx
```
You then use the .PFX file in your server app (or install it in IIS). Note that, by default, **`pvk2pfx` doesn't apply a password to the output PFX file**. You need to use the `-po` switch for that.
To make all of your client machines trust it, install **CA.cer** i... | [
0.4719010889530182,
-0.05851436406373978,
0.7180512547492981,
0.03915339708328247,
-0.12935444712638855,
-0.19532333314418793,
-0.020577389746904373,
-0.3362515866756439,
-0.5459315776824951,
-0.6267598271369934,
-0.3575209677219391,
0.47600269317626953,
-0.17086350917816162,
0.06710706651... | |
in IIS 6.0, look at [this Microsoft KB article](http://support.microsoft.com/?id=313624). For IIS 7.0, I don't know. | [
0.313187837600708,
0.09548823535442352,
0.13230109214782715,
-0.16193540394306183,
0.1349262148141861,
-0.189035564661026,
0.2750758230686188,
0.44555166363716125,
0.043850190937519073,
-0.5365530252456665,
-0.15435419976711273,
0.32444602251052856,
-0.2708900570869446,
0.21253609657287598... | |
any problems with doing this?
```
int i = new StreamReader("file.txt").ReadToEnd().Split(new char[] {'\n'}).Length
```
The method you posted isn't particularly good. Lets break this apart:
```
// new StreamReader("file.txt").ReadToEnd().Split(new char[] {'\n'}).Length
// becomes this:
var file = new StreamReade... | [
0.13376104831695557,
-0.3376365602016449,
0.3802955448627472,
0.022273456677794456,
-0.017292486503720284,
-0.07887060195207596,
0.2863451838493347,
-0.15093718469142914,
-0.4215965270996094,
-0.661550760269165,
-0.009231898933649063,
0.6327670216560364,
-0.44555434584617615,
0.23996479809... | |
in an array. There's no point doing that if you aren't going to hold onto the array.
A faster solution would be:
```
int TotalLines(string filePath)
{
using (StreamReader r = new StreamReader(filePath))
{
int i = 0;
while (r.ReadLine() != null) { i++; }
return i;
}
}
```
The code... | [
0.010701347142457962,
-0.3901921808719635,
0.6220049858093262,
-0.035359710454940796,
-0.014496415853500366,
0.21805192530155182,
0.3060569763183594,
-0.16191357374191284,
-0.1986037790775299,
-0.6522924900054932,
-0.22523154318332672,
0.5788424611091614,
-0.2505175471305847,
-0.1547461152... | |
relatively short. | [
0.029492896050214767,
0.19455023109912872,
-0.19259697198867798,
-0.034222595393657684,
-0.2640705704689026,
0.1778772473335266,
0.018940916284918785,
0.4620088040828705,
0.08593885600566864,
-0.24074357748031616,
0.23785530030727386,
0.006127937696874142,
0.11707039922475815,
-0.235450059... | |
I'm trying to write a shell script that, when run, will set some environment variables that will stay set in the caller's shell.
```
setenv FOO foo
```
in csh/tcsh, or
```
export FOO=foo
```
in sh/bash only set it during the script's execution.
I already know that
```
source myscript
```
will run the command... | [
0.38694143295288086,
0.3052223026752472,
0.19911427795886993,
-0.35711708664894104,
0.06467686593532562,
-0.13603881001472473,
0.2180374711751938,
-0.07941213995218277,
0.1570941060781479,
-0.6278802156448364,
-0.007902227342128754,
0.9483320713043213,
-0.5232481956481934,
-0.0030893238727... | |
won't work for me, since a user running csh can't source a bash script, and a user running bash can't source a csh script.
Is there any reasonable solution that doesn't involve having to write and maintain TWO versions on the script?
Your shell process has a copy of the parent's environment and no access to the parent... | [
0.34948867559432983,
0.4110877811908722,
-0.0929531455039978,
-0.05031130090355873,
0.23354004323482513,
-0.1816624104976654,
0.17780789732933044,
0.07789498567581177,
0.04767758399248123,
-0.5289260149002075,
0.022412121295928955,
0.8973961472511292,
-0.24534012377262115,
0.27283617854118... | |
each of the two flavors of shell. | [
-0.3048275113105774,
0.12314824014902115,
-0.36640042066574097,
-0.15862636268138885,
0.23609943687915802,
0.4345718026161194,
0.13945472240447998,
0.06494264304637909,
0.2235230803489685,
-0.40339505672454834,
0.08368157595396042,
0.5650037527084351,
0.19695208966732025,
0.337072998285293... | |
Setting up a Windows based web application on Amazon's cloud has definitely been a learning experience. Lots of unexpected hoops to jump through, especially to get around the limitations associated with ephemeral local drives.
I was hoping to tap into the collective wisdom of those who have walked this road ahead of ... | [
0.4025175869464874,
0.0875655934214592,
0.14866510033607483,
0.1861557960510254,
-0.1300966590642929,
-0.1288500279188156,
0.15587659180164337,
0.14460404217243195,
-0.13000033795833588,
-0.4816220700740814,
0.0032874124590307474,
0.5874361395835876,
0.20806999504566193,
-0.118412084877491... | |
some more general thoughts on running ASP.Net websites off EC2:
<http://friism.com/rent-vs-buy-or-ec2-vs-building-your-own-iron> | [
0.7755310535430908,
-0.13929420709609985,
0.24234376847743988,
0.013923702761530876,
-0.1820308417081833,
-0.2943439185619354,
0.2682320475578308,
-0.150626540184021,
-0.3170654773712158,
-0.3007741868495941,
0.028942840173840523,
0.6534578800201416,
0.2845856547355652,
-0.2259996980428695... | |
Can 32-bit and 64-bit Java be simultaneously installed on Vista x64?
Yes, and in fact, this is the only way to get Java Webstart, as there is no 64-bit version.
Edit: Supposedly a 64-bit Java WebStart [will be available](http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4802695) in Java 6u12. | [
0.030206754803657532,
0.06877285242080688,
0.06034116446971893,
0.10989100486040115,
0.2305353283882141,
-0.286599338054657,
0.33473441004753113,
0.1891067773103714,
-0.40658268332481384,
-0.7464674711227417,
-0.1351187378168106,
0.5677893757820129,
-0.6005551815032959,
-0.0761812105774879... | |
I am looking to take a PDF and extract any text from it. I then want to make it available using ColdFusion's available Verity search to search the contents.
Are there any libraries out there that do this quite well already? I am including Java or .NET (Java prefered) libraries in the scope since they can be called fro... | [
0.4643200635910034,
0.1943173110485077,
0.28689590096473694,
0.3097977638244629,
-0.15009327232837677,
-0.2526129186153412,
0.06834776699542999,
0.10465005040168762,
-0.32300329208374023,
-0.8422186970710754,
0.09422004222869873,
0.5458194017410278,
-0.028961757197976112,
0.016040319576859... | |
you have the ability to run your own software (i.e. Dedicated/VPS) then you could investigate using [Tesseract OCR](http://code.google.com/p/tesseract-ocr/) with `cfexecute` to convert the PDFs to text? | [
0.3254777193069458,
0.06188361346721649,
0.779874861240387,
0.44781455397605896,
-0.008039256557822227,
-0.23594562709331512,
-0.08406424522399902,
0.07296910881996155,
-0.334462970495224,
-0.3401641845703125,
-0.25359615683555603,
0.511361300945282,
0.08051054179668427,
-0.204053997993469... | |
has anyone ever tried to get the list of all the movieclips (even the nested ones) that are on Stage at a specified stopped (and current) frame in Flash 8, AS 2?
I did the following:
```
for(i in _root){
if(typeof(_root[i])=="movieclip"){
trace(_root[i]);}
}
```
But this is good for a first level search: that is, i... | [
0.4160001277923584,
0.09468488395214081,
0.40919631719589233,
0.030835570767521858,
0.07740787416696548,
-0.5856660604476929,
0.26938149333000183,
0.15367662906646729,
-0.417561411857605,
-0.27621862292289734,
0.1907944530248642,
0.5453242659568787,
-0.28987669944763184,
0.0280465148389339... | |
is probably the best explanation of it out there](http://blogs.adobe.com/jdehaan/2005/04/hidden_component_goodness_obje.html)
So what you can do is this:
```
import mx.data.binding.ObjectDumper;
trace(ObjectDumper.toString(_root));
```
There may be a lot of extras (functions, variables, etc) in there, so there are... | [
0.2805783450603485,
-0.015638073906302452,
0.4408957064151764,
-0.07280153781175613,
-0.14621403813362122,
-0.045532096177339554,
0.2213950902223587,
-0.308578222990036,
-0.2563807964324951,
-0.4055607318878174,
0.016994135454297066,
0.42816829681396484,
-0.557649552822113,
-0.069926567375... | |
How can I hook up an event to a function name I have defined as a string?
I'm using Prototype.js, although this is not Prototype-speficic.
```
$(inputId).observe('click', formData.fields[x].onclick);
```
This would result in JavaScript complaining that my handler is not a function. I would prefer not us use `eval()... | [
0.15451189875602722,
-0.11024459451436996,
0.026336103677749634,
-0.11704467236995697,
0.2682987153530121,
-0.047178965061903,
0.27461203932762146,
-0.23196104168891907,
-0.21017839014530182,
-0.6983667016029358,
-0.17224226891994476,
0.5418891310691833,
-0.44579237699508667,
0.17936131358... | |
I tried using "cap rollback" but I get the following error:
> $ cap rollback
>
>
> the task `rollback' does not exist
Is there some additional setup that I need to do to get rollbacks to work?
Just found the answer here <http://github.com/leehambley/railsless-deploy>:
> cap deploy:rollback | [
0.19178301095962524,
0.029064834117889404,
0.20848071575164795,
-0.08038026094436646,
0.25757890939712524,
-0.10099399089813232,
-0.05215006694197655,
0.0396164134144783,
-0.580839991569519,
-0.5098668336868286,
-0.021559344604611397,
0.8992992639541626,
-0.17115595936775208,
-0.1859483271... | |
<http://www.codeplex.com/IIRF/Thread/List.aspx>
My webhost installed IIRF for me and I am convinced that they did not do it correctly. I've tried numerous examples including one that I know works with apache's mod\_rewrite but I can't get anything to work with IIRF. Is there rule or configuration option that you guys ... | [
0.7335485219955444,
0.12231148779392242,
0.006668928544968367,
0.27868106961250305,
-0.20390772819519043,
-0.36133360862731934,
0.7473351955413818,
-0.051351383328437805,
-0.09961172193288803,
-0.7455316781997681,
0.24914485216140747,
0.5418204069137573,
-0.1423712819814682,
0.133383154869... | |
my own but I don't know if the errors are because of me or the webhost. I have limited options as well since I am on a shared webhost.
This is tested and working with IIRF:
```
RedirectRule ^.*$ http://www.google.com/ [I,R=301]
```
It will match **any** URL and redirect to Google. | [
0.27048686146736145,
0.1230984628200531,
0.45570826530456543,
-0.029234951362013817,
-0.07802056521177292,
-0.07339202612638474,
0.4120491147041321,
0.051820430904626846,
0.15318118035793304,
-0.7827427983283997,
0.20176158845424652,
0.37931376695632935,
-0.12440377473831177,
0.18810243904... | |
How do I write a unit test for a method that use an external service like System.Net.Mail?
Do I just check a return value to see if there were any errors sending the email and assume if there were none that it was sent successfully?
Create a [mock object](http://en.wikipedia.org/wiki/Mock_object) for the mail service.... | [
0.2960333824157715,
0.17592008411884308,
-0.12725119292736053,
0.23910368978977203,
-0.3658653795719147,
0.12293420732021332,
0.3920536935329437,
-0.3872569501399994,
-0.10091552883386612,
-0.46276989579200745,
0.25341030955314636,
0.47518181800842285,
-0.04899999126791954,
-0.073415577411... | |
This seems like perhaps a naive question, but I got into a discussion with a co-worker where I argued that there is no real need for a cache to be thread-safe/synchronized as I would assume that it does not matter who is putting in a value, as the value for a given key should be "constant" (in that it is coming from th... | [
0.355536550283432,
-0.03234455734491348,
0.046068526804447174,
0.1870405524969101,
0.24529294669628143,
-0.0018531508976593614,
0.07120610028505325,
-0.017670370638370514,
-0.3267974257469177,
-0.034301064908504486,
0.059055667370557785,
0.34785717725753784,
-0.2526225745677948,
0.23907083... | |
original source).
The main reason I see to make at least the GET synchronized is that if it is very expensive to miss in the cache and you don't want multiple threads each going out to get a value to put back in the cache. Even then, you'd need something that actually blocks all consumers during a read-fetch-put cycle... | [
0.33538389205932617,
-0.12312909215688705,
0.19633784890174866,
0.3652943968772888,
0.014034687541425228,
-0.19636568427085876,
0.2540004849433899,
-0.08475730568170547,
-0.44115132093429565,
-0.10785046219825745,
0.11289982497692108,
0.5956340432167053,
-0.48243248462677,
0.26372182369232... | |
assumption?
Update: The real scope of my question is around very simple id->value style caches (or {parameters}->{calculated value} where no matter who writes to the cache, the value will be the same and we are just trying to save from "re-calculating"/going back to the database. The actual graph of the object isn't r... | [
0.3305565416812897,
-0.10875804722309113,
0.13255278766155243,
0.1618153601884842,
0.08630311489105225,
0.0034769459161907434,
0.2387925535440445,
-0.2408963143825531,
0.016664717346429825,
-0.6080102920532227,
0.18041299283504486,
0.6966708898544312,
-0.26488664746284485,
0.00699155963957... | |
both be modifying the same slot in the hash table in different ways at the same time. Assuming you're using a hash table to implement your cache (which you imply in your question) I suggest reading a little about the details of how [hash tables are implemented](http://en.wikipedia.org/wiki/Hash_table) if you're not alr... | [
0.5519070029258728,
0.1441713124513626,
-0.26607745885849,
0.05801428481936455,
0.12649747729301453,
-0.16325274109840393,
-0.21873140335083008,
0.1080785021185875,
-0.1163453683257103,
-0.7127299904823303,
0.11446771770715714,
0.4807015657424927,
-0.24055160582065582,
-0.172885000705719,
... | |
I was using .Net Reflector on an Internal App to try and understand what the previous Dev was doing and also to learn. I have never had *actual* instruction on how to develop Apps so I take from where I can (Hooray Stack Overflow). That being said I found something that has me confused. A class Library called WinConsta... | [
0.5876448750495911,
-0.05264618247747421,
0.32939961552619934,
0.31161171197891235,
-0.012100595980882645,
-0.0908380076289177,
0.32730263471603394,
0.14270833134651184,
-0.051655616611242294,
-0.6888405084609985,
0.2802368402481079,
0.7490214109420776,
-0.15269982814788818,
0.026162398979... | |
Public Const cAccess As String = "Access"
Public Const cAddress As String = "Address"
Public Const cCancel As String = "Cancel"
Public Const cCity As String = "City"
Public Const cClear As String = "Clear"
Public Const cClickOnMessage As String = "Click on any row in top pane to see the detail field... | [
0.02842625044286251,
0.014944738708436489,
0.4816703200340271,
0.4774135649204254,
0.13796833157539368,
0.056204378604888916,
-0.07632141560316086,
0.07947640120983124,
0.09280488640069962,
-0.3938845098018646,
-0.47551488876342773,
0.7335719466209412,
-0.4089897871017456,
0.32101160287857... | |
String = ","
Public Const cContactID As String = "ContactID"
Public Const cCounty As String = "County"
Public Const cDash As String = "-"
Public Const cDelete As String = "Delete"
Public Const cDepartment As String = "Department"
Public Const cError As String = "Error"
Public Const cExec As ... | [
0.034271471202373505,
0.2399701178073883,
0.33899423480033875,
0.3368540108203888,
0.17527101933956146,
-0.011059872806072235,
-0.048278480768203735,
-0.03688987344503403,
0.1059654951095581,
0.0011619749711826444,
-0.6288859248161316,
0.777397096157074,
-0.19413213431835175,
0.37405732274... | |
String = "Federal"
Public Const cFriday As String = "Friday"
Public Const cfrmMain As String = "frmMain"
Public Const cfrmModuleLogin As String = "frmModuleLogin"
Public Const cfrmModuleSplash As String = "frmModuleSplash"
Public Const cHelp As String = "Help"
Public Const cHint As String = "Hin... | [
0.5215820670127869,
-0.19292397797107697,
0.5943292379379272,
0.383894145488739,
0.1461809277534485,
0.24743416905403137,
-0.04686988145112991,
0.2596089243888855,
-0.08013126254081726,
-0.3831322193145752,
-0.4233139753341675,
0.5370350480079651,
-0.2503890097141266,
0.39028200507164,
0... | |
String = "InitialScreenID"
Public Const cInsert As String = "Insert"
Public Const cJuvenileID As String = "JuvenileID"
Public Const cLetter As String = "Letter"
Public Const cManual As String = "Manual"
Public Const cMasterID As String = "MasterID"
Public Const cModuleID As String = "ModuleID"
... | [
-0.31114450097084045,
-0.05780641362071037,
0.5688926577568054,
0.15355688333511353,
0.28821584582328796,
0.349981427192688,
0.17558299005031586,
0.1342339664697647,
-0.2391180396080017,
-0.5529767870903015,
-0.6229695677757263,
0.6946501731872559,
-0.1409846991300583,
0.28233590722084045,... | |
String = "Negative"
_
Public Shared ReadOnly cNLowDate As DateTime = New DateTime(&H851055320574000)
_
Public Shared ReadOnly cNullDate As DateTime = New DateTime
Public Const cNullDateString As String = "12:00:00 AM"
Public Const cOfficeIDDefault As String = "01"
Public Const cOne As Inte... | [
-0.06562601774930954,
0.17148174345493317,
0.528418242931366,
-0.10134947299957275,
0.210642471909523,
0.5182017087936401,
0.1367005705833435,
0.09116657078266144,
-0.36004841327667236,
-0.24746550619602203,
-0.13907165825366974,
0.19147251546382904,
-0.3481957018375397,
0.3304390609264374... | |
Public Const cProcess As String = "Process"
Public Const cProviderID As String = "ProviderID"
Public Const cQuestion As String = "Question"
Public Const cRead As String = "Read"
Public Const cReferralID As String = "ReferralID"
Public Const cReminder As String = "Reminder"
Public Const cReport A... | [
0.11121774464845657,
0.5610867738723755,
0.4803914725780487,
0.2536725401878357,
0.06332699954509735,
0.4165154993534088,
0.08815824240446091,
-0.1767318695783615,
-0.02562330663204193,
-0.27903369069099426,
-0.24202613532543182,
0.7038400173187256,
-0.09942366182804108,
0.3771538436412811... | |
Public Const cReportServer As String = "ReportServer"
Public Const cReportService As String = "ReportService"
Public Const cReportServiceLocal As String = "ReportServiceLocal"
Public Const cReportServiceServer As String = "ReportServiceServer"
Public Const cSaturday As String = "Saturday"
Public Con... | [
0.12329042702913284,
0.3263348340988159,
0.3679759204387665,
0.1497960239648819,
-0.14436665177345276,
0.09886076301336288,
0.22661788761615753,
0.18359223008155823,
-0.1443762481212616,
-0.3470751941204071,
-0.4834045469760895,
0.6514120697975159,
-0.38176560401916504,
0.3223705589771271,... | |
= "Select a module"
Public Const cState As String = "State"
Public Const cSubjectID As String = "SubjectID"
Public Const cSunday As String = "Sunday"
Public Const cThursday As String = "Thursday"
Public Const cTooltipCancel As String = "Reset form data values back to before all manual changes."
... | [
0.15863975882530212,
-0.16405507922172546,
0.781518280506134,
-0.03954300656914711,
0.021263718605041504,
-0.014081889763474464,
0.2620786428451538,
-0.05598611757159233,
-0.2003609985113144,
-0.4605453312397003,
-0.8221197128295898,
0.8018029928207397,
-0.4825293719768524,
0.1383365392684... | |
cTooltipClose As String = "Close this form"
Public Const cTooltipDelete As String = "Delete the current record being displayed, no undo possible."
Public Const cTooltipExe As String = "Initiate a batch process."
Public Const cTooltipInsert As String = "Insert a brand new record"
Public Const cTooltipSea... | [
0.060799490660429,
-0.2120450735092163,
0.4554447531700134,
0.14579185843467712,
0.2093285322189331,
-0.34948834776878357,
0.2832670509815216,
-0.1771625578403473,
-0.14653202891349792,
-0.19327150285243988,
-0.37618133425712585,
0.6889494061470032,
-0.3167644441127777,
0.18931837379932404... | |
cTrue As String = "True"
Public Const cTuesday As String = "Tuesday"
Public Const cUnderscore As String = "____________________________________________________________"
Public Const cUpdate As String = "Update"
Public Const cWarning As String = "Warning"
Public Const cWeb As String = "Web"
Publi... | [
-0.019013529643416405,
-0.16723063588142395,
0.6220585703849792,
-0.011013119481503963,
-0.30524981021881104,
0.1423528790473938,
0.2501121163368225,
0.2651830315589905,
0.17555394768714905,
-0.23286856710910797,
-0.22262343764305115,
0.4754558801651001,
-0.1898321956396103,
0.620964586734... | |
Public Shared strModuleMainStatusStripFormID As String = Nothing
End Class
```
Back in the days of coding windows applications in c, there were similar files #included in windows which consisted of **long** lists of #defines creating constants. Various c applications emulated this approach in their own files. The "cla... | [
0.449727326631546,
-0.016232062131166458,
0.046620238572359085,
0.2736956477165222,
-0.348014771938324,
-0.22322823107242584,
0.11545027047395706,
-0.41771137714385986,
-0.1452653408050537,
-0.6811968088150024,
0.005611102096736431,
0.4928228557109833,
-0.45307469367980957,
0.4158194065093... | |
the program
> code. Encapsulation keeps an object's
> data and methods that use the data
> together as part of the object.
So clearly, this constant list does not conform to OO practices but is a throw back to the old days.
To answer your questions:
1. -- This class holds constants, that is it
2. -- The old deve... | [
0.47499316930770874,
0.08079348504543304,
-0.08382440358400345,
0.1879884898662567,
-0.05783310532569885,
-0.25282996892929077,
0.34754669666290283,
-0.028274402022361755,
-0.1635318100452423,
-0.41395241022109985,
0.057690322399139404,
0.3484054207801819,
-0.5149577260017395,
0.3320473432... | |
*current* best practices of [Test Driven Development](http://c2.com/cgi/wiki?TestDrivenDevelopment) and [Refactoring](https://rads.stackoverflow.com/amzn/click/com/0201485672) | [
0.31936174631118774,
0.11910582333803177,
-0.12941141426563263,
0.28197628259658813,
0.2637821137905121,
-0.28421804308891296,
0.2850111424922943,
-0.3986378312110901,
-0.23463010787963867,
-0.2592146396636963,
-0.2632594704627991,
0.45471692085266113,
0.31160879135131836,
0.01554299890995... | |
I'd like to populate the homepage of my user-submitted-illustrations site with the "hottest" illustrations uploaded.
Here are the measures I have available:
* How many people have favourited that illustration
+ `votes` table includes date voted
* When the illustration was uploaded
+ `illustration` table has date cr... | [
0.4943755567073822,
-0.029132872819900513,
0.6347118020057678,
0.25332310795783997,
-0.3603851795196533,
0.09110493212938309,
-0.19506537914276123,
-0.1717873513698578,
-0.40176331996917725,
-0.7093079090118408,
0.2579164206981659,
0.30748191475868225,
-0.024555902928113937,
-0.17190422117... | |
if there should be a PHP/cron method every hour or so.
I only need 20 illustrations to populate the home page. I don't need any sort of paging for this data.
How do I weight age against votes? Surely a site with less submission needs less weight on date added?
Many sites that use some type of popularity ranking do so... | [
0.531341016292572,
0.2206069529056549,
0.5268777012825012,
0.38136595487594604,
-0.07457967847585678,
0.011741220951080322,
0.15876014530658722,
0.07816147059202194,
-0.48578381538391113,
-0.5992995500564575,
0.30502834916114807,
0.07397158443927765,
0.4141588509082794,
0.09933412820100784... | |
score stops changing after a period of time of your choosing.
For instance, here's a pseudo-example of something you might want to try. Of course, you'll want to adjust how much weight you're attributing to each category based on your own experience with your site. Comments are rare, but take more effort from the user... | [
0.4263158440589905,
0.01973053067922592,
0.3545800447463989,
0.0890795886516571,
0.06951549649238586,
-0.10828038305044174,
-0.3109000325202942,
-0.062135208398103714,
-0.4887167513370514,
-0.6713311672210693,
-0.12851934134960175,
0.22260606288909912,
0.09503548592329025,
0.34428858757019... | |
wanted to approach this in a similar way only for content that had been favorited or commented on recently, you could just add some WHERE constraints on your query that grabs the score out from the DB.
There are actually two big reasons NOT to calculate this ranking on the fly.
1. Requiring your DB to fetch all of th... | [
0.3342549502849579,
-0.20531681180000305,
0.24028196930885315,
0.5098447203636169,
-0.45327523350715637,
-0.41833341121673584,
0.2456720620393753,
0.021493002772331238,
-0.28442123532295227,
-0.544212818145752,
0.3058246374130249,
0.23762111365795135,
-0.1884651929140091,
0.231591343879699... | |
content to move pretty drastically.
That leaves you with either caching the results periodically or setting up a cron job to update a new database column holding this score you're ranking by. | [
0.2995332181453705,
-0.1822945922613144,
0.41860389709472656,
0.45802000164985657,
0.11063960194587708,
-0.04239346459507942,
-0.016737861558794975,
0.33075419068336487,
-0.3909085690975189,
-0.42293640971183777,
0.005173396784812212,
0.3296205997467041,
-0.05341308191418648,
0.00508723920... | |
When I drag a control from the toolbox on to the Visual Studio 2008 WPF design surface, it sets a margin based on where I dropped it and a default size.
Is there any way to prevent VS setting those? When I drop a control on a stackpanel I want it to flow in to the existing controls in the panel.
Thanks!
I've never fo... | [
0.3276079297065735,
0.14340046048164368,
0.52769935131073,
0.033238302916288376,
-0.05398332327604294,
-0.08008508384227753,
0.09657064825296402,
-0.1859440952539444,
-0.24406658113002777,
-0.6086106300354004,
0.18491972982883453,
0.4526383578777313,
-0.10222259908914566,
-0.23784334957599... | |
margins if you drag-and-drop, there are ways to remove those margins without having to do it by hand.
Here's a link to an article that illustrates how to use design tools in Visual Studio 2010 to lay out a form without having to type any XAML. (Despite the title, it's about WPF.)
The first part of the article shows h... | [
0.31938284635543823,
0.049342334270477295,
0.42248034477233887,
0.11878565698862076,
-0.27010515332221985,
-0.05100861191749573,
-0.1355113387107849,
-0.4767925441265106,
-0.1935618817806244,
-0.7335897088050842,
0.30605512857437134,
0.1744842827320099,
-0.11284197121858597,
-0.29638066887... | |
I'm attempting to load a dll into MSSQL with:
```
USE dbname
GO
CREATE ASSEMBLY foo
FROM 'C:\foo\foo.dll'
WITH PERMISSION_SET = UNSAFE
GO
```
And I'm getting an error that states:
```
Msg 33009, Level 16, State 2, Line 2
The database owner SID recorded in the master database differs from the database owner
SID ... | [
0.13629403710365295,
0.24844779074192047,
0.2806837558746338,
-0.22915507853031158,
0.22978170216083527,
-0.2452511191368103,
0.4981194734573364,
-0.2836625277996063,
-0.20855365693569183,
-0.7233725190162659,
0.12329521030187607,
0.5851846933364868,
-0.6522277593612671,
0.4601585566997528... | |
is to:
```
use dbname
go
EXEC dbo.sp_changedbowner @loginame = N'sa', @map = false
```
But is changing the owner really the only way to avoid this error? Why do I have to do this, is there another way? I'd like some more information about this error before I go in and blindly change the owner.
I have had exactly the... | [
0.150889053940773,
0.2523306906223297,
0.31560492515563965,
-0.013171364553272724,
0.010867265053093433,
-0.1268189698457718,
0.34180793166160583,
-0.06883037835359573,
-0.04730702191591263,
-0.6278830170631409,
0.08911393582820892,
0.5850651264190674,
-0.4761791229248047,
0.51462984085083... | |
SIDs don't match, so it thinks it could be a different person. | [
0.28129300475120544,
-0.4689278304576874,
0.4016939699649811,
0.028334032744169235,
0.20126163959503174,
0.19471170008182526,
-0.26164889335632324,
0.027558669447898865,
-0.24304698407649994,
-0.38555893301963806,
0.3347678482532501,
0.17610561847686768,
-0.3036476969718933,
-0.03581809625... | |
I'm sure that almost everyone programming in .net has ran into similar issues with the dynamic creation of buttons..
Example scenario..
I have a gridview and in one of the gridview fields I have a button. Normally in .net using visual studio you can easily grab the click event of the button, however since these but... | [
0.18328402936458588,
-0.39441606402397156,
-0.07141361385583878,
0.0792403370141983,
-0.23704743385314941,
-0.1256251037120819,
0.0313619039952755,
0.1251814365386963,
-0.4347774386405945,
-0.7594441771507263,
0.12255144864320755,
0.6370742321014404,
-0.1249266266822815,
-0.023127157241106... | |
I have also read dopostback method is not a very good one to use. Why is that?
Sadly, the answer was much simpler than I ever thought..
I didn't realize that the ItemCommand event was usable for buttons created in a TemplateField.
All I really had to do was..
```
Private Sub GridView1_ItemCommand(ByVal sender As O... | [
0.11902396380901337,
-0.08503510057926178,
0.6984720826148987,
0.07240556180477142,
-0.23371386528015137,
0.07184150815010071,
0.07176907360553741,
-0.219297856092453,
-0.3762037754058838,
-0.7538017630577087,
-0.15468436479568481,
0.4944145381450653,
-0.08233052492141724,
0.21887427568435... | |
future I'm sure. | [
0.19776783883571625,
-0.14676345884799957,
0.3688700795173645,
0.19722332060337067,
0.6952500343322754,
-0.09271970391273499,
-0.5830260515213013,
0.6526346206665039,
-0.2370402216911316,
-0.980169951915741,
0.07562438398599625,
0.32977068424224854,
0.22487349808216095,
0.27255764603614807... | |
I'm trying a little concept test to change one of the features of the logitech MS3200 keyboard (the zoom feature). I've got the keys that are sent from the zoom control. So, I have a main app, and a dll that contains a hook procedure.
Here's the main app:
```
#include <stdio.h>
#include <windows.h>
HANDLE hHook;
i... | [
0.1098712682723999,
-0.11221768707036972,
0.6656054854393005,
-0.2507646679878235,
0.35661810636520386,
0.2070765346288681,
0.3313765525817871,
-0.32721173763275146,
-0.1772034764289856,
-0.5610268712043762,
-0.21769797801971436,
0.7174346446990967,
-0.487859845161438,
-0.13306854665279388... | |
successfully!");
while(TRUE)
{
Sleep(1000);
}
return 0;
}
```
And here is the hook procedure dll:
```
#include <windows.h>
int __declspec (dllexport) HookProc(int nCode, WPARAM wParam, LPARAM lParam)
{
if(nCode < 0)
{
return CallNextHookEx(hHook, nCode, wParam, lParam);
... | [
0.09958788007497787,
-0.17446523904800415,
0.9139352440834045,
-0.31907588243484497,
0.8009421825408936,
0.009432925842702389,
0.643726110458374,
-0.8715755343437195,
-0.39127054810523987,
-0.3803116977214813,
-0.6499273777008057,
0.5878753662109375,
-0.22723589837551117,
-0.05072521418333... | |
== 1)
{
if(wParam == VK_ADD)
wParam = VK_UP;
else
wParam = VK_DOWN;
}
}
return CallNextHookEx(hHook, nCode, wParam, lParam);
}
int WINAPI dllmain(HINSTANCE hMod, DWORD data, LPVOID lpVOid)
{ | [
-0.3247945010662079,
-0.25425881147384644,
0.630654513835907,
-0.15073201060295105,
0.16329704225063324,
0.26932722330093384,
0.13006974756717682,
-0.6316925287246704,
-0.08036674559116364,
-0.2614939212799072,
-0.5326597690582275,
0.4985361695289612,
-0.5681133270263672,
0.063117817044258... | |
return 0;
}
```
I need to be able to access what's returned by SetWindowsHookEx (hHook) from the dll, in order to call CallNextHookEx().
It's probably possible, but it's not worth your time to investigate.
Instead, move the hook setting code to the DLL.
Oh, and I think you need to pass the DLL module handle to the ... | [
0.3581508994102478,
0.08911344408988953,
0.3040004074573517,
-0.2735375761985779,
0.22754213213920593,
-0.34274399280548096,
0.2678309679031372,
-0.2629568576812744,
0.048620905727148056,
-0.3637217879295349,
-0.19264021515846252,
0.6503317952156067,
-0.4564323425292969,
0.0824405476450920... | |
**Important: This question isn't actually really an ASP.NET question.** Anyone who knows anything about URLS can answer it. I just happen to be using ASP.NET routing so included that detail.
In a nutshell my question is :
"What URL format should I design that i can give to external parties to get to a specific place... | [
0.6436368823051453,
0.0457499660551548,
0.4388900399208069,
0.19692596793174744,
-0.3350870609283447,
-0.19593267142772675,
0.1106095090508461,
0.17901304364204407,
-0.23001936078071594,
-0.48800113797187805,
-0.009516274556517601,
0.2409159392118454,
0.030314963310956955,
0.05651539564132... | |
page on our site which may be the homepage, a special contest or a particular product.
In addition to [trying to capture](https://stackoverflow.com/questions/257609/which-browsers-plugins-block-httpreferer-from-being-sent) the [referrer](http://mail-archives.apache.org/mod_mbox/roller-dev/200511.mbox/<4377751C.8040507... | [
0.37435972690582275,
-0.008904808200895786,
0.7121664881706238,
0.05121033638715744,
-0.3417026698589325,
-0.13042420148849487,
0.19412510097026825,
-0.16954822838306427,
-0.3700779676437378,
-0.646190881729126,
-0.07854465395212173,
-0.004603118635714054,
-0.26058170199394226,
-0.09863495... | |
= "Redirect",
custom = (string)null // optional so we need to set it null
}
);
```
**campaign** : possibly don't want the word 'campaign' in the actual link -- since users will see it in the URL bar. i might change this to just something cryptic like 'c'.
**destination** : dictates which page on our site... | [
0.3911554515361786,
-0.030973808839917183,
0.8476756811141968,
-0.1158151850104332,
-0.1142207458615303,
-0.07567384839057922,
-0.07471796125173569,
-0.011454937979578972,
-0.25106343626976013,
-0.557351291179657,
-0.1171865239739418,
0.1635075807571411,
-0.3207201659679413,
0.008015234023... | |
such as 123 - unique to each partner. I have realized that I think I'd prefer for the 3rd party company to be able to manage the campaign ids themselves rather than us providing a website to 'create a campaign'. I'm not
completely sure about this yet though.
**custom** : custom data (optional). i can add further cus... | [
0.7365627288818359,
0.049452707171440125,
0.37960729002952576,
0.3832099437713623,
0.004570125136524439,
-0.1387835144996643,
-0.13234446942806244,
0.031080475077033043,
-0.44278115034103394,
-0.356579452753067,
0.021778540685772896,
0.08768794685602188,
-0.15147507190704346,
-0.1999440491... | |
with us. This may be a better solution to avoid people putting in random campaign IDs but I'm not overly concerned about that and i think this system gives more flexibility.
In addition we want to know perhaps which image they used to link to us (so we can track which banner works the best). I THINK this is a candiate... | [
1.2942535877227783,
-0.0951787680387497,
0.43051227927207947,
0.1399931013584137,
-0.23672780394554138,
-0.3626432418823242,
-0.09700718522071838,
-0.17032434046268463,
-0.17267963290214539,
-0.37490421533584595,
0.06988891959190369,
0.3176480829715729,
-0.2719057500362396,
-0.141686394810... | |
it just isn't a very flexible system. I want to move immediately to a new system for new clients.
Any thoughts on future proofing this system? What may I have missed? I know i can always add new formats but I want to use this format as much as possible if that is a good idea.
This URL:
```
"campaign/{destination}/{pa... | [
0.511722207069397,
-0.03963405266404152,
0.4303778111934662,
-0.07937446236610413,
-0.05822046846151352,
-0.2436971366405487,
-0.054472506046295166,
0.4269648492336273,
-0.3930308222770691,
-0.9245498776435852,
0.2800074815750122,
0.38187283277511597,
-0.32461774349212646,
0.05894749611616... | |
This goes double when you are handing the URL to an external partner.
Uniform **Resource** Locators are supposed to specify, well, resources. The destination is certainly a resource (but more on this in a moment), and I think you could consider the campaign a resource. The partner is not a resource you serve. Custom i... | [
0.6745882034301758,
-0.1697017103433609,
0.30365949869155884,
0.19432072341442108,
-0.08643829077482224,
-0.07620687782764435,
-0.11286741495132446,
0.36950916051864624,
-0.5065267086029053,
-0.6081885695457458,
-0.03188552334904671,
0.2293069213628769,
-0.01718592271208763,
0.184852123260... | |
any properties other than the partner identifier, you pretty much have to do this.
So my first to conclusions are that you should probably get rid of the partner ID, and derive it from the campaign. Get rid of custom, too, and use query string parameters instead, should it be necessary. It is appropriate to use query ... | [
0.07181156426668167,
-0.11997275799512863,
0.3119247257709503,
0.1543085277080536,
-0.03800635412335396,
-0.08286181837320328,
-0.19491679966449738,
0.06153933331370354,
-0.15665633976459503,
-0.6874678134918213,
0.25320693850517273,
0.32509928941726685,
-0.429054319858551,
-0.006945555098... | |
be to use Astoria-style indexing:
```
"campaign({campaignid})/{destination}",
```
For some reason, this looks odd to a lot of people, but it's entirely legal. Feel free to use other legal characters to separate campaign from the ID; the point here is that a / is not the only choice, and may not be the appropriate ch... | [
0.7299590706825256,
-0.15046723186969757,
0.35070425271987915,
0.27836674451828003,
-0.004082939121872187,
-0.24218344688415527,
0.07765480875968933,
-0.20106147229671478,
-0.08815263211727142,
-0.4820235073566437,
0.24422988295555115,
0.06552592664957047,
-0.47753313183784485,
0.054558582... | |
correct response is that the user should be silently taken to the destination page anyway, then the campaign ID is really a query string parameter, not a part of the resource. Perhaps some partners wouldn't like being given a URL with a question mark in it, but from a purely REST point of view, I think that's the right... | [
0.12953399121761322,
-0.04224291071295738,
0.37620672583580017,
0.08348004519939423,
-0.07631675153970718,
0.12882883846759796,
-0.07681815326213837,
0.14531244337558746,
-0.20493362843990326,
-0.5436259508132935,
-0.12957033514976501,
0.08131472766399384,
-0.35400742292404175,
-0.05837209... | |
to your question. The trouble is that most of this rests on business considerations which you are probably aware of, but I'm certainly not. So I'm more trying to cover the philosophy of a REST-ful URL, rather than attempting to explain your business to you. :) | [
0.4118339717388153,
0.3306904733181,
0.25305208563804626,
-0.01219033170491457,
0.10368598997592926,
0.03695911169052124,
-0.08512101322412491,
0.489886075258255,
0.2033279687166214,
-0.17052237689495087,
-0.13296528160572052,
0.44477471709251404,
-0.06234737113118172,
0.31328290700912476,... | |
How can I predict the future size / growth of an Oracle table?
Assuming:
* linear growth of the number of rows
* known columns of basic datatypes (char, number, and date)
+ ignore the variability of varchar2
+ basic understanding of the space required to store them (e.g. [number](http://www.jlcomp.demon.co.uk/faq/n... | [
0.1826666295528412,
-0.012346433475613594,
0.19416579604148865,
-0.01300887018442154,
0.024429738521575928,
0.1363202929496765,
0.09602183848619461,
-0.481623113155365,
-0.11615440249443054,
-0.7081654667854309,
0.005569772329181433,
0.2611902356147766,
0.014071671292185783,
0.038250163197... | |
For example, if your block header size is 100 bytes, your PCTFREE is 10, and your block size is 8192 bytes, then the free space in a given block is `(8192 - 100) * 0.9 = 7282`.
3. Estimate how many rows will fit in that space. If your average row size is 1 kB, then roughly 7 rows will fit in an 8 kB block.
4. Estimate ... | [
-0.09164266288280487,
0.13888002932071686,
0.5887903571128845,
-0.07812938094139099,
0.08036471903324127,
0.36651402711868286,
0.04829663038253784,
-0.1338186115026474,
-0.6443793773651123,
-0.7030977010726929,
-0.18148121237754822,
0.11316487193107605,
-0.05051299184560776,
0.288125038146... | |
block. | [
-0.026474542915821075,
0.3255901634693146,
0.10228342562913895,
-0.05633378401398659,
0.08932740986347198,
0.06423772871494293,
-0.053362198173999786,
-0.3236956298351288,
-0.15334050357341766,
-0.446551650762558,
-0.11505018919706345,
0.01779027096927166,
-0.07361520826816559,
0.194851905... | |
Say, I love Debian+mod\_rails and run it on my laptop which is my development platform. Yet, I am deploying to a production server running Ubuntu+mod\_rails.
Is it better in a long run if I install Ubuntu on my laptop or are the problems with deployment so miniscule I can go with whatever the hell I like on dev. machi... | [
0.5107156038284302,
0.21565602719783783,
0.0867827758193016,
-0.046463172882795334,
-0.12926486134529114,
-0.19702738523483276,
0.23511329293251038,
0.3005698621273041,
-0.39086559414863586,
-0.9709692001342773,
-0.04217120260000229,
0.9213351011276245,
-0.19988076388835907,
0.033673316240... | |
have a staging setup that is exactly the same as the production server and perform testing on that if you don't or can't make your development machine match.
-Adam | [
0.9470013380050659,
0.041675079613924026,
-0.44832172989845276,
0.37766534090042114,
0.4683402180671692,
0.09349706768989563,
0.1574089080095291,
0.09205405414104462,
0.023722197860479355,
-0.43575477600097656,
0.24631614983081818,
0.3823457956314087,
0.1286109834909439,
-0.237855911254882... | |
At a place I used to work they typical response to any problem was to blame the hardware or the users for not using the system perfectly. I had adopted the philosophy that it's my fault until I can prove otherwise prior to that job (and so far, at least 99 times out of 100 it's correct).
One of the last "unsolvable" p... | [
0.5385087728500366,
0.42083102464675903,
0.037027183920145035,
0.19646671414375305,
0.3198147714138031,
0.11650367826223373,
0.4608585238456726,
0.2974758744239807,
-0.20551176369190216,
-0.11239946633577347,
0.15790854394435883,
0.32802122831344604,
-0.35893702507019043,
0.376050800085067... | |
point) but couldn't provide any evidence that the network was the cause; it was, however, "obviously the cause" according to my manager (no development/IT experience) so he took over the problem. One caveat and Fog Creek plug: **He couldn't account for the fact that the error reporting via FogBugz worked perfectly and ... | [
0.5597511529922485,
0.40138137340545654,
0.014298846013844013,
-0.11947117745876312,
0.09732436388731003,
-0.15283048152923584,
0.6567187309265137,
0.045091092586517334,
-0.1639806479215622,
-0.014700273983180523,
0.17137038707733154,
0.6352723240852356,
-0.19162549078464508,
0.20412264764... | |
they would have occurred to which I got no response. The timeouts did return (and in greater numbers) a couple months later.
I'm pretty content with how I handled the situation but I'm curious how the SO crowd would have responded to letting a superior/colleague implement a solution you know (or are very sure) is wron... | [
0.5391266942024231,
0.10091561079025269,
0.201743483543396,
0.39148980379104614,
-0.2657831013202667,
0.09491332620382309,
0.5070310235023499,
0.05374276265501976,
-0.4383380115032196,
-0.4296211898326874,
0.41108712553977966,
0.5052739977836609,
0.1963081955909729,
0.31917303800582886,
... | |
I know of several functional languages - F#, Lisp and its dialects, R, and more. However, as I've never used any of them (although the three I mentioned are on my "to-learn" list), I was wondering about the pros/cons of the various functional languages out there. Are there significant pros/cons, both in learning the la... | [
0.3168688118457794,
0.3798392117023468,
-0.10046757012605667,
0.004439700860530138,
0.06708063185214996,
-0.09490064531564713,
0.5870357155799866,
0.4660227298736572,
-0.5363282561302185,
-0.23213794827461243,
-0.16488391160964966,
0.6056342124938965,
0.3063763976097107,
-0.197976291179656... | |
about functional languages is that base themselves off of the lambda calculus and other math. This results in being able to use similar algorithms and thoughts across languages more easily.
As far as which one you should learn: Pick one that will have a comfortable environment for you. For example, if you're using .N... | [
0.4286908209323883,
0.20589891076087952,
-0.07803092151880264,
0.18110749125480652,
-0.15002842247486115,
-0.0643845722079277,
0.32180342078208923,
0.07517057657241821,
-0.1320229172706604,
-0.6589521169662476,
-0.22154536843299866,
0.6772072315216064,
-0.30798014998435974,
-0.700438916683... | |
potential. This is mainly because of the nice IDE/.NET integration, allowing you to fully tap .NET and OO, while keeping a lot of functional power (and extending it in ways too). Scala might be possible contender, but it's more of an OO language that has some functional features; hence Scala won't be as big a productiv... | [
0.29754239320755005,
-0.21620024740695953,
0.13346455991268158,
0.37619924545288086,
-0.14493928849697113,
-0.043167147785425186,
0.1703503429889679,
-0.07566123455762863,
-0.5077978372573853,
-0.8076367974281311,
-0.17541494965553284,
0.5331987142562866,
-0.208485409617424,
-0.16345581412... | |
as other languages.
The biggest downside is that once you see the power you can have, you won't be happy using lesser languages. This becomes a problem if you're forced to deal with people who haven't yet understood.
One final note, the only "con" is that "it's so complicated". This isn't actually true -- functional... | [
0.085882768034935,
-0.0913851410150528,
0.10394018888473511,
0.23045043647289276,
0.003943081013858318,
-0.1154073178768158,
0.6693405508995056,
0.25806379318237305,
-0.27459296584129333,
-0.579431414604187,
-0.25913646817207336,
0.7923453450202942,
0.11283347755670547,
-0.4063567817211151... | |
I'm trying to perform a *group by* action on an aliased column (example below) but can't determine the proper syntax.
```
SELECT LastName + ', ' + FirstName AS 'FullName'
FROM customers
GROUP BY 'FullName'
```
What is the correct syntax?
Extending the question further (I had not expected the answe... | [
-0.22227762639522552,
-0.04045430198311806,
0.331316202878952,
-0.33034762740135193,
-0.019344273954629898,
0.23678185045719147,
0.16126614809036255,
-0.057342737913131714,
-0.21083521842956543,
-0.4517362117767334,
-0.3084911108016968,
0.5488144755363464,
-0.1906585842370987,
0.0085316160... | |
WHEN LastName IS NOT NULL THEN LastName + ', ' + FirstName
END AS 'FullName'
FROM customers
GROUP BY
LastName, FirstName
```
And the answer is yes it does still apply.
You pass the expression you want to group by rather than the alias
```
SELECT LastName + ', ' + FirstName AS 'FullName'
F... | [
-0.4330935776233673,
-0.2679116725921631,
0.6472359895706177,
-0.3404475450515747,
0.07413388043642044,
0.015862347558140755,
0.015154257416725159,
0.018116068094968796,
-0.19444026052951813,
-0.38097646832466125,
-0.5619645118713379,
0.5029788613319397,
-0.06387040764093399,
-0.0184029173... | |
Are there any inherent problems with calling an ole object from tsql? I have been posed with a problem that I would like to solve solely using a stored procedure, is there anything I need to worry about with using a ole object as opposed to writing it in a clr based language?
Just make sure you can't do it as a set-bas... | [
0.3821435868740082,
0.05695970728993416,
0.15614548325538635,
0.06889470666646957,
-0.1440223753452301,
-0.2996535301208496,
0.27757707238197327,
0.2568662762641907,
-0.3490540683269501,
-0.33417221903800964,
-0.28317660093307495,
0.6321942210197449,
-0.39186665415763855,
0.025429092347621... | |
I have a program that generates text fiels that can be up to 20 mets in size. Sometimes I only care about the last line in the file, is there a way to read just that line with out wasting memory reading the rest of the file?
I could be mistaken but without resorting to some trickery, it seems that you can't.
However, i... | [
0.21994002163410187,
-0.20747309923171997,
0.7081893086433411,
-0.008067349903285503,
-0.17006056010723114,
0.26750022172927856,
0.32025212049484253,
-0.15099969506263733,
-0.18199969828128815,
-0.6543166041374207,
-0.018966423347592354,
0.48031195998191833,
-0.052411727607250214,
-0.12293... | |
this helps. Take into account that the pattern needs some refinement. It currently assumes that no control characters appear on a line. If your line has i.e. tabs, then it will capture from there till the end of file. | [
0.1659397929906845,
-0.40901052951812744,
0.49292802810668945,
0.21478748321533203,
0.31961655616760254,
-0.03977251797914505,
0.20915716886520386,
0.22001613676548004,
-0.25619104504585266,
-0.47370749711990356,
-0.39769020676612854,
-0.004613124765455723,
-0.5175352096557617,
0.286039471... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.