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
3,471
2
null
3,448
0
null
For 99.999% of the sites out there, it really won't matter. The only time I've had it matter, I ran the HTML input through HTMLTidy to XHTML-ize it, and then ran my processing on it. Pretty much, it's the old programmer's axiom: trust no input.
null
CC BY-SA 2.5
null
2008-08-06T14:37:08.603
2008-08-06T14:37:08.603
null
null
35
null
3,476
2
null
3,437
3
null
I would go with your first solution. This allows the user to focus on entering their credit card details. You can then transfer them to another webpage which asks or provides them further information relating to the Google Map.
null
CC BY-SA 2.5
null
2008-08-06T14:40:20.720
2008-08-06T14:40:20.720
null
null
383
null
3,475
2
null
3,470
0
null
[UNION](http://msdn.microsoft.com/en-us/library/ms180026.aspx) should be your friend: ``` SELECT Column1 FROM table WHERE idColumn = 1 UNION ALL SELECT Column2 FROM table WHERE idColumn = 1 UNION ALL SELECT Column3 FROM table WHERE idColumn = 1 ``` but it can [also be your foe](http://blog.falafel.com/2006/01/20/TSQ...
null
CC BY-SA 2.5
null
2008-08-06T14:39:17.837
2008-08-06T14:39:17.837
null
null
91
null
3,473
2
null
3,470
6
null
You should take a look at the UNPIVOT clause. : GateKiller, strangely enough I read an article (about something unrelated) about it this morning and I'm trying to jog my memory where I saw it again, had some decent looking examples too. It'll come back to me I'm sure. : Found it: [http://weblogs.sqlteam.com/jeffs/arc...
null
CC BY-SA 2.5
null
2008-08-06T14:39:09.457
2008-08-06T15:33:24.107
2008-08-06T15:33:24.107
419
419
null
3,479
2
null
3,448
1
null
while I agree with the sentiment of "if it renders fine then don't worry about it" statement, however it's good for follow a standard, even though it may not be fully supported right now. you can still use Table for layout, but it's not good for a reason.
null
CC BY-SA 2.5
null
2008-08-06T14:42:25.130
2008-08-06T14:42:25.130
null
null
null
null
3,478
2
null
3,470
0
null
If you have a fixed set of columns and you know what they are, you can basically do a series of subselects `(SELECT Column1 AS ResultA FROM TableA) as R1` and join the subselects. All this in a single query.
null
CC BY-SA 2.5
null
2008-08-06T14:41:29.280
2008-08-06T14:41:29.280
null
null
507
null
3,470
1
3,473
null
17
6,362
I have a very simple problem which requires a very quick and simple solution in SQL Server 2005. I have a table with x Columns. I want to be able to select one row from the table and then transform the columns into rows. ``` TableA Column1, Column2, Column3 ``` SQL Statement to ruturn ``` ResultA Value of Column1 ...
How do I Transform Sql Columns into Rows?
CC BY-SA 3.0
0
2008-08-06T14:36:56.640
2014-12-16T18:30:44.717
2014-12-16T18:30:44.717
314,291
383
[ "sql-server", "sql-server-2005" ]
3,482
2
null
3,408
4
null
NetBeans is definitely recommended if you like IDEs. It has a lot of [Ruby features](http://www.netbeans.org/features/ruby/index.html) and there's a [Ruby only](http://download.netbeans.org/netbeans/6.1/final/) download.
null
CC BY-SA 2.5
null
2008-08-06T14:42:56.953
2008-08-06T14:42:56.953
null
null
136
null
3,468
2
null
3,448
1
null
Though I believe in striving for valid XHTML and CSS, it's often hard to do for a number of reasons. - - - - I don't think that most developers specify a DOCTYPE and then explicitly fail to adhere to it.
null
CC BY-SA 2.5
null
2008-08-06T14:35:35.923
2008-08-06T14:35:35.923
null
null
20
null
3,485
2
null
126
8
null
I can be wrong because I'm autodidact, but I NEVER user public properties in my Java classes, they are always private or protected, so that outside code must access by getters/setters. It's better for maintenance / modification purposes. And for inside class code... If getter method is trivial I use the property direct...
null
CC BY-SA 3.0
null
2008-08-06T14:43:54.830
2018-02-15T11:07:09.470
2018-02-15T11:07:09.470
8,770,663
518
null
3,502
2
null
3,486
1
null
I don't have a solution, but I'm betting that relying on the referrer will never work because user-agents are free to not send it at all or spoof it to something that will let them in.
null
CC BY-SA 2.5
null
2008-08-06T14:49:13.073
2008-08-06T14:49:13.073
null
null
266
null
3,510
1
3,511
null
16
12,811
What is BODMAS and why is it useful in programming?
What does the term "BODMAS" mean?
CC BY-SA 2.5
0
2008-08-06T14:54:52.360
2022-06-30T21:11:22.907
2022-06-30T21:11:22.907
4,294,399
383
[ "math", "operator-precedence" ]
3,514
2
null
3,486
0
null
I'm guessing you're trying to prevent screen scraping? In my honest opinion it's a tough one to solve and trying to fix by checking the value of HTTP_REFERER is just a sticking plaster. Anyone going to the bother of automating submissions is going to be savvy enough to send the correct referer from their 'automaton'. ...
null
CC BY-SA 2.5
null
2008-08-06T15:00:15.780
2008-08-06T15:00:15.780
null
null
419
null
3,517
2
null
3,486
1
null
You can't tell apart users and malicious scripts by their http request. But you can analyze which users are requesting too many pages in too short a time, and block their ip-addresses.
null
CC BY-SA 2.5
null
2008-08-06T15:02:26.587
2008-08-06T15:02:26.587
null
null
136
null
3,515
2
null
3,510
8
null
Another version of this (in middle school) was "Please Excuse My Dear Aunt Sally". - - - - - - The mnemonic device was helpful in school, and still useful in programming today.
null
CC BY-SA 2.5
null
2008-08-06T15:01:15.827
2008-08-06T15:01:15.827
null
null
448
null
3,513
2
null
3,470
0
null
I'm not sure of the SQL Server syntax for this but in MySQL I would do ``` SELECT IDColumn, ( IF( Column1 >= 3, 1, 0 ) + IF( Column2 >= 3, 1, 0 ) + IF( Column3 >= 3, 1, 0 ) + ... [snip ] ) AS NumberOfColumnsGreaterThanThree FROM TableA; ``` EDIT: A very (very) brief Google search tells me that the `CASE` statement...
null
CC BY-SA 3.0
null
2008-08-06T14:59:36.547
2011-05-02T07:18:08.933
2011-05-02T07:18:08.933
505,893
48
null
3,512
1
3,552
null
15
1,033
I'm using MSVE, and I have my own tiles I'm displaying in layers on top. Problem is, there's a ton of them, and they're on a network server. In certain directories, there are something on the order of 30,000+ files. Initially I called Directory.GetFiles, but once I started testing in a pseudo-real environment, it timed...
Searching directories for tons of files?
CC BY-SA 2.5
null
2008-08-06T14:57:16.597
2012-08-10T06:34:13.830
2012-08-10T06:34:13.830
246,246
517
[ "c#", "directory", "file-management" ]
3,486
1
3,827
null
5
2,272
I have control over the HttpServer but not over the ApplicationServer or the Java Applications sitting there but I need to block direct access to certain pages on those applications. Precisely, I don't want users automating access to forms issuing direct GET/POST HTTP requests to the appropriate servlet. So, I decide...
Block user access to internals of a site using HTTP_REFERER
CC BY-SA 3.0
null
2008-08-06T14:44:09.137
2015-07-10T14:39:42.117
2015-07-10T14:39:42.117
4,103,496
527
[ "security", "apache", "mod-rewrite", "http-referer" ]
3,519
2
null
3,486
1
null
Javascript is another helpful tool to prevent (or at least delay) screen scraping. Most automated scraping tools don't have a Javascript interpreter, so you can do things like setting hidden fields, etc. Edit: Something along the lines of [this Phil Haack article](http://haacked.com/archive/2006/09/26/Lightweight_Inv...
null
CC BY-SA 2.5
null
2008-08-06T15:03:37.397
2008-08-06T15:10:37.897
2008-08-06T15:10:37.897
448
448
null
3,511
2
null
3,510
20
null
[http://www.easymaths.com/What_on_earth_is_Bodmas.htm](http://www.easymaths.com/What_on_earth_is_Bodmas.htm): > What do you think the answer to 2 + 3 x 5 is?Is it (2 + 3) x 5 = 5 x 5 = 25 ?or 2 + (3 x 5) = 2 + 15 = 17 ?BODMAS can come to the rescue and give us rules to follow so that we always get the right answer:(B)...
null
CC BY-SA 2.5
null
2008-08-06T14:57:01.403
2008-08-14T23:18:34.980
2008-08-14T23:18:34.993
122
91
null
3,523
2
null
3,180
12
null
In addition to the benefits already mentioned, another nice feature of using FogBugz is BugzScout, which you can use to report errors from your app and log them into FogBugz automatically. If you're a one person team, chances are there are some bugs in your code you've never seen during your own testing, so it's nice ...
null
CC BY-SA 2.5
null
2008-08-06T15:08:52.813
2008-08-06T15:08:52.813
null
null
443
null
3,518
2
null
3,510
5
null
Order of operations in an expression, such as: ``` foo * (bar + baz^2 / foo) ``` - - - - source: [http://www.mathsisfun.com/operation-order-bodmas.html](http://www.mathsisfun.com/operation-order-bodmas.html)
null
CC BY-SA 2.5
null
2008-08-06T15:03:35.977
2008-08-29T20:15:47.303
2008-08-29T20:15:47.303
437
437
null
3,525
2
null
3,510
4
null
When I learned this in grade school (in Canada) it was referred to as BEDMAS: rackets xponents ivision ultiplication ddition ubtraction Just for those from this part of the world...
null
CC BY-SA 2.5
null
2008-08-06T15:11:01.327
2008-08-06T15:11:01.327
null
null
37
null
3,527
2
null
3,510
1
null
I'm not really sure how applicable to programming the old BODMAS mnemonic is anyways. There is no guarantee on order of operations between languages, and while many keep the standard operations in that order, not all do. And then there are some languages where order of operations isn't really all that meaningful (Lis...
null
CC BY-SA 2.5
null
2008-08-06T15:12:30.327
2008-08-06T15:12:30.327
null
null
121
null
3,526
2
null
371
16
null
You may consider a third party email service who handles delivery issues: - - - - - - - -
null
CC BY-SA 2.5
null
2008-08-06T15:12:16.537
2008-08-06T15:12:16.537
null
null
83
null
3,522
2
null
3,486
1
null
Using a referrer is very unreliable as a method of verification. As other people have mentioned, it is easily spoofed. Your best solution is to modify the application (if you can) You could use a CAPTCHA, or set some sort of cookie or session cookie that keeps track of what page the user last visited (a session would ...
null
CC BY-SA 2.5
null
2008-08-06T15:08:30.913
2008-08-06T15:08:30.913
null
null
392
null
3,530
1
3,543
null
60
31,208
I have a `Rakefile` with a Rake task that I would normally call from the command line: ``` rake blog:post Title ``` I'd like to write a Ruby script that calls that Rake task multiple times, but the only solution I see is shelling out using `` (backticks) or `system`. What's the right way to do this?
How do I run Rake tasks within a Ruby script?
CC BY-SA 3.0
0
2008-08-06T15:15:54.143
2020-06-18T02:42:03.723
2014-12-19T23:04:39.933
128,421
1,388,162
[ "ruby", "rake", "command-line-interface" ]
3,521
2
null
3,400
-1
null
From SQL Server Books Online: > To write full-text queries in Microsoft SQL Server 2005, you must learn how to use the CONTAINS and FREETEXT Transact-SQL predicates, and the CONTAINSTABLE and FREETEXTTABLE rowset-valued functions. That means all of the queries written above with the % and _ are not valid fu...
null
CC BY-SA 2.5
null
2008-08-06T15:08:11.130
2008-08-06T15:29:50.387
2008-08-06T15:29:50.387
519
519
null
3,535
2
null
3,452
-11
null
Since there currently isn't a MS SQL client for Mac OS X, I would, as [Modesty](https://stackoverflow.com/questions/3452/sql-server-client-for-osx#3455) has suggested, use [Remote Desktop](http://www.microsoft.com/mac/products/remote-desktop/default.mspx) for the Mac.
null
CC BY-SA 3.0
null
2008-08-06T15:17:16.743
2012-06-14T21:11:31.353
2017-05-23T12:18:25.157
-1
383
null
3,543
2
null
3,530
45
null
from [timocracy.com](http://web.archive.org/web/20090412040557/http://timocracy.com:80/articles/2008/02/21/calling-invoking-rails-rake-tasks-from-within-ruby-for-testing-try-2): ``` require 'rake' def capture_stdout s = StringIO.new oldstdout = $stdout $stdout = s yield s.string ensure $stdout = oldstdout...
null
CC BY-SA 4.0
null
2008-08-06T15:24:00.787
2020-06-18T02:42:03.723
2020-06-18T02:42:03.723
9,780,149
399
null
3,548
2
null
3,486
0
null
If you're trying to prevent search engine bots from accessing certain pages, make sure you're using a properly formatted [robots.txt](http://www.robotstxt.org/) file. Using HTTP_REFERER is unreliable because it is [easily faked](http://en.wikipedia.org/wiki/Referer_spoofing). Another option is to check the user agent...
null
CC BY-SA 2.5
null
2008-08-06T15:32:11.113
2008-08-06T15:32:11.113
null
null
357
null
3,539
2
null
2,968
2
null
@CodingTheWheel Heres your code, a bit clean up and through eclipse (++) and the inserted back here :) Including the four spaces in front each line. ``` public static boolean simpleNLP(String inputline, String keywords[]) { if (inputline.length() < 1) return false; List<String> lexed = new ArrayList<...
null
CC BY-SA 3.0
null
2008-08-06T15:18:18.957
2015-08-20T22:13:23.197
2015-08-20T22:13:23.197
7,226
86
null
3,538
2
null
3,452
-4
null
Ed: [phpMyAdmin](http://en.wikipedia.org/wiki/PhpMyAdmin) is for MySQL, but the asker needs something for Microsoft SQL Server. Most solutions that I found involve using an ODBC Driver and then whatever client application you use. For example, [Gorilla SQL](http://www.macupdate.com/info.php/id/17557) claims to be able...
null
CC BY-SA 3.0
null
2008-08-06T15:18:09.393
2012-06-14T21:13:09.077
2012-06-14T21:13:09.077
63,550
91
null
3,546
2
null
3,452
181
null
The Java-based [Oracle SQL Developer](http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html) has a plugin module that supports SQL Server. I use it regularly on my Mac. It's free, too. Here's how to install the SQL Server plugin: - - - - [JAR](http://en.wikipedia.org/wiki/JAR_%28file_for...
null
CC BY-SA 3.0
null
2008-08-06T15:31:49.400
2015-07-09T23:18:12.013
2015-07-09T23:18:12.013
1,664,443
116
null
3,544
1
3,561
null
8
12,852
Generally when I use ClickOnce when I build a VB.NET program but it has a few downsides. I've never really used anything else, so I'm not sure what my options are. Downsides to ClickOnce: - - - Pros to ClickOnce: - - Does Windows Installer do these things as well? I know it dosen't have any of the ClickOnce cons...
What is the best way to deploy a VB.NET application?
CC BY-SA 2.5
0
2008-08-06T15:25:51.237
2019-07-19T04:04:14.483
2010-01-29T05:14:19.583
30
30
[ "vb.net", "visual-studio", "installation", "clickonce" ]
3,550
2
null
3,544
1
null
Creating an installer project, with a dependency on your EXE (which in turn depends on whatever it needs) is a fairly straightforward process - but you'll need at least VS Standard Edition for that. Inside the installer project, you can create custom tasks and dialog steps that allow you to do anything you code up. W...
null
CC BY-SA 2.5
null
2008-08-06T15:33:21.500
2008-08-06T15:33:21.500
null
null
35
null
3,533
2
null
3,470
1
null
I had to do this for a project before. One of the major difficulties I had was explaining what I was trying to do to other people. I spent a ton of time trying to do this in SQL, but I found the pivot function woefully inadequate. I do not remember the exact reason why it was, but it is too simplistic for most applicat...
null
CC BY-SA 2.5
null
2008-08-06T15:16:32.223
2008-08-06T15:16:32.223
null
null
26
null
3,552
2
null
3,512
6
null
I've worked on a SAN system in the past with telephony audio recordings which had issues with numbers of files in a single folder - that system became unusable somewhere near 5,000 (on Windows 2000 Advanced Server with an application in C#.Net 1.1)- the only sensible solution that we came up with was to change the fold...
null
CC BY-SA 2.5
null
2008-08-06T15:35:30.203
2008-08-06T15:35:30.203
null
null
193
null
3,555
2
null
3,544
1
null
I don't believe there is any easy way to make a Windows Installer project have the ease or upgradability of ClickOnce. I use ClickOnce for all the internal .NET apps I develop (with the exception of Console Apps). I find that in an enterprise environment, the ease of deployment outweighs the lack of flexibility.
null
CC BY-SA 2.5
null
2008-08-06T15:37:43.723
2008-08-06T15:37:43.723
null
null
317
null
3,560
2
null
3,385
7
null
Nope. The reason ActiveX can do it is because ActiveX is a little application that runs on the client's machine. I would imagine access to such information via JavaScript would be a security vulnerability.
null
CC BY-SA 2.5
null
2008-08-06T15:38:50.897
2008-08-06T15:38:50.897
null
null
357
null
3,549
2
null
1,644
0
null
I've been happy with [Stack Overflow](http://itc.conversationsnetwork.org/series/stackoverflow.html). I listen to / watch a few others: - [No Agenda](http://cagematch.dvorak.org/index.php/board,45.0.html)- [This Week In Tech](http://twit.tv/twit)- [Cranky Geeks](http://www.crankygeeks.com/) But the constant MS/Googl...
null
CC BY-SA 2.5
null
2008-08-06T15:32:55.433
2009-09-14T09:26:27.033
2009-09-14T09:26:27.033
63,550
83
null
3,565
2
null
2,968
1
null
When the separator String for the command is allways the same String or char (like the ";") y recomend you use the StrinkTokenizer class: [StringTokenizer](http://java.sun.com/javase/6/docs/api/java/util/StringTokenizer.html) but when the separator varies or is complex y recomend you to use the regular expresions, wi...
null
CC BY-SA 2.5
null
2008-08-06T15:40:46.917
2008-08-06T15:40:46.917
null
null
518
null
3,557
2
null
1,644
0
null
> [Brian Deacon](https://stackoverflow.com/users/409/brian-deacon) wrote:Dvorak is so... Spolsky. I can't describe why, but I agree.
null
CC BY-SA 2.5
null
2008-08-06T15:38:47.933
2008-08-06T15:38:47.933
2017-05-23T11:47:29.557
-1
83
null
3,492
2
null
3,448
16
null
There are [many reasons](https://validator.w3.org/docs/why.html) to use valid markup. My favorite is that it allows you to use validation as a form of regression testing, preventing the markup equivalent of "delta rot" from leading to real rendering problems once the errors reach some critical mass. And really, it's ...
null
CC BY-SA 4.0
null
2008-08-06T14:46:40.660
2021-12-05T11:57:54.680
2021-12-05T11:57:54.680
4,751,173
164
null
3,570
2
null
3,512
1
null
None. .NET relies on underlying Windows API calls that really, really hate that amount of files themselves. As Ronnie says: split them up.
null
CC BY-SA 2.5
null
2008-08-06T15:42:08.457
2008-08-06T15:42:08.457
null
null
414
null
3,571
2
null
1,610
5
null
If I understand your question, you want to affect what columns are returned first, second, third, etc in queries, right? If all of your queries are written with `SELECT * FROM TABLE` - then they will show up in the output as they are laid out in SQL. If your queries are written with `SELECT Field1, Field2 FROM TABL...
null
CC BY-SA 4.0
null
2008-08-06T15:42:19.283
2018-05-10T16:51:14.527
2018-05-10T16:51:14.527
5,260,008
519
null
3,574
2
null
3,567
0
null
``` SELECT Table_Name FROM Information_Schema.Columns WHERE Column_Name = 'YourFieldName' ```
null
CC BY-SA 3.0
null
2008-08-06T15:43:32.963
2016-12-01T20:38:48.700
2016-12-01T20:38:48.700
2,571,493
414
null
3,576
2
null
1,644
48
null
I [FLOSS Weekly](http://twit.tv/FLOSS). Another Twit Podcast where Leo and Randal Schwartz interview open source geeks. My favorite was their interview with Dan Ingalls (Smalltalk/Squeak fame). I also enjoyed their interview of Richard Hipp (SQLite).
null
CC BY-SA 2.5
null
2008-08-06T15:44:59.433
2009-03-08T01:14:43.800
2009-03-08T01:14:43.800
10,897
534
null
3,567
1
3,578
null
7
1,196
In SQL Server how do you query a database to bring back all the tables that have a field of a specific name?
SQL query for a database scheme
CC BY-SA 3.0
null
2008-08-06T15:41:13.827
2022-07-23T03:56:23.913
2016-12-02T05:52:44.150
2,571,493
230
[ "sql", "sql-server" ]
3,561
2
null
3,544
6
null
Have you seen WiX yet? [http://wix.sourceforge.net/](http://wix.sourceforge.net/) It builds windows installers using an XML file and has additional libraries to use if you want to fancify your installers and the like. I'll admit the learning curve for me was medium-high in getting things started, but afterwards I was...
null
CC BY-SA 2.5
null
2008-08-06T15:38:52.287
2008-08-06T15:38:52.287
null
null
71
null
3,575
2
null
3,567
0
null
I'm old-school: ``` SELECT DISTINCT object_name(id) FROM syscolumns WHERE name = 'FIELDNAME' ```
null
CC BY-SA 3.0
null
2008-08-06T15:43:54.537
2016-12-02T06:39:07.513
2016-12-02T06:39:07.513
2,571,493
533
null
3,580
2
null
3,544
1
null
ClickOnce can be problematic if you have 3rd party components that need to be installed along with your product. You can skirt this to some extent by creating installers for the components however with ClickOnce deployment you have to create the logic to update said component installers. I've in a previous life used W...
null
CC BY-SA 2.5
null
2008-08-06T15:46:41.710
2008-08-06T15:46:41.710
null
null
36
null
3,583
2
null
3,512
1
null
You could use DOS? ``` DIR /s/b > Files.txt ```
null
CC BY-SA 2.5
null
2008-08-06T15:47:49.430
2008-08-06T15:47:49.430
null
null
383
null
3,578
2
null
3,567
7
null
The following query will bring back a unique list of tables where `Column_Name` is equal to the column you are looking for: ``` SELECT Table_Name FROM INFORMATION_SCHEMA.COLUMNS WHERE Column_Name = 'Desired_Column_Name' GROUP BY Table_Name ```
null
CC BY-SA 3.0
null
2008-08-06T15:46:09.777
2016-12-01T20:32:18.457
2016-12-01T20:32:18.457
2,571,493
383
null
3,581
2
null
3,180
18
null
Go to [http://www.fogbugz.com/](http://www.fogbugz.com/) then at the bottom under "Try It", sign up. under Settings => Your FogBugz Hosted Account, it should either already say "Payment Information: Using Student and Startup Edition." or there should be some option/link to turn on the Student and Startup Edition. A...
null
CC BY-SA 2.5
null
2008-08-06T15:46:49.197
2008-08-06T15:46:49.197
null
null
91
null
3,590
2
null
3,589
1
null
Why not just use SQL Management Studio to create a complete script of your database and the objects?
null
CC BY-SA 2.5
null
2008-08-06T15:55:35.420
2008-08-06T15:55:35.420
null
null
423
null
3,589
1
3,609
null
22
22,459
I need to create a backup of a SQL Server 2005 Database that's only the structure...no records, just the schema. Is there any way to do this? EDIT: I'm trying to create a backup file to use with old processes, so a script wouldn't work for my purposes, sorry
Backup SQL Schema Only?
CC BY-SA 2.5
0
2008-08-06T15:53:51.647
2022-08-23T22:01:01.520
2016-09-30T04:49:14.987
116
44
[ "sql", "sql-server", "oracle", "sql-server-2005", "backup" ]
3,588
2
null
3,585
6
null
If you are creating a new rails application you can set the database using the -d switch like this: ``` rails -d mysql myapp ``` Its always easy to switch your database later though, and using sqlite really is easier if you are developing on a Mac.
null
CC BY-SA 3.0
null
2008-08-06T15:53:32.647
2012-05-10T08:44:14.637
2012-05-10T08:44:14.637
92,837
537
null
3,586
2
null
3,585
270
null
Normally, you would create a new Rails app using ``` rails ProjectName ``` To use MySQL, use ``` rails new ProjectName -d mysql ```
null
CC BY-SA 3.0
null
2008-08-06T15:52:09.140
2012-08-10T00:45:46.540
2012-08-10T00:45:46.540
1,566,640
124
null
3,600
2
null
3,512
2
null
Definitely split them up. That said, stay as far away from the Indexing Service as you can.
null
CC BY-SA 2.5
null
2008-08-06T16:03:51.893
2008-08-06T16:03:51.893
null
null
35
null
3,579
2
null
888
0
null
Depending on the issue I like a combination of error_reporting(E_ALL) mixed with echo tests (to find the offending line/file the error happened in initally; you KNOW it's not always the line/file php tells you right?), IDE brace matching (to resolve "Parse error: syntax error, unexpected $end" issues), and print_r(); e...
null
CC BY-SA 2.5
null
2008-08-06T15:46:25.767
2008-08-06T15:46:25.767
null
null
538
null
3,585
1
3,601
null
134
157,284
I want to create my Rails application with MySQL, because I like it so much. How can I do that in the latest version of Rails instead of the default SQLite?
Create a new Ruby on Rails application using MySQL instead of SQLite
CC BY-SA 3.0
0
2008-08-06T15:50:49.813
2020-04-08T17:55:27.903
2012-09-01T19:28:22.570
9,314
124
[ "mysql", "ruby-on-rails", "ruby" ]
3,603
2
null
1,760
8
null
We use NUnit and [MbUnit](http://mbunit.com) here. We use [TestDriven.NET](http://testdriven.net) to run the unit tests from within Visual Studio. We use the excellent, highly recommended [RhinoMocks](http://www.ayende.com/projects/rhino-mocks/downloads.aspx) as a mock framework.
null
CC BY-SA 4.0
null
2008-08-06T16:07:06.083
2020-07-30T11:01:55.790
2020-07-30T11:01:55.790
63,550
536
null
3,601
2
null
3,585
143
null
If you already have a rails project, change the adapter in the `config/database.yml` file to `mysql` and make sure you specify a valid username and password, and optionally, a socket: ``` development: adapter: mysql2 database: db_name_dev username: koploper password: host: localhost socket: /tmp/mysql.sock...
null
CC BY-SA 3.0
null
2008-08-06T16:04:05.043
2014-01-07T10:59:29.450
2014-01-07T10:59:29.450
136
136
null
3,616
2
null
2,968
6
null
Sun itself recommends staying away from StringTokenizer and using the String.spilt method instead. You'll also want to look at the Pattern class.
null
CC BY-SA 2.5
null
2008-08-06T16:14:45.460
2008-08-06T16:14:45.460
null
null
543
null
3,615
1
null
null
9
9,403
Any one know decent way to reference a SQLite database using the above mentioned tools? I tried using ODBC (the SQLite driver) but while the connection is good, I get no data returned. Like I can't see any tables in Data Connection (VS 2008). Is there a better way?
Using SQLite with Visual Studio 2008 and Silverlight
CC BY-SA 2.5
0
2008-08-06T16:14:15.100
2012-07-30T20:15:42.023
null
null
534
[ ".net", "silverlight", "sqlite" ]
3,609
2
null
3,589
11
null
Use a 3 step process: 1. Generate a script from the working database 2. Create a new database from that script 3. Create a backup of the new database
null
CC BY-SA 2.5
null
2008-08-06T16:12:44.213
2008-08-06T16:12:44.213
null
null
35
null
3,617
2
null
3,611
1
null
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\phpA30E.tmp' to './people.xml' in E:\inetpub\vhosts\mywebsite.com\httpdocs\dump\upload.php on line 3 is the important line it says you can't put the file where you want it and this normally means a permissions problem check t...
null
CC BY-SA 2.5
null
2008-08-06T16:15:21.637
2008-08-06T16:15:21.637
null
null
269
null
3,618
2
null
3,611
9
null
As it's Windows, there is no real 777. If you're using [chmod](http://fr2.php.net/manual/en/function.chmod.php), check the Windows-related comments. Check that the IIS Account can access (read, write, modify) these two folders: ``` E:\inetpub\vhosts\mywebsite.com\httpdocs\dump\ C:\WINDOWS\Temp\ ```
null
CC BY-SA 2.5
null
2008-08-06T16:16:01.667
2008-08-06T16:16:01.667
null
null
91
null
3,607
1
370,131
null
16
5,278
I've got TotroiseSVN installed and have a majority of my repositories checking in and out from C:\subversion\ . This means that I don't have a "subversion" server per-se. How do I integrate TortoiseSVN and Fogbugz?
Integrating Fogbugz with TortoiseSVN with no URL/Subversion backend
CC BY-SA 2.5
0
2008-08-06T16:10:44.313
2018-12-27T21:50:33.780
2008-08-08T12:01:11.967
58
58
[ "svn", "tortoisesvn", "integration", "fogbugz" ]
3,651
2
null
3,088
7
null
http://tryruby.hobix.com/">Try Ruby (In Your Browser)
null
CC BY-SA 2.5
null
2008-08-06T16:37:38.703
2008-08-06T16:37:38.703
null
null
25
null
3,655
2
null
3,654
9
null
I'd shoot for XHTML Transitional 1.0. There are still a few nuances out there that don't like XHTML strict, and most editors I've seen now will give you the proper nudges to make sure that things are done right.
null
CC BY-SA 2.5
null
2008-08-06T16:43:00.410
2008-08-06T16:43:00.410
null
null
71
null
3,656
2
null
3,654
2
null
Anything that renders your page is will do so regardless of which popular standard you use. XHTML is stricter and probably "better" but I can't see what advantages you will get with one standard over another.
null
CC BY-SA 2.5
null
2008-08-06T16:43:45.680
2008-08-06T16:43:45.680
null
null
1,384,652
null
3,637
2
null
260
7
null
If you don't want to use the DLR you can [use Boo (which has an interpreter)](http://docs.codehaus.org/display/BOO/Boo+as+an+embedded+scripting+language) or you could consider [the Script.NET (S#) project on CodePlex](https://archive.codeplex.com/?p=scriptdotnet). With the Boo solution you can choose between compiled s...
null
CC BY-SA 4.0
null
2008-08-06T16:28:19.783
2019-12-24T07:45:32.913
2019-12-24T07:45:32.913
5,407,188
541
null
3,625
1
102,129
null
3
1,523
I can't seem to find Developer Express' version of the `LinkButton`. (The Windows Forms linkbutton, not the `ASP.NET` linkbutton.) `HyperLinkEdit` doesn't seem to be what I'm looking for since it looks like a TextEdit/TextBox. Anyone know what their version of it is? I'm using the latest DevX controls: 8.2.1.
What's the Developer Express equivalent of System.Windows.Forms.LinkButton?
CC BY-SA 3.0
null
2008-08-06T16:20:06.290
2014-12-17T13:15:45.060
2014-12-17T13:15:45.060
2,296,199
549
[ "devexpress" ]
3,654
1
3,655
null
23
1,584
When developing a new web based application which version of html should you aim for? EDIT: cool I was just attempting to get a feel from others I tend to use XHTML 1.0 Strict in my own work and Transitional when others are involved in the content creation. I marked the first XHTML 1.0 Transitional post as the 'corr...
HTML version choice
CC BY-SA 2.5
0
2008-08-06T16:40:23.130
2016-06-21T08:51:04.627
2008-08-06T17:00:01.077
269
269
[ "html", "xml", "xhtml" ]
3,611
1
3,618
null
18
14,214
I'm trying to write some PHP to upload a file to a folder on my webserver. Here's what I have: ``` <?php if ( !empty($_FILES['file']['tmp_name']) ) { move_uploaded_file($_FILES['file']['tmp_name'], './' . $_FILES['file']['name']); header('Location: http://www.mywebsite.com/dump/'); exit; ...
PHP Error - Uploading a file
CC BY-SA 3.0
0
2008-08-06T16:13:02.250
2019-12-05T18:17:51.190
2017-12-16T02:35:41.267
794,749
402
[ "php", "iis", "upload" ]
3,659
2
null
3,654
1
null
Personally, I prefer XHTML 1.0 Transitional. XHTML is XML based, so it allows easier parsing and you can also use the XML Components of most IDEs to programatically query and insert stuff. Transitional is not as strict as strict, which makes it relatively easy to work with, compared to strict which can often be a PIT...
null
CC BY-SA 2.5
null
2008-08-06T16:44:28.410
2008-08-06T16:44:28.410
null
null
91
null
3,660
2
null
3,654
3
null
Dillie-O is right on with his answer of XHTML 1.0 Transitional but I would suggest shooting for XHTML 1.0 Strict and only falling back on Transitional if there's some piece of functionality you absolutely need that Strict is not allowing.
null
CC BY-SA 2.5
null
2008-08-06T16:46:26.143
2008-08-06T16:46:26.143
null
null
271
null
3,593
2
null
3,486
0
null
To make the things a little more clear: 1. Yes, I know that using HTTP_REFERER is completely unreliable and somewhat childish but I'm pretty sure that the people that learned (from me maybe?) to make automations with Excel VBA will not know how to subvert a HTTP_REFERER within the time span to have the final solutio...
null
CC BY-SA 2.5
null
2008-08-06T15:58:14.790
2008-08-06T15:58:14.790
null
null
527
null
3,666
1
null
null
9
8,189
(y/N) Edit: Read-only access is fine.
Can you access the windows registry from Adobe Air?
CC BY-SA 2.5
0
2008-08-06T16:47:41.850
2014-11-20T16:35:54.607
2008-08-06T17:37:01.627
26
26
[ "apache-flex", "actionscript-3", "air" ]
3,673
2
null
3,667
2
null
A simple trunk branch contains the most current code, then cut a branch whenever we go live. This seems to work pretty effectively. You can easily go to the previous branch whenever the current branch that you cut for the live system fails. Also, it is easy to fix bugs on the branch that is currently live, and since...
null
CC BY-SA 2.5
null
2008-08-06T16:53:36.020
2008-08-06T16:53:36.020
null
null
122
null
3,662
2
null
3,589
0
null
I make heavy use of this tool: [SQLBalance for MySQL](http://www.dswsoft.com/sqlbalance.php) Unfortunately; its windows only... but works like a charm to move databases around, data or no data, merge or compare.
null
CC BY-SA 3.0
null
2008-08-06T16:46:39.577
2013-01-27T12:50:27.007
2013-01-27T12:50:27.007
null
547
null
3,664
2
null
3,615
2
null
Have you tried the ADO driver for SQLite? There is a great quick start guide (thanks to another thread here) that you can get here: [http://web.archive.org/web/20100208133236/http://www.mikeduncan.com/sqlite-on-dotnet-in-3-mins/](http://web.archive.org/web/20100208133236/http://www.mikeduncan.com/sqlite-on-dotnet-in-3...
null
CC BY-SA 3.0
null
2008-08-06T16:47:09.840
2012-07-30T20:15:42.023
2012-07-30T20:15:42.023
362,659
71
null
3,667
1
29,213
null
15
3,303
We are currently using a somewhat complicated deployment setup that involves a remote SVN server, 3 SVN branches for DEV, STAGE, and PROD, promoting code between them through patches, etc. I wonder what do you use for deployment in a small dev team situation?
What is your favorite web app deployment workflow with SVN?
CC BY-SA 2.5
0
2008-08-06T16:48:24.127
2017-10-10T23:21:30.080
2009-01-28T15:06:36.250
1,821
556
[ "svn", "deployment" ]
3,610
2
null
3,607
11
null
--- ## Helpful URLS [http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-propertypage.html](http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-propertypage.html) [http://tortoisesvn.net/issuetracker_integration](http://tortoisesvn.net/issuetracker_integration) --- ## Set the "Hooks" ...
null
CC BY-SA 4.0
null
2008-08-06T16:12:49.533
2018-12-27T21:50:33.780
2018-12-27T21:50:33.780
4,751,173
58
null
3,683
2
null
1,607
7
null
Dump your schema into a file and add it to source control. Then a simple diff will show you what changed.
null
CC BY-SA 2.5
null
2008-08-06T16:59:36.803
2008-08-06T16:59:36.803
null
null
556
null
3,699
2
null
3,654
26
null
HTML 4.01. There is absolutely to use XHTML for anything but experimental or academic problems that you only want to run on the 'obscure' web browsers. XHTML Transitional is completely pointless even to browsers, so I'm not sure why anyone would aim for that. It's actually pretty alarming that a number of people wou...
null
CC BY-SA 2.5
null
2008-08-06T17:10:25.317
2008-08-06T17:16:00.077
2017-05-23T10:27:50.457
-1
265
null
3,726
2
null
3,713
11
null
You can do it asynchronously using .NET Ajax PageMethods. See [here](http://web.archive.org/web/20170818234231/http://www.singingeels.com:80/Articles/Using_Page_Methods_in_ASPNET_AJAX.aspx) or [here](http://weblogs.asp.net/sohailsayed/archive/2008/02/23/calling-methods-in-a-codebehind-function-pagemethods-from-client-s...
null
CC BY-SA 4.0
null
2008-08-06T17:23:53.027
2020-06-18T18:47:22.147
2020-06-18T18:47:22.147
9,780,149
225
null
3,691
2
null
3,682
1
null
Something like this came to my mind ``` select @rownum:=@rownum+1 rownum, entries.* from (select @rownum:=0) r, entries where uid = ? and rownum % 150 = 0 ``` I don't have MySQL at my hand but maybe this will help ...
null
CC BY-SA 2.5
null
2008-08-06T17:06:44.247
2008-08-06T17:58:30.757
2008-08-06T17:58:30.757
501
501
null
3,725
1
3,776
null
18
4,408
I'm writing an application that is basically just a preferences dialog, much like the tree-view preferences dialog that Visual Studio itself uses. The function of the application is simply a pass-through for data from a serial device to a file. It performs many, many transformations on the data before writing it to the...
How to create a tree-view preferences dialog type of interface in C#?
CC BY-SA 3.0
0
2008-08-06T17:22:27.350
2016-01-17T12:49:42.543
2013-12-28T06:19:48.327
2,780,033
551
[ "c#", "user-interface" ]
3,718
2
null
3,667
3
null
When i worked in a small dev team (small meaning me, another programmer and the boss), it was quite the chaotic mess. However we found that Assigning a "gatekeeper" type of process worked for us. The gatekeeper was the person who had done the most work on the app (in this case, i had 2 projects i developed from the g...
null
CC BY-SA 2.5
null
2008-08-06T17:18:58.357
2008-08-06T17:18:58.357
null
null
514
null
3,713
1
3,777
null
146
304,259
I'm writing a web page in ASP.NET. I have some JavaScript code, and I have a submit button with a click event. Is it possible to call a method I created in ASP with JavaScript's click event?
Call ASP.NET function from JavaScript?
CC BY-SA 3.0
0
2008-08-06T17:16:36.630
2020-06-18T18:47:22.147
2016-12-09T17:23:58.203
63,550
557
[ "javascript", "c#", "asp.net", "onclick" ]
3,682
1
155,901
null
12
1,885
I have a MySQL table with approximately 3000 rows per user. One of the columns is a datetime field, which is mutable, so the rows aren't in chronological order. I'd like to visualize the time distribution in a chart, so I need a number of individual datapoints. 20 datapoints would be enough. I could do this: ``` sel...
Distribution of table in time
CC BY-SA 3.0
null
2008-08-06T16:58:34.153
2018-02-22T17:06:17.497
2012-05-21T17:37:00.937
866,022
136
[ "sql", "mysql" ]
3,741
2
null
3,739
1
null
I'm not at work so this is off the top of my head, but: If you get a reference to the Site, can you try to create a new SPSite with the SYSTEM-UserToken? ``` SPUserToken sut = thisSite.RootWeb.AllUsers["SHAREPOINT\SYSTEM"].UserToken; using (SPSite syssite = new SPSite(thisSite.Url,sut) { // Do what you have to do...
null
CC BY-SA 3.0
null
2008-08-06T17:31:48.220
2018-02-22T17:03:00.670
2018-02-22T17:03:00.670
305,953
91
null
3,738
2
null
3,589
0
null
Toad for SQL Server does this nicely, if you're considering a commercial product.
null
CC BY-SA 2.5
null
2008-08-06T17:27:15.470
2008-08-06T17:27:15.470
null
null
116
null
3,742
2
null
3,088
0
null
I agree with Leac. I actually play with [Scratch](http://scratch.mit.edu/) sometimes if I'm bored. It's a pretty fun visual way of looking at code. How it works is, they give you a bunch of "blocks" (these look like legos) which you can stack. And by stacking these blocks, and interacting with the canvas (where you...
null
CC BY-SA 2.5
null
2008-08-06T17:32:33.680
2008-12-25T01:24:18.917
null
null
40
null
3,748
1
null
null
415
794,126
So I'm using an app that stores images heavily in the DB. What's your outlook on this? I'm more of a type to store the location in the filesystem, than store it directly in the DB. What do you think are the pros/cons?
Storing Images in DB - Yea or Nay?
CC BY-SA 2.5
0
2008-08-06T17:38:35.383
2012-01-26T16:05:51.933
2008-11-28T05:41:10.393
9,021
514
[ "database", "image", "theory", "storage", "blob" ]
3,756
2
null
3,748
14
null
Normally, I'm storngly against taking the most expensive and hardest to scale part of your infrastructure (the database) and putting all load into it. On the other hand: It greatly simplifies backup strategy, especially when you have multiple web servers and need to somehow keep the data synchronized. Like most other ...
null
CC BY-SA 2.5
null
2008-08-06T17:42:21.787
2008-08-06T17:42:21.787
null
null
91
null
3,753
2
null
3,748
1
null
Your web-server (I'm assuming you are using one) is designed to handle images while a database is not. Thus I would vote heavily on the nay side. Store just the path (and maybe file info too) in the database.
null
CC BY-SA 2.5
null
2008-08-06T17:40:57.767
2008-08-06T18:55:02.703
2008-08-06T18:55:02.703
1,384,652
1,384,652
null