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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4,976 | 2 | null | 4,949 | 2 | null | One way to use subversion for PHP development is too setup a repository for one or all three developers, and use this repository, more as a syncing tool, than true version control.
You could,
- Make a repo- Add your entire PHP document structure of your project- Checkout a copy of this repo into the correct spot on y... | null | CC BY-SA 2.5 | null | 2008-08-07T17:04:14.220 | 2009-02-06T06:21:17.763 | 2009-02-06T06:21:17.763 | 609 | 609 | null |
4,972 | 2 | null | 4,954 | 7 | null | Consider an example in Ruby:
```
puts "Matched!" unless /\d{3}-\d{4}/.match("555-1234").nil?
puts "Didn't match!" if /\d{3}-\d{4}/.match("Not phone number").nil?
```
The "/\d{3}-\d{4}/" is the regular expression, and as you can see it is a VERY concise way of finding a match in a string.
Furthermore, using groups y... | null | CC BY-SA 2.5 | null | 2008-08-07T17:02:10.353 | 2008-08-07T17:02:10.353 | null | null | 122 | null |
4,988 | 2 | null | 4,891 | 0 | null | BrianLy hit the nail on the head, but I'd also add that you may end up using different databases at different levels of development. It's not uncommon for developers to use SQLite on their workstation when they're coding against their personal development server, and then have the staging and/or production sites using ... | null | CC BY-SA 2.5 | null | 2008-08-07T17:15:01.593 | 2008-08-07T17:15:01.593 | null | null | 676 | null |
4,963 | 2 | null | 4,923 | 14 | null | There is no pure CSS/HTML way to achieve this, as far as I know. Your best bet would be to do it in pre-processing (`if list length > 150, split into 3 columns, else if > 70, split into 2 columns, else 1`).
The other option, using JavaScript (I'm not familiar with the [jQuery](https://jquery.com/) library specifica... | null | CC BY-SA 3.0 | null | 2008-08-07T16:51:54.697 | 2018-04-05T20:06:40.493 | 2018-04-05T20:06:40.493 | 1,220,550 | 96 | null |
4,982 | 2 | null | 4,954 | 0 | null | If you're just starting out with regular expressions, I heartily recommend a tool like The Regex Coach:
[http://www.weitz.de/regex-coach/](http://www.weitz.de/regex-coach/)
also heard good things about RegexBuddy:
[http://www.regexbuddy.com/](http://www.regexbuddy.com/)
| null | CC BY-SA 2.5 | null | 2008-08-07T17:10:14.083 | 2008-08-07T17:10:14.083 | null | null | 676 | null |
4,983 | 2 | null | 4,973 | 0 | null | Just trying to help out here so the code is more readable.
Remember that you can insert code snippets by clicking on the button at the top with "101010". Just enter your code then highlight it and click the button.
Here is an example:
```
<html>
<body>
<style type="text/css">
.rightfloat {
... | null | CC BY-SA 3.0 | null | 2008-08-07T17:13:35.260 | 2016-06-01T17:08:32.120 | 2016-06-01T17:08:32.120 | 1,954,886 | 194 | null |
4,973 | 1 | 5,103 | null | 40 | 176,866 | I am trying to lay out a table-like page with two columns. I want the rightmost column to dock to the right of the page, and this column should have a distinct background color. The content in the right side is almost always going to be smaller than that on the left. I would like the div on the right to always be ta... | Setting a div's height in HTML with CSS | CC BY-SA 3.0 | 0 | 2008-08-07T17:02:23.413 | 2019-06-02T14:46:57.467 | 2016-11-30T09:31:39.410 | 2,571,493 | 404 | [
"html",
"css"
] |
4,979 | 2 | null | 4,973 | 2 | null | I had the same problem on my site ([shameless plug](http://woarl.com)).
I had the nav section "float: right" and the main body of the page has a background image about 250px across aligned to the right and "repeat-y". I then added something with "clear: both" to it. Here is the W3Schools and the [CSS clear property](h... | null | CC BY-SA 2.5 | null | 2008-08-07T17:07:05.413 | 2008-08-07T17:12:39.397 | 2008-08-07T17:12:39.397 | 1,384,652 | 1,384,652 | null |
4,995 | 1 | null | null | 5 | 782 | I found this on the [IBM support site](http://www-1.ibm.com/support/docview.wss?rs=404&uid=swg1PK06349):
>
but I have no other indication and can't determine the final reason for this error.
Any suggestions?
| What does this error mean SECJ0222E in WebSphere Application Server 5.1 | CC BY-SA 3.0 | null | 2008-08-07T17:18:56.983 | 2017-03-27T15:00:01.257 | 2017-03-27T15:00:01.257 | 2,265,151 | 527 | [
"websphere",
"jaas"
] |
5,001 | 2 | null | 4,995 | 1 | null | Have you obtained the fix from
[http://www-1.ibm.com/support/docview.wss?rs=404&uid=swg1PK17150](http://www-1.ibm.com/support/docview.wss?rs=404&uid=swg1PK17150)?
| null | CC BY-SA 2.5 | null | 2008-08-07T17:21:03.903 | 2008-08-07T17:21:03.903 | null | null | 414 | null |
5,005 | 2 | null | 4,994 | 1 | null | What you have there seems to be pretty good. My company has on occasion, for large enough databases, broken it down even further, perhaps to the individual object level. In this way each table/index/... has its own file. Can be useful, can be overkill. Really depends on how you are using it.
@Justin
By domain is most... | null | CC BY-SA 2.5 | null | 2008-08-07T17:24:49.280 | 2008-10-12T12:37:58.327 | 2008-10-12T12:37:58.327 | 2,766,176 | 673 | null |
4,962 | 2 | null | 4,954 | 7 | null | Regular Expressions (or Regex) are used to pattern match in strings. You can thus pull out all email addresses from a piece of text because it follows a specific pattern.
In some cases regular expressions are enclosed in forward-slashes and after the second slash are placed options such as case-insensitivity. Here's a... | null | CC BY-SA 2.5 | null | 2008-08-07T16:51:38.847 | 2008-08-07T17:02:53.380 | 2008-08-07T17:02:53.380 | 1,384,652 | 1,384,652 | null |
5,002 | 1 | null | null | 9 | 1,967 | I'm working on a project which uses .NET Remoting for communication between the client application and an object server. For development, the client, server, and MSSQL database are all running on my local development machine.
When I'm working at the office, the responsiveness is just fine.
However, when I work from... | .NET Remoting Speed and VPNs | CC BY-SA 2.5 | null | 2008-08-07T17:21:58.800 | 2009-10-16T19:03:26.060 | null | null | 627 | [
".net",
"remoting",
"performance",
"vpn",
"wireless"
] |
5,008 | 2 | null | 4,994 | 1 | null | Invest the time to write a generic "drop all constraints" script, so you don't have to maintain it.
A cursor over the following statements does the trick.
```
Select * From Information_Schema.Table_Constraints
Select * From Information_Schema.Referential_Constraints
```
| null | CC BY-SA 3.0 | null | 2008-08-07T17:25:28.590 | 2017-08-25T23:24:13.573 | 2017-08-25T23:24:13.573 | 7,076,958 | 414 | null |
5,016 | 2 | null | 4,994 | 1 | null | @Adam
Or how about just by domain -- a useful grouping of related tables in the same file, but separate from the rest?
Only problem is if some domains (in this somewhat legacy system) are tightly coupled. Plus you have to maintain the dependencies between your different sub-scripts.
| null | CC BY-SA 2.5 | null | 2008-08-07T17:31:00.953 | 2008-08-07T17:31:00.953 | null | null | 92 | null |
5,020 | 2 | null | 4,689 | 3 | null | > I never found a reason to stray from Courier New. I don't think I'd have a problem with any font so long as it's sans-serif. Mono-spaced fonts are nice for coding, too.
Courier New has serifs.
| null | CC BY-SA 2.5 | null | 2008-08-07T17:33:20.213 | 2008-08-07T17:33:20.213 | null | null | 99 | null |
5,013 | 1 | null | null | 7 | 1,675 | What I'm doing wrong that I get the ADMA5026E error when deployment an application with the NetworkDeployment Console?
| Error ADMA5026E for WebSphere Application Server Network Deployment | CC BY-SA 2.5 | null | 2008-08-07T17:28:16.183 | 2012-03-22T01:57:46.363 | 2012-03-22T01:57:46.363 | 3 | 527 | [
"deployment",
"websphere"
] |
5,022 | 2 | null | 2,658 | 0 | null | If on a windows box a quick and dirty slution is CVSNT. Easy to use just set it up and works very well.
I myself prefer SVN but this is a good one for quick use.
| null | CC BY-SA 2.5 | null | 2008-08-07T17:33:30.573 | 2008-08-07T17:33:30.573 | null | null | 673 | null |
5,014 | 2 | null | 4,942 | 3 | null | I would consider that using python on a new project is completely dependent on what problem you are trying to solve with python. If you want someone to agree with you that you should use python, then show them how python's features apply specifically to that problem.
In the case of web development with python, talk a... | null | CC BY-SA 2.5 | null | 2008-08-07T17:30:10.453 | 2008-08-07T17:30:10.453 | null | null | 660 | null |
5,017 | 1 | 5,266 | null | 12 | 19,603 | I have written an AIR Application that downloads videos and documents from a server. The videos play inside of the application, but I would like the user to be able to open the documents in their native applications.
I am looking for a way to prompt the user to Open / Save As on a local file stored in the Application ... | Open local file with AIR / Flex | CC BY-SA 2.5 | 0 | 2008-08-07T17:31:12.167 | 2016-05-25T10:26:37.820 | null | null | 26 | [
"apache-flex",
"actionscript-3",
"air"
] |
5,019 | 2 | null | 4,973 | 9 | null | Give this a try:
```
html, body,
#left, #right {
height: 100%
}
#left {
float: left;
width: 25%;
}
#right {
width: 75%;
}
```
```
<html>
<body>
<div id="left">
Content
</div>
<div id="right">
Content
</div>
</body>
</html>
```
| null | CC BY-SA 3.0 | null | 2008-08-07T17:33:14.270 | 2016-11-30T09:31:03.037 | 2016-11-30T09:31:03.037 | 2,571,493 | 383 | null |
5,024 | 1 | 5,041 | null | 23 | 6,559 | Does anyone know where online copies of the old articles can be found?
I know they are now owned by Dr. Dobb's, just the main page for it says they are part of whatever section the subject matter is relevant too, rather than being indexed together. That said, I have never been able to find any of them online on that ... | Is The Perl Journal available online? | CC BY-SA 3.0 | 0 | 2008-08-07T17:34:27.857 | 2023-03-01T00:41:30.123 | 2014-12-25T19:54:47.547 | 223,226 | 277 | [
"perl"
] |
4,994 | 1 | null | null | 14 | 2,701 | I am currently creating a master ddl for our database. Historically we have used backup/restore to version our database, and not maintained any ddl scripts. The schema is quite large.
My current thinking:
- Break script into parts (possibly in separate scripts):
1. table creation
2. add indexes
3. add triggers
4. a... | How should I organize my master ddl script | CC BY-SA 2.5 | 0 | 2008-08-07T17:18:37.170 | 2017-08-25T23:24:13.573 | 2008-08-18T16:17:33.867 | 116 | 92 | [
"sql",
"sql-server",
"schema",
"ddl"
] |
5,025 | 1 | 5,031 | null | 16 | 1,194 | I'm wanting extra security for a particular point in my web app. So I want to lock the database (SQL Server 2005). Any suggestions or is this even necessary with SQL Server?
The query is failing silently with no errors messages logged, and does not occur inside of a transaction.
I never was able to solve the prob... | Locking a SQL Server Database with PHP | CC BY-SA 3.0 | null | 2008-08-07T17:36:23.873 | 2016-04-19T13:29:52.280 | 2016-04-19T13:29:52.280 | 1,631,551 | 657 | [
"php",
"sql-server",
"database",
"sql-server-2005"
] |
5,028 | 2 | null | 4,973 | 3 | null | Here's an example of equal-height columns - [Equal Height Columns - revisited](http://positioniseverything.net/articles/onetruelayout/equalheight)
You can also check out the idea of "Faux Columns" as well - [Faux Columns](http://www.alistapart.com/articles/fauxcolumns/)
Don't go the table route. If it's not tabular ... | null | CC BY-SA 3.0 | null | 2008-08-07T17:39:22.713 | 2013-01-27T13:05:01.487 | 2013-01-27T13:05:01.487 | null | 283 | null |
5,035 | 2 | null | 4,973 | 0 | null | The short answer to your question is that you must set the height of 100% to the body and html tag, then set the height to 100% on each div element you want to make 100% the height of the page.
| null | CC BY-SA 2.5 | null | 2008-08-07T17:47:58.810 | 2008-08-07T17:47:58.810 | null | null | 383 | null |
5,030 | 2 | null | 4,891 | 2 | null | You should switch databases at milestone 2.3433, 3ps prior to the left branch of dendrite 8,151,215.
You should switch databases when you have a reason to do so, would be my advice. If your existing database is performing to your expectations, supports the load that is being placed on it by your production systems, ha... | null | CC BY-SA 2.5 | null | 2008-08-07T17:42:47.760 | 2008-08-07T17:46:48.563 | 2008-08-07T17:46:48.563 | 541 | 541 | null |
5,029 | 2 | null | 5,027 | 3 | null | Take a look at:
[http://www.asp.net/CSSAdapters/Menu.aspx](http://www.asp.net/CSSAdapters/Menu.aspx)
The default Menu control is rendering far too much HTML.
| null | CC BY-SA 2.5 | null | 2008-08-07T17:42:00.150 | 2008-08-07T17:42:00.150 | null | null | 439 | null |
5,026 | 2 | null | 4,850 | 12 | null | Within your overridden ProcessCmdKey how are you determining which key has been pressed?
The value of keyData (the second parameter) will change dependant on the key pressed and any modifier keys, so, for example, pressing the left arrow will return code 37, shift-left will return 65573, ctrl-left 131109 and alt-left ... | null | CC BY-SA 2.5 | null | 2008-08-07T17:38:05.510 | 2008-08-07T17:38:05.510 | null | null | 315 | null |
5,027 | 1 | 5,029 | null | 10 | 1,748 | I have a fairly simple ASP.NET 2.0 menu control using a sitemap file and security trimmings. There are only 21 menu options, but the results HTML of the menu is a whopping 14k. The site is hosted on our company's intranet and must be serverd to people worldwide on limited bandwidth, so I'd like to reduce the size of ... | Reduce ASP.NET menu control size (without 3rd party libraries) | CC BY-SA 3.0 | null | 2008-08-07T17:38:09.143 | 2015-06-30T13:58:19.840 | 2015-06-30T13:58:19.840 | 2,442,804 | 681 | [
"asp.net",
"size",
"menu"
] |
5,031 | 2 | null | 5,025 | 7 | null | I suppose you have three options.
1. Set user permissions so that user x can only read from the database.
2. Set the database into single user mode so only one connection can access it sp_dboption 'myDataBaseName', single, true
3. Set the database to readonly sp_dboption 'myDataBaseName', read only, true
| null | CC BY-SA 2.5 | null | 2008-08-07T17:43:01.787 | 2008-08-07T17:43:01.787 | null | null | 383 | null |
5,037 | 2 | null | 5,013 | 1 | null | Try
[IBM Information Center](http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.messages.doc/com.ibm.ws.management.resources.AppDeploymentMessages.html?resultof=%22%41%44%4d%41%35%30%32%36%45%22%20%22%61%64%6d%61%35%30%32%36%22%20)
| null | CC BY-SA 3.0 | null | 2008-08-07T17:49:47.793 | 2011-10-14T17:42:18.370 | 2011-10-14T17:42:18.370 | 1,288 | 414 | null |
5,041 | 2 | null | 5,024 | 17 | null | Volumes 1-5 (1996 -> 2000) can be found at [http://www.foo.be/docs/tpj/](http://www.foo.be/docs/tpj/)
Hmm, looks like that was the entire run? I though it was longer than that for some reason.
| null | CC BY-SA 2.5 | null | 2008-08-07T17:52:19.177 | 2008-08-07T17:57:33.597 | 2008-08-07T17:57:33.597 | 430 | 430 | null |
5,038 | 2 | null | 4,689 | 1 | null | I'm on [PanicSans](http://vnoel.wordpress.com/2007/04/25/coda-coding-font-panic-sans/) 12pt w/ AA on [TextMate](http://macromates.com/), but loving [Inconsolata](http://www.levien.com/type/myfonts/inconsolata.html) on Terminal/vim... (debating changing my TM font to this one... but point size 14pt) :)
| null | CC BY-SA 2.5 | null | 2008-08-07T17:50:09.697 | 2008-08-07T17:50:09.697 | null | null | 682 | null |
5,053 | 2 | null | 4,911 | 23 | null | You should use the UserID.
It's the ProviderUserKey property of MembershipUser.
```
Guid UserID = new Guid(Membership.GetUser(User.Identity.Name).ProviderUserKey.ToString());
```
| null | CC BY-SA 2.5 | null | 2008-08-07T17:55:51.387 | 2010-04-07T14:12:38.117 | 2010-04-07T14:12:38.117 | 521 | 521 | null |
5,067 | 2 | null | 5,061 | 2 | null | Community Server is a very well built CMS for ASP.NET, a [free version is available](http://communityserver.com/get-it-now/express/).
| null | CC BY-SA 2.5 | null | 2008-08-07T18:03:48.047 | 2008-08-07T18:03:48.047 | null | null | 383 | null |
5,074 | 2 | null | 5,061 | 2 | null | [Graffiti](http://graffiticms.com/) is Telligent's CMS (makers of the previously mentioned Community Server) and my be more appropriate depending on your requirements.
There are also many [CMS projects on Codeplex](http://www.codeplex.com/Project/ProjectDirectory.aspx?TagName=CMS).
| null | CC BY-SA 2.5 | null | 2008-08-07T18:07:33.640 | 2008-08-07T18:07:33.640 | null | null | 521 | null |
5,057 | 2 | null | 4,911 | 14 | null | I would suggest using the username as the primary key in the table if the username is going to be unique, there are a few good reasons to do this:
1. The primary key will be a clustered index and thus search for a users details via their username will be very quick.
2. It will stop duplicate usernames from appearing
... | null | CC BY-SA 2.5 | null | 2008-08-07T17:56:36.657 | 2008-08-07T17:56:36.657 | null | null | 383 | null |
5,061 | 1 | null | null | 15 | 23,429 | Does anyone ever found/used an ASP.NET application similar to Joomla?
I need to set up a quick and dirty CMS on a Windows Server and our client doesn't want us to use something else than ASP.NET.
| ASP.NET version of Joomla | CC BY-SA 3.0 | 0 | 2008-08-07T17:59:42.080 | 2020-06-20T23:54:54.083 | 2016-05-31T05:54:29.330 | 908,939 | 296 | [
"asp.net",
"content-management-system",
"joomla"
] |
5,042 | 2 | null | 4,630 | 8 | null | I'm not sure if this would be handled exactly the same way for webstart, but we ran into this situation in a desktop application when dealing with a set of native libraries (dlls in our case).
Loading libA before libB should work, unless one of those libraries has a dependency that is unaccounted for and not in the pa... | null | CC BY-SA 2.5 | null | 2008-08-07T17:53:38.113 | 2008-08-07T17:53:38.113 | null | null | 235 | null |
5,076 | 2 | null | 5,071 | -2 | null | SVN definitely makes this trivial task, using a GUI like Tortoise is even easier, however.
This might be a good place to start: [http://www-mrsrl.stanford.edu/~brian/cvstutorial/](http://www-mrsrl.stanford.edu/~brian/cvstutorial/)
| null | CC BY-SA 3.0 | null | 2008-08-07T18:08:54.620 | 2016-05-14T06:02:07.857 | 2016-05-14T06:02:07.857 | 3,266,847 | 383 | null |
5,036 | 2 | null | 2,756 | 21 | null | If you are taking your time switching to linux, I'd switch to emacs or vim at some point as well. There will always be a resource or a document describing the problem you are having with either of them, and generally a solution is just a few more clicks down the road.
Emacs may be easier at the beginning because of ... | null | CC BY-SA 2.5 | null | 2008-08-07T17:48:41.463 | 2008-08-07T17:48:41.463 | null | null | 660 | null |
5,048 | 2 | null | 5,024 | 8 | null | Randal Schwartz's Perl Journal articles are linked from [](http://www.stonehenge.com/merlyn/PerlJournal/)[http://www.stonehenge.com/merlyn/PerlJournal/](http://www.stonehenge.com/merlyn/PerlJournal/)
| null | CC BY-SA 2.5 | null | 2008-08-07T17:54:50.840 | 2008-10-07T11:43:11.493 | 2008-10-07T11:43:11.493 | 2,766,176 | 238 | null |
5,075 | 1 | 5,079 | null | 6 | 701 | Char's are great because they are fixed size and thus make for a faster table. They are however limited to 255 characters. I want to hold 500 characters but a blob is variable length and that's not what I want.
Is there some way to have a fixed length field of 500 characters in MySQL or am I going to have to use 2 cha... | Bigger than a char but smaller than a blob | CC BY-SA 2.5 | null | 2008-08-07T18:07:48.460 | 2014-01-21T06:31:52.973 | 2008-08-07T18:14:48.400 | 1,384,652 | 1,384,652 | [
"mysql",
"database"
] |
5,078 | 1 | 5,108 | null | 21 | 4,004 | I'd like to set up a cheap Linux box as a web server to host a variety of web technologies (PHP & Java EE come to mind, but I'd like to experiment with Ruby or Python in the future as well).
I'm fairly versed in setting up Tomcat to run on Linux for serving up Java EE applications, but I'd like to be able to open thi... | Securing a linux webserver for public access | CC BY-SA 3.0 | 0 | 2008-08-07T18:10:17.033 | 2013-10-24T08:07:35.790 | 2013-10-24T08:07:35.790 | 1,091,386 | 318 | [
"linux",
"security",
"webserver"
] |
5,079 | 2 | null | 5,075 | 7 | null | I would suggest using a varchar(500). Even though varchar isn't a fixed length, the database should reserve the correct amount of space. You shouldn't notice any performance difference using varchar(500) over 2xchar(255).
You're also probably going to cause extra overhead by joining two char fields together.
| null | CC BY-SA 3.0 | null | 2008-08-07T18:12:03.350 | 2013-01-03T21:20:57.990 | 2013-01-03T21:20:57.990 | 1,735,848 | 383 | null |
5,080 | 2 | null | 5,078 | 0 | null | There are plenty of ways to do this that will work just fine. I would usually jsut use a .htaccess file. Quick to set up and secure . Probably not the best option but it works for me. I wouldn't put my credit card numbers behind it but other than that I dont really care.
| null | CC BY-SA 2.5 | null | 2008-08-07T18:12:47.077 | 2008-08-07T18:12:47.077 | null | null | 673 | null |
5,071 | 1 | 5,262 | null | 40 | 70,911 | I've played with CVS a little bit and am not the most familiar with all of its capabilities, but a huge annoyance for me is trying to add new directories that contain more directories in them. Running "`cvs add`" only adds the contents of the current directory, and using "`cvs import`" didn't look like the right thing ... | How to add CVS directories recursively | CC BY-SA 2.5 | 0 | 2008-08-07T18:05:28.183 | 2016-06-07T14:53:29.823 | 2009-12-30T19:10:21.903 | 130,659 | 422 | [
"cvs"
] |
5,089 | 2 | null | 5,084 | 2 | null | User corrected this weird problem by recreating their FireFox profile.
[How to manage FireFox profiles](http://support.mozilla.com/en-US/kb/Managing+profiles)
I imagine a re-install of FireFox would have corrected the problem as well.
| null | CC BY-SA 2.5 | null | 2008-08-07T18:17:56.833 | 2008-08-07T18:17:56.833 | null | null | 576 | null |
5,083 | 2 | null | 2,525 | 50 | null | We've tried a number of obfuscators. None of them work on a large client/server app that uses remoting. Problem is that client and server share some dlls, and we haven't found any obfuscator that can handle it.
We've tried DotFuscator Pro, SmartAssembly, XenoCode, Salamander, and several small time apps whose names es... | null | CC BY-SA 2.5 | null | 2008-08-07T18:15:46.197 | 2009-05-04T18:12:46.153 | 2009-05-04T18:12:46.153 | 536 | 536 | null |
5,095 | 2 | null | 5,087 | 1 | null | You should just skip RoR and focus on learning Grails that you'll be needing for work.
| null | CC BY-SA 2.5 | null | 2008-08-07T18:20:37.187 | 2008-08-07T18:20:37.187 | null | null | 25 | null |
5,084 | 1 | 5,089 | null | 5 | 1,373 | Today, I ran into this weird problem with a user using Mac OS X. This user always had a failed upload. The form uses a regular "input type=file". The user could upload using any browser except Firefox 3 on his Mac. Only this particular user was seeing this error.
Obviously, the problem is only with this one particular... | Upload form does not work in Firefox 3 with Mac OS X? | CC BY-SA 3.0 | null | 2008-08-07T18:16:00.033 | 2012-12-04T08:37:40.397 | 2012-12-04T08:37:40.397 | 1,136,709 | 576 | [
"macos",
"firefox",
"upload"
] |
5,092 | 2 | null | 5,078 | 0 | null | Wow, you're opening up a can of worms as soon as you start opening anything up to external traffic. Keep in mind that what you consider an experimental server, almost like a sacrificial lamb, is also easy pickings for people looking to do bad things with your network and resources.
Your whole approach to an externall... | null | CC BY-SA 2.5 | null | 2008-08-07T18:18:36.473 | 2008-08-07T18:18:36.473 | null | null | 676 | null |
5,090 | 2 | null | 5,078 | 1 | null | Its safe and secure if you keep your voice down about it (i.e., rarely will someone come after your home server if you're just hosting a glorified webroot on a home connection) and your wits up about your configuration (i.e., avoid using root for everything, make sure you keep your software up to date).
On that note, ... | null | CC BY-SA 2.5 | null | 2008-08-07T18:18:29.343 | 2008-08-07T18:18:29.343 | null | null | 547 | null |
5,101 | 2 | null | 3,272 | 3 | null | Why not use a SQL Job instead of the Windows Service? You can encapsulate all of you db "trigger" code in Stored Procedures. Then your UI and SQL Job can call the same Stored Procedures and create the triggers the same way whether it's manually or at a time interval.
| null | CC BY-SA 2.5 | null | 2008-08-07T18:24:09.863 | 2008-08-07T18:24:09.863 | null | null | 225 | null |
5,097 | 2 | null | 5,084 | 0 | null | > I imagine a re-install of FireFox would have corrected the problem as well.
Profile related problems cannot usually be solved by re-installing Firefox since reinstalling (or upgrading) would re-use the same "damaged" profile.
| null | CC BY-SA 2.5 | null | 2008-08-07T18:22:34.483 | 2008-08-07T18:22:34.483 | null | null | 238 | null |
5,091 | 2 | null | 4,922 | 16 | null | In the first case, you have a widening conversion happening. This can be see when runinng the "javap" utility program (included w/ the JDK), on the compiled class:
```
public static void main(java.lang.String[]);
Code:
0: iconst_ 5
1: istore_ 1
2: iload_ 1
3: i2l
4: invokestatic #6; //Met... | null | CC BY-SA 2.5 | null | 2008-08-07T18:18:34.897 | 2008-08-07T18:18:34.897 | null | null | 861 | null |
5,096 | 2 | null | 4,973 | 0 | null | A 2 column layout is a little bit tough to get working in CSS (at least until CSS3 is practical.)
Floating left and right will work to a point, but it won't allow you to extend the background. To make backgrounds stay solid, you'll have to implement a technique known as "faux columns," which basically means your colum... | null | CC BY-SA 2.5 | null | 2008-08-07T18:21:51.207 | 2008-08-07T18:21:51.207 | null | null | 392 | null |
5,107 | 2 | null | 4,911 | 6 | null | I would use a userid. If you want to use an user name, you are going to make the "change the username" feature very expensive.
| null | CC BY-SA 2.5 | null | 2008-08-07T18:25:47.660 | 2008-08-07T18:25:47.660 | null | null | 438 | null |
5,106 | 2 | null | 5,071 | 1 | null | I think this is what I did back in my CVS days:
```
find . -type f | xargs cvs add
```
| null | CC BY-SA 2.5 | null | 2008-08-07T18:25:47.470 | 2008-08-07T18:25:47.470 | null | null | 116 | null |
5,098 | 2 | null | 4,939 | 3 | null | You can always add a partial class with the same name as your LinqToSql class, and then define your own parameters and functions. These will then be accessible as object parameters and methods for this object, the same way as the auto-generated LinqToSql methods are accessible.
Example: You have a LinqToSql class name... | null | CC BY-SA 3.0 | null | 2008-08-07T18:23:10.923 | 2012-02-27T21:15:42.390 | 2012-02-27T21:15:42.390 | 590,783 | 51 | null |
5,087 | 1 | 1,158,483 | null | 21 | 9,173 | My company is in the process of starting down the path. The reason for that is that the current developers are heavy on but felt the need for a for some future web development projects. Personally, I'm coming from the design/usability world, but as I take more "front-end" responsibilities I'm starting to feel the ne... | Learning Ruby on Rails any good for Grails? | CC BY-SA 3.0 | 0 | 2008-08-07T18:17:22.323 | 2019-11-25T18:18:01.577 | 2015-01-17T10:21:52.713 | 2,173,917 | 682 | [
"ruby-on-rails",
"ruby",
"grails",
"groovy"
] |
5,103 | 2 | null | 4,973 | 22 | null | Ahem...
> The short answer to your question is that you must set the height of 100% to the body and html tag, then set the height to 100% on each div element you want to make 100% the height of the page.
Actually, 100% height will not work in most design situations - this may be short but it is not a good answer. Goo... | null | CC BY-SA 3.0 | null | 2008-08-07T18:24:16.803 | 2016-06-01T17:26:13.820 | 2016-06-01T17:26:13.820 | 1,954,886 | 137 | null |
5,102 | 1 | null | null | 23 | 32,894 | I tried to follow a couple of googled up tutorials on setting up mod_python, but failed every time. Do you have a good, step-by step, rock-solid howto?
My dev box is OS X, production - Centos.
| How do you set up Python scripts to work in Apache 2.0? | CC BY-SA 2.5 | 0 | 2008-08-07T18:24:12.013 | 2014-11-13T09:00:56.957 | 2012-07-24T18:15:03.187 | 1,520,981 | 556 | [
"python",
"apache",
"apache2"
] |
5,110 | 2 | null | 5,078 | 1 | null | Be careful about opening the SSH port to the wild. If you do, make sure to disable root logins (you can always `su` or `sudo` once you get in) and consider more aggressive authentication methods within reason. I saw a huge dictionary attack in my server logs one weekend going after my SSH server from a DynDNS home IP... | null | CC BY-SA 2.5 | null | 2008-08-07T18:26:15.037 | 2008-08-07T18:26:15.037 | null | null | 59 | null |
5,108 | 2 | null | 5,078 | 5 | null | This article has some of the best ways to lock things down:
[http://www.petefreitag.com/item/505.cfm](http://www.petefreitag.com/item/505.cfm)
Some highlights:
- - -
The article also takes some pointers from this book:
[Apache Securiy](http://spendfish.com/product/0596007248) (O'Reilly Press)
As far as distros, ... | null | CC BY-SA 2.5 | null | 2008-08-07T18:26:07.207 | 2008-08-07T18:26:07.207 | null | null | 50 | null |
5,112 | 2 | null | 5,075 | 2 | null | > I would suggest using a varchar(500)
... if you have MySQL 5.0.3 or higher. In previous versions, VARCHAR was restricted to 255 characters.
Also, CHAR and VARCHAR do not work the same regarding trailing spaces. Be sure to read [10.4.1. The CHAR and VARCHAR Types](http://dev.mysql.com/doc/refman/5.0/en/char.html) (t... | null | CC BY-SA 2.5 | null | 2008-08-07T18:28:04.097 | 2008-08-07T18:28:04.097 | null | null | 341 | null |
5,125 | 2 | null | 5,087 | 3 | null | Just skip RoR. There are really not a lot of similar things(besides the name)
I certainly believe that being enough familiar with Java, plus some experience programming with a dynamic language is more than enough if you plan to do serious development with Grails.
Comparing just only views(taglibs in Grails, RHTML in ... | null | CC BY-SA 2.5 | null | 2008-08-07T18:38:13.780 | 2008-08-07T18:41:24.040 | 2008-08-07T18:41:24.040 | 861 | 861 | null |
5,144 | 2 | null | 5,134 | 1 | null | Depending on the complexity, each situation is different, If I am just simply moving files around, I'll write a quick batch file. If I want to do something more complex Ill normally just skip the scripting part and write a quick c# program that can handle it.
The question then is do you put that c# program in svn and... | null | CC BY-SA 2.5 | null | 2008-08-07T18:53:42.500 | 2008-08-07T18:53:42.500 | null | null | 567 | null |
5,132 | 2 | null | 5,087 | 9 | null | Just a bit of a question, is the reason they are choosing Grails because Groovy is closer in syntax to Java than Ruby, or because they want access to Java?
If it is the former, then I would say try to focus on Grails since that is what you will be using. If it is the latter, you might want to see if the development t... | null | CC BY-SA 2.5 | null | 2008-08-07T18:44:42.363 | 2008-08-07T18:44:42.363 | null | null | 122 | null |
5,148 | 2 | null | 5,142 | 0 | null | Different engine versions?
Have you tried naming that expression in the result?
```
SELECT SUBSTRING(field FROM 5 FOR 15) AS x FROM table;
```
| null | CC BY-SA 2.5 | null | 2008-08-07T18:55:37.363 | 2008-08-07T18:55:37.363 | null | null | 267 | null |
5,134 | 1 | 1,198,468 | null | 20 | 6,368 | What is the best approach to write for in ? As far as I know, only executable files can be used. So what is the best choice?
- - -
| Best strategy to write hooks for subversion in Windows | CC BY-SA 2.5 | 0 | 2008-08-07T18:47:50.580 | 2012-10-18T11:55:16.580 | 2012-10-18T11:55:16.580 | 761,095 | 563 | [
"svn",
"hook",
"svn-hooks"
] |
5,149 | 2 | null | 5,078 | 1 | null | You could consider an [EC2 instance from Amazon](http://www.amazon.com/gp/browse.html?node=201590011). That way you can easily test out "stuff" without messing with production. And only pay for the space,time and bandwidth you use.
| null | CC BY-SA 2.5 | null | 2008-08-07T18:55:40.733 | 2008-08-07T18:55:40.733 | null | null | 86 | null |
5,129 | 2 | null | 5,102 | 12 | null | There are two main ways of running Python on Apache. The simplest would be to use CGI and write normal Python scripts while the second is using a web framework like Django or Pylons.
Using CGI is straightforward. Make sure your Apache config file has a cgi-bin set up. If not, follow their documentation ([http://httpd.... | null | CC BY-SA 3.0 | null | 2008-08-07T18:40:53.337 | 2014-11-13T09:00:56.957 | 2014-11-13T09:00:56.957 | 2,213,647 | 680 | null |
5,136 | 1 | 5,302 | null | 15 | 2,386 | A researcher has created a small simulation in MATLAB and we want to make it accessible to others. My plan is to take the simulation, clean up a few things and turn it into a set of functions. Then I plan to compile it into a C library and use [SWIG](https://en.wikipedia.org/wiki/SWIG) to create a Python wrapper. At th... | Creating a shared library in MATLAB | CC BY-SA 4.0 | 0 | 2008-08-07T18:47:58.487 | 2023-01-23T18:01:53.553 | 2022-06-27T20:20:20.770 | 63,550 | 676 | [
"python",
"c",
"matlab"
] |
5,118 | 1 | 5,160 | null | 37 | 3,862 | I'm working on a website that will switch to a new style on a set date. The site's built-in semantic HTML and CSS, so the change should just require a CSS reference change. I'm working with a designer who will need to be able to see how it's looking, as well as a client who will need to be able to review content update... | How to set up a CSS switcher | CC BY-SA 4.0 | 0 | 2008-08-07T18:31:22.780 | 2021-08-31T07:27:30.770 | 2021-08-31T07:27:30.770 | 16,678,905 | 5 | [
"javascript",
"html",
"asp.net",
"css"
] |
5,151 | 2 | null | 5,118 | 2 | null | I would suggest storing the stylesheet selection in the session so you don't have to rely on the querystring key being present all the time. You can check the session in Page_Load and add the appropriate stylesheet reference. It sounds like this is a temporary/development situation, so go with whatever is easy and work... | null | CC BY-SA 2.5 | null | 2008-08-07T18:56:47.707 | 2008-08-07T18:56:47.707 | null | null | 521 | null |
5,142 | 1 | null | null | 9 | 6,992 | I created a view on a machine using the function from Firebird, and it worked. When I copied the database to a different machine, the view was broken. This is the way I used it:
```
SELECT SUBSTRING(field FROM 5 FOR 15) FROM table;
```
And this is the output on the machine that does not accept the function:
```
... | Firebird's SQL's Substring function not working | CC BY-SA 2.5 | 0 | 2008-08-07T18:52:07.230 | 2021-06-25T16:38:44.083 | null | null | 431 | [
"sql",
"firebird",
"interbase"
] |
5,161 | 2 | null | 5,118 | 6 | null | You should look into `ASP.NET` themes, that's exactly what they're used for. They also allow you to skin controls, which means give them a set of default attributes.
| null | CC BY-SA 3.0 | null | 2008-08-07T19:01:05.060 | 2017-02-23T10:28:09.857 | 2017-02-23T10:28:09.857 | 6,670,723 | 26 | null |
5,156 | 2 | null | 4,923 | 30 | null | So I dug up this article from A List Apart [CSS Swag: Multi-Column Lists](http://www.alistapart.com/articles/multicolumnlists). I ended up using the first solution, it's not the best but the others require either using complex HTML that can't be generated dynamically, or creating a lot of custom classes, which could b... | null | CC BY-SA 2.5 | null | 2008-08-07T18:59:58.167 | 2008-08-09T06:00:06.813 | 2008-08-09T06:00:06.813 | 666 | 666 | null |
5,160 | 2 | null | 5,118 | 22 | null | In Asp.net 3.5, you should be able to set up the Link tag in the header as a server tag. Then in the codebehind you can set the href property for the link element, based on a cookie value, querystring, date, etc.
In your aspx file:
```
<head>
<link id="linkStyles" rel="stylesheet" type="text/css" runat="server" />
... | null | CC BY-SA 2.5 | null | 2008-08-07T19:00:58.757 | 2008-08-08T06:32:23.933 | 2008-08-08T06:32:23.933 | 51 | 51 | null |
5,181 | 2 | null | 4,689 | 1 | null | Consolas for me as well
| null | CC BY-SA 2.5 | null | 2008-08-07T19:15:35.967 | 2008-08-07T19:15:35.967 | null | null | 649 | null |
5,170 | 1 | 5,270 | null | 131 | 110,054 | I was wondering if there are any alternatives to Microsoft's SQL Server Management Studio?
Not there's anything wrong with SSMS, but sometimes it just seem too big an application where all I want todo is browse/edit tables and run queries.
| SQL Server Management Studio alternatives to browse/edit tables and run queries | CC BY-SA 3.0 | 0 | 2008-08-07T19:06:03.600 | 2015-11-22T23:39:29.330 | 2013-11-06T10:56:59.447 | 13,508 | 383 | [
"sql-server"
] |
5,168 | 2 | null | 5,102 | 5 | null | Are you running Python on UNIX or Windows?
An alternative to mod_python and FastCGI is mod_wsgi. You can find out more at [modwsgi](http://code.google.com/p/modwsgi/)
I have built and installed this on Solaris without problems. I had previously tried mod_python but ran into problems with shared libraries as part of t... | null | CC BY-SA 3.0 | null | 2008-08-07T19:05:58.310 | 2013-01-28T05:23:02.887 | 2013-01-28T05:23:02.887 | null | 636 | null |
5,184 | 2 | null | 5,170 | 20 | null | [TOAD for MS SQL](http://toadworld.com/) looks pretty good. I've never used it personally but I have used Quest's other products and they're solid.
| null | CC BY-SA 3.0 | null | 2008-08-07T19:17:11.410 | 2012-02-10T01:26:28.753 | 2012-02-10T01:26:28.753 | 55,041 | 225 | null |
5,185 | 2 | null | 5,179 | 3 | null | If you're using ASP.NET 2.0, you can do this with [cross-page posting](http://msdn.microsoft.com/en-us/library/ms178139.aspx).
Edit: I missed the fact that you're asking about an page. For that I think you'd need to have your ASP.NET page gen up an HTML form whose action is set to the remote URL and method is set to... | null | CC BY-SA 2.5 | null | 2008-08-07T19:17:47.023 | 2008-08-07T19:30:01.990 | 2008-08-07T19:30:01.990 | 205 | 205 | null |
5,162 | 2 | null | 5,118 | -2 | null | I would do the following:
[www.website.com/?stylesheet=new.css](http://www.website.com/?stylesheet=new.css)
Then in your ASP.NET code:
```
if (Request.Querystring["stylesheet"] != null) {
Response.Cookies["stylesheet"].Value = Request.QueryString["stylesheet"];
Response.Redirect(<Current Page>);
}
```
Then... | null | CC BY-SA 2.5 | null | 2008-08-07T19:02:00.800 | 2008-08-07T19:02:00.800 | null | null | 383 | null |
5,165 | 2 | null | 5,102 | 10 | null | Yes, mod_python is pretty confusing to set up. Here's how I did it.
In httpd.conf:
```
LoadModule python_module modules/mod_python.so
<Directory "/serverbase/htdocs/myapp">
AddHandler mod_python .py
PythonHandler myapp
PythonDebug On
```
and in your application directory:
```
$ /serverbase/htdocs/myapp$ ls... | null | CC BY-SA 2.5 | null | 2008-08-07T19:02:57.850 | 2008-08-07T21:19:14.890 | 2008-08-07T21:19:14.890 | 116 | 116 | null |
5,189 | 2 | null | 4,689 | 9 | null | Inconsolata 14pt in TextMate
| null | CC BY-SA 2.5 | null | 2008-08-07T19:20:34.180 | 2008-08-07T19:20:34.180 | null | null | 574 | null |
5,179 | 1 | 5,219 | null | 38 | 21,630 | ASP.NET server-side controls postback to their own page. This makes cases where you want to redirect a user to an external page, but need to post to that page for some reason (for authentication, for instance) a pain.
An `HttpWebRequest` works great if you don't want to redirect, and JavaScript is fine in some cases,... | How Do I Post and then redirect to an external URL from ASP.Net? | CC BY-SA 3.0 | 0 | 2008-08-07T19:13:04.583 | 2022-07-21T14:04:13.767 | 2015-12-20T01:54:11.817 | 4,099,598 | 111 | [
"javascript",
"c#",
"asp.net",
"forms",
"postback"
] |
5,164 | 2 | null | 4,922 | 3 | null | Another interesting thing with this example is the method overloading. The combination of type widening and method overloading only working because the compiler has to make a decision of which method to choose. Consider the following example:
```
public static void hello(Collection x){
System.out.println("Collectio... | null | CC BY-SA 2.5 | null | 2008-08-07T19:02:29.630 | 2008-08-07T19:02:29.630 | null | null | 198 | null |
5,192 | 2 | null | 5,188 | 3 | null | In the properties window change the "behavior" to Dynamic.
See: [http://www.codeproject.com/KB/XML/wsdldynamicurl.aspx](http://www.codeproject.com/KB/XML/wsdldynamicurl.aspx)
| null | CC BY-SA 2.5 | null | 2008-08-07T19:22:25.983 | 2008-08-07T19:22:25.983 | null | null | 225 | null |
5,193 | 2 | null | 5,188 | 0 | null | If you mean a VS2005 "Web Reference", then the generated proxy classes have a URL property that is the SOAP endpoint url of that service. You can change this property and have your subsequent http communications be made to that new endpoint.
Edit: Ah, thanks bcaff86. I didn't know you could do that simply by changi... | null | CC BY-SA 2.5 | null | 2008-08-07T19:22:36.123 | 2008-08-07T19:22:36.123 | null | null | 404 | null |
5,199 | 2 | null | 5,194 | 6 | null | LINQ turns into method calls like the code you have.
In other words, there should be no difference.
However, in your two pieces of code you are not calling .ToList in the first, so the first piece of code will produce an enumerable data source, but if you call .ToList on it, the two should be the same.
| null | CC BY-SA 2.5 | null | 2008-08-07T19:25:49.487 | 2008-08-07T19:25:49.487 | null | null | 267 | null |
5,201 | 2 | null | 5,170 | 4 | null | There is an [express version on SSMS](http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en) that has considerably fewer features but still has the basics.
| null | CC BY-SA 3.0 | null | 2008-08-07T19:25:57.287 | 2015-11-22T23:39:29.330 | 2015-11-22T23:39:29.330 | 19,679 | 162 | null |
5,190 | 2 | null | 5,179 | 3 | null | I have done this by rendering a form that auto-posts (using JavaScript) to the desired remote URL - gather whatever information you need for the post in the web form's postback and then build the HTML for the remote-posting form and render it back to the client.
I built a utility class for this that contains the remot... | null | CC BY-SA 2.5 | null | 2008-08-07T19:20:48.780 | 2008-08-07T19:20:48.780 | null | null | 521 | null |
5,187 | 2 | null | 4,369 | 1 | null | I think the best way is to put your includes in your PHP include path. There are various ways to do this depending on your setup.
Then you can simply refer to
```
require_once 'inc1.php';
```
from inside any file regardless of where it is whether in your includes or in your web accessible files, or any level of n... | null | CC BY-SA 2.5 | null | 2008-08-07T19:20:00.933 | 2008-08-07T19:23:14.563 | 2008-08-07T19:23:14.563 | 137 | 137 | null |
5,204 | 2 | null | 4,689 | 41 | null | I like [Envy Code R](http://damieng.com/blog/2008/05/26/envy-code-r-preview-7-coding-font-released).


| null | CC BY-SA 2.5 | null | 2008-08-07T19:26:21.187 | 2008-08-07T19:26:21.187 | 2017-02-08T14:06:41.743 | -1 | 5 | null |
5,222 | 1 | 5,224 | null | 64 | 143,445 | What is the Java equivalent of PHP's `$_POST`? After searching the web for an hour, I'm still nowhere closer.
| Accessing post variables using Java Servlets | CC BY-SA 3.0 | 0 | 2008-08-07T19:39:31.240 | 2018-04-19T13:12:43.453 | 2015-07-25T13:10:57.280 | 507,738 | 429 | [
"java",
"http",
"servlets"
] |
5,224 | 2 | null | 5,222 | 53 | null | Your `HttpServletRequest` object has a `getParameter(String paramName)` method that can be used to get parameter values. [http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameter(java.lang.String)](http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameter(java.lan... | null | CC BY-SA 3.0 | null | 2008-08-07T19:43:36.113 | 2011-06-21T17:54:52.550 | 2011-06-21T17:54:52.550 | 75 | 75 | null |