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
5,724
1
5,823
null
66
46,736
Is there a better windows command line shell other than `cmd` which has better copy paste between Windows' windows and console windows?
Better windows command line shells
CC BY-SA 2.5
0
2008-08-08T06:15:11.033
2015-08-20T22:26:38.360
2009-10-23T11:23:17.587
40,342
108,465
[ "windows", "shell", "cmd" ]
5,722
2
null
4,306
1
null
The best way to implement sparse matrices is to not to implement them - atleast not on your own. I would suggest to BLAS (which I think is a part of LAPACK) which can handle really huge matrices.
null
CC BY-SA 2.5
null
2008-08-08T06:11:20.107
2008-08-08T06:11:20.107
null
null
108,465
null
5,709
2
null
5,706
32
null
Request.Form only includes variables posted through a form, while Request.Params includes both posted form variables and get variables specified as URL parameters.
null
CC BY-SA 2.5
null
2008-08-08T05:51:54.420
2008-08-08T05:51:54.420
null
null
423
null
5,719
2
null
1,983
3
null
As others have mentioned, Lists and tuples are both containers which can be used to store python objects. Lists are extensible and their contents can change by assignment, on the other hand tuples are immutable. Also, lists cannot be used as keys in a dictionary whereas tuples can.
null
CC BY-SA 2.5
null
2008-08-08T06:06:33.237
2008-08-08T06:06:33.237
null
null
108,465
null
5,725
2
null
5,724
2
null
Not sure what specifically you mean by but try [Take Command](http://www.jpsoft.com). Take Command supports Shift+Ins for paste and Shift+Del for cut, but apparently nothing for copy, will dig some more.
null
CC BY-SA 2.5
null
2008-08-08T06:16:14.870
2008-08-08T11:11:34.617
2008-08-08T11:11:34.617
267
267
null
5,726
2
null
5,724
25
null
Windows PowerShell is the obvious choice when it comes to "better windows command line shell other than cmd". Its clipboard handling isn't that much of an improvement - mark with the mouse, Enter to copy, or right mouse click to paste.
null
CC BY-SA 2.5
null
2008-08-08T06:17:23.353
2008-08-08T06:17:23.353
null
null
615
null
5,727
1
5,754
null
468
88,242
Why are pointers such a leading factor of confusion for many new, and even old, college level students in C or C++? Are there any tools or thought processes that helped you understand how pointers work at the variable, function, and beyond level? What are some good practice things that can be done to bring somebody t...
What are the barriers to understanding pointers and what can be done to overcome them?
CC BY-SA 2.5
0
2008-08-08T06:17:51.543
2023-02-26T08:06:58.773
2010-05-23T12:28:00.993
193,778
568
[ "c++", "c", "pointers" ]
5,734
2
null
5,727
10
null
I don't think pointers as a concept are particularly tricky - most students' mental models map to something like this and some quick box sketches can help. The difficulty, at least that which I've experienced in the past and seen others deal with, is that the management of pointers in C/C++ can be unncessarily convolu...
null
CC BY-SA 2.5
null
2008-08-08T06:26:50.013
2008-08-08T06:35:42.570
2008-08-08T06:35:42.570
364
364
null
5,735
2
null
5,727
0
null
I don't see what is so confusing about pointers. They point to a location in memory, that is it stores the memory address. In C/C++ you can specify the type the pointer points to. For example: ``` int* my_int_pointer; ``` Says that my_int_pointer contains the address to a location that contains an int. The problem ...
null
CC BY-SA 2.5
null
2008-08-08T06:28:48.947
2008-08-08T06:28:48.947
null
null
486
null
5,733
2
null
5,600
0
null
A Primary Key needn't be an autoincrementing field, in many cases this just means you are complicating your table structure. Instead, a Primary Key should be the minimum collection of attributes (note that most DBMS will allow a composite primary key) that uniquely identifies a tuple. In technical terms, it should be...
null
CC BY-SA 2.5
null
2008-08-08T06:25:50.030
2008-08-08T06:25:50.030
null
null
188
null
5,739
2
null
5,251
7
null
Googling for "GWT +sparklines" has gotten me to [gchart](http://code.google.com/p/gchart/), which seems like what I need. From what I understand - it's all client side and requires nothing more than their JAR file.
null
CC BY-SA 2.5
null
2008-08-08T06:33:18.190
2008-08-08T06:33:18.190
null
null
573
null
5,745
2
null
5,743
2
null
Well, not free. But we have had very good results with Nevron. Their support is excellent as well. Another good option is TeeCharts.
null
CC BY-SA 2.5
null
2008-08-08T06:48:44.850
2008-08-08T06:48:44.850
null
null
380
null
5,743
1
5,771
null
19
4,357
I'm writing some data acquisition software and need a gui plotting library that is fast enough to do realtime updated graphs. I've been using Nplot which is pretty good for a free library, but I'm wondering if there are any better libraries (preferably free or cheap).
What is a good plotting library for .Net?
CC BY-SA 2.5
0
2008-08-08T06:40:46.553
2009-06-27T10:43:49.470
null
null
327
[ ".net", "windows", "graphing" ]
5,736
2
null
5,727
50
null
The reason pointers seem to confuse so many people is that they mostly come with little or no background in computer architecture. Since many don't seem to have an idea of how computers (the machine) is actually implemented - working in C/C++ seems alien. A drill is to ask them to implement a simple bytecode based vir...
null
CC BY-SA 2.5
null
2008-08-08T06:29:59.913
2008-08-08T06:29:59.913
null
null
108,465
null
5,744
2
null
5,251
0
null
gchart looks seriously awesome. Go with it !
null
CC BY-SA 2.5
null
2008-08-08T06:44:30.053
2008-08-08T06:44:30.053
null
null
699
null
5,728
2
null
5,727
27
null
> Why are pointers such a leading factor of confusion for many new, and even old, college level students in the C/C++ language? The concept of a placeholder for a value - variables - maps onto something we're taught in school - algebra. There isn't an existing parallel you can draw without understanding how memory i...
null
CC BY-SA 3.0
null
2008-08-08T06:19:41.587
2015-02-25T17:04:17.813
2015-02-25T17:04:17.813
710,693
257
null
5,746
2
null
1,983
2
null
If you can find a solution that works with tuples, use them, as it forces immutability which kind of drives you down a more functional path. You almost never regret going down the functional/immutable path.
null
CC BY-SA 2.5
null
2008-08-08T06:48:52.137
2008-08-08T06:48:52.137
null
null
699
null
5,741
1
null
null
6
836
Using Firebug v1.20b7 with Firefox v3.0.1 I use firebug a lot for web devlopment. I have very often the problem that Firebug won't show its web console for seeing the `POSTs` and `GETs`. I can view all the other tabs, including the NET tab that gives me a lot of the same information that the CONSOLE tab does. Curious...
Firebug won't display console feeds for some of my sites
CC BY-SA 3.0
null
2008-08-08T06:37:32.113
2016-11-29T06:20:32.330
2016-11-29T06:20:32.330
3,604,745
711
[ "firefox", "firebug" ]
5,712
2
null
2,056
36
null
Also worth remembering is that there are different types of MVPs as well. Fowler has broken the pattern into two - Passive View and Supervising Controller. When using Passive View, your View typically implement a fine-grained interface with properties mapping more or less directly to the underlaying UI widget. For ins...
null
CC BY-SA 3.0
null
2008-08-08T05:55:12.633
2015-05-04T03:34:56.047
2015-05-04T03:34:56.047
63,550
1,199,387
null
5,749
2
null
5,269
9
null
"C# : Left to right, and processing stops if a match (evaluates to true) is found." Zombie sheep is wrong. The question is about the && operator, not the || operator. In the case of && evaluation will stop if a FALSE is found. In the case of || evaluation stops if a TRUE is found.
null
CC BY-SA 4.0
null
2008-08-08T06:51:14.283
2022-10-15T18:04:16.743
2022-10-15T18:04:16.743
1,255,289
580
null
5,759
1
5,761
null
111
137,840
I just moved over to the Visual Basic team here at work. What is the equivalent keyword to `break` in Visual Basic, that is, to exit a loop early but not the method?
Equivalent VB keyword for 'break'
CC BY-SA 3.0
0
2008-08-08T07:11:40.560
2018-03-20T09:07:23.560
2012-05-19T16:32:38.087
63,550
713
[ "vb.net", "loops", "vb6", "exit" ]
5,771
2
null
5,743
4
null
There's a good post about this [here](http://weblogs.asp.net/gbarnett/archive/2008/06/03/visualising-data.aspx) and [here](http://weblogs.asp.net/gbarnett/archive/2008/03/23/free-graphing-libraries-for-net-my-thoughts.aspx). I have also used NPlot in our last project since it's easier to use.
null
CC BY-SA 2.5
null
2008-08-08T07:49:30.297
2008-08-08T07:49:30.297
null
null
718
null
5,750
2
null
5,727
3
null
I think that the main reason that people have trouble with it is because it's generally not taught in an interesting and engaging manner. I'd like to see a lecturer get 10 volunteers from the crowd and give them a 1 meter ruler each, get them to stand around in a certain configuration and use the rulers to point at eac...
null
CC BY-SA 2.5
null
2008-08-08T06:52:21.863
2010-11-11T13:57:27.450
2010-11-11T13:57:27.450
63,550
358
null
5,776
2
null
5,743
1
null
You might want to take a look at [Open Flash Chart](http://teethgrinder.co.uk/open-flash-chart/). It's an open source graphing tool built in flash and can be dynamically updated. Check out the [Ajax example](http://teethgrinder.co.uk/open-flash-chart/gallery-js-2.php) for an idea of what it can do.
null
CC BY-SA 2.5
null
2008-08-08T08:04:37.460
2008-08-08T08:04:37.460
null
null
383
null
5,770
2
null
3,147
3
null
The Objective-C language has had "Categories" since the early 1990s; these are essentially the same thing as .NET Extension Methods. When looking for best practices you might want to see what rules of thumb Objective-C (Cocoa & NeXT) developers have come up with around them. [Brent Simmons](http://inessential.com/) (...
null
CC BY-SA 2.5
null
2008-08-08T07:46:19.697
2008-08-08T07:46:19.697
null
null
714
null
5,782
2
null
5,759
4
null
`Exit` [construct], and intelisense will tell you which one(s) are valid in a particular place.
null
CC BY-SA 3.0
null
2008-08-08T08:37:27.080
2016-02-07T17:46:25.430
2016-02-07T17:46:25.430
2,921,691
100
null
5,785
2
null
5,743
4
null
If you need something to display in a WinForms app then you can try out the free [ZedGraph](http://zedgraph.org/wiki/index.php?title=Main_Page). If it is ASP.NET then I recently have used [Google Charts](http://code.google.com/apis/chart/) with some great results.
null
CC BY-SA 2.5
null
2008-08-08T08:54:26.783
2008-08-08T08:54:26.783
null
null
200
null
5,764
2
null
5,741
0
null
Well, 1.20b7 is technically a version of Firebug. :) I've had problems with certain features off and on, but a restart of Firefox seems to fix it more often than not.
null
CC BY-SA 2.5
null
2008-08-08T07:23:43.423
2008-08-08T07:23:43.423
null
null
null
null
5,788
2
null
5,787
116
null
Easy one! "\t" Edit: In fact, here's something official: [Escape Sequences](http://msdn.microsoft.com/en-us/library/h21280bw.aspx)
null
CC BY-SA 2.5
null
2008-08-08T09:30:40.860
2008-08-08T09:43:09.290
2008-08-08T09:43:09.290
615
615
null
5,761
2
null
5,759
196
null
In both Visual Basic 6.0 and [VB.NET](http://en.wikipedia.org/wiki/Visual_Basic_.NET) you would use: - `Exit For`- `Wend`- `Exit Do` depending on the loop type. See [Exit Statements](https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/exit-statement) for more details.
null
CC BY-SA 3.0
null
2008-08-08T07:13:56.237
2018-03-20T09:07:23.560
2018-03-20T09:07:23.560
33
33
null
5,756
2
null
5,649
85
null
After installing any version of Xcode targeting Intel-based Macs, you should be able to write assembly code. Xcode is a suite of tools, only one of which is the IDE, so you don't have to use it if you don't want to. (That said, if there are specific things you find clunky, please file a bug at [Apple's bug reporter](...
null
CC BY-SA 3.0
null
2008-08-08T07:07:10.540
2016-01-24T14:07:27.963
2016-01-24T14:07:27.963
982,161
714
null
5,786
2
null
2,034
13
null
I usually use svn through a gui, either my IDE or a client. Because of that, I can never remember the codes when I do have to resort to the command line. I find this cheat sheet a great help: [Subversion Cheat Sheet](http://www.addedbytes.com/cheat-sheets/subversion-cheat-sheet/)
null
CC BY-SA 3.0
null
2008-08-08T09:20:37.587
2013-01-28T04:32:59.587
2013-01-28T04:32:59.587
null
170
null
5,787
1
5,788
null
74
110,457
I'm just in the process of parsing some text and can't remember what the escape character is for a tab in C#?
Tab Escape Character?
CC BY-SA 3.0
0
2008-08-08T09:28:41.423
2016-03-11T20:38:15.580
2013-10-17T19:44:42.197
2,000,557
383
[ "c#" ]
5,803
2
null
5,802
0
null
You could create a template in the template pane in Management Studio. And then use that template every time you want to create a new table. Failing that, you could store the CreatedOn and CreatedBy fields in an Audit trail table referencing the original table and id. Failing that, do it manually.
null
CC BY-SA 2.5
null
2008-08-08T10:43:41.913
2008-08-08T10:43:41.913
null
null
383
null
5,792
2
null
5,791
4
null
VB is full of things like that trying to make it both "like English" and comfortable for people who are used to languages that use () and {} a lot. And on the other side, as you already probably know, most of the time you can use () with function calls if you want to, but don't have to. I prefer IsNothing()... but I us...
null
CC BY-SA 4.0
null
2008-08-08T09:49:51.007
2021-02-14T16:24:08.603
2021-02-14T16:24:08.603
1,115,360
194
null
5,809
2
null
5,791
4
null
I'm leaning towards the "Is Nothing" alternative, primarily because it seems more OO. Surely Visual Basic [ain't](http://web.archive.org/web/20050308014055/http://ea.3leaf.com/2004/08/vb_adds_aint_ke.html) got the Ain't keyword.
null
CC BY-SA 4.0
null
2008-08-08T10:57:27.097
2021-02-19T17:57:14.913
2021-02-19T17:57:14.913
1,115,360
614
null
5,772
2
null
5,727
9
null
[An example of a tutorial with a good set of diagrams helps greatly with the understanding of pointers](http://www.augustcouncil.com/~tgibson/tutorial/ptr.html). Joel Spolsky makes some good points about understanding pointers in his [Guerrilla Guide to Interviewing](http://www.joelonsoftware.com/articles/fog00000000...
null
CC BY-SA 3.0
null
2008-08-08T07:54:39.897
2012-05-20T17:38:38.043
2012-05-20T17:38:38.043
321,731
381
null
5,791
1
5,837
null
134
209,051
Does anyone here use VB.NET and have a strong preference for or against using `IsNothing` as opposed to `Is Nothing` (for example, `If IsNothing(anObject)` or `If anObject Is Nothing...`)? If so, why? EDIT: If you think they're both equally acceptable, do you think it's best to pick one and stick with it, or is it OK...
IsNothing versus Is Nothing
CC BY-SA 4.0
0
2008-08-08T09:45:29.067
2021-09-22T08:32:18.860
2019-10-07T03:59:33.177
107,625
133
[ "vb.net", "nothing" ]
5,811
2
null
5,724
21
null
This probably is not exactly what you want, but you can take a look at [Console2](http://sourceforge.net/projects/console/) I have it configured so that shift+select auto copies and middle click pastes, really handy, internally it uses same old cmd.exe so you are not really getting a different shell. By the way, I g...
null
CC BY-SA 3.0
null
2008-08-08T11:06:24.380
2014-02-24T06:24:32.420
2014-02-24T06:24:32.420
2,096,990
238
null
5,790
2
null
1,898
6
null
I was bored so i modified some stuff i wrote. It try's to encapsulate the parsing in an OO manner whle cutting down on the amount of iterations through the file, it only iterates once at the top foreach. ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; na...
null
CC BY-SA 3.0
null
2008-08-08T09:39:26.223
2012-03-23T12:32:54.937
2012-03-23T12:32:54.937
99,297
580
null
5,802
1
5,812
null
9
4,713
Is there any way to use inheritance in database (Specifically in SQL Server 2005)? Suppose I have few field like , which I want to add on all of my entities. I looking for an alternative way instead of adding these fields to every table.
Inheritance in database?
CC BY-SA 2.5
null
2008-08-08T10:41:00.950
2014-11-25T20:40:04.863
2014-11-25T20:40:04.863
2,641,576
191
[ "sql", "database", "inheritance", "sql-server-2005" ]
5,810
2
null
3,607
2
null
Why can't you simply install a subversion server? If you download [VisualSVN Server](http://www.visualsvn.com/server/), which is free, you get a http server for your source code and can thus use the FogBugz scripts for integrating the two. The reason I'm asking is because all scripts and documentation so far assumes y...
null
CC BY-SA 2.5
null
2008-08-08T11:02:16.213
2008-08-08T11:02:16.213
null
null
267
null
5,812
2
null
5,802
3
null
There is no such thing as inheritance between tables in SQL Server 2005, and as noted by the others, you can get as far as getting help adding the necessary columns to the tables when you create them, but it won't be inheritance as you know it. Think of it more like a template for your source code files. As GateKille...
null
CC BY-SA 2.5
null
2008-08-08T11:08:22.923
2008-08-08T11:08:22.923
null
null
267
null
5,820
2
null
5,611
22
null
Adding, multiplying, or truncating a poor random source will give you a poor random result. See [Introduction to Randomness and Random Numbers](http://random.org/randomness/) for an explanation. You're right about PHP rand() function. See the second figure on [Statistical Analysis](http://random.org/analysis/) for a s...
null
CC BY-SA 2.5
null
2008-08-08T11:48:42.400
2008-08-08T11:48:42.400
null
null
341
null
5,819
2
null
3,607
0
null
I am not sure I follow you. Do you have the repositories on the network or on your C:\ drive? According to two of your posts, you have both, or neither, or one of them or... You can not get VisualSVN or Apache to safely serve repositories from a network share. Since you originally said you had the repositories on your...
null
CC BY-SA 2.5
null
2008-08-08T11:34:20.157
2008-08-08T11:34:20.157
null
null
267
null
5,826
2
null
5,802
0
null
You could use a data modeling tool such as ER/Studio or ERWin. Both tools have domain columns where you can define a column template that you can apply to any table. When the domain changes so do the associated columns. ER/Studio also has trigger templates that you can build and apply to any table. This is how we updat...
null
CC BY-SA 2.5
null
2008-08-08T12:00:55.197
2008-08-08T12:00:55.197
null
null
621
null
5,824
2
null
2,483
1
null
It's like the difference between Parse and TryParse. You use TryParse when you expect it might fail, but when you have strong assurance it won't fail you use Parse.
null
CC BY-SA 2.5
null
2008-08-08T12:00:01.940
2008-08-08T12:00:01.940
null
null
214
null
5,807
2
null
5,802
2
null
PostgreSQL has this feature. Just add this to the end of your table definition: ``` INHERITS FROM (tablename[, othertable...]) ``` The child table will have all the columns of its parent, and changes to the parent table will change the child. Also, everything in the child table will come up in queries to the parent ...
null
CC BY-SA 2.5
null
2008-08-08T10:55:20.640
2008-08-08T10:55:20.640
null
null
619
null
5,822
2
null
5,821
681
null
[T-SQL Reference for LIKE](https://learn.microsoft.com/en-us/sql/t-sql/language-elements/like-transact-sql?view=sql-server-ver15#using-wildcard-characters-as-literals): > You can use the wildcard pattern matching characters as literal characters. To use a wildcard character as a literal character, enclose the wildcard...
null
CC BY-SA 4.0
null
2008-08-08T11:59:36.340
2020-06-12T00:28:49.957
2020-06-12T00:28:49.957
1,402,846
267
null
5,821
1
5,822
null
440
250,686
How do I escape the underscore character? I am writing something like the following where clause and want to be able to find actual entries with _d at the end. ``` Where Username Like '%_d' ```
SQL Server Escape an Underscore
CC BY-SA 3.0
0
2008-08-08T11:56:36.207
2022-04-01T20:54:08.857
2016-07-06T21:05:41.460
66,173
383
[ "sql-server" ]
5,830
2
null
16
14
null
Create a class object and return a `list(T)` of the query.
null
CC BY-SA 3.0
null
2008-08-08T12:17:20.750
2012-10-14T12:13:18.410
2012-10-14T12:13:18.410
967,315
721
null
5,838
2
null
5,002
0
null
I worked on a project last summer that required some pretty heavy modifications to .NET Remoting. I don't remember all the specifics, but if we had more than one network interface, we couldn't get the out-of-the-box Remoting implementation to reliably detect which one the Remoting traffic came from, which did horrible ...
null
CC BY-SA 2.5
null
2008-08-08T12:28:57.543
2008-08-08T12:28:57.543
null
null
512
null
5,835
2
null
5,611
5
null
[random.org](http://random.org/clients/http/) has an API you can access via HTTP. > RANDOM.ORG is a true random number service that generates randomness via atmospheric noise.
null
CC BY-SA 3.0
null
2008-08-08T12:27:05.817
2015-07-16T19:14:34.820
2015-07-16T19:14:34.820
469,220
40
null
5,846
1
5,848
null
24
22,890
How do I turn the following 2 queries into 1 query ``` $sql = "SELECT level FROM skills WHERE id = $id LIMIT 1;"; $result = $db->sql_query($sql); $level = (int) $db->sql_fetchfield('level'); $db->sql_freeresult($result); ++$level; $sql = "UPDATE skills SET level = $level WHERE id = $id;"; $result = $db->sql_q...
Add 1 to a field
CC BY-SA 3.0
0
2008-08-08T12:34:20.887
2021-03-04T02:53:04.533
2018-02-20T04:25:56.593
9,112,450
1,384,652
[ "php", "mysql" ]
5,847
2
null
5,842
2
null
I know this doesn't answer your question directly, but it might be worth checking out the [SQL Server 2005 migration tool for Access](http://www.microsoft.com/downloads/details.aspx?FamilyID=d842f8b4-c914-4ac7-b2f3-d25fff4e24fb&displaylang=en). I've never used the tool, but it might be worth using with SQL Server 2005 ...
null
CC BY-SA 2.5
null
2008-08-08T12:35:16.377
2008-08-08T12:35:16.377
null
null
493
null
5,823
2
null
5,724
11
null
[Take Command](http://www.jpsoft.com/tcmddes.htm) does support Copy/Cut/Paste from the keyboard and the mouse. It's pretty handy if you do a lot of work from a command prompt. It also supports: - - - - - Note: It's a paid tool, with price of $99.95.
null
CC BY-SA 3.0
null
2008-08-08T11:59:40.503
2012-05-23T04:41:03.347
2012-05-23T04:41:03.347
267,491
206
null
5,837
2
null
5,791
127
null
If you take a look at the MSIL as it's being executed you'll see that it doesn't compile down to the exact same code. When you use IsNothing() it actually makes a call to that method as opposed to just evaluating the expression. The reason I would tend to lean towards using "Is Nothing" is when I'm negating it become...
null
CC BY-SA 2.5
null
2008-08-08T12:28:37.483
2008-08-08T12:28:37.483
null
null
493
null
5,842
1
9,200
null
14
32,182
Two users wanted to share the same database, originally written in MS Access, without conflicting with one another over a single MDB file. I moved the tables from a simple MS Access database to MySQL using its [Migration Toolkit](http://www.mysql.com/products/tools/migration-toolkit/) (which works well, by the way) an...
Issues using MS Access as a front-end to a MySQL database back-end?
CC BY-SA 2.5
0
2008-08-08T12:30:48.633
2009-09-12T14:04:24.460
null
null
726
[ "mysql", "database", "ms-access" ]
5,849
2
null
5,846
3
null
``` $sql = "UPDATE skills SET level = level + 1 WHERE id = $id"; ``` I just hope you are properly sanitising `$id` elsewhere in your code!
null
CC BY-SA 4.0
null
2008-08-08T12:36:22.863
2021-03-04T02:53:04.533
2021-03-04T02:53:04.533
9,193,372
48
null
5,851
2
null
5,846
11
null
This way: ``` UPDATE skills SET level = level + 1 WHERE id = $id ```
null
CC BY-SA 2.5
null
2008-08-08T12:36:42.113
2008-08-08T12:36:42.113
null
null
267
null
5,852
2
null
5,846
1
null
How about: ``` UPDATE skills SET level = level + 1 WHERE id = $id; ```
null
CC BY-SA 3.0
null
2008-08-08T12:37:17.980
2014-01-21T06:31:12.500
2014-01-21T06:31:12.500
1,931,841
729
null
5,850
2
null
5,846
2
null
try this ``` UPDATE skills SET level = level + 1 WHERE id = $id ```
null
CC BY-SA 3.0
null
2008-08-08T12:36:27.107
2014-01-21T06:31:01.000
2014-01-21T06:31:01.000
1,931,841
34
null
5,831
1
5,878
null
20
11,344
Does anyone have, or know of, a binary patch generation algorithm implementation in C#? Basically, compare two files (designated and ), and produce a patch file that can be used to upgrade the file to have the same contents as the file. The implementation would have to be relatively fast, and work with huge files....
Binary patch-generation in C#
CC BY-SA 3.0
0
2008-08-08T12:22:07.713
2015-07-04T06:22:36.257
2015-07-04T06:22:36.257
64,046
267
[ "c#", "file", "patch" ]
5,848
2
null
5,846
31
null
I get downmodded for this? ``` $sql = "UPDATE skills SET level = level+1 WHERE id = $id"; $result = $db->sql_query($sql); $db->sql_freeresult($result); ``` In Teifion's specific case, the phpBB DDL lists that particular field as NOT NULL, so there's no danger of incrementing NULL. In the general case, you should no...
null
CC BY-SA 3.0
null
2008-08-08T12:35:53.007
2012-11-14T13:16:17.707
2012-11-14T13:16:17.707
257
257
null
5,862
2
null
5,831
1
null
It might be worth checking out what some of the other guys are doing in this space and not necessarily in the C# arena either. [This is a library written in c#](http://www.menees.com/index.html) SVN also has a binary diff algorithm and I know there's an implementation in python although I couldn't find it with a quic...
null
CC BY-SA 2.5
null
2008-08-08T12:48:09.753
2008-08-08T12:48:09.753
null
null
493
null
5,861
2
null
5,846
-1
null
Mat: That's what pasted in from the question. It hasn't been edited, so I attribute that to a bug in Markdown. But, oddly enough, I have noticed. Also: yes, `mysql_escape_string()`!
null
CC BY-SA 3.0
null
2008-08-08T12:47:15.853
2012-10-03T08:15:37.333
2012-10-03T08:15:37.333
1,108,484
257
null
5,855
1
6,687
null
9
1,137
I've found many sources that talk about the automated Eclipse PDE process. I feel these sources don't do a good job explaining what's going on. I can create the deployable package, in a semi-manual process via the Feature Export. The automated process requires knowledge of how the org.eclipse.pde.build scripts wor...
Automate builds for Java RCP for deployment with JNLP
CC BY-SA 2.5
0
2008-08-08T12:40:02.793
2020-06-13T09:15:36.750
null
null
728
[ "java", "build-automation", "rcp", "jnlp" ]
5,867
2
null
5,724
4
null
Depending on what you're trying to do with the shell, [rxvt](http://www.google.com/search?q=rxvt+cygwin) in [cygwin](http://www.cygwin.com/) is good. You'll get the nicety of auto copy on selection and middle click paste. The biggest downside is that some windows console apps don't play nice with cygwin.
null
CC BY-SA 2.5
null
2008-08-08T12:54:00.630
2008-08-08T12:54:00.630
null
null
728
null
5,857
1
5,860
null
13
12,094
I have a page upon which a user can choose up to many different paragraphs. When the link is clicked (or button), an email will open up and put all those paragraphs into the body of the email, address it, and fill in the subject. However, the text can be too long for a mailto link. Any way around this? --- We w...
mailto link for large bodies
CC BY-SA 4.0
0
2008-08-08T12:40:48.627
2018-08-08T16:28:31.963
2018-08-08T16:28:31.963
7,951,483
730
[ "mailto" ]
5,860
2
null
5,857
15
null
By putting the data into a form, I was able to make the body around 1800 characters long before the form stopped working. The code looked like this: ``` <form action="mailto:youremail@domain.com"> <input type="hidden" name="Subject" value="Email subject"> <input type="hidden" name="Body" value="Email body"> ...
null
CC BY-SA 2.5
null
2008-08-08T12:47:13.653
2008-08-08T12:58:40.650
2008-08-08T12:58:40.650
267
267
null
5,874
1
null
null
5
9,821
It seems like drag and drop upload widgets disappeared from the face of Web 2.0. The last one of these I remember using was an activex widget, and inability of using it in anything other than IE doomed it. Have you used or seen one of these recently?
Drag and drop ftp file upload web widgets
CC BY-SA 2.5
0
2008-08-08T13:00:37.090
2021-10-25T12:31:41.203
null
null
556
[ "upload", "ftp" ]
5,879
2
null
5,874
1
null
[FTP Drop](http://widgets.yahoo.com/widgets/ftp-drop) for Yahoo Widgets allows you to drag files over the widget and the file will be sent to the defined ftp server.
null
CC BY-SA 2.5
null
2008-08-08T13:03:38.300
2008-08-08T13:03:38.300
null
null
383
null
5,869
2
null
4,529
0
null
Unfortunately, it seems SQL Server 2008 Client Tools requires Visual Studio 2008 SP1, and I'm loath to install a beta of this on my main development machine. I'll wait until SP1 is RTM before I move on. : Yes, I do have Visual Studio 2008 on this machine, but I'd like to avoid beta installations of debugger applicati...
null
CC BY-SA 2.5
null
2008-08-08T12:57:03.633
2008-08-08T13:26:18.473
2008-08-08T13:26:18.473
267
267
null
5,872
1
5,887
null
6
2,285
If you are working in PHP (or I guess any programming language) and using subversion as your source control, is there a way to take your project (for example): > C:\Projects\test\.svn C:\Projects\test\docs\ C:\Projects\test\faq.php C:\Projects\test\guestbook.php C:\Projects\test\index.php C:\Projects\test\te...
Making a production build of a PHP project with Subversion
CC BY-SA 4.0
null
2008-08-08T12:57:55.880
2019-07-30T02:31:21.540
2019-01-18T10:35:58.693
567,854
58
[ "php", "svn", "scripting", "tortoisesvn", "build-process" ]
5,878
2
null
5,831
5
null
Sorry I couldn't be more help. I would definately keep looking at xdelta because I have used it a number of times to produce quality diffs on 600MB+ ISO files we have generated for distributing our products and it performs very well.
null
CC BY-SA 2.5
null
2008-08-08T13:03:06.197
2008-08-08T13:03:06.197
null
null
493
null
5,880
1
5,885
null
10
2,144
I'm pretty new to my company (2 weeks) and we're starting a new platform for our system using .NET 3.5 Team Foundation from DotNetNuke. Our "architect" is suggesting we use one class project. Of course, I chime back with a "3-tier" architecture (Business, Data, Web class projects). Is there any disadvantages to using...
Are there any negative reasons to use an N-Tier solution?
CC BY-SA 2.5
0
2008-08-08T13:04:02.980
2008-09-08T17:12:24.007
2008-08-08T14:23:07.813
721
721
[ "architecture", "n-tier-architecture" ]
5,863
1
15,966
null
10
2,767
I'm just getting into creating some WCF services, but I have a requirement to make them backward compatible for legacy (.NET 1.1 and 2.0) client applications. I've managed to get the services to run correctly for 3.0 and greater clients, but when I publish the services using a basicHttpBinding endpoint (which I beli...
WCF Service - Backward compatibility issue
CC BY-SA 3.0
null
2008-08-08T12:48:25.197
2011-12-13T19:43:04.983
2011-12-13T19:43:04.983
76,337
377
[ "c#", ".net", "wcf", "web-services", "backwards-compatibility" ]
5,887
2
null
5,872
6
null
If you use TortoiseSVN, you can use the export feature to automatically strip out all of the .svn files. I think other svn things have the same feature. Right click the root project folder, then select `TortoiseSVN > Export`, and tell it where you want the `.svn` free directory.
null
CC BY-SA 4.0
null
2008-08-08T13:10:13.250
2019-07-30T02:30:30.410
2019-07-30T02:30:30.410
10,221,765
30
null
5,883
2
null
5,880
3
null
it tends to take an inexperienced team longer to build 3-tier.It's more code, so more bugs. I'm just playing the devil's advocate though.
null
CC BY-SA 2.5
null
2008-08-08T13:06:16.813
2008-08-08T13:06:16.813
null
null
34
null
5,885
2
null
5,880
9
null
I guess a fairly big downside is that the extra volume of code that you have to write, manage and maintain for a project may just be overkill. It's all down to what's appropriate for the size of the project, the expected life of the final project and the budget! Sometimes, whilst doing things 'properly' is appealing...
null
CC BY-SA 2.5
null
2008-08-08T13:08:40.927
2008-08-08T13:08:40.927
null
null
475
null
5,884
2
null
5,872
2
null
Copy all the files manually or using your existing method for the first time. Then, since I take it you're on a Windows platform, install [SyncToy](http://www.microsoft.com/downloads/details.aspx?FamilyId=E0FC1154-C975-4814-9649-CCE41AF06EB7&displaylang=en) and configure it in the [subscribe method](http://en.wikipedi...
null
CC BY-SA 4.0
null
2008-08-08T13:07:03.787
2019-07-30T02:31:21.540
2019-07-30T02:31:21.540
10,221,765
59
null
5,889
2
null
5,791
29
null
I agree with "Is Nothing". As stated above, it's easy to negate with "IsNot Nothing". I find this easier to read... ``` If printDialog IsNot Nothing Then 'blah End If ``` than this... ``` If Not obj Is Nothing Then 'blah End If ```
null
CC BY-SA 2.5
null
2008-08-08T13:11:51.640
2008-08-08T13:11:51.640
null
null
702
null
5,894
1
5,906
null
18
9,441
I've been tasked (by my wife) with creating a program to allow her to track the family trees on both sides of our family. Does anyone know of a cost-effective (free) control to represent this type of information? What I'm looking for is a modified org-chart type chart/tree. The modification is that any node should h...
Genealogy Tree Control
CC BY-SA 4.0
0
2008-08-08T13:15:34.703
2021-10-25T12:30:07.773
2019-01-20T13:59:12.820
567,854
733
[ "c#", "controls", "tree", "genealogy" ]
5,898
2
null
5,874
2
null
The [Dojo Toolkit](http://dojotoolkit.org/) JavaScript library supports some drag & drop functionality that I've seen work in IE6+ and FF2+. The nice thing about Dojo and other JS libraries is that they abstract away all of the browser detection stuff. I'm sure other JS libraries support this functionality.
null
CC BY-SA 2.5
null
2008-08-08T13:18:34.307
2008-08-08T13:18:34.307
null
null
357
null
5,901
2
null
5,791
1
null
I initially used IsNothing but I've been moving towards using Is Nothing in newer projects, mainly for readability. The only time I stick with IsNothing is if I'm maintaining code where that's used throughout and I want to stay consistent.
null
CC BY-SA 2.5
null
2008-08-08T13:24:51.097
2008-08-08T13:24:51.097
null
null
741
null
5,900
2
null
4,529
3
null
If you have Visual Studio 2008 installed you will get a validation error and you cannot install SQL server 2008 until you install Visual Studio 2008 SP1. If you don't have Visual Studio 2008 installed it should not be a problem. So if you do have Visual Studio 2008 wait till August 11th since that is the day that Visua...
null
CC BY-SA 2.5
null
2008-08-08T13:23:40.523
2008-08-08T13:23:40.523
null
null
740
null
5,868
2
null
5,857
0
null
Does the e-mail content need to be in the e-mail? Could you store the large content somewhere centrally (file-share/FTP site) then just send a link to the content? This makes the recipient have an extra step, but you have a consistent e-mail size, so won't run into reliability problems due to unexpectedly large or ex...
null
CC BY-SA 2.5
null
2008-08-08T12:56:31.827
2008-08-08T12:56:31.827
null
null
733
null
5,899
2
null
5,880
2
null
I would be pushing hard for the N tiered approach even if it's a small project. If you use an ORM tool like codesmith + nettiers you will be able to quickly setup the projects and be developing code that solves your business problems quickly. It kills me when you start a new project and you spend days sitting around s...
null
CC BY-SA 2.5
null
2008-08-08T13:18:38.147
2008-08-08T13:18:38.147
null
null
493
null
5,876
1
null
null
1
8,857
I use [dnsmasq](http://www.thekelleys.org.uk/dnsmasq/doc.html) to resolve DNS queries on my home network. Unfortunately, if a domain name is not known, it will append my own domain name to the request which means that I always end up viewing my own site in a browser. For example, if I enter [http://dlksfhoiahdsfiuhsdf...
How do I prevent dnsmasq from appending my domain name to invalid domain requests?
CC BY-SA 2.5
0
2008-08-08T13:01:48.757
2021-10-25T12:31:19.277
2008-10-02T23:59:30.343
726
726
[ "dns", "dnsmasq" ]
5,906
2
null
5,894
5
null
[Geni](http://www.geni.com/) is probably what your looking for.
null
CC BY-SA 2.5
null
2008-08-08T13:31:30.523
2008-08-08T13:31:30.523
null
null
383
null
5,902
2
null
5,894
0
null
I haven't thought too hard about this, but I reckon you could get a Custom Treeview in WPF to do what you want. I was reading an [article on code project a while back that implemented an org chart](http://www.codeproject.com/KB/WPF/CustomTreeViewLayout.aspx) this way...
null
CC BY-SA 2.5
null
2008-08-08T13:28:45.130
2008-08-08T13:28:45.130
null
null
493
null
5,892
1
5,903
null
11
1,293
I've opened an old workspace that is a libray and its test harness. It used to work fine but now doesn't and older versions of the code don't work either with the same errors. I've tried recreating the project and that causes the same errors too. Nothing seems out of order in project settings and the code generated wor...
Link issues (VC6)
CC BY-SA 3.0
null
2008-08-08T13:13:08.920
2021-10-25T12:23:13.527
2016-12-20T08:39:47.180
2,912,665
342
[ "c++", "visual-c++", "linker", "visual-c++-6" ]
5,904
2
null
5,894
2
null
I'm all for writing your own software when something doesn't suit your needs and a frequent re-inventor of the wheel. But this honestly seems like one of those things were the solution is readily available, in this case in the form of [Family Tree Maker](http://www.familytreemaker.com/) And at a mere $40 I would vent...
null
CC BY-SA 4.0
null
2008-08-08T13:30:36.110
2021-10-25T12:30:07.773
2021-10-25T12:30:07.773
17,169,050
194
null
5,908
1
5,914
null
7
20,584
I need to get a log of user access to our `SQL Server` so I can track and . Is there a hidden table or something I'm missing that has this information for me? To my knowledge the application I'm looking at does not track this at the application level. I'm currently working on `SQL Server 2000`, but will moving to `SQ...
User access log to SQL Server
CC BY-SA 3.0
0
2008-08-08T13:34:38.770
2011-10-11T08:30:32.527
2011-10-11T08:30:32.527
805,252
71
[ "sql-server", "logging", "statistics" ]
5,907
2
null
3,975
4
null
First thing to be aware of: When you upgrade from 2000 to 2005 (by using detach and attach) make sure that you: 1. Set compability to 90 2. Rebuild the indexes 3. Run update statistics with full scan If you don't do this you will get suboptimal plans. IF the table is mostly write you want as few indexes as possi...
null
CC BY-SA 3.0
null
2008-08-08T13:32:30.550
2012-03-02T07:24:06.467
2012-03-02T07:24:06.467
268,273
740
null
5,754
2
null
5,727
754
null
Pointers is a concept that for many can be confusing at first, in particular when it comes to copying pointer values around and still referencing the same memory block. I've found that the best analogy is to consider the pointer as a piece of paper with a house address on it, and the memory block it references as the ...
null
CC BY-SA 2.5
null
2008-08-08T06:58:48.700
2010-06-29T08:11:15.823
2010-06-29T08:11:15.823
267
267
null
5,912
2
null
5,876
0
null
I tried removing from my own configuration to replicate your issue and it did not produce this behaviour. It's the only other parameter I could find that might be close to relevant. What does your hosts file look like? Maybe something weird is going on there that makes it think all weird domains are local to your ne...
null
CC BY-SA 4.0
null
2008-08-08T13:36:01.230
2021-10-25T12:31:19.277
2021-10-25T12:31:19.277
17,169,050
59
null
5,914
2
null
5,908
7
null
In SQL Server 2005, go to tree view on the left and select Server (name of the actual server) > Management > Activity Monitor. Hope this helps.
null
CC BY-SA 2.5
null
2008-08-08T13:36:47.923
2008-08-08T13:36:47.923
null
null
299
null
5,903
2
null
5,892
6
null
One possibility lies with Win32 ANSI/Unicode "name-mangling", which turns the symbol `GetMessage` into either `GetMessageA` or `GetMessageW`. There are three possibilities: 1. Windows.h hasn't been loaded, so GetMessage stays GetMessage 2. Windows.h was loaded with symbols set for ANSI, so GetMessage becomes GetMessa...
null
CC BY-SA 3.0
null
2008-08-08T13:30:03.507
2015-12-21T15:23:23.250
2015-12-21T15:23:23.250
5,348,281
533
null
5,918
1
5,984
null
5
1,284
Yahoo has separate map for India ( which has more details than the regular maps.yahoo.com) at [http://in.maps.yahoo.com/](http://in.maps.yahoo.com/) . But when I use the API it goes to default map. How do I get API access to YMaps India?
API Yahoo India Maps
CC BY-SA 2.5
0
2008-08-08T13:39:03.487
2021-10-25T12:27:22.547
2015-06-16T14:37:07.007
1,118,488
482
[ "yahoo-api", "yahoo-maps" ]