text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
variable called `PYTHONPATH` (if it's not already there, i.e., if you haven't done this before) or edit the existing variable.
You should enter the directories normally (take care to use backslashes, not the normal ones) separated by a semicolon (`;`) w/o a space. Be careful not to end with a semicolon.
The director... | [
0.03899405524134636,
-0.28412139415740967,
0.43520650267601013,
-0.1842736303806305,
0.10010365396738052,
-0.046813346445560455,
0.3621486723423004,
0.24567551910877228,
-0.2783001661300659,
-0.6418498754501343,
-0.2797907292842865,
0.5609126091003418,
-0.5469282865524292,
-0.1566222757101... | |
I am using a wx.TextCtrl to output text from a network daemon.
As the output is quite verbose, the size of text in the TextCtrl can become huge (BTW is there any limitation on the size of the contents of a TextCtrl?)
I would like to delete the top N lines from the TextCtrl when TextCtrl.GetNumberOfLines() exceeds... | [
0.001621463568881154,
-0.11634860187768936,
0.5856893062591553,
-0.09567540138959885,
-0.1710413694381714,
-0.17311154305934906,
0.693098247051239,
-0.03258957341313362,
-0.29631558060646057,
-0.7416028380393982,
-0.18465618789196014,
0.7011204957962036,
-0.39630889892578125,
0.21814993023... | |
calculate the sum S and then call [Remove](http://docs.wxwidgets.org/2.6/wx_wxtextctrl.html#wxtextctrlremove)(0,S) | [
-0.09315129369497299,
-0.12433041632175446,
0.9688969254493713,
-0.29333391785621643,
-0.22486744821071625,
0.12524564564228058,
0.1173267588019371,
-0.776019275188446,
-0.08584754168987274,
-0.19759462773799896,
-0.3606019616127014,
0.1336994171142578,
-0.3793484568595886,
0.1181901246309... | |
1. I use Visual Studio 2008 Professional automated tests. I have a function that writes to a file. I want to unit test the file writing function. I have read somewhere that I would have to mock a file somehow. I don't know how to do it. Can you help?
2. How to unit-test a method that downloads a page from the Internet?... | [
0.4056784212589264,
0.0440993532538414,
0.037006642669439316,
0.3233627676963806,
-0.2586602568626404,
-0.10375866293907166,
-0.034451644867658615,
-0.2412514090538025,
-0.13841287791728973,
-0.7049456834793091,
0.2277786284685135,
0.7076571583747864,
-0.12556573748588562,
-0.1233712658286... | |
area), check the contents and ditch it afterwards. Of if your code is a bit above the file system, you could write a mockable `IFileSystem` interface with the high-level methods you need (like `WriteAllBytes` / `WriteAllText`). It would be a pain to mock the streaming APIs, though.
For downloading from the internet (o... | [
0.2903876006603241,
0.03816166892647743,
0.4312311112880707,
0.3417564332485199,
-0.11322347074747086,
-0.27616360783576965,
0.29449960589408875,
0.12509125471115112,
-0.19598586857318878,
-0.7757752537727356,
-0.18808145821094513,
0.5503877997398376,
-0.09713160991668701,
0.12975379824638... | |
I have a Circle and a Line control.
Circle control's OnPaint draws a circle and Line control's one draws a line. These two controls are contained in another control (DrawingControl).
I need to put a Line over a Circle, but Circle's background deletes the Line. I tried enabling transparency and overriding Circle's OnPai... | [
0.018329516053199768,
-0.2732514441013336,
0.6224748492240906,
0.21991394460201263,
-0.31722623109817505,
0.34403732419013977,
0.2034613937139511,
-0.42005684971809387,
0.009996968321502209,
-0.6348826289176941,
0.1803324669599533,
0.48600390553474426,
-0.09946620464324951,
-0.093961350619... | |
Is there any documentation that discribes all the available functions and objects in shoe?
update: 2008.01.21
I am looking for a list of all the methods that can be called against an animate object.
For example I only figured out how to pause an animation using the toggle() method by reading source code from the sho... | [
0.3759903609752655,
-0.20618639886379242,
0.4899609684944153,
0.09181199967861176,
0.21761395037174225,
0.05261160805821419,
0.31313157081604004,
-0.2987535893917084,
-0.275488018989563,
-0.45213204622268677,
-0.08139834553003311,
1.0266393423080444,
-0.37942269444465637,
-0.12417155504226... | |
relevant section of the docs and is very handy for reference.
Most of this info is reformatted as html in the [help.shoooes.net](http://help.shoooes.net/) site mentioned above.
As most open source projects go it's well documented. And \_why seems to have actually shown restraint in the documentation (he obviously wor... | [
0.936616837978363,
-0.11323148012161255,
0.0968591719865799,
0.356507807970047,
0.08996415138244629,
-0.479423850774765,
0.3472473621368408,
0.14673186838626862,
-0.42166903614997864,
-0.4327036440372467,
-0.1667182445526123,
0.658632755279541,
-0.3128502666950226,
0.08222519606351852,
-... | |
How do I update additional data in HABTM tables.
For Example: I have `movies`, `people` and HABTM `movies_people` tables, but there is additional `persontype_id` field in `movies_people` table which indicates role of this person in that particular movie. How do I add/change this value?
You should probably be using a h... | [
0.3855615258216858,
-0.182846799492836,
0.29194900393486023,
0.2962098717689514,
0.08223624527454376,
-0.18875236809253693,
-0.31912586092948914,
-0.16275246441364288,
-0.3625201880931854,
-0.7042510509490967,
0.17273499071598053,
0.7029334306716919,
0.09184038639068604,
0.2000198513269424... | |
:people, :through => :favorites
```
This gives you access to movie.people for all the people who have favored this movie and movie.favorites to access anything that would be in your favorites table (like persontype\_id)
Josh Susser's Article, [Many-to-Many Dance Off](http://blog.hasmanythrough.com/2006/4/20/many-to... | [
0.21239672601222992,
0.039296988397836685,
0.6445038914680481,
0.06985342502593994,
-0.23848527669906616,
-0.3775478005409241,
0.2660137712955475,
-0.08918612450361252,
-0.4791480302810669,
-0.2794445753097534,
0.33388862013816833,
0.4438270330429077,
0.19195108115673065,
0.125335127115249... | |
I'm looking for a way to know in a Java application (*without* JNI - it's a multi-platform application) can detect if the screen is locked.
For information... our application records time while a user is working - we want it to automatically stop recording when the screen is locked instead of the user having to do so ... | [
0.6312263607978821,
0.07374678552150726,
0.17785577476024628,
-0.08482681959867477,
0.2646158039569855,
-0.01513216644525528,
0.5184629559516907,
-0.3463963270187378,
-0.1642407774925232,
-0.5778425931930542,
-0.20957811176776886,
0.38780462741851807,
-0.22957099974155426,
0.00210192822851... | |
What are the alternatives for SOAP development in C++? Which one do you prefer and is most supported/modern?
Check out **Apache Axis**. That is my all times favorite SOAP implementation. It's SOAP done right! Exists for C++ and Java.
<http://ws.apache.org/axis/>
And in best traditions of **[Apache Foundation](htt... | [
0.5219855308532715,
-0.16024348139762878,
0.2825903594493866,
0.19529779255390167,
-0.21059550344944,
-0.25804227590560913,
0.18059754371643066,
0.17072346806526184,
-0.12867245078086853,
-0.8383442759513855,
0.22793874144554138,
0.5238149762153625,
-0.04298047721385956,
0.0768689736723899... | |
I recently built a new application using WPF, so that I can learn the new technology. Now that I am trying to deploy the application, it appears as if it is running fine on a Vista system, but on a Windows XP SP2 machine with the .Net fx 3.5SP1, it's not able to load the PresentationFramework.dll file.
I did some furt... | [
0.41145217418670654,
0.115166574716568,
0.3611419200897217,
-0.02701992355287075,
-0.14367961883544922,
-0.031529445201158524,
0.1974412500858307,
0.06528224796056747,
-0.19703060388565063,
-0.7423675060272217,
0.3530905544757843,
0.7294737100601196,
-0.09349343180656433,
0.014869913458824... | |
issue as well, and what they did to remedy the situation so that they could develop on Windows Vista, but deploy the developed application to both Vista and XP clients.
Thanks.
I need to add to this a bit... on the vista machine and on the client machine, I've got .Net Fx 3.5 SP1. I had done a bit of digging, and fou... | [
0.3566126823425293,
0.16086556017398834,
0.4935881495475769,
-0.035019777715206146,
-0.26115337014198303,
0.17454802989959717,
0.06340409070253372,
0.143870547413826,
-0.3829357326030731,
-0.6670140027999878,
0.12152110040187836,
0.8240506649017334,
0.06120540201663971,
-0.0740816369652748... | |
Turned out that there was corruption in the Windows XP box I was using as a test bed.
I was working between stackoverflow and another forum for the package I was writing the Add-in for. When I learned of the answer, this is what I posted, in case I ran into issue in the future.
> I thought that I'd post this here, so... | [
0.3543080985546112,
0.21590085327625275,
0.16239826381206512,
-0.0016309877391904593,
0.021834127604961395,
-0.12122409790754318,
0.2792087495326996,
-0.01861102133989334,
-0.1968391388654709,
-0.5953930020332336,
0.44906380772590637,
0.3980375826358795,
-0.24522064626216888,
-0.1788138002... | |
fine on my development machine, every
> time I'd go to run it on a test
> machine (a machine ghosted like it was
> in the field at a customer's
> location), I kept getting weird
> processing errors.
>
>
> I did hours of searching online, only
> to come up empty handed until I ran
> across this article:
>
>
>... | [
0.5009537935256958,
0.16248971223831177,
0.3848474621772766,
0.04303270950913429,
-0.1728336364030838,
-0.3304019272327423,
0.39928603172302246,
-0.19381606578826904,
-0.4414275586605072,
-0.5396987795829773,
0.21529033780097961,
0.5665406584739685,
0.03436541184782982,
0.23521514236927032... | |
Imaging components
> have become corrupt against what my
> application is looking for. TO fix
> the issue, you have to:
>
>
> 1) navigate to
> %windir%\$NtUninstallWIC$\spuninst\
> and run the spuninst.exe file in
> there. That will remove the Windows
> imaging components. 2) after you have
> completely remov... | [
0.5465364456176758,
0.1483745127916336,
0.6417695879936218,
0.12475009262561798,
-0.1024329885840416,
-0.40248486399650574,
0.3704003691673279,
-0.21173124015331268,
-0.007022859062999487,
-0.5756899118423462,
0.23584064841270447,
0.7234445810317993,
-0.19516806304454803,
0.331109136343002... | |
may be able to help them out quick by >putting this out there.
As I said on that forum... hopefully this helps someone else out that runs into this issue in the future. | [
0.5791913270950317,
0.06982570886611938,
0.014844321645796299,
0.37347614765167236,
0.020506469532847404,
-0.3378945589065552,
0.17969699203968048,
0.549384593963623,
-0.040455494076013565,
-0.7578602433204651,
0.49867019057273865,
0.2931172549724579,
0.35900959372520447,
0.002444827230647... | |
So firstly here's my query: (*NOTE:I know SELECT \* is bad practice I just switched it in to make the query more readable*)
```
SELECT pcln_cities.*,COUNT(pcln_hotels.cityid) AS hotelcount
FROM pcln_cities
LEFT OUTER JOIN pcln_hotels ON pcln_hotels.cityid=pcln_cities.cityid
WHERE pcln_cities.state_name='Californ... | [
0.17029541730880737,
0.19735413789749146,
0.7745761871337891,
0.36590516567230225,
0.0018591685220599174,
-0.18552950024604797,
0.13318946957588196,
-0.25460219383239746,
-0.27435800433158875,
-0.7238168716430664,
-0.023881323635578156,
0.33337658643722534,
-0.389230877161026,
0.3358229696... | |
tables has the following indexes (or is it indices?)
* cityid
* state\_name
* and I just added one with both as I thought it might help (it didn't)
The hotels tables has the following indexes (or is it indices?)
* cityid
Hmm, there's something not very right in your query.
You use an aggregate function (count), but ... | [
0.010884672403335571,
0.32343733310699463,
0.7002337574958801,
0.14277751743793488,
0.058988142758607864,
-0.08452538400888443,
-0.19497528672218323,
-0.25079038739204407,
-0.4839966595172882,
-0.6486621499061584,
0.12994979321956635,
0.19116690754890442,
-0.4963842034339905,
0.17018589377... | |
be more correct if your query was written like:
```
select cityname, count(*)
from city inner join hotel on hotel.city_id = city_id
group by cityname
order by count(*) desc
```
If you do not have an index on the cityName, and you filter on cityname, it will improve performance if you put an index on that column.
In... | [
0.08966586738824844,
0.004596652463078499,
0.48756855726242065,
0.035531941801309586,
-0.13212165236473083,
-0.25067922472953796,
0.2521591782569885,
-0.26247894763946533,
-0.09815964847803116,
-0.9670308232307434,
-0.2517382800579071,
0.3873833417892456,
-0.37095925211906433,
0.1888935118... | |
you update or insert a record, indexes need to be updated as well, so there's a slight performance cost in adding/updating/deleting records)
Another thing that could improve performance, is using an inner join instead of an outer join. I don't think that it is necessary to use an outer join here. | [
0.2715088725090027,
-0.09106174856424332,
0.00031185205443762243,
0.3768562376499176,
0.12103504687547684,
-0.28765392303466797,
0.09956459701061249,
-0.09443163126707077,
-0.4540165364742279,
-0.5762720108032227,
0.35384851694107056,
0.6653927564620972,
-0.21086935698986053,
-0.0308810397... | |
I want to invoke a validation function inside the entities objects right before they are stored with ObjectContext#SaveChanges(). Now, I can keep track of all changed objects myself and then loop through all of them and invoke their validation methods, but I suppose an easier approach would be implement some callback t... | [
0.2513834834098816,
0.032861463725566864,
0.38948479294776917,
0.03193887323141098,
0.16923443973064423,
-0.0059167626313865185,
0.19926398992538452,
0.01414582785218954,
-0.24200057983398438,
-0.6457207202911377,
0.10172456502914429,
0.7027520537376404,
-0.40360957384109497,
-0.0499974861... | |
partial void OnContextCreated()
{
SavingChanges += PerformValidation;
}
void PerformValidation(object sender, System.EventArgs e)
{
var objStateEntries = ObjectStateManager.GetObjectStateEntries(
EntityState.Added | EntityState.Modified);
var violatedRules = new Lis... | [
-0.18924902379512787,
-0.35082337260246277,
0.6026157140731812,
-0.2984176278114319,
0.3229030966758728,
0.4464784860610962,
0.8225125670433044,
-0.20174311101436615,
-0.17500975728034973,
-0.4349842667579651,
-0.47089505195617676,
0.37100377678871155,
-0.42198246717453003,
0.3760866224765... | |
var entity = entry.Entity as IRuleValidator;
if (entity != null)
violatedRules.AddRange(entity.Validate());
}
if (violatedRules.Count > 0)
throw new ValidationException(violatedRules);
}
``` | [
-0.18649451434612274,
0.0395001545548439,
0.4474230408668518,
-0.13512274622917175,
0.12446101754903793,
0.00045184933696873486,
0.5038318634033203,
-0.5136440396308899,
-0.10403307527303696,
-0.1628570407629013,
-0.20502778887748718,
0.5316585302352905,
-0.4072988033294678,
0.421939730644... | |
I have 4 binary bits
```
Bit 3 Bit 2 Bit 1 Bit 0
```
Normally the answer is simple: 2^4, or 16 different combinations; and it would looks something like the following:
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
However, The LSB (Bit 0) changes state every iteration.
I need ... | [
0.350260853767395,
0.34240493178367615,
0.5779978036880493,
0.016920018941164017,
-0.17359793186187744,
0.6120014190673828,
0.6458647847175598,
-0.42634761333465576,
-0.15577900409698486,
-0.6306097507476807,
-0.14932657778263092,
0.16945241391658783,
-0.24183028936386108,
0.43878686428070... | |
possible solutions. However this assumes there is a starting point for the value and an ending point. This doesn't matter so I'm going to give a real world scenario to better explain.
Suppose I have an digital alarm clock that gives me 4 outputs. Each output can be programmed to go on at a certain time and off at a ce... | [
0.4160028100013733,
0.00040044920751824975,
0.4600491225719452,
0.11101746559143066,
0.24963858723640442,
0.49550938606262207,
0.3241136074066162,
-0.41993096470832825,
-0.4748605489730835,
-0.3181942105293274,
0.21923236548900604,
0.5628177523612976,
-0.31965112686157227,
0.20440849661827... | |
2 am. There are no restrictions to how long each output can stay on.
Now I want to hook this alarm clock to a computer and get as close as possible to the current correct time. i.e If the clock says the time is 2:15 pm, my computer knows that the alarm is within the 12 pm to 6 pm range for example. I want to be able ... | [
0.7875810861587524,
0.037851251661777496,
0.7296975255012512,
-0.06809645146131516,
0.25409039855003357,
-0.02083347924053669,
0.7362922430038452,
-0.4144563674926758,
-0.15390244126319885,
-0.5150574445724487,
0.1151018813252449,
0.5653616189956665,
-0.11965405195951462,
-0.04994029179215... | |
of the bits must have changed state from the previous value.
Therefore, you can have at most 4 state changes, and at most 5 different values.
Example:
```
0000 -> 0001 -> 0011 -> 0111 -> 1111
```
**Edit:**
Very well, let's restate from what you mean rather than from what you say.
1. There are 4 bits.
2. Each bit... | [
0.22958260774612427,
0.1293373554944992,
0.36097103357315063,
-0.08779729902744293,
0.15012075006961823,
0.6747604012489319,
0.5885134339332581,
-0.5212007761001587,
-0.4394416809082031,
-0.4507708251476288,
-0.22905795276165009,
0.34731152653694153,
-0.09609999507665634,
0.409068584442138... | |
(since the last state change necessarily brings all bits back to their initial state)
Example:
```
0000 -> 0001 -> 0011 -> 0111 -> 1111 -> 1110 -> 1100 -> 1000 -> 0000
```
So, by setting the outputs for: 3 AM - 3 PM, 6 AM - 6 PM, 9 AM - 9 PM and noon - midnight, you can determine which 3-hour period it is from the ... | [
0.5863439440727234,
-0.3343369662761688,
0.4141401946544647,
-0.048431407660245895,
0.2621415853500366,
0.16546261310577393,
0.30998265743255615,
-0.07984541356563568,
-0.1982465386390686,
-0.4932876229286194,
-0.1340498924255371,
0.26080402731895447,
0.2471948117017746,
0.0000379612029064... | |
I would like to change the name of the ruby process that gets displayed in the linux/unix top command. I have tried the
```
$0='miname'
```
approach but it only works with the ps command and in top the process keeps getting displayed as "ruby"
Dave Thomas had an interesting [post](http://pragdave.blogs.pragprog.com... | [
0.3771322965621948,
-0.0057381228543818,
0.06809233874082565,
-0.2286769151687622,
-0.01753571256995201,
0.0728481188416481,
0.380876749753952,
0.049518901854753494,
-0.315786749124527,
-0.49448832869529724,
-0.059956420212984085,
0.5007506012916565,
-0.44839251041412354,
0.352840989828109... | |
version of the command by default. | [
-0.17890481650829315,
-0.3419872224330902,
0.44689491391181946,
-0.05575626716017723,
0.2007448524236679,
-0.3447323143482208,
0.33234575390815735,
0.12221609055995941,
-0.13967330753803253,
-0.39684510231018066,
-0.6552948355674744,
0.5415495038032532,
-0.18320594727993011,
0.042909614741... | |
For our VB.NET websites we use SVN for Source Control and CruiseControl.NET for continuous integration.
To use the SVN build number in the compilation by CruiseControl.NET we need to use Web Deployment Projects. We then replace in the configuration file the Version field with this variable from SVN Labeller
* $(CCNe... | [
0.42165249586105347,
0.16744831204414368,
0.4454185962677002,
-0.21496985852718353,
0.04739118739962578,
-0.45060908794403076,
0.5227243304252625,
-0.0022769300267100334,
-0.3955449163913727,
-0.5140616297721863,
-0.09454534202814102,
0.8311976790428162,
-0.4640767574310303,
0.105244137346... | |
specified for 'AssemblyVersion' in the project file is invalid. C:\MyProject\MyProjectDeploy.wdproj
I have searched for ways to disable certain warnings but they all reference Windows projects not web site/deployment projects which do not contain a Compile tab.
I found information on using #pragma warning( disable :... | [
0.40160664916038513,
0.2570897340774536,
0.20431506633758545,
-0.15048748254776,
0.034555912017822266,
-0.1109093725681305,
0.6793652772903442,
-0.014752492308616638,
-0.194612517952919,
-0.62127685546875,
-0.08985132724046707,
0.647871732711792,
-0.34343573451042175,
0.031042302027344704,... | |
to ignore errors, it is just in a weird place for vb.net.
Open the .vbproj file with notepad or an equivalent and find the <NoWarn> tag and add the id of the error there.
in a default 2008 winforms, I have these warnings already ignored.
```
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn... | [
0.12158607691526413,
0.5216872692108154,
0.30491334199905396,
-0.19960084557533264,
-0.03598427399992943,
0.10496622323989868,
0.5440102815628052,
0.27780425548553467,
-0.3161138594150543,
-0.3519938290119171,
0.08965837955474854,
0.5413716435432434,
-0.35741376876831055,
0.170122966170310... | |
First of all, my question is not quite the same as
[Is Office 2007 PIA deployment possible without Office 2007?](https://stackoverflow.com/questions/370407/is-office-2007-pia-deployment-possible-without-office-2007)
I am not looking to use the PIA's yet. The IT engineers would ideally like to deploy the 2007 PIA's to... | [
0.22310568392276764,
-0.08161243796348572,
0.36069169640541077,
0.19422957301139832,
0.09453577548265457,
0.06570233404636383,
-0.056578394025564194,
-0.21555975079536438,
-0.2938128709793091,
-0.34868526458740234,
0.186223566532135,
0.7581397891044617,
0.12159835547208786,
-0.068262189626... | |
In NetBeans the GUI Builder generates code that is off limits to you from the editor.
I know you can switch to Design Mode and specify custom code and then enter edit in indirectly that way, but it's a pain to not be able to edit text that's 2 lines from your cursor.
Can I allow editing within those regions... I prom... | [
0.14916424453258514,
-0.12655645608901978,
0.39438575506210327,
-0.021091215312480927,
-0.1572396457195282,
-0.3748196065425873,
0.3690619170665741,
0.12650194764137268,
-0.13752152025699615,
-1.0071265697479248,
-0.17157523334026337,
0.8567416071891785,
-0.2902265191078186,
-0.18778802454... | |
UI Editor
* The next time you edit the file in Netbeans it will be regenerated.
Either way, probably not what you want. The best thing to do would probably be to make the whole design up in the gui editor and when you are happy with it, delete the comments and continue on.
[sarcasm]
With the drag and drop gui editor,... | [
0.24069452285766602,
-0.11184871941804886,
0.35270392894744873,
0.13712690770626068,
-0.2874688506126404,
-0.06571138650178909,
0.10631510615348816,
0.27112650871276855,
-0.16828374564647675,
-0.835930585861206,
-0.17509645223617554,
0.5988607406616211,
-0.5582471489906311,
0.0932291001081... | |
Essentially I need a count of each Entries Comments:
```
SELECT e.*, COUNT(c.id) as comments FROM blog_entry e LEFT JOIN blog_comment c ON e.id = c.entry_id GROUP BY e.id, e.name, e.name_slug, e.date_published, e.category, e.image, e.body, e.is_published, e.views, e.subscription_sent ORDER BY e.date_published DESC LIM... | [
0.18504121899604797,
0.37605467438697815,
0.5062970519065857,
-0.15847037732601166,
-0.487593412399292,
-0.2983339726924896,
-0.04230751097202301,
-0.34227454662323,
-0.15519820153713226,
-0.6340526342391968,
0.07214848697185516,
0.6118950843811035,
-0.48900577425956726,
-0.033796016126871... | |
have support for aggregate queries, you can grab the last version via the svn trunk.
The doc is already updated
<http://docs.djangoproject.com/en/dev/topics/db/aggregation/> | [
0.363326758146286,
0.2523377537727356,
0.24308831989765167,
-0.10861861705780029,
-0.18172964453697205,
-0.39239615201950073,
0.17436592280864716,
0.0495922677218914,
-0.5281355977058411,
-0.530339241027832,
-0.036978427320718765,
0.44219979643821716,
-0.09598793089389801,
-0.0358518809080... | |
**Question:** Does Informix have a construct equivalent to Oracle's "materialized view" or is there a better way to synchronize two tables (not DB's) accross a DB link?
I could write a sync myself (was asked to) but that seems like re-inventing the wheel.
**Background:** Recently we had to split (one part of DB one o... | [
0.10837635397911072,
-0.04043169692158699,
0.5069210529327393,
0.2186555564403534,
-0.47906333208084106,
0.15825241804122925,
0.21060910820960999,
-0.11455296725034714,
0.029510896652936935,
-0.6540469527244568,
0.06184772402048111,
0.19522348046302795,
-0.3621194362640381,
0.2718708217144... | |
of huge fact tables and well defined dimension tables.
Unfortunately a telco manager decided to centralize the dimension tables (Normalization, no data redundancy, no coding needed) on one machine and thus make them available as views over a DB-link on the other machine. This is both slow and unstable, as it every now... | [
0.25214678049087524,
0.24064689874649048,
0.2982480823993683,
0.24962177872657776,
0.07523980736732483,
-0.24625256657600403,
0.27791628241539,
0.16925957798957825,
-0.32358843088150024,
-0.49984508752822876,
0.07956228405237198,
0.367880642414093,
-0.1573537290096283,
0.8381159901618958,
... | |
I've discovered this folder in `C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files` and have a few questions.
* What does ASP.NET use this folder for, and what sort of files are stored here?
* How does a file get stored here, and when is it updated?
* Does the folder need any sort of maintenance?
Th... | [
0.5880530476570129,
0.0480203777551651,
0.45060762763023376,
0.024298468604683876,
0.14841032028198242,
-0.06409231573343277,
0.23391924798488617,
0.32206323742866516,
-0.5472561717033386,
-0.8042968511581421,
-0.12984752655029297,
0.38919731974601746,
-0.42906951904296875,
-0.114696986973... | |
files to c# source
> files. ASP.NET then builds/compiles
> all this code into a runnable
> application.
One advantage of doing this is that it prevents the possibility of .NET assembly DLL's #(in the /bin folder) becoming locked by the ASP.NET worker process and thus not updatable.
ASP.NET watches for file changes... | [
0.7535088658332825,
0.0601012259721756,
0.5026196837425232,
0.08525672554969788,
0.16805565357208252,
-0.4491714835166931,
0.46845680475234985,
0.14996251463890076,
-0.4828992486000061,
-0.8672821521759033,
-0.351433128118515,
0.5447637438774109,
-0.13762439787387848,
0.043378736823797226,... | |
per shared server and I haven't had to touch this folder on any of the 250 or so machines for years.
This is outlined in the MSDN article [Understanding ASP.NET Dynamic Compilation](http://msdn.microsoft.com/en-us/library/ms366723.aspx) | [
-0.003734251018613577,
-0.06284411996603012,
0.24194565415382385,
0.07126805931329727,
-0.08566788583993912,
-0.0365513376891613,
0.2503165006637573,
0.07554377615451813,
-0.5466346144676208,
-0.5389921069145203,
-0.10703777521848679,
0.28672197461128235,
-0.15564677119255066,
0.2896688878... | |
I'd like to dynamically generate content and then render to a PDF file. This processing would take place on a remote hosting server so using virtual printers etc is out. Does any have a recommendation for a .NET library (pref C#) that would work?
I know that I could generate a bunch of PS code and package it myself b... | [
0.49459096789360046,
-0.2761940658092499,
0.3064355254173279,
0.2182309627532959,
-0.1290937066078186,
-0.09009092301130295,
0.025894667953252792,
0.10117663443088531,
-0.027335233986377716,
-0.8086709380149841,
0.013826454058289528,
0.6100401282310486,
0.003100919770076871,
-0.07267308235... | |
> I've accepted an answer, but sadly, I believe we're stuck with our original worst case scenario: **CAPTCHA everyone on purchase attempts of the crap**. Short explanation: caching / web farms make it impossible to track hits, and any workaround (sending a non-cached web-beacon, writing to a unified table, etc.) slows ... | [
0.6328933835029602,
0.25964978337287903,
0.3801245093345642,
0.06349896639585495,
-0.3522854447364807,
-0.20406514406204224,
0.7333846092224121,
0.2904462218284607,
-0.10582870990037918,
-0.5319909453392029,
-0.18626245856285095,
0.7059860229492188,
0.10410083085298538,
0.02422114275395870... | |
cleaning this up for future searchers (though others are welcome to try, as it's community wiki).
Situation
---------
This is about the bag o' crap sales on woot.com. I'm the president of Woot Workshop, the subsidiary of Woot that does the design, writes the product descriptions, podcasts, blog posts, and moderates t... | [
0.8360560536384583,
0.39227819442749023,
0.37588757276535034,
-0.25818026065826416,
-0.0976477637887001,
-0.25925877690315247,
0.10568968951702118,
0.16624011099338531,
-0.21551115810871124,
-0.4287768304347992,
-0.0784757062792778,
0.5563578009605408,
0.2941552996635437,
0.132889315485954... | |
the rest of it. That's where the three goals below derive. CAPTCHA harms usability, and bots steal the fun and excitement out of our crap sales.
Bots are slamming our front page tens of times a second screen scraping (and/or scanning our RSS) for the Random Crap sale. The moment they see that, it triggers a second sta... | [
0.38197651505470276,
0.3445607125759125,
0.4589366912841797,
0.25757312774658203,
0.05610566958785057,
-0.3891604244709015,
0.10452746599912643,
0.038534168154001236,
-0.27777326107025146,
-0.16446064412593842,
-0.19225479662418365,
0.7604211568832397,
0.03567171096801758,
0.12462584674358... | |
that.
On Woot, anonymous (non-logged) users can view our home page. In other words, the slamming bots can be non-authenticated (and essentially non-trackable except by IP address).
So we're back to scanning for IPs, which a) is fairly useless in this age of cloud networking and spambot zombies and b) catches too many... | [
0.3778643012046814,
0.3223720192909241,
0.48806169629096985,
0.061328254640102386,
0.0001442109205527231,
-0.14948509633541107,
0.5678490400314331,
-0.011224341578781605,
-0.2403057962656021,
-0.3972575068473816,
-0.17075420916080475,
0.6706959009170532,
0.09490704536437988,
0.143390461802... | |
Batchelder's methods look pretty cool, but they're pretty firmly designed to defeat bots built for a network of sites. Our problem is bots are built specifically to defeat our site. Some of these methods could likely work for a short time until the scripters evolved their bots to ignore the honeypot, screen-scrape for ... | [
0.4512636661529541,
0.17264358699321747,
0.26810646057128906,
0.22218851745128632,
-0.18214918673038483,
-0.273591011762619,
0.14710627496242523,
0.2449779510498047,
-0.22056473791599274,
-0.1274719387292862,
-0.014963035471737385,
0.4812747538089752,
-0.2085808962583542,
0.297238707542419... | |
one is probably as much or more important than the crap you actually end up getting. Anything that eliminates first-come/first-serve is detrimental to the thrill of 'winning' the crap.
> [novatrust](https://stackoverflow.com/questions/450835/how-would-you-stop-scripters-from-slamming-your-site-hundreds-of-times-a-seco... | [
0.10560630261898041,
-0.10596881061792374,
0.4456680715084076,
0.3085567355155945,
-0.32531121373176575,
-0.2103465348482132,
0.012140361592173576,
-0.032894913107156754,
-0.17661024630069733,
-0.5376487970352173,
-0.012672124430537224,
0.5655208826065063,
-0.0017330244882032275,
-0.154260... | |
because your last paragraph pessimism feels accurate to me. There seems to be no silver bullet here.
The rest of the responses generally rely on IP tracking, which, again, seems to both be useless (with botnets/zombies/cloud networking) and detrimental (catching many innocents who come from same-IP destinations).
Any... | [
0.7011546492576599,
0.2016361653804779,
0.29016387462615967,
0.45758944749832153,
-0.14721404016017914,
-0.15303252637386322,
0.19268083572387695,
0.41753914952278137,
-0.016047032549977303,
-0.14233984053134918,
0.007921857759356499,
0.4898187816143036,
-0.14821729063987732,
0.24400539696... | |
sell this item. And over a million people regularly come by to see what you're selling.
You end up with scripters and bots attempting to programmatically [a] figure out when you're selling said item, and [b] make sure they're among the first to buy it. This sucks for two reasons:
1. Your site is slammed by non-humans... | [
0.9471031427383423,
0.05607800930738449,
0.3866424262523651,
0.49703556299209595,
0.08071665465831757,
-0.1884521096944809,
0.1861671358346939,
0.4756462275981903,
-0.2640439569950104,
-0.25247612595558167,
-0.04397327080368996,
0.3903906047344208,
-0.0471893772482872,
0.43931224942207336,... | |
The user experience sucks for humans, as they have to decipher CAPTCHA, pick out the cat, or solve a math problem.
* If the perceived benefit is high enough, and the crowd large enough, some group will find their way around any tweak, leading to an arms race. (This is especially true the simpler the tweak is; hidden 'c... | [
0.015527896583080292,
0.3283766210079193,
0.25154080986976624,
0.28183630108833313,
-0.3336395025253296,
-0.1552022099494934,
0.7442856431007385,
0.25395530462265015,
-0.026978738605976105,
-0.6954953074455261,
-0.4832800626754761,
0.43164339661598206,
0.04829008877277374,
-0.1922856569290... | |
page, and then sounding an alarm for the scripter to fill out the order, manually. Given they get the advantage from solving [a], they will likely still win [b] since they'll be the first humans reaching the order page. Additionally, 1. still happens, causing server errors and a decreased performance for everyone.
Ano... | [
-0.10285639017820358,
-0.04582926630973816,
0.6271899342536926,
-0.015740232542157173,
0.04790947958827019,
-0.11760523170232773,
0.47201189398765564,
-0.21938851475715637,
-0.4873902201652527,
-0.7976792454719543,
-0.21203511953353882,
0.3134765923023224,
-0.18645061552524567,
-0.01118267... | |
were causing on their own. Additionally, the possibility of cloud networking and spambot zombies makes IP checking fairly useless.
A third idea, forcing the order form to be loaded for some time (say, half a second) would potentially slow the progress of the speedy orders, but again, the scripters would still be the f... | [
0.45304450392723083,
-0.09090176969766617,
0.325498104095459,
0.2792869210243225,
-0.33735963702201843,
-0.03571316599845886,
0.5584638118743896,
-0.19980493187904358,
-0.197770893573761,
-0.461900919675827,
-0.02055833861231804,
0.5877892374992371,
-0.32696714997291565,
-0.077113270759582... | |
with the CAPTCHAs?
If you're using the site normally, you'll probably never see one. If you happen to reload the same page too often, post successive comments too quickly, or something else that triggers an alarm, make them prove they're human. In your case, this would probably be constant reloads of the same page, fo... | [
0.36588945984840393,
-0.0012693442404270172,
0.28461670875549316,
0.23262181878089905,
-0.35456404089927673,
-0.32767173647880554,
0.3721283972263336,
0.056882139295339584,
-0.39699941873550415,
-0.5177130103111267,
-0.15631018579006195,
0.4479532837867737,
-0.28553053736686707,
0.09710729... | |
dump them back to the check again.
---
Since you have unregistered users accessing the site, you do have only IPs to go on. You can issue sessions to each browser and track that way if you wish. And, of course, throw up a human-check if too many sessions are being (re-)created in succession (in case a bot keeps delet... | [
0.8746700882911682,
0.032842665910720825,
-0.009834257885813713,
0.3543742895126343,
-0.0620938278734684,
-0.5510051846504211,
0.45162591338157654,
-0.08622771501541138,
-0.2924076020717621,
-0.41310977935791016,
-0.12297290563583374,
0.4079502522945404,
-0.2220195084810257,
-0.16792361438... | |
login to avoid this." (Adjust the wording appropriately.)
Besides, what are the odds that X people are loading the same page(s) at the same time from one IP? If they're high, maybe you need a different trigger mechanism for your bot alarm.
---
Edit: Another option is if they fail too many times, and you're confident... | [
0.8055971264839172,
-0.012157833203673363,
0.16719187796115875,
0.3113773763179779,
0.11899792402982712,
-0.2490844875574112,
0.6300515532493591,
-0.023037349805235863,
-0.40436702966690063,
-0.6590577363967896,
-0.2952502369880676,
0.44277581572532654,
-0.3293016254901886,
-0.242738738656... | |
for a condition which should almost never happen unless it's a bot (e.g. fail the check multiple times in a row). Then it FORCES human interaction - to pick up the phone.
In response to the comment of having them call me, there's obviously that tradeoff here. Are you worried enough about ensuring your users are human ... | [
0.713494598865509,
0.061283357441425323,
0.32102838158607483,
-0.1171611100435257,
0.19373461604118347,
0.03213100507855415,
0.3648788630962372,
0.1271756887435913,
-0.2224743515253067,
-0.4618033170700073,
0.12777486443519592,
0.5936207175254822,
-0.2558803856372833,
0.1416180431842804,
... | |
you're determined to not let bots get the upper hand/slam your site, I believe the phone may be a good option. Since I don't make a profit off your product, I have no interest in receiving these calls. Were you to share some of that profit, however, I may become interested. As this is your product, you have to decide h... | [
1.1663551330566406,
-0.08967041224241257,
0.3168365955352783,
0.1100490465760231,
-0.14658768475055695,
-0.29907745122909546,
0.14087370038032532,
0.07761785387992859,
-0.0853339359164238,
-0.40953177213668823,
-0.11799376457929611,
0.6390708088874817,
-0.18525421619415283,
0.0940978676080... | |
buy your product, they'd be SOL and punished for failing the check), email (easily done by bots), fax (same), or snail mail (takes too long).
You could, of course, instead have the timeout period increase per IP for each time they get a timeout. Just make sure you're not punishing true humans inadvertently. | [
0.9408275485038757,
-0.04696822911500931,
0.33624014258384705,
0.24553067982196808,
0.028901435434818268,
0.016051819548010826,
0.32419946789741516,
0.12613210082054138,
-0.11947882920503616,
-0.3711572587490082,
-0.0595436692237854,
0.6551592946052551,
0.11433054506778717,
-0.009459909051... | |
It's been a while now since Microsoft stopped supporting Embedded Visual C++ 4.0 (eVC 4), and they don't let you use the Windows Mobile SDK with the Express version of VS 2008. Now, I'm OK because I get an MSDN license through work (including VS 2008 Pro), but I'd like to work on a couple open-source projects, and not ... | [
0.542241632938385,
0.34854230284690857,
0.4366135001182556,
-0.16307848691940308,
-0.2697557210922241,
-0.3102085590362549,
0.3743596076965332,
0.190049409866333,
-0.2044958621263504,
-0.4331839382648468,
-0.053512152284383774,
0.717677652835846,
-0.32042786478996277,
0.05556763708591461,
... | |
on both XP and Vista? It doesn't have to be fancy, per se, but the more VS-level niceties it has, the happier I think we'd all be with it.
Suggestions for *cheap* commercial-ware are also welcome, though of course the very best option would be something open-source, especially cross-platform. I think MS is doing serio... | [
0.2938558757305145,
0.2446606606245041,
0.443733274936676,
0.12929244339466095,
-0.22599370777606964,
-0.2541898190975189,
0.30827292799949646,
0.08674895018339157,
-0.16492696106433868,
-0.46331787109375,
-0.058436840772628784,
0.8366692066192627,
0.13980412483215332,
0.1769416481256485,
... | |
debugging directly against the device or emulator works, though, so I'd be highly inclined to not bother. Developing without a debugger is unbelievably painful.
Even with this you don't have native support. What's your option htere? Well there's [CeGCC](http://cegcc.sourceforge.net/docs/using.html) and [PocketGCC](htt... | [
0.6053022146224976,
0.35330361127853394,
0.081463523209095,
0.08118272572755814,
-0.05280386656522751,
-0.19853106141090393,
0.036252718418836594,
0.1905624121427536,
0.1007736548781395,
-0.36099961400032043,
-0.23714295029640198,
0.6613840460777283,
-0.13635921478271484,
0.217489570379257... | |
at several people about this - and it was way back in the Studo '03 days that we started yelling. The standard response was that the development side (whom we talked to) don't handle the business side (of pricing, SKU features, etc). Unfortunately I understand that, and I believe they were telling the truth.
To make m... | [
0.5298611521720886,
0.18975350260734558,
0.37792274355888367,
0.07382193207740784,
-0.16084372997283936,
-0.18600736558437347,
0.18457195162773132,
0.19666481018066406,
0.09079041332006454,
-0.28958991169929504,
-0.14737458527088165,
0.7316983938217163,
0.009393776766955853,
0.123256288468... | |
to do development.
So what's your recourse? I'd recommend that if you can't afford the license, then look around for programs and offers that might give it. There was a time when Microsoft provided "driver developers" a free copy if they promised to develop and sell a driver within a year. I don't think they ever chec... | [
0.8248675465583801,
0.3914530575275421,
-0.09101442992687225,
0.30088165402412415,
-0.007517816964536905,
0.013090542517602444,
-0.07480891048908234,
0.02922774851322174,
0.23347318172454834,
-0.3512064218521118,
0.44253459572792053,
0.8934057950973511,
0.2742326855659485,
-0.1297665685415... | |
with VS. If you have any contact with any Microsoft reps at work, complain about this feature lack. Even if it's to the Office rep.
Edit: Just FYI, I ran it up the flagpole again this morning with the Visual Studio for Devices team telling them to tell their managers to think about a free option under VS 10. No idea i... | [
0.8260501027107239,
-0.43454408645629883,
0.6095152497291565,
0.1748044192790985,
-0.31759417057037354,
-0.16989324986934662,
0.34927165508270264,
0.07050073146820068,
-0.2962932884693146,
-0.6486501693725586,
-0.02424825169146061,
0.698667049407959,
-0.2847324311733246,
-0.188151493668556... | |
I was wondering if anyone knows how to or if it is possible to upload files to a sharepoint (v3/MOSS) document library over FTP. I know it is possible with webdav. If it is possible is this even supported by Microsoft?
I don't think so. I think your options are:
1. HTTP (via the upload page)
2. WebDAV
3. Web Services... | [
0.4332529604434967,
-0.18139135837554932,
0.40937164425849915,
0.24222491681575775,
-0.14728739857673645,
-0.14651921391487122,
0.057676106691360474,
0.022410405799746513,
-0.46463730931282043,
-0.765346348285675,
-0.05665184557437897,
0.625798761844635,
-0.2881762385368347,
0.206459537148... | |
I'm trying to modify the contents of an MSI file using Powershell. To do so I create an instance of a WindowsInstaller.Installer then use $installer.OpenDatabase and $database.OpenView. Similar functionality works in VBScript and I've seen samples on-line that appear to work.
```
$installer = new-object -comobject "Wi... | [
0.1516389399766922,
0.30096662044525146,
0.3857143819332123,
-0.010439262725412846,
0.05887511000037193,
-0.14130137860774994,
0.38454994559288025,
-0.2215985208749771,
-0.2562410533428192,
-1.0198980569839478,
-0.10331167280673981,
0.7921154499053955,
-0.423795223236084,
0.074931681156158... | |
[this](http://www.vistax64.com/powershell/12743-windows-installer-automation-interface-problems-powershell.html) thread for some guidance. Basically the MSI COM object is implemented in a way that confuses PS. There is a link to a blog post discussing it in that thread. | [
0.017754586413502693,
-0.1046736016869545,
0.30254310369491577,
0.13180479407310486,
0.18537159264087677,
-0.12659887969493866,
0.09916327148675919,
0.21781376004219055,
-0.4102844297885895,
-0.609503984451294,
-0.14410679042339325,
0.3634771406650543,
-0.6884288191795349,
-0.0141324028372... | |
Suppose you have a process which run as as service as the System Account, is it possible to view the content of the windows created by the processes created by the service.
Suppose for example, that you have a service running as a kind of wrapper which starts Excel.
The standard way is to put the JARs at the root of y... | [
0.695198655128479,
0.2758547365665436,
-0.12992925941944122,
-0.31287962198257446,
0.15069995820522308,
0.07204887270927429,
0.2983393371105194,
-0.0872003361582756,
-0.09416847676038742,
-0.6350165605545044,
0.16543711721897125,
0.7657719254493713,
0.021851826459169388,
0.0815257579088211... | |
Is there a way to use yield blocks to implement an `IEnumerator<T>` which can go backward (`MoveLast()`) as well as forward?
Not directly from the iterator block, no.
However, the caller can always buffer the results, for example into a `List<T>`, or just call `Reverse()` - but this doesn't always apply. | [
-0.09736694395542145,
-0.13895897567272186,
0.49814483523368835,
0.04701506718993187,
-0.06144343316555023,
0.020806146785616875,
0.21071995794773102,
-0.30092453956604004,
0.08520960807800293,
-0.5900593400001526,
-0.11554543673992157,
0.34612730145454407,
-0.10341212898492813,
-0.0176223... | |
Working inside the context of an ASP.NET application I am creating a page that will be able to execute database scripts against one of many databases in our environment. To do this we need to prompt the user for a username/password combination, this value can be used for all servers without issue.
The question is wher... | [
0.4210694432258606,
0.1424504667520523,
-0.03361247852444649,
0.18761524558067322,
-0.106793612241745,
0.0555732324719429,
0.5074326992034912,
-0.09005793184041977,
-0.2731322944164276,
-0.7640202045440674,
0.09193575382232666,
0.3918619453907013,
-0.13436998426914215,
0.12623316049575806,... | |
sure what is the best. Below is my take on the options, what is the recommendation of everyone here? What is the most secure, while still being friendly for the user?
**Store Information In Viewstate**
One of the first ideas we discussed was storing the information after being supplied by the user in the ViewState fo... | [
0.6523507833480835,
-0.10933950543403625,
0.4971345067024231,
0.2894672453403473,
0.2940717935562134,
-0.25096654891967773,
0.07866634428501129,
-0.02437450923025608,
-0.0897747203707695,
-0.5723739862442017,
0.44400420784950256,
0.6668112874031067,
-0.04585400968790054,
-0.274603188037872... | |
information can be made available to other pages inside the application, and the information always lingers in memory on the server.
**Store Information in Application**
The last idea that we had was to store it in the Application cache, with a user specific key and a sliding 5 minute expiration. This would still be ... | [
0.4516249895095825,
0.18861959874629974,
0.5284687280654907,
0.5577021241188049,
0.4144533574581146,
-0.2685725688934326,
0.2582661807537079,
0.16994936764240265,
-0.1956501305103302,
-0.5747509598731995,
0.03248601406812668,
0.1857074648141861,
0.1153196468949318,
0.10433667153120041,
-... | |
support for delegation.
S0 what is the recommended solution? Why? How secure is it, and can we be?
*Update*
Great information has been discussed. TO clarify, we are running in an intranet environment, we CANNOT use Impersonation or Delegation due to limitations in the network.
In my opinion the natural place for thi... | [
-0.013749700970947742,
0.08149296790361404,
0.35205280780792236,
0.4412798583507538,
-0.09553290903568268,
-0.1443435400724411,
0.32263174653053284,
-0.10014677792787552,
-0.34868887066841125,
-0.5138995051383972,
-0.23381514847278595,
0.3556551933288574,
-0.04035089537501335,
-0.149419546... | |
ViewState as well. | [
0.19234611093997955,
-0.27226758003234863,
0.25607454776763916,
0.3699485659599304,
-0.049662522971630096,
-0.16862887144088745,
-0.13238538801670074,
-0.17319995164871216,
-0.12952102720737457,
-0.5008642673492432,
-0.030474985018372536,
0.26331380009651184,
-0.017371024936437607,
-0.0637... | |
Yes, the problem is with a library I'm using, and no, I cannot modify it. I need a workaround.
Basically, I'm dealing with a badly written Perl library, that exits with 'die' when a certain error condition is encountered reading a file. I call this routine from a program which is looping through thousands of files, a ... | [
0.30971091985702515,
0.31195345520973206,
0.037109944969415665,
0.04124170541763306,
0.082223080098629,
-0.14207638800144196,
0.4131711721420288,
-0.005061856936663389,
-0.29695993661880493,
-0.4426790177822113,
-0.0636042058467865,
0.3729232847690582,
-0.5426130294799805,
0.36954018473625... | |
can couch the routine so that the bad files won't crash the entire process?
FOLLOWUP QUESTION: Using an "eval" to couch the crash-prone call works nicely, but how do I set up handling for catch-able errors within that framework? To describe:
I have a subroutine that calls the library-which-crashes-sometimes many tim... | [
0.16926781833171844,
-0.042207371443510056,
0.24657830595970154,
-0.0033414249774068594,
0.08906084299087524,
-0.054761502891778946,
0.2849436104297638,
-0.4850756525993347,
-0.4036844074726105,
-0.4610189199447632,
-0.22615490853786469,
0.8109294772148132,
-0.4169437289237976,
-0.07767909... | |
do catch in function(). What is the most proper/elegant way to design the error-catching in the subroutine and the calling routine so that I get the correct behavior for both caught and uncaught errors?
You could wrap it in an `eval`. See:
```
perldoc -f eval
```
For instance, you could write:
```
# warn if routine... | [
0.3174940049648285,
-0.21202367544174194,
0.052063848823308945,
-0.2156819850206375,
0.05774920806288719,
-0.007982088252902031,
0.3700406551361084,
-0.22376063466072083,
0.1610030233860016,
-0.22641199827194214,
0.06826426833868027,
0.667686939239502,
-0.5279196500778198,
-0.0654761418700... | |
I want to convert windows pathname to unique integer.
Eg:
For pathname C:\temp\a.out, if i add ascii value of all the characters, i get 1234. But some other path can also generate the same number. So, what is the best way to generate unique numbers for different pathnames?
Look into [Hash functions](http://en.wikipe... | [
0.036715906113386154,
0.21932467818260193,
0.09718883037567139,
-0.1409153789281845,
-0.27291473746299744,
0.03771636262536049,
0.12120009958744049,
-0.16023088991641998,
-0.35454899072647095,
-0.5965873003005981,
0.09094159305095673,
0.44891542196273804,
-0.24443797767162323,
0.0093281362... | |
are many questions pertaining to hash functions. To get you started, simply search for "[hash function](https://stackoverflow.com/search?q=hash+function)". This may be a useful SO question for your case: [What is a performant string hashing function that results in a 32 bit integer with low collision rates?](https://st... | [
0.017535362392663956,
0.06516226381063461,
0.01958785578608513,
0.1686590015888214,
-0.2395056039094925,
-0.12173290550708771,
-0.15931367874145508,
0.017296714708209038,
-0.39437970519065857,
-0.22942428290843964,
-0.05690079554915428,
0.6338402628898621,
-0.16062761843204498,
0.032328356... | |
i've tried and tried and tried but i cannot manage to step into the XslCompiledTransform without having to load the stylesheet from disk (by passing a URI into the XslCompiledTransform.Load() method).
I am fully aware that you can only step into the XslCompiledTransform.Transform() method if you loaded the stylesheet ... | [
0.37547171115875244,
0.10385051369667053,
0.644477367401123,
-0.2045236974954605,
-0.23617617785930634,
-0.11727911978960037,
0.161139577627182,
-0.352974534034729,
0.04606020823121071,
-0.7354809641838074,
-0.0832870677113533,
0.7437818646430969,
-0.3050419092178345,
0.1584514081478119,
... | |
in which debugging can be enabled. However when i try to step into the XslCompiledTransform.Transform() method i get the message: **"There is no source code available for the current location"**
As mentioned I can step into the transformation if I do the following:
```
string stylesheet = @"C:\PathToMy\Stylesheet.xsl... | [
0.3058810234069824,
-0.08513030409812927,
0.2703343331813812,
-0.05406296253204346,
-0.09446593374013901,
-0.2962110638618469,
0.5484875440597534,
-0.21440669894218445,
-0.07012752443552017,
-0.6570219397544861,
-0.23309031128883362,
0.7726874351501465,
-0.43469178676605225,
0.163412958383... | |
clear in my question. i was not looking into stepping into the load method, i wanted to step into the transform method so i could see what was happening with the xsl transformation. i emphasised the load method because the parameter you pass in dictates whether you are able to debug the transform method (you must pass ... | [
0.25721490383148193,
-0.24677720665931702,
0.19487865269184113,
-0.052865996956825256,
-0.22877487540245056,
-0.2326362431049347,
0.21468862891197205,
-0.20003288984298706,
0.09632853418588638,
-0.16434158384799957,
-0.11365989595651627,
0.46355485916137695,
-0.40379786491394043,
-0.024231... | |
through observing the code, the xsl debugger shows the stepping through of the actual stylesheet itself line by line (as opposed to the code which executes each line of the transformation)
One approach would be to use [ObjectSpace](http://www.ruby-doc.org/core/classes/ObjectSpace.html).each\_object(Module) to find all ... | [
0.33662623167037964,
-0.2653745114803314,
0.508228063583374,
-0.11318869888782501,
0.06268735229969025,
0.09209190309047699,
0.26184359192848206,
-0.8073731064796448,
-0.17976096272468567,
-0.7101207375526428,
-0.3562432825565338,
0.4676764905452728,
-0.3598348796367645,
-0.245874509215354... | |
Given that signed and unsigned ints use the same registers, etc., and just interpret bit patterns differently, and C chars are basically just 8-bit ints, what's the difference between signed and unsigned chars in C? I understand that the signedness of char is implementation defined, and I simply can't understand how it... | [
0.364753782749176,
0.17840301990509033,
-0.3214227259159088,
0.03908660262823105,
-0.17339879274368286,
0.03956472873687744,
0.08244986087083817,
0.07393062859773636,
-0.2107328325510025,
-0.21863797307014465,
0.05125437676906586,
0.512069582939148,
-0.12885166704654694,
-0.061344705522060... | |
memory environments, like embedded 8 bit applications a char will often be used to do math, and then it makes a big difference. This is because there is no `byte` type by default in C. | [
0.054146572947502136,
0.32339003682136536,
-0.20144528150558472,
0.18607108294963837,
0.002705727471038699,
0.09596867859363556,
0.012852868065237999,
0.367491215467453,
-0.07953480631113052,
-0.31617051362991333,
-0.05923134461045265,
0.2892059087753296,
-0.021969832479953766,
-0.01368289... | |
The following method (in which I hopefully did not make any mistakes while dramatically simplifying it for this post) is working properly and set up using the Streamed transfer mode over the net.tcp protocol. The problem is that the performance is significantly worse than downloading the same file through IIS over http... | [
0.23973053693771362,
-0.032121315598487854,
0.43377241492271423,
0.1002374067902565,
-0.15096072852611542,
-0.5557679533958435,
0.3384663164615631,
-0.06052543595433235,
-0.10076972097158432,
-0.7693773508071899,
0.00977593194693327,
0.6825349926948547,
-0.20682218670845032,
0.421485841274... | |
I supposed to do instead?
Thank you.
After 8 months of working on this problem, 3 of them with Microsoft, here is the solution. The short answer is that the server side (the side sending the large file) needed to use the following for a binding:
```
<customBinding>
<binding name="custom_tcp">
<binaryMessageEnco... | [
0.005211637355387211,
-0.12795838713645935,
0.5874297618865967,
0.0762278214097023,
-0.28609710931777954,
-0.10744260996580124,
0.2146000862121582,
-0.4449659287929535,
-0.25144731998443604,
-0.5425997376441956,
0.12458357959985733,
0.34923291206359863,
-0.3183520436286926,
0.3080287277698... | |
the client side.
No configuration had to be changed on the client side.
Here is the long answer:
I suspected all along that the reason net.tcp over WCF was slow was because it was sending small chunks of information very frequently rather than larger chunks of information less often, and that this made it perform po... | [
0.11594861000776291,
-0.4571554958820343,
0.4904592037200928,
0.384998083114624,
-0.26993533968925476,
-0.06862123310565948,
-0.03637183457612991,
0.2962237596511841,
-0.23394080996513367,
-0.7527969479560852,
0.10884556919336319,
0.41380730271339417,
-0.12627115845680237,
0.13199096918106... | |
it is possible to create more complicated streams than the one in the original question - you can specify the buffer size there as well - on both the client and the server side. The problem is that none of this has any impact. Once you use a netTcpBinding, you are hosed.
The reason for this is that adjusting maxBuffer... | [
0.24813275039196014,
-0.3308938145637512,
0.7542769908905029,
0.3012470006942749,
-0.17085401713848114,
-0.26821014285087585,
0.30831268429756165,
-0.20013688504695892,
-0.22435584664344788,
-0.5824151635169983,
0.08021049946546555,
0.3675812780857086,
-0.588716983795166,
0.125660717487335... | |
because increasing the connectionBufferSize on the transport layer increases the amount of information sent at once, and thus the transfer is much less susceptible to latency.
In solving this problem, I did notice that maxBufferSize and maxBytesPerRead did have a performance impact over low latency networks (and local... | [
-0.18598572909832,
-0.14362932741641998,
0.5502313375473022,
0.1300836205482483,
-0.36536115407943726,
0.16921617090702057,
0.019676512107253075,
-0.12070877850055695,
-0.4622878134250641,
-0.7461763024330139,
-0.04871899262070656,
0.3890862464904785,
-0.07368732988834381,
0.03121636062860... | |
(the original problem).
If you are wondering what maxOutputDelay is for, it is the amount of time that is allotted to fill the connection buffer before the framework throws an IO exception. Because we increased the buffer size, we also increased the amount of time allotted to fill the buffer.
With this solution, our ... | [
-0.01168944500386715,
-0.2706913650035858,
0.4129907488822937,
0.032588016241788864,
-0.20636054873466492,
0.0352000929415226,
0.34054669737815857,
-0.3415822982788086,
-0.39053666591644287,
-0.9406170845031738,
0.1764701008796692,
0.5143905878067017,
-0.10245034098625183,
-0.0397199094295... | |
I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).
In the original app, we used *almost* entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's `group_concat` function fairly frequently.
`group_concat`, by the way, does this: ... | [
-0.32456445693969727,
0.1881113201379776,
0.42650681734085083,
-0.18977709114551544,
-0.08545301109552383,
0.457961767911911,
0.16192786395549774,
-0.15879738330841064,
-0.3856056034564972,
-0.413155734539032,
-0.04173017665743828,
0.5140271782875061,
-0.5040118098258972,
-0.18866403400897... | |
' / ')
FROM
project_members
GROUP BY
empName;
```
returns:
```
ANDY | A100 / B391 / X010
TOM | A100 / A510
```
So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of `group_concat`?
I have almost no experience using ... | [
-0.12819701433181763,
0.2985684871673584,
0.2553679347038269,
-0.06021162495017052,
-0.011725371703505516,
0.02432692050933838,
0.219866082072258,
0.058321475982666016,
-0.2126907855272293,
-0.2474963665008545,
-0.18219402432441711,
0.37941625714302063,
-0.3909357488155365,
-0.092156477272... | |
LEFT(column_names , LEN(column_names )-1) AS column_names
FROM information_schema.columns AS extern
CROSS APPLY
(
SELECT column_name + ','
FROM information_schema.columns AS intern
WHERE extern.table_name = intern.table_name
FOR XML PATH('')
) pre_trimmed (column_names)
GROUP BY table_name, column_names... | [
-0.3575245141983032,
-0.03166641667485237,
0.9577334523200989,
-0.08153057843446732,
-0.03924401476979256,
0.1799646019935608,
-0.2436455935239792,
-0.4649001657962799,
-0.08066584914922714,
-0.577531099319458,
-0.1635010987520218,
0.20669551193714142,
-0.2071569263935089,
0.24590145051479... | |
APPLY (SELECT column_name + ','
FROM INFORMATION_SCHEMA.COLUMNS AS intern
WHERE extern.table_name = intern.table_name
FOR XML PATH(''), TYPE) x (column_names)
CROSS APPLY (SELECT x.column_names.value('.', 'NVARCHAR(MAX)')) y(column_names)
``` | [
-0.09835422784090042,
0.18763995170593262,
0.9805194735527039,
-0.12308618426322937,
-0.013847309164702892,
-0.07016260921955109,
-0.030510982498526573,
-1.0098356008529663,
0.0544135607779026,
-0.6075646281242371,
0.016718506813049316,
0.5090036988258362,
-0.40917494893074036,
0.157448276... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.