Id
int64
4
8.51M
PostTypeId
int64
1
7
AcceptedAnswerId
int64
7
75.5M
ParentId
int64
4
41.8M
Score
int64
-208
27.7k
ViewCount
int64
11
12.4M
Body
stringlengths
0
45k
Title
stringlengths
2
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
225
CreationDate
stringdate
2008-07-31 21:42:52
2011-12-14 18:48:47
LastActivityDate
stringdate
2008-08-01 12:19:17
2023-03-05 04:40:26
LastEditDate
stringdate
2008-08-01 13:54:25
2023-03-05 03:12:45
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
-1
21.1M
Tags
listlengths
1
6
27,161
2
null
27,077
0
null
You may even do ``` echo /specific/dir/*.jpg ``` as it's your shell that expands the wildcard. Typing ``` ls *.jpg ``` is equivalent to typing ``` ls foo.jpg bar.jpg ``` given foo.jpg and bar.jpg are all the files that end with ".jpg" in the current directory.
null
CC BY-SA 2.5
null
2008-08-26T00:32:53.283
2008-08-26T00:32:53.283
null
null
1,088
null
27,313
2
null
27,288
0
null
Try this out, it's a touch simpler than Brendans but not as 'feature rich': ``` Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) 'Export to excel Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" M...
null
CC BY-SA 2.5
null
2008-08-26T02:46:04.540
2008-08-26T02:51:24.060
2008-08-26T02:51:24.060
242
242
null
27,319
2
null
27,034
1
null
It's hard to say what's better to do without more context. If this code being executed every time that proxyTypePref changes, then you're always going to need set `shareProxiesPref.disabled`. I would agree than an if statement would be a bit more readable than the current code. > Isn't it better to do an if on `prox...
null
CC BY-SA 3.0
null
2008-08-26T02:51:32.077
2018-01-05T13:07:45.093
2018-01-05T13:07:45.093
92,701
2,284
null
27,320
2
null
27,294
1
null
@ChanChan I like the idea of reflection, yet at the same time I've always been shy to use reflection. It's always struck me as a "hack" to work around something that should be easier. I did consider that approach, and then figured a switch statement would be faster for the same amount of code smell. You did get me th...
null
CC BY-SA 2.5
null
2008-08-26T02:56:37.057
2008-08-26T03:02:54.657
2008-08-26T03:02:54.657
1,965
1,965
null
27,322
2
null
26,685
1
null
If you follow the stackoverflow podcasts you can hear Jeff (and Geoff?) discuss its greatness. [https://blog.stackoverflow.com/2008/08/podcast-17/](https://blog.stackoverflow.com/2008/08/podcast-17/). But remember that using these separate layers means things are easier in the future--and harder now. And layers mak...
null
CC BY-SA 4.0
null
2008-08-26T03:03:54.107
2008-08-26T03:03:54.107
2021-01-18T12:39:36.810
-1
2,923
null
27,309
2
null
27,303
1
null
Is it a runtime error or compile-time, Jonas? Looking at the [documentation](http://msdn.microsoft.com/en-us/library/system.windows.media.scaletransform.scalex.aspx), ScaleX and ScaleY are dependency properties, so you should be able to write ``` <ScaleTransform ScaleX="{Binding Foo}" ScaleY="{Binding Bar}" /> ``` ....
null
CC BY-SA 2.5
null
2008-08-26T02:43:45.543
2008-08-26T03:02:21.257
2008-08-26T03:02:21.257
615
615
null
27,323
2
null
27,243
8
null
[Breaking changes in NHibernate 2.0](http://forum.hibernate.org/viewtopic.php?t=985289) Edit: We upgraded this morning. There is nothing major. You have to Flush() the session after you delete. The Expression namespace got renamed to Criterion. All these are covered in the link above. Mappings need no change. ...
null
CC BY-SA 2.5
null
2008-08-26T03:04:08.333
2008-08-26T18:18:22.380
2008-08-26T18:18:22.380
2,676
2,676
null
27,324
2
null
27,294
2
null
@jholland > I don't think the Type enum is needed, because I can always do something like this: Enum? I admit that it feels hacky. Reflection feels dirty at first, but once you tame the beast you will enjoy what it allows you to do. (Remember recursion, it feels dirty, but its good) The trick is to realize, you are...
null
CC BY-SA 2.5
null
2008-08-26T03:04:51.920
2008-08-26T03:04:51.920
null
null
1,220
null
27,306
2
null
27,288
-1
null
Here some code we use to do it across lots of our apps. We have a special method to clean up "not exportable" column. Additionally, we don't export cols without headers but you can adjust that logic to your needs. Edit: The code formatter doesn't love vb.net - you can copy/paste into visual studio and it will be fi...
null
CC BY-SA 2.5
null
2008-08-26T02:41:03.053
2008-08-26T02:41:03.053
null
null
225
null
27,317
2
null
6,623
9
null
see [msdn](http://msdn.microsoft.com/en-us/library/bk3w6240(VS.80).aspx) for the options to sgen.exe [you have the command line, you can play with it manually... delete your .XmlSerializers.dll or use /force though] Today I also ran across how to more [manually specify the sgen options](http://www.kiwidude.com/blog/20...
null
CC BY-SA 2.5
null
2008-08-26T02:49:28.977
2008-08-26T02:49:28.977
null
null
2,775
null
27,327
2
null
4,221
13
null
and . , you cannot limit the results within the LinqDataSource control. Because Linq uses deferred execution, the expectation is that the presentation control will do the recordset limits. , you can do this with a ListView control. The trick is to use the [DataPager](https://learn.microsoft.com/en-us/dotnet/api/syst...
null
CC BY-SA 4.0
null
2008-08-26T03:08:30.663
2019-12-27T08:59:01.210
2019-12-27T08:59:01.210
5,407,188
1,690
null
27,328
2
null
27,294
1
null
> Enum? I was referring to the Type property and enum in my abstract class. Reflection it is then! I'll mark you answer as accepted in about 30 minutes, just to give time for anyone else to weigh in. Its a fun topic.
null
CC BY-SA 2.5
null
2008-08-26T03:08:44.487
2008-08-26T03:08:44.487
null
null
1,965
null
27,326
2
null
27,071
1
null
EDIT: Fixed answer, see below. Really you need to know what oldFunction is going to be doing with pStuff. If pStuff is a pointer to some unmanaged data you can try wrapping the definition of m_pStuff with: ``` #pragma unmanaged void* m_pStuff #pragma managed ``` This will make the pointer unmanaged which can the...
null
CC BY-SA 2.5
null
2008-08-26T03:06:46.177
2008-08-26T06:08:33.260
2008-08-26T06:08:33.273
2,925
2,925
null
27,332
2
null
27,078
2
null
uncheck allow anonymous on the virtual dir and check integrated authentication. also make sure you are not logging into the virtual xp box as guest or a user w/o a password.
null
CC BY-SA 2.5
null
2008-08-26T03:13:25.707
2008-08-26T03:13:25.707
null
null
1,433
null
27,331
2
null
27,294
1
null
Thanks for leaving it open, I won't complain. It is a fun topic, I wish you could polymorphicly instantiate. Even ruby (and its superior meta-programming) has to use its reflection mechanism for this.
null
CC BY-SA 2.5
null
2008-08-26T03:12:34.697
2008-08-26T03:12:34.697
null
null
1,220
null
27,337
2
null
27,303
0
null
Ah I think I see your problem. You're attempting to bind a property of type Visibility (SelectedDive.Visibility) to a property of type Double (ScaleTransform.ScaleX). WPF/Silverlight can't convert between those two types. What are you trying to accomplish? Maybe I can help you with the XAML. What is "SelectedDive" and...
null
CC BY-SA 2.5
null
2008-08-26T03:18:30.623
2008-08-26T03:18:30.623
null
null
615
null
27,339
2
null
27,294
4
null
How do you feel about Dependency Injection? I use Ninject and the contextual binding support in it would be perfect for this situation. Look at this [blog post](https://web.archive.org/web/20081025114811/http://kohari.org/2008/03/13/context-variables-in-ninject/) on how you can use contextual binding with creating co...
null
CC BY-SA 3.0
null
2008-08-26T03:19:15.677
2017-09-15T12:02:26.570
2017-09-15T12:02:26.570
6,761,181
1,117
null
27,335
2
null
1,409
11
null
My first thought is this. I don't know if it would work but it would only take a few minutes to try. Create IIS web sites on the same server. The first site is bound to the public IP, but the second site is bound to the private IP. Both point to the same folder on the file system. Your VPN users will be accessing vi...
null
CC BY-SA 2.5
null
2008-08-26T03:14:53.987
2008-09-15T16:56:07.607
2008-09-15T16:56:07.607
1,690
1,690
null
27,341
2
null
27,288
0
null
You could use crystal since it is built into VS. Predefine a crystal report with the appropriate columns and then you can use any datasource you would use for a datagrid or gridview. ``` Dim report_source As CrystalDecisions.Web.CrystalReportSource report_source.ReportDocument.SetDataSource(dt) 'DT IS A DATATABLE re...
null
CC BY-SA 2.5
null
2008-08-26T03:21:08.450
2008-08-27T01:49:12.687
2008-08-27T01:49:12.687
777
777
null
27,340
2
null
27,258
3
null
> What do you think would be the best method of transferring data to the IHttpHandler? Should I added variables to the query string or POST the data I need to send? The only thing I think I have to send is a single ID, but I can't decide what the best method is to send the ID and have the IHttpHandler handle it. I'd li...
null
CC BY-SA 2.5
null
2008-08-26T03:21:00.183
2008-08-26T03:21:00.183
null
null
1,965
null
27,352
2
null
27,345
12
null
You shouldn't need to install the extension. I have 1.7.2 installed and running right now and it has GD bundled (2.0.34 compatible). From the MAMP start page, click on phpinfo and you should see a GD section.
null
CC BY-SA 2.5
null
2008-08-26T03:33:39.340
2008-08-26T03:33:39.340
null
null
2,884
null
27,345
1
27,352
null
6
13,329
I'm running MAMP 1.7.2 on a Mac and I'd like to install the extension php_gd2. How do I do this? I know that on Windows using WAMP I'd simply select the `php_gd2` entry in the extensions menu to activate it. How is it done when using MAMP? I know that I can do it using MacPorts but I'd prefer not to make any changes...
How do I install the php_gd2 extension in MAMP on a Mac?
CC BY-SA 3.0
null
2008-08-26T03:23:34.170
2020-12-09T14:46:34.100
2018-04-03T14:54:23.690
397,817
412
[ "php", "mamp" ]
27,343
2
null
18,985
72
null
First, pick your favorite Javascript based Pretty Print/Beautifier. I prefer the one at [](http://jsbeautifier.org/)[http://jsbeautifier.org/](http://jsbeautifier.org/), because it's what I found first. Downloads its file [https://github.com/beautify-web/js-beautify/blob/master/js/lib/beautify.js](https://github.com/...
null
CC BY-SA 3.0
null
2008-08-26T03:22:40.553
2017-01-16T00:57:58.007
2017-01-16T00:57:58.007
20,772
2,838
null
27,353
2
null
17,373
4
null
Never use `Runtime.exec(String)` on Mac OS X or any other operating system. If you do that, you'll have to figure out how to properly quote all argument strings and so on; it's a pain and very error-prone. Instead, use `Runtime.exec(String[])` which takes an array of already-separated arguments. This is much more ap...
null
CC BY-SA 2.5
null
2008-08-26T03:34:25.907
2008-08-26T03:34:25.907
null
null
714
null
27,354
2
null
24,528
0
null
I think you are seeing the difference betweeen the svn protocol and hosting the svn protocol on another. Similar performance decreases when using svn+ssh compared to svn. The ease of setup, has made it a no brainer for my team, we just threw it on a vm and ran.
null
CC BY-SA 2.5
null
2008-08-26T03:34:43.113
2008-08-26T03:34:43.113
null
null
1,220
null
27,360
2
null
27,294
1
null
@Dale I have not inspected nInject closely, but from my high level understanding of dependency injection, I believe it would be accomplishing the same thing as ChanChans suggestion, only with more layers of cruft (er abstraction). In a one off situation where I just need it here, I think using some handrolled reflect...
null
CC BY-SA 2.5
null
2008-08-26T03:38:21.980
2008-08-26T03:38:21.980
null
null
1,965
null
27,359
1
27,371
null
9
8,476
I want to setup a cron job to rsync a remote system to a backup partition, something like: ``` bash -c 'rsync -avz --delete --exclude=proc --exclude=sys root@remote1:/ /mnt/remote1/' ``` I would like to be able to "set it and forget it" but what if `/mnt/remote1` becomes unmounted? (After a reboot or something) I'd ...
RSync only if filesystem is mounted
CC BY-SA 2.5
0
2008-08-26T03:37:53.463
2015-02-26T20:39:36.527
2008-08-26T05:06:07.433
163
163
[ "bash", "backup", "sysadmin", "rsync" ]
27,344
2
null
27,206
0
null
searchdotnet rulz! check this out: [http://www.eggheadcafe.com/forumarchives/SQLServerdatawarehouse/Dec2005/post25052042.asp](http://www.eggheadcafe.com/forumarchives/SQLServerdatawarehouse/Dec2005/post25052042.asp) Updated: that link is dead. So here's a better one [http://msdn.microsoft.com/en-us/library/ms345146(S...
null
CC BY-SA 2.5
null
2008-08-26T03:23:23.843
2011-04-07T17:33:10.663
2011-04-07T17:33:10.663
1,433
1,433
null
27,368
2
null
48
17
null
If you really just want it to work like an install dialog, just give focus to the "Next" button OnLoad. That way if the user hits , the form submits and goes forward. If they want to go back they can hit or click on the button.
null
CC BY-SA 4.0
null
2008-08-26T03:41:44.673
2019-07-14T14:35:15.190
2019-07-14T14:35:15.190
63,550
2,863
null
27,362
2
null
3,088
2
null
there's a [wikibook that is pretty good for learning python](http://en.wikibooks.org/wiki/Programming:Python). I don't know how the wikibooks are for other languages, but I personally learned python from the wikibook as it was in Feb 2007 ps - if you're unfamiliar with [wikibooks](http://en.wikibooks.org/wiki/Main_Pa...
null
CC BY-SA 2.5
null
2008-08-26T03:39:08.407
2008-08-26T03:39:08.407
null
null
2,908
null
27,370
2
null
27,359
3
null
A quick google led me to this bash script that can check if a filesystem is mounted. It seems that grepping the output of df or mount is the way to go: ``` if df |grep -q '/mnt/mountpoint$' then echo "Found mount point, running task" # Do some stuff else echo "Aborted because the disk ...
null
CC BY-SA 2.5
null
2008-08-26T03:42:52.237
2008-08-26T03:42:52.237
null
null
1,057
null
27,378
2
null
27,294
1
null
Some frameworks may rely on reflection where needed, but most of the time you use a boot- strapper, if you will, to setup what to do when an instance of an object is needed. This is usually stored in a generic dictionary. I used my own up until recently, when I started using Ninject. With Ninject, the main thing I l...
null
CC BY-SA 2.5
null
2008-08-26T03:48:50.740
2008-08-26T03:58:30.920
2008-08-26T03:58:30.920
1,117
1,117
null
27,372
2
null
48
18
null
This cannot be done with pure HTML. You must rely on JavaScript for this trick. However, if you place two forms on the HTML page you can do this. Form1 would have the previous button. Form2 would have any user inputs + the next button. When the user presses in Form2, the Next submit button would fire.
null
CC BY-SA 4.0
null
2008-08-26T03:44:54.507
2019-07-14T14:37:22.567
2019-07-14T14:37:22.567
63,550
1,965
null
27,389
2
null
27,240
40
null
Enumeration hasn't been modified to support Iterable because it's an interface not a concrete class (like Vector, which was modifed to support the Collections interface). If Enumeration was changed to support Iterable it would break a bunch of people's code.
null
CC BY-SA 2.5
null
2008-08-26T03:55:26.963
2008-08-26T03:55:26.963
null
null
369
null
27,245
2
null
27,129
1
null
[Dundas Charts](http://www.dundas.com/) was about the easiest thing ever to get up and producing amazing looking charts.
null
CC BY-SA 2.5
null
2008-08-26T01:59:49.317
2008-08-26T01:59:49.317
null
null
1,208
null
27,391
2
null
27,381
11
null
Raw HTML does just that. Are you changing your data so that it doesn't render so good in random sized windows? In the olden days, everyone had VGA screens. Now, that resolution is most uncommon. Who knows what resolutions are going to be common in the future? And why expect a certain minimum width or height? From...
null
CC BY-SA 2.5
null
2008-08-26T03:57:04.010
2008-08-26T04:04:37.317
2008-08-26T04:04:37.317
2,927
2,927
null
27,393
2
null
27,148
0
null
In the latest Podcast, Jeff and Joel talked about the RSS feeds for tags, and Joel noted that there is only the current ability to do AND on tags, not OR. Jeff suggested that this would be included at some stage in the future. I think that you should request this on uservoice, or vote for it if it is already there.
null
CC BY-SA 2.5
null
2008-08-26T03:58:16.910
2008-08-26T03:58:16.910
null
null
188
null
27,315
2
null
27,292
2
null
We use option 3. Rsync. I wrote a bash script to do this along with some extra checking, but here are the basics of what it does. 1. Make a tag for pushing to live. 2. Run svn export on that tag. 3. rsync to live. So far it has been working out. We don't have to worry about user conflicts or have a separate user f...
null
CC BY-SA 2.5
null
2008-08-26T02:49:17.497
2008-08-26T02:49:17.497
null
null
1,797
null
27,398
2
null
27,381
4
null
In terms of web site scaling I like fixed sized web sites that scales nicely using the browsers "zoom" function. I don't want a really wide page with tiny fonts on my 1920 res monitor. I don't know if the web designer has to do anything to make it scale nicely when zoomed, but the zoom in FF3 is awesome, the one in IE7...
null
CC BY-SA 2.5
null
2008-08-26T04:07:56.763
2008-08-26T04:07:56.763
null
null
1,199,387
null
27,390
2
null
27,381
1
null
This is a matter of styling preference. Both can be equally usable depending on implementation. Columns can also be used, if the screen gets wide enough. Personally, I find it annoying when there is a single, narrow column of text going down the screen. --- ## Edit for 2012: Yes, your website should respond to...
null
CC BY-SA 3.0
null
2008-08-26T03:56:24.170
2012-06-19T01:21:07.207
2012-06-19T01:21:07.207
522
522
null
27,295
2
null
27,258
3
null
You should use ASP.Net Callbacks which were introduced in Asp.Net 2.0. Here is an article that should get you set to go: [Implementing Client Callbacks Programmatically Without Postbacks in ASP.NET Web Pages](http://msdn.microsoft.com/en-us/library/ms178208.aspx) Edit: Also look at this: [ICallback & JSON Based JavaS...
null
CC BY-SA 2.5
null
2008-08-26T02:36:41.177
2008-08-26T03:08:36.263
2008-08-26T03:08:36.263
653
653
null
27,401
2
null
27,303
0
null
Sorry - was looking for the answer count to go up so I didn't realise you'd edited the question with more information. OK, so Visibility is of type Double, so the binding should work in that regard. As a workaround, could you try binding your ScaleX and ScaleY values directly to the slider control that SelectedDive.V...
null
CC BY-SA 2.5
null
2008-08-26T04:12:58.013
2008-08-26T04:22:40.097
2008-08-26T04:22:40.097
615
615
null
27,325
2
null
26,028
1
null
my boss has. it was a real pain. permissions issues. he used the built in sharepoint backup tool. I can more details tomorrow if need. I'll check back. I'm back. Here's the steps he used. - - - - - - -
null
CC BY-SA 2.5
null
2008-08-26T03:05:38.847
2008-08-27T13:11:51.953
2008-08-27T13:11:51.953
1,433
1,433
null
27,405
1
null
null
2
2,426
On an 8-bit micro controller I would like to do the following: ``` 16bit_integer = another_16bit_integer * 0.997; ``` with the least possible number of instructions.
What is the fastest way to multiply a 16-bit integer with a double?
CC BY-SA 3.0
0
2008-08-26T04:19:59.853
2021-06-15T16:03:10.710
2017-10-26T17:24:03.130
609
609
[ "c", "microcontroller" ]
27,403
2
null
26,074
0
null
Here's the documentation for querying a process's memory usage. Not the same as the AppDomain, but it might be a place to start. [http://msdn.microsoft.com/en-us/library/s80a75e5(VS.80).aspx](http://msdn.microsoft.com/en-us/library/s80a75e5(VS.80).aspx) You can ask the GC what it thinks is currently allocated also. ...
null
CC BY-SA 2.5
null
2008-08-26T04:16:20.597
2008-08-26T04:16:20.597
null
null
1,880
null
27,407
1
null
null
12
27,840
Virtual memory from a computer size perspective is > [a way to make the program] think it has a large range of contiguous addresses; but in reality the parts it is currently using are scattered around RAM, and the inactive parts are saved in a disk file. ([Wikipedia](http://en.wikipedia.org/wiki/Virtual_me...
What does "VM Size" mean in the Windows Task Manager?
CC BY-SA 2.5
0
2008-08-26T04:22:21.313
2012-01-30T20:22:24.480
null
null
1,918
[ "windows", "operating-system" ]
27,411
2
null
27,407
-2
null
How about a coding horror post to answer this: [http://www.codinghorror.com/blog/archives/000393.html](http://www.codinghorror.com/blog/archives/000393.html) "VM Size: How much of the processes' less frequently used memory has been paged to disk."
null
CC BY-SA 2.5
null
2008-08-26T04:24:46.800
2008-08-26T04:24:46.800
null
null
1,934
null
27,371
2
null
27,359
5
null
``` if cut -d' ' -f2 /proc/mounts | grep '^/mnt/remote1$' >/dev/null; then rsync -avz ... fi ``` Get the list of mounted partitions from `/proc/mounts`, only match `/mnt/remote1` (and if it is mounted, send grep's output to `/dev/null`), then run your `rsync` job. Recent `grep`s have a `-q` option that you can u...
null
CC BY-SA 2.5
null
2008-08-26T03:43:59.753
2008-08-26T03:56:08.740
2008-08-26T03:56:08.740
954
954
null
27,422
2
null
26,984
7
null
If I can't find an exception that has a name describing what type of error was caused then I make my own. That's my rule-o-thumb.
null
CC BY-SA 2.5
null
2008-08-26T04:46:39.603
2008-08-26T04:46:39.603
null
null
2,598
null
27,418
2
null
27,405
1
null
On my platform ( Atmel AVR 8-bit micro-controller, running gcc ) ``` 16bit_integer = another_16bit_integer * 0.997; ``` Takes about 26 instructions. ``` 16bit_integer = (int16_t) (another_16bit_integer * (int32_t) 997 / 1000); ``` Takes about 25 instructions.
null
CC BY-SA 2.5
null
2008-08-26T04:38:28.840
2008-08-26T04:38:28.840
null
null
609
null
27,395
2
null
27,381
1
null
I guess like a lot of things: it depends. I usually do both. Some content stays fixed width to look good or if it can't benefit form more space. other stuff is set to 100% if it seems like it'd be usefull.
null
CC BY-SA 2.5
null
2008-08-26T03:59:23.880
2008-08-26T12:17:51.967
2008-08-26T12:17:51.983
1,433
1,433
null
27,413
2
null
27,303
0
null
Yeah maybe the embedded render transforms aren't inheriting the DataContext from the object they apply to. Can you force the DataContext into them? For example, give the transform a name: ``` <ScaleTransform x:Name="myScaler" ... /> ``` ... and then in your code-behind: ``` myScaler.DataContext = fishImage.DataCont...
null
CC BY-SA 2.5
null
2008-08-26T04:28:06.387
2008-08-26T04:39:41.740
2008-08-26T04:39:41.740
615
615
null
27,425
2
null
22,326
14
null
Put the RTF in a file instead of the clipboard, then insert from the file, e.g. > `Selection.InsertFile FileName:="myfile.rtf", Range :="", _ ConfirmConversions:=False, Link:=False, Attachment:=False`
null
CC BY-SA 2.5
null
2008-08-26T04:54:01.520
2008-08-26T04:54:01.520
null
null
4
null
27,424
2
null
27,303
0
null
Ok, is the Image itself picking up the DataContext properly? Try adding this: ``` <Image Tooltip="{Binding SelectedDive.Visibility}" ... /> ``` If that compiles and runs, hover over the image and see if it displays the right value.
null
CC BY-SA 2.5
null
2008-08-26T04:51:09.200
2008-08-26T04:51:09.200
null
null
615
null
27,430
2
null
24,678
0
null
Oracle Workshop for WebLogic (formally BEA Workshop) has excellent support for JavaScript and for visually editing HTMLs. It support many servers, not only WebLogic, including Tomcat, JBoss, Resin, Jetty, and WebSphere. It recently became free, check out [my post](http://blog.zvikico.com/2008/08/the-best-jspstrutsjs...
null
CC BY-SA 2.5
null
2008-08-26T05:00:42.033
2008-08-26T05:00:42.033
null
null
2,823
null
27,429
2
null
27,294
6
null
Create a "Prototype" instanace of each class and put them in a hashtable inside the factory , with the string you expect in the XML as the key. so CreateTask just finds the right Prototype object, by get() ing from the hashtable. then call LoadFromXML on it. you have to pre-load the classes into the hashtable, If y...
null
CC BY-SA 2.5
null
2008-08-26T05:00:21.753
2008-08-26T05:00:21.753
null
null
2,789
null
27,439
2
null
27,435
2
null
Well, I don't think you should be using a different database brand in anything past development (build, staging, prod) as that will come back to bite you. From how I understand it PostgreSQL is a more 'correct' database implementation while mySQl is less correct (less compliant) but faster. So if you are pretty much ...
null
CC BY-SA 2.5
null
2008-08-26T05:14:25.247
2008-08-26T05:14:25.247
null
null
1,666
null
27,426
2
null
27,407
1
null
The amount of memory mapped into that process' address space. This can include shared memory mappings. In a process there will be sections of the memory space for each shared object (DLL) that is part of it, as well as some memory for stack, and areas allocated by the process itself. For example looking at the memory...
null
CC BY-SA 2.5
null
2008-08-26T04:54:17.133
2008-08-26T05:17:43.910
2008-08-26T05:17:43.910
954
954
null
27,435
1
27,440
null
134
72,445
I am working on a web application using Python (Django) and would like to know whether MySQL or PostgreSQL would be more suitable when deploying for production. In one [podcast](https://blog.stackoverflow.com/2008/06/podcast-8/) Joel said that he had some problems with MySQL and the data wasn't consistent. I would like...
MySQL vs PostgreSQL for Web Applications
CC BY-SA 4.0
0
2008-08-26T05:05:35.610
2020-08-01T21:14:22.353
2021-01-18T12:38:11.483
-1
1,448
[ "mysql", "postgresql" ]
27,400
2
null
26,762
3
null
Sourcegear Vault is the best SCM for migrating VSS users to. And its cheap.
null
CC BY-SA 2.5
null
2008-08-26T04:11:32.883
2008-08-26T04:11:32.883
null
null
1,965
null
27,415
2
null
27,405
4
null
How about integer arithmetic in 32 bits? ``` 16bit_integer = (int16_t) (another_16bit_integer * (int32_t) 997 / 1000); ``` 32 bits will be enough to store (INT16_MAX × 997), do the sum on values 1000 times larger then divide back to your 16 bit scale.
null
CC BY-SA 2.5
null
2008-08-26T04:31:27.657
2008-08-26T04:57:23.507
2008-08-26T04:57:23.507
954
954
null
27,441
2
null
27,240
7
null
AFAIK Enumeration is [kinda "deprecated"](http://java.sun.com/javase/6/docs/api/java/util/Iterator.html): > Iterator takes the place of Enumeration in the Java collections framework I hope they'll change the Servlet API with JSR 315 to use Iterator instead of Enumeration.
null
CC BY-SA 2.5
null
2008-08-26T05:17:49.637
2008-08-26T05:17:49.637
null
null
198
null
27,443
2
null
27,435
1
null
If you are writing an application which may get distributed quite a bit on different servers, MySQL carries a lot of weight over PostgreSQL because of the portability. PostgreSQL is difficult to find on less than satisfactory web hosts, albeit there are a few. In most regards, PostgreSQL is slower than MySQL, especial...
null
CC BY-SA 4.0
null
2008-08-26T05:23:03.883
2020-08-01T10:25:31.537
2020-08-01T10:25:31.537
208,273
1,662
null
27,442
1
27,448
null
5
2,034
Is there a rake task for backing up the data in your database? I already have my schema backed up, but I want to make a backup of the data. It's a small MySQL database.
Is there a rake task for backing up the data in your database?
CC BY-SA 2.5
0
2008-08-26T05:20:41.393
2013-11-01T15:51:29.940
2008-08-27T01:30:41.997
234
1,632
[ "mysql", "ruby-on-rails", "ruby", "database", "rake" ]
27,449
2
null
26,826
0
null
Not sure if there is much use pitching in, as everyone else pretty much has it covered, but I would also say don't do it. As tempting as it is, its just impossible to know the full impact of that little change you have made. From a support perspective you will make it difficult for Microsoft support (patches/hotfixes)...
null
CC BY-SA 2.5
null
2008-08-26T05:29:34.287
2008-08-26T05:29:34.287
null
null
897
null
27,451
2
null
27,405
0
null
Precomputed lookup table: ``` 16bit_integer = products[another_16bit_integer]; ```
null
CC BY-SA 2.5
null
2008-08-26T05:34:52.467
2008-08-26T05:34:52.467
null
null
null
null
27,445
2
null
27,435
14
null
I haven't used Django, but I have used both MySQL and PostgreSQL. If you'll be using your database only as a backend for Django, it doesn't matter much, because it will abstract away most of the differences. PostgreSQL is a little more scalable because it doesn't hit the brick wall as fast as MySQL as data-size/client-...
null
CC BY-SA 4.0
null
2008-08-26T05:24:21.680
2020-08-01T21:14:22.353
2020-08-01T21:14:22.353
13,101,893
1,265
null
27,450
2
null
25,982
1
null
The first two lines are in the server-side code, for marshaling out the server object, yes? In that case, yes, the third line is the simplest you can get at client-side. In addition, you can serve out additional server-side objects from the instance, if you include public accessors for them in interface, so, access...
null
CC BY-SA 2.5
null
2008-08-26T05:31:49.867
2008-08-26T05:31:49.867
null
null
227
null
27,455
1
27,459
null
10
9,744
I'm attempting to use Mono to load a bitmap and print it on Linux but I'm getting an exception. Does Mono support printing on Linux? The code/exception are below: No longer getting the exception, but I'm still curious what kind of support there is. Leaving the code for posterity or something. ``` private void btn...
Does Mono support System.Drawing and System.Drawing.Printing?
CC BY-SA 2.5
null
2008-08-26T05:36:17.407
2013-01-24T10:08:16.533
2008-08-26T05:48:41.403
327
327
[ "c#", ".net", "linux", "printing", "mono" ]
27,460
2
null
27,455
5
null
[According to](http://www.go-mono.com/archive/1.2/) System.Drawing is now complete, and in addition to being the underlying rendering engine for Windows.Forms, it has also been tested for using third party controls that heavily depend on it.
null
CC BY-SA 3.0
null
2008-08-26T05:45:40.240
2013-01-24T10:08:16.533
2013-01-24T10:08:16.533
1,410,342
2,257
null
27,463
2
null
27,266
4
null
443, when used for HTTPS, relies on SSL (not SSH) for its encryption. SSH looks different than SSL, so it would depend on what your ISP was actually looking for, but it is entirely possible that they could detect the difference. In my experience, though, you'd be more likely to see some personal firewall software blo...
null
CC BY-SA 2.5
null
2008-08-26T05:49:23.913
2008-08-26T05:49:23.913
null
null
2,363
null
27,467
2
null
26,512
0
null
In your example code, try running `validateNow()` in the `resultReturned` method. That will force the combo box to commit its properties. The thing is that even though the property is set the new value isn't used until `commitProperties` is run, which it will do at the earliest on the next frame, `validateNow()` forces...
null
CC BY-SA 2.5
null
2008-08-26T06:01:07.347
2008-08-26T06:01:07.347
null
null
1,109
null
27,381
1
27,391
null
7
1,985
I'm asking this question purely from a usability `standpoint`! Should a website `expand/stretch` to fill the viewing area when you resize a browser window? I know for sure there are the obvious cons: - - - The only Pro I can think of is that users who use the font-resizing that is built into their browser won't ha...
Should websites expand on window resize?
CC BY-SA 4.0
null
2008-08-26T03:52:06.723
2021-06-15T06:22:44.287
2019-12-13T09:29:29.733
11,393,381
2,908
[ "html", "css", "browser", "usability" ]
27,473
2
null
27,472
44
null
What are you using to set the timeout in your connection string? From memory that's "ConnectionTimeout" and only affects the time it takes to actually to the server. Each individual command has a separate "CommandTimeout" which would be what you're looking for. Not sure how SqlHelper implements that though.
null
CC BY-SA 2.5
null
2008-08-26T06:08:57.877
2008-08-26T06:08:57.877
null
null
615
null
27,448
2
null
27,442
5
null
The below script is a simplified version taken from [eycap](http://github.com/engineyard/eycap/tree/master), specifically from [this file](http://github.com/engineyard/eycap/tree/master/lib/eycap/recipes/database.rb). ``` set :dbuser "user" set :dbhost "host" set :database "db" namespace :db do desc "Get the databa...
null
CC BY-SA 2.5
null
2008-08-26T05:28:39.190
2008-08-26T05:40:52.733
2008-08-26T05:40:52.733
163
163
null
27,436
2
null
22,319
0
null
You can complement your solution with this excellent article "[World Clock and the TimeZoneInformation class](http://www.codeproject.com/KB/dotnet/WorldClock.aspx)", I made a webservice that sent a file with information that included the local and receiver time, what I did was to modify this class so I could handle tha...
null
CC BY-SA 2.5
null
2008-08-26T05:07:26.587
2008-08-26T05:07:26.587
null
null
1,130,097
null
27,472
1
27,473
null
28
38,969
I have a long running SQL statement that I want to run, and no matter what I put in the "timeout=" clause of my connection string, it always seems to end after 30 seconds. I'm just using `SqlHelper.ExecuteNonQuery()` to execute it, and letting it take care of opening connections, etc. Is there something else that c...
Timeout not being honoured in connection string
CC BY-SA 3.0
0
2008-08-26T06:06:06.557
2015-09-09T09:49:08.347
2015-09-09T09:49:08.347
1,537,726
489
[ "sql-server", "database", "timeout" ]
27,459
2
null
27,455
7
null
From the [Mono docs](http://www.mono-project.com/FAQ:_General), I think yes: > Managed.Windows.Forms (aka System.Windows.Forms): A complete and cross platform, System.Drawing based Winforms implementation. It also useful if you run the [Mono Migration Analyzer](http://www.mono-project.com/Moma) first.
null
CC BY-SA 2.5
null
2008-08-26T05:44:57.543
2008-08-26T05:44:57.543
null
null
718
null
27,440
2
null
27,435
129
null
The text below was last edited in August 2008. That's nearly 11 years ago as of this edit. Software can change rapidly from version to version, so before you go choosing a DBMS based on the advice below, do some research to see if it's still accurate. Check for newer answers below. --- Better? MySQL is much more...
null
CC BY-SA 4.0
null
2008-08-26T05:14:50.690
2019-09-03T11:08:57.537
2019-09-03T11:08:57.537
6,769,202
257
null
27,480
2
null
27,474
2
null
The Real(TM) e-mail validation is trying to send something to the address, and seeing if it is rejected/bounced. So, you'll just have to send them away, and remove the addresses that fail from your mailing list.
null
CC BY-SA 2.5
null
2008-08-26T06:19:36.167
2008-08-26T06:19:36.167
null
null
227
null
27,477
2
null
27,472
15
null
try using the timeout property of the SQL command. Below is a C# sample, using the SqlCommand class. Its equivalent should be applicable to what you are using. ``` SqlCommand command = new SqlCommand(sqlQuery, _Database.Connection); command.CommandTimeout = 0; int rows = command.ExecuteNonQuery(); ```
null
CC BY-SA 2.5
null
2008-08-26T06:14:18.813
2008-08-26T06:44:26.073
2008-08-26T06:44:26.073
227
227
null
27,479
2
null
27,405
0
null
> Precomputed lookup table: ``` 16bit_integer = products[another_16bit_integer]; ``` That's not going to work so good on the AVR, the 16bit address space is going to be exhausted.
null
CC BY-SA 2.5
null
2008-08-26T06:19:14.153
2008-08-26T06:27:14.337
2008-08-26T06:27:14.337
257
257
null
27,478
2
null
27,303
1
null
ScaleTransform doesn't have a data context so most likely the binding is looking for SelectedDive.Visibility off it's self and not finding it. There is much in Silverlight xaml and databinding that is different from WPF... Anyway to solve this you will want to set up the binding in code**, or manually listen for the...
null
CC BY-SA 2.5
null
2008-08-26T06:15:17.267
2008-08-26T06:27:33.010
2008-08-26T06:27:33.010
580
580
null
27,454
2
null
26,903
5
null
[Juan Manuel said:](https://stackoverflow.com/questions/26903/how-can-you-require-a-constructor-with-no-parameters-for-types-implementing-an#27386) > that's one of the reasons I don't understand why it cannot be a part of the contract in the interface It's an indirect mechanism. The generic allows you to "cheat" and...
null
CC BY-SA 2.5
null
2008-08-26T05:35:16.880
2008-08-26T05:40:27.147
2017-05-23T12:02:53.520
-1
2,729
null
27,474
1
27,491
null
18
49,022
I need to send hundreds of newsletters, but would like to check first if email exists on server. It's called [SMTP](http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) validation, at least I think so, based on my research on Internet. There's several libraries that can do that, and also a page with open-sour...
Email SMTP validator
CC BY-SA 3.0
0
2008-08-26T06:10:01.367
2020-06-30T12:36:18.527
2012-08-31T23:45:51.270
63,550
1,407
[ "validation", "email" ]
27,482
1
27,548
null
17
9,510
Im currently writing my bachelor thesis with latex and using TexnicCenter. I want to be able to send my generated pdf file to people and they should be able to write comments. It seems like commenting is not allowed by default, how do I change this? I am using straight to PDF with pdflatex and acrobat reader 9 to read...
Commenting on LaTeX PDF documents with PDF reader
CC BY-SA 3.0
0
2008-08-26T06:24:16.763
2014-08-21T10:00:58.180
2012-11-06T12:15:15.187
1,749,675
2,450
[ "pdf", "latex", "comments", "rights-management", "texnic-center" ]
27,481
2
null
27,405
0
null
Since you are using an 8 bit processor, you can probably only handle 16 bit results, not 32 bit results. To reduce 16 bit overflow issues I would restate the formula like this: ``` result16 = operand16 - (operand16 * 3)/1000 ``` This would give accurate results for unsigned integers up to 21845, or signed integers u...
null
CC BY-SA 2.5
null
2008-08-26T06:23:33.067
2008-08-26T06:23:33.067
null
null
2,754
null
27,476
2
null
14,008
14
null
I would recommend against actually generating assemblies unless you absolutely need to, particularly if you are just getting started with implementing the genetic algorithm. The genetic algorithm is easiest to implement when the target language is functional and dynamically typed. That is generally why most genetic al...
null
CC BY-SA 2.5
null
2008-08-26T06:14:06.850
2008-08-26T06:14:06.850
null
null
1,737,192
null
27,491
2
null
27,474
21
null
Be aware that most MTAs (Mail Transfer Agent) will have the VRFY command turned off for spam protection reasons, they'll probably even block you if you try several RCPT TO in a row (see [http://www.spamresource.com/2007/01/whatever-happened-to-vrfy.html](http://www.spamresource.com/2007/01/whatever-happened-to-vrfy.htm...
null
CC BY-SA 2.5
null
2008-08-26T06:47:39.843
2008-08-26T08:20:58.620
2008-08-26T08:20:58.620
2,844
2,844
null
27,489
2
null
27,474
10
null
SMTP is a text based protocol carried over TCP/IP. Your validation program needs to open a TCP/IP connection to the server's port 25 (SMTP), write in a few lines and read the answer. Validation is done (but not always) on the "RCTP TO" line and on the "VFRY" line. The [SMTP RFC](http://www.ietf.org/rfc/rfc0821.txt) ...
null
CC BY-SA 2.5
null
2008-08-26T06:33:48.533
2008-08-26T06:33:48.533
null
null
2,811
null
27,497
2
null
27,482
1
null
I would definitely have a look at the [LaTeX Web Companion](https://rads.stackoverflow.com/amzn/click/com/0201433117). There is a whole section about generating PDF from LaTeX, including esoterica such as forms.
null
CC BY-SA 3.0
null
2008-08-26T07:01:53.210
2014-08-21T10:00:58.180
2014-08-21T10:00:58.180
366,904
1,428
null
27,487
2
null
27,303
0
null
I was hoping to solve this through XAML, but turns out Brian's suggestion was the way to go. I used Matt's suggestion to give the scale transform a name, so that I can access it from code. Then I hooked the value changed event of the slider, and manually updates the ScaleX and ScaleY property. I kept my value converter...
null
CC BY-SA 2.5
null
2008-08-26T06:32:58.270
2008-08-26T06:32:58.270
null
null
1,199,387
null
27,492
1
27,501
null
8
6,606
I've learned in College that you always have to free your unused Objects but not how you actually do it. For example structuring your code right and so on. Are there any general rules on how to handle pointers in C++? I'm currently not allowed to use boost. I have to stick to pure c++ because the framework I'm using...
C++ Memory management
CC BY-SA 2.5
0
2008-08-26T06:50:32.550
2013-04-04T13:58:49.203
2008-09-02T01:53:41.350
714
2,450
[ "c++", "memory", "pointers" ]
27,498
2
null
25,672
16
null
This is a very subjective question, and some would even argue that it is never "appropriate" to use the request scope in modern ColdFusion applications. With that disclaimer out of the way, let's define what the request scope is and where it would be useful. The request scope is the absolute global scope in a single ...
null
CC BY-SA 2.5
null
2008-08-26T07:04:13.203
2008-10-17T21:00:44.410
null
null
2,929
null
27,499
1
27,541
null
48
36,356
Recently Jeff has [posted](http://blog.codinghorror.com/deadlocked/) regarding his trouble with database deadlocks related to reading. [Multiversion Concurrency Control (MVCC)](https://en.m.wikipedia.org/wiki/Multiversion_concurrency_control) claims to solve this problem. What is it, and what databases support it? u...
What is Multiversion Concurrency Control (MVCC) and who supports it?
CC BY-SA 4.0
0
2008-08-26T07:04:21.657
2020-09-05T04:58:54.543
2020-09-05T04:58:54.543
1,595,451
116
[ "database", "deadlock", "terminology" ]
27,500
2
null
27,492
0
null
- - -
null
CC BY-SA 2.5
null
2008-08-26T07:06:24.650
2008-08-26T07:06:24.650
null
null
1,810
null
27,483
2
null
27,405
0
null
> On my platform ( Atmel AVR 8-bit micro-controller, running gcc ) ``` 16bit_integer = another_16bit_integer * 0.997; ``` > Takes about 26 instructions. ``` 16bit_integer = (int16_t) (another_16bit_integer * (int32_t) 997 / 1000); ``` > Takes about 25 instructions. The [Atmel AVR](http://en.wikipedia.org/wiki/At...
null
CC BY-SA 2.5
null
2008-08-26T06:28:05.833
2008-08-26T07:07:43.880
2008-08-26T07:07:43.880
257
257
null
27,504
2
null
27,499
10
null
[PostgreSQL's Multi-Version Concurrency Control](http://www.onlamp.com/pub/a/onlamp/2001/05/25/postgresql_mvcc.html) As well as [this article](https://vladmihalcea.com/how-does-mvcc-multi-version-concurrency-control-work/) which features diagrams of how MVCC works when issuing INSERT, UPDATE, and DELETE statements.
null
CC BY-SA 3.0
null
2008-08-26T07:15:58.493
2018-01-04T12:04:50.643
2018-01-04T12:04:50.643
1,025,118
163
null
27,508
2
null
173
46
null
Red Gate's SQL Compare product not only allows you to do object-level comparisons, and generate change scripts from that, but it also allows you to export your database objects into a folder hierarchy organized by object type, with one [objectname].sql creation script per object in these directories. The object-type h...
null
CC BY-SA 3.0
null
2008-08-26T07:23:51.707
2014-06-09T07:57:16.500
2014-06-09T07:57:16.500
320,120
2,929
null
27,509
1
416,327
null
3,178
1,458,985
How do I check if an object property in JavaScript is undefined?
Detecting an undefined object property
CC BY-SA 4.0
0
2008-08-26T07:25:08.083
2023-02-02T22:50:07.553
2022-08-16T15:34:01.977
2,756,409
797
[ "javascript", "object", "undefined", "object-property" ]