Id
int64
4
8.51M
PostTypeId
int64
1
7
AcceptedAnswerId
int64
7
75.5M
ParentId
int64
4
41.8M
Score
int64
-208
27.7k
ViewCount
int64
11
12.4M
Body
stringlengths
0
45k
Title
stringlengths
2
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
225
CreationDate
stringdate
2008-07-31 21:42:52
2011-12-14 18:48:47
LastActivityDate
stringdate
2008-08-01 12:19:17
2023-03-05 04:40:26
LastEditDate
stringdate
2008-08-01 13:54:25
2023-03-05 03:12:45
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
-1
21.1M
Tags
listlengths
1
6
27,114
2
null
23,930
3
null
: using pure recursive functions ``` (If[#>1,# #0[#-1],1])& ```
null
CC BY-SA 2.5
null
2008-08-25T23:32:45.130
2008-08-25T23:32:45.130
null
null
279
null
27,127
2
null
27,054
3
null
If there are developers on your team that don't want to share their "one week local hack" then thats the problem, not the source control tool you are using. A better term for the "dark side" you are describing is "the wrong way" of coding for a team. Source control is a tool used to facilitate collaborative work. If yo...
null
CC BY-SA 2.5
null
2008-08-25T23:48:56.883
2008-08-25T23:48:56.883
null
null
1,959
null
27,069
2
null
27,020
1
null
Do you have to use code? if the table is static, then why not use the auto formatting capability? ![enter image description here](https://i.stack.imgur.com/7gJRz.jpg) It may also help if you "merge cells" of the same data. so maybe if you merge the cells of the "data, more data, even more data" into one cell, you can...
null
CC BY-SA 3.0
null
2008-08-25T22:53:58.593
2012-03-29T18:50:37.133
2012-03-29T18:50:37.133
1,219,121
350
null
27,128
2
null
27,054
0
null
I believe svn's merging has been somewhat overhauled in the latest release.
null
CC BY-SA 2.5
null
2008-08-25T23:49:44.917
2008-08-25T23:49:44.917
null
null
2,131
null
27,130
2
null
27,108
4
null
Perhaps look into using [LogParser](http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&displaylang=en). It depends on how the info was logged (Perfmon doesn't lack flexibility) If they're CSV you can even use the ODBC Text drivers and run queries against them! (performance ...
null
CC BY-SA 3.0
null
2008-08-25T23:51:18.470
2014-08-28T19:40:11.503
2014-08-28T19:40:11.503
352,349
49
null
27,123
2
null
27,065
50
null
It is easy enough to read the [class file signature](http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.1) and get these values without a 3rd party API. All you need to do is read the first 8 bytes. ``` ClassFile { u4 magic; u2 minor_version; u2 major_version; ``` For class file version...
null
CC BY-SA 3.0
null
2008-08-25T23:47:38.150
2017-12-04T14:29:17.433
2017-12-04T14:29:17.433
603,516
304
null
27,138
1
2,151,866
null
3
3,718
I was wondering if I could access the iPhones Core Location framework over a website? My goal is to build a webapp/website that the iPhone would browse to, then upload its current GPS location. This would be a simple site primary for friends/family so we could locate each other. I can have them manually enter lng/lat ...
iPhone app that access the Core Location framework over web
CC BY-SA 2.5
0
2008-08-26T00:01:55.607
2019-06-15T14:52:51.437
2009-10-07T22:21:15.083
147,141
1,992
[ "iphone", "gps", "web-applications" ]
27,129
1
27,168
null
1
1,532
Can anyone recommend a library for chart generation (bar charts, pie charts etc.) which runs on both Java and .Net?
Charting library for Java and .Net
CC BY-SA 2.5
null
2008-08-25T23:51:06.630
2013-08-22T18:34:23.990
2008-09-10T18:13:57.773
-1
797
[ "java", ".net", "charts" ]
27,139
2
null
27,020
4
null
I think this does what you are looking for. Flips color when the cell in column A changes value. Runs until there is no value in column B. ``` Public Sub HighLightRows() Dim i As Integer i = 1 Dim c As Integer c = 3 'red Do While (Cells(i, 2) <> "") If (Cells(i, 1) <> "") Then '...
null
CC BY-SA 2.5
null
2008-08-26T00:03:06.243
2008-08-26T00:03:06.243
null
null
2,470
null
27,142
2
null
23,930
4
null
``` def factorial(n) return 1 if n == 1 n * factorial(n -1) end ```
null
CC BY-SA 2.5
null
2008-08-26T00:06:44.627
2008-08-26T00:06:44.627
null
null
511
null
27,144
2
null
26,799
0
null
At work NetBackup or PureDisk depending on the box, at home rsync.
null
CC BY-SA 2.5
null
2008-08-26T00:10:23.587
2008-08-26T00:10:23.587
null
null
511
null
27,134
2
null
27,054
2
null
Nick, while I agree that the problem is 'not sharing your work', the main argument is that tools promote a certain work flow and not all tools apply to all problems with equal friction. My concern is that a DVCS makes it easier to not share your work since you don't have the drawbacks of not sharing your work you get...
null
CC BY-SA 2.5
null
2008-08-25T23:58:28.610
2008-08-25T23:58:28.610
null
null
2,900
null
27,149
2
null
23,930
3
null
# Lua ``` function factorial (n) if (n <= 1) then return 1 end return n*factorial(n-1) end ``` And here is a stack overflow caught in the wild: ``` > print (factorial(234132)) stdin:3: stack overflow stack traceback: stdin:3: in function 'factorial' stdin:3: in function 'factorial' stdin:3: in fu...
null
CC BY-SA 2.5
null
2008-08-26T00:17:28.627
2008-08-26T00:17:28.627
null
null
1,438
null
27,148
1
27,156
null
6
3,449
I want to merge multiple rss feeds into a single feed, removing any duplicates. Specifically, I'm interested in merging the feeds for the [tags](https://stackoverflow.com/tags) I'm interested in. [A quick [search](http://www.google.com/search?q=rss+merge+reader) turned up some promising links, which I don't have time ...
merge rss feeds
CC BY-SA 3.0
0
2008-08-26T00:17:27.393
2011-05-04T12:57:04.117
2021-01-18T12:38:11.483
-1
2,495
[ "rss", "feed" ]
27,132
2
null
26,158
159
null
## Stack A stack, in this context, is the last in, first out buffer you place data while your program runs. Last in, first out (LIFO) means that the last thing you put in is always the first thing you get back out - if you push 2 items on the stack, 'A' and then 'B', then the first thing you pop off the stack will ...
null
CC BY-SA 4.0
null
2008-08-25T23:55:39.397
2023-02-15T10:16:13.667
2023-02-15T10:16:13.667
366,904
2,915
null
27,150
2
null
27,129
5
null
Have you looking into using [JFreeChart](http://www.jfree.org/jfreechart/) I have used it on a few Java projects and its very configurable. Its free but I think you can purchase the developers guide for $50. Its good for quick simple charts too. However performance for real-time data is not quite up to par (Check out t...
null
CC BY-SA 2.5
null
2008-08-26T00:18:01.277
2008-08-26T00:18:01.277
null
null
1,992
null
27,156
2
null
27,148
17
null
Have you heard of [Yahoo's Pipes](http://pipes.yahoo.com/pipes/). > Its an interactive feed aggregator and manipulator. List of 'hot pipes' to subscribe to, and ability to create your own (yahoo account required). I played with it during beta back in the day, however I had a blast. Its really fun and easy to a...
null
CC BY-SA 2.5
null
2008-08-26T00:22:20.127
2008-08-26T00:22:20.127
null
null
1,992
null
27,071
1
27,326
null
1
6,163
I have an old C library with a function that takes a void**: ``` oldFunction(void** pStuff); ``` I'm trying to call this function from managed C++ (m_pStuff is a member of the parent ref class of type void*): ``` oldFunction( static_cast<sqlite3**>( &m_pStuff ) ); ``` This gives me the following error from Visua...
Pointer to Pointer Managed C++
CC BY-SA 3.0
null
2008-08-25T22:55:48.213
2012-12-04T08:40:01.927
2012-12-04T08:40:01.927
1,136,709
39,040
[ "pointers", "managed-c++" ]
27,154
2
null
27,148
0
null
[Yahoo Pipes](http://pipes.yahoo.com/pipes/)? Aww, I got answer-sniped by @[Bernie Perez](https://stackoverflow.com/users/1992/bernie-perez). Oh well :)
null
CC BY-SA 2.5
null
2008-08-26T00:20:13.987
2008-08-26T00:44:35.207
2017-05-23T11:33:26.740
-1
1,190
null
27,140
2
null
26,860
0
null
@robertmyers CSS contains the aural media type specifically to control the "rendering" of things when screen readers are doing their work. So, for you example, you would only set it as visible for the aural media type. --- @Ross I'm quite aware that the screen reader doesn't actually read the screen, but you ...
null
CC BY-SA 2.5
null
2008-08-26T00:06:18.917
2008-08-26T00:06:18.917
null
null
1,862
null
27,160
2
null
27,108
5
null
From my experience, even just Excel makes a pretty good tool for quickly whipping up graphs of perfmon if you relog the data to CSV or TSV. You can just plot a rolling average & see the progression. Excel isn't fancy, but if you don't have more than 30-40 megs of data it can do a pretty quick job. I've found that Ex...
null
CC BY-SA 2.5
null
2008-08-26T00:31:21.430
2008-08-26T01:21:04.837
2008-08-26T01:21:04.837
634
634
null
27,163
2
null
20,575
0
null
The yellow screen of death is served by the default ASP.NET HTTPHandler. In order to intercept it, you would need to add another HTTPHandler in front of it that intercepts all uncaught exceptions. At that point, you could do whatever you want for your error layout. Creating a way to directly jump to Visual Studio wo...
null
CC BY-SA 2.5
null
2008-08-26T00:40:36.027
2008-08-26T00:40:36.027
null
null
1,965
null
27,162
2
null
27,148
2
null
Here is an article on [Merge Multiple RSS Feeds Into One with Yahoo! Pipes + FeedBurner](http://labnol.blogspot.com/2007/10/merge-multiple-rss-feeds-feedburner-mix.html). Another option is [Feed Rinse](http://feedrinse.com/), but they have a paid version as well as the free version. Additionally: I have heard good ...
null
CC BY-SA 2.5
null
2008-08-26T00:39:13.673
2008-08-26T02:45:20.423
2008-08-26T02:45:20.423
1,611
1,611
null
27,167
2
null
26,799
0
null
like a few others, I have a clean copy of my virtual pc that I can grab and start fresh at anytime and all code is stored in subversion.
null
CC BY-SA 2.5
null
2008-08-26T00:48:24.090
2008-08-26T00:48:24.090
null
null
2,272
null
27,164
2
null
26,826
1
null
I agree with Lars. Sometimes you will not be able to avoid it, depending on your needs. But, in general the best policy is to avoid modification if at all possible. I know that some of the other menu items in the current user menu (change login, my settings, etc) can be changed by removing permissions from the user....
null
CC BY-SA 2.5
null
2008-08-26T00:45:07.250
2008-08-26T00:45:07.250
null
null
2,470
null
27,168
2
null
27,129
7
null
[ChartDirector](http://www.advsofteng.com/) is fantastic and supports more than just Java and .NET.
null
CC BY-SA 2.5
null
2008-08-26T00:48:26.727
2008-08-26T00:48:26.727
null
null
1,693
null
27,159
2
null
25,224
4
null
This is actually not that hard to do in PostgreSQL because it has the ["DISTINCT ON"](http://www.postgresql.org/docs/8.3/static/sql-select.html#SQL-DISTINCT) clause in its SELECT syntax (DISTINCT ON isn't standard SQL). ``` SELECT DISTINCT ON (code) code, content, createtime FROM metatable WHERE userid = 15 ORDER BY c...
null
CC BY-SA 2.5
null
2008-08-26T00:29:36.100
2008-08-26T22:23:51.353
2008-08-26T22:23:51.353
619
619
null
27,155
2
null
26,971
23
null
@Kevin: I think the problem with the example you are presenting is that you are using a poor database design. I would have thought you'd create a customer table and an address table and normalized the tables. If you do that you can definately use Linq To SQL for the scenario you're suggesting. Scott Guthrie has a [grea...
null
CC BY-SA 2.5
null
2008-08-26T00:20:58.163
2008-08-26T00:20:58.163
null
null
493
null
27,173
2
null
20,575
0
null
The yellow screen of death is just a 500 error as far as the server is concerned, you can redirect to a custom screen using the error section of the web.config. To make a whole server change in the same manner you could probably override it at the iis level? Or perhaps even set the default behaviour in the machine.co...
null
CC BY-SA 2.5
null
2008-08-26T00:53:01.987
2008-08-26T00:53:01.987
null
null
2,272
null
27,169
2
null
20,575
-1
null
The easiest, laziest thing I could think of would be to have the process happen thusly: 1. The yellow screen is modified so the line is source code is clickable. When clicked it delivers a small text file with the source file name and line number. 2. A small program on the PC is tied to the extension of the small fil...
null
CC BY-SA 2.5
null
2008-08-26T00:49:24.680
2009-03-25T13:04:14.573
2009-03-25T13:04:14.573
2,915
2,915
null
27,170
2
null
26,843
1
null
I'm mostly going to advocate MS SQL Server because of .NET integration. Linq To Sql is pretty much my favorite way to do deal with databases these days: anonymous functions make everything better! My current place of work has also used MSSQL Express for real projects, so you have at least two of us confirming that t...
null
CC BY-SA 2.5
null
2008-08-26T00:50:35.800
2008-08-26T00:50:35.800
null
null
634
null
27,174
2
null
20,575
0
null
> The yellow screen of death is just a 500 error as far as the server is concerned, you can redirect to a custom screen using the error section of the web.config. To make a whole server change in the same manner you could probably override it at the iis level? Or perhaps even set the default behaviour in the machine.co...
null
CC BY-SA 2.5
null
2008-08-26T00:54:49.097
2008-08-26T00:54:49.097
null
null
1,965
null
27,192
2
null
27,129
0
null
Flash Charts. [http://www.fusioncharts.com/free/Gallery.asp](http://www.fusioncharts.com/free/Gallery.asp)
null
CC BY-SA 2.5
null
2008-08-26T01:11:13.253
2008-08-26T01:11:13.253
null
null
1,293
null
27,172
2
null
27,138
1
null
I'm pretty sure you can't do what you want directly. The best idea I can come up with is to "reuse" an iPhone app that records location and makes it accessible on the web. Take Twitter for example. If I'm not mistaken, Tapulous' app Twinkle will grab your location and post it to your Twitter.com user profile. Here's a...
null
CC BY-SA 3.0
null
2008-08-26T00:52:41.363
2012-03-29T20:37:50.087
2012-03-29T20:37:50.087
1,219,121
544
null
27,195
1
27,196
null
9
2,039
Can fogbugz track case dependencies?
Can fogbugz track case dependencies?
CC BY-SA 2.5
null
2008-08-26T01:17:25.673
2012-03-20T14:14:06.687
null
null
479
[ "fogbugz" ]
27,196
2
null
27,195
9
null
Yes and no. Cases can be linked to each other, but if you're looking for a tree of cases (prerequisites and such), you need FogBugz 7 or later. If you're using FogBugz 7.3 or greater, you can now use the [Case Dependency Plugin](http://www.fogcreek.com/fogbugz/plugins/plugin.aspx?ixPlugin=57), which was released in Ap...
null
CC BY-SA 3.0
null
2008-08-26T01:19:50.147
2012-03-20T14:14:06.687
2012-03-20T14:14:06.687
166,258
1,975,282
null
27,199
2
null
27,195
5
null
You didn't define what you mean by exactly, but if you mean that the resolution of one case requires the resolution of others - formally the answer is no. However, you can refer to other cases from a base case and FogBugz will track the cross references. For example, if you say "see case 2031" in the text of one case,...
null
CC BY-SA 2.5
null
2008-08-26T01:21:35.007
2008-08-26T01:21:35.007
null
null
1,553
null
27,185
2
null
23,763
4
null
I have never used GIMP's colorize command. However, if your getting the RGB value of each pixel and adding RGB value to it you should really use a [LookupOp](http://docs.oracle.com/javase/7/docs/api/java/awt/image/LookupOp.html) Here is some code that I wrote to apply a BufferedImageOp to a BufferedImage. Using Nicks ...
null
CC BY-SA 3.0
null
2008-08-26T01:02:32.793
2013-11-26T05:06:11.653
2013-11-26T05:06:11.653
1,102,512
1,992
null
27,200
2
null
26,834
0
null
You don't want the logic to be in the view. However you are free to create a database view. Except, rather than create it on the database side, create it as a new model. This will enable you to perform your calculations and your actual logic there, in one place. The pain of trying to keep your views in sync vs. the one...
null
CC BY-SA 3.0
null
2008-08-26T01:26:04.013
2015-10-08T07:27:06.227
2015-10-08T07:27:06.227
67,579
757
null
27,206
1
27,344
null
2
603
I'm comparing between two techniques to create partitioned tables in SQL 2005. - [here](http://www.sqlservercentral.com/articles/SQL+Server+2005/61676/)- [here](http://www.sqlservercentral.com/articles/SQL+Server+2005/61765/) Given that the enterprise edition is much more expensive, I would like to know what are the ...
What are the benefits of using partitions with the Enterprise edition of SQL 2005
CC BY-SA 2.5
null
2008-08-26T01:29:27.423
2011-04-07T17:33:10.663
2011-03-09T11:22:06.027
21,234
1,363
[ "sql", "sql-server-2005", "partitioning" ]
27,153
1
140,191
null
4
4,279
I have been considering taking the plunge and installing Linux on my Playstation 3. As C# is my current language of choice, the next logical step would be to install Mono. I have done a little research and found that [http://psubuntu.com/wiki/InstallationInstructions](http://psubuntu.com/wiki/InstallationInstructions...
Development resources for Mono on PS3
CC BY-SA 2.5
0
2008-08-26T00:19:00.947
2009-12-08T18:10:20.460
2009-12-08T18:10:20.460
2,470
2,470
[ "c#", "mono", "playstation" ]
27,194
2
null
8,451
5
null
If you're developing for Windows, there are ways you can restrict access to memory, but absolutely blocking out others is not doable. If you're hoping to keep a secret secret, read [Writing Secure Code](http://www.microsoft.com/mspress/books/5957.aspx) - which addresses this problem at some length, but be aware that y...
null
CC BY-SA 2.5
null
2008-08-26T01:16:51.790
2008-08-26T01:25:40.303
2008-08-26T01:25:40.303
257
257
null
27,212
2
null
27,030
70
null
EDIT: You cannot overload operators in current, common browser-based implementations of JavaScript interpreters. To answer the original question, one way you could do this, and mind you, this is a bit of a hack, simply [serialize the two arrays to JSON](https://github.com/douglascrockford/JSON-js/blob/master/json2.js)...
null
CC BY-SA 3.0
null
2008-08-26T01:39:34.340
2008-08-27T18:53:16.673
2017-05-23T12:02:23.357
-1
1,790
null
27,225
2
null
27,078
2
null
It sounds like you need to allow anonymous users. Can you connect from other machines on your network? Try changing your virtual directory's authentication settings, so that anonymous users are allowed ().
null
CC BY-SA 3.0
null
2008-08-26T01:49:41.617
2015-08-17T01:21:03.707
2015-08-17T01:21:03.707
1,157
1,157
null
27,227
2
null
26,834
1
null
Controllers don't have to map to specific models or views. Your model doesn't have to map one-to-one to a database table. That's sort of the idea of the framework. Separation of concerns that can all be tested in isolation.
null
CC BY-SA 3.0
null
2008-08-26T01:52:25.840
2015-10-08T07:24:13.787
2015-10-08T07:24:13.787
67,579
1,208
null
27,222
1
27,236
null
10
8,766
I am looking for good methods of manipulating HTML in PHP. For example, the problem I currently have is dealing with malformed HTML. I am getting input that looks something like this: ``` <div>This is some <b>text ``` As you noticed, the HTML is missing closing tags. I could use regex or an XML Parser to solve this...
DOM manipulation in PHP
CC BY-SA 4.0
0
2008-08-26T01:47:29.813
2019-01-18T11:19:31.450
2019-01-18T11:19:31.450
567,854
889
[ "php", "html", "dom" ]
27,234
2
null
20,575
0
null
Don't forget that you need the Program Debug Database (pdb) file to find the source code line number. An application in release mode won't have the same level of information as a debug release.
null
CC BY-SA 2.5
null
2008-08-26T01:55:11.417
2008-08-26T01:55:11.417
null
null
2,758
null
27,202
2
null
26,925
0
null
The way I've done this in the past is to not have CC.Net checkout source itself. Instead, there are two `<msbuild>` elements for the project, the first one calling a build target that runs [svn-clean.pl](http://svn.collab.net/repos/svn/trunk/contrib/client-side/svn-clean) (compiled to .exe), and then updates the source...
null
CC BY-SA 2.5
null
2008-08-26T01:27:03.700
2008-08-26T01:27:03.700
null
null
2,314
null
27,220
1
null
null
141
221,249
I'm looking for a method, or a code snippet for converting std::string to LPCWSTR
How to convert std::string to LPCWSTR in C++ (Unicode)
CC BY-SA 2.5
0
2008-08-26T01:46:31.720
2023-01-17T16:52:38.997
2008-08-27T14:32:44.880
1,968
2,701
[ "c++", "winapi" ]
27,080
2
null
27,077
0
null
Use the option.
null
CC BY-SA 2.5
null
2008-08-25T22:59:10.623
2008-08-25T22:59:10.623
null
null
1,438
null
27,239
2
null
21,652
0
null
It depends on whether the code that catches the exception needs to differentiate between exceptions or whether you are just using exceptions to fail out to an error page. If you need to differentiate between a NullReference exception and your custom MailException higher up in the call stack, then spend the time and wr...
null
CC BY-SA 2.5
null
2008-08-26T01:57:30.990
2008-08-26T01:57:30.990
null
null
1,208
null
27,236
2
null
27,222
11
null
PHP has [a PECL extension that gives you access to the features of HTML Tidy](http://php.net/tidy). Tidy is a pretty powerful library that should be able to take code like that and close tags in an intelligent manner. I use it to clean up malformed XML and HTML sent to me by a classified ad system prior to import.
null
CC BY-SA 2.5
null
2008-08-26T01:55:30.730
2008-08-26T01:55:30.730
null
null
1,902,010
null
27,231
2
null
27,219
6
null
The HTML `<option>` tag has an attribute called "value", where you can store your key. e.g.: ``` <option value=1>Jason</option> ``` I don't know how this will play with jQuery (I don't use it), but I hope this is helpful nonetheless.
null
CC BY-SA 3.0
null
2008-08-26T01:53:42.777
2015-12-16T08:40:24.030
2015-12-16T08:40:24.030
1,016,716
1,157
null
27,243
1
27,323
null
6
3,186
What kinds of considerations are there for migrating an application from 1.2 to 2.0? What are breaking changes vs. recommended changes? Are there mapping issues?
NHibernate 1.2 to 2.0 migration
CC BY-SA 3.0
0
2008-08-26T01:59:00.457
2015-04-17T18:09:20.770
2015-04-17T18:09:20.770
1,215,724
2,849
[ "nhibernate" ]
27,219
1
27,259
null
8
14,683
Given a select with multiple option's in jQuery. ``` $select = $("<select></select>"); $select.append("<option>Jason</option>") //Key = 1 .append("<option>John</option>") //Key = 32 .append("<option>Paul</option>") //Key = 423 ``` How should the key be stored and retrieved? The ID may be an OK place ...
Keeping key value pairs together in HTML <select/> with jQuery?
CC BY-SA 4.0
null
2008-08-26T01:46:27.273
2019-03-22T15:07:38.433
2019-03-22T15:07:38.433
7,079,025
1,293
[ "javascript", "jquery", "html" ]
27,246
2
null
23,250
2
null
I got in the habit of using it liberally in Visual C++ since doing so would trigger IntelliSense ones I hit the '>' key, and I'm lazy. (and prone to typos) But I've continued to use it, since I find it handy to see that I'm calling a member function rather than a global function.
null
CC BY-SA 2.5
null
2008-08-26T02:00:07.817
2008-08-26T02:00:07.817
null
null
1,674
null
27,244
2
null
27,148
2
null
[SimplePie](http://simplepie.org/) is a PHP library that supports merging RSS feeds into one combined feed. I don't believe it does dupe checking out-of-the-box, but I found it trivial to write a little function to eliminate duplicate content via their GUIDs.
null
CC BY-SA 2.5
null
2008-08-26T01:59:38.693
2008-08-26T01:59:38.693
null
null
1,902,010
null
27,248
2
null
27,242
0
null
I use [Prototype](http://prototypejs.org/), which I like. I'm afraid I don't know jQuery, so I can't compare them, but I think Prototype is worth checking out. Their API docs are generally pretty good, in my experience (which certainly helps with learnability).
null
CC BY-SA 2.5
null
2008-08-26T02:03:04.690
2009-12-12T12:35:51.873
2009-12-12T12:35:51.873
63,550
1,157
null
27,240
1
27,389
null
67
21,082
In Java 5 and above you have the foreach loop, which works magically on anything that implements `Iterable`: ``` for (Object o : list) { doStuff(o); } ``` However, `Enumerable` still does not implement `Iterable`, meaning that to iterate over an `Enumeration` you must do the following: ``` for(; e.hasMoreElements...
Why aren't Enumerations Iterable?
CC BY-SA 3.0
0
2008-08-26T01:57:51.427
2022-06-22T15:36:58.927
2015-07-01T22:03:30.083
808,804
1,666
[ "java", "enumeration", "iterable" ]
27,250
2
null
27,242
5
null
It is very much worth it. jQuery really makes JavaScript fun again. It's as if all of JavaScript best practices were wrapped up into a single library. I learned it through [jQuery in Action](http://www.manning.com/bibeault/) (Manning), which I whipped through over a weekend. It's a little bit behind the current state ...
null
CC BY-SA 2.5
null
2008-08-26T02:03:49.150
2009-12-12T12:36:40.013
2009-12-12T12:36:40.013
63,550
726
null
27,247
1
27,276
null
29
34,811
I need to know about Epoll On linux System. Could you recommend manual or guides about epoll library? need more detailed guides. it's better to have some examples. help me. and Thank you for reading.
Could you recommend some guides about Epoll on Linux
CC BY-SA 2.5
0
2008-08-26T02:00:15.820
2020-05-27T11:00:50.537
2015-04-15T20:32:56.557
58,074
2,370,764
[ "c++", "linux", "epoll" ]
27,252
2
null
25,665
1
null
PDFminer gave me perhaps one line [page 1 of 7...] on every page of a pdf file I tried with it. The best answer I have so far is pdftoipe, or the c++ code it's based on Xpdf. see [my question](https://stackoverflow.com/questions/25550/whats-the-best-way-to-importread-data-from-pdf-files) for what the output of pdftoi...
null
CC BY-SA 2.5
null
2008-08-26T02:04:10.897
2008-08-26T02:04:10.897
2017-05-23T12:34:45.403
-1
2,775
null
27,229
2
null
26,594
1
null
This has historically been a major weak point for Java, IMO. There are numerous ways to display limited markup, but very few that offer full featured HTML capabilities. The previously mentioned JDIC component is one option, however it is considered a "heavyweight" component and therefore does not always integrate wel...
null
CC BY-SA 2.5
null
2008-08-26T01:52:48.617
2008-08-26T01:52:48.617
null
null
1,432
null
27,253
1
418,595
null
11
3,832
I am looking for a (preferably) command-line tool that can reformat the C# source code on a directory tree. Ideally, I should be able to customize the formatting. Bonus points if the tool can be run on [Mono](https://en.wikipedia.org/wiki/Mono_%28software%29) (or Linux).
Is there a tool for reformatting C# code?
CC BY-SA 4.0
null
2008-08-26T02:04:30.817
2020-06-13T01:21:33.663
2020-06-13T01:13:42.713
63,550
2,680
[ "c#", "code-formatting" ]
27,254
2
null
27,242
44
null
Rick Strahl and Matt Berseth's blogs both tipped me into jQuery and man am I glad they did. jQuery completely changes a) your client programming perspective, b) the grief it causes it you, and c) how much fun it can be! [http://www.west-wind.com/weblog/](http://www.west-wind.com/weblog/) [http://mattberseth.com/](ht...
null
CC BY-SA 2.5
null
2008-08-26T02:05:41.173
2009-12-12T00:24:34.370
2009-12-12T00:24:34.370
63,550
2,536
null
27,249
2
null
21,652
1
null
I think a combination of the above is going to give you the best result. You can throw different exceptions depending on the problem. e.g. Missing email address = ArgumentException. But then in the UI layer you can check the exception type and, if need be, the message and then display a appropriate message to the u...
null
CC BY-SA 2.5
null
2008-08-26T02:03:14.143
2008-08-26T02:03:14.143
null
null
2,279
null
27,264
2
null
27,258
2
null
You are not just restricted to ASP.NET AJAX but can use any 3rd party library like jQuery, YUI etc to do the same thing. You can then just make a request to a blank page on your site which should return the headers that contain the cookies.
null
CC BY-SA 2.5
null
2008-08-26T02:11:12.317
2008-08-26T02:11:12.317
null
null
2,279
null
27,259
2
null
27,219
17
null
Like lucas said the value attribute is what you need. Using your code it would look something like this ( I added an id attribute to the select to make it fit ): ``` $select = $('<select id="mySelect"></select>'); $select.append('<option value="1">Jason</option>') //Key = 1 .append('<option value="32">John</option>...
null
CC BY-SA 2.5
null
2008-08-26T02:07:27.940
2008-08-26T02:07:27.940
null
null
550
null
27,260
2
null
27,242
3
null
There are a number of resources to learn jQuery (which is completely worth it IMHO). Start here [http://docs.jquery.com/Main_Page](http://docs.jquery.com/Main_Page) to read the jQuery documentation. This is a great site for seeing visually what it has to offer: [http://visualjquery.com/1.1.2.html](http://visualjquery.c...
null
CC BY-SA 2.5
null
2008-08-26T02:07:50.780
2009-12-12T12:38:15.313
2009-12-12T12:38:15.313
63,550
2,849
null
27,256
2
null
27,242
4
null
There are numerous JavaScript libraries that are worth at least a cursory review to see if they suit your particular need. First, come up with a short list of criteria to guide your selection and evaluation process. Then, check out a [high level framework comparison/reviews somewhere like Wikipedia](http://en.wikipedi...
null
CC BY-SA 2.5
null
2008-08-26T02:06:54.073
2008-08-26T13:48:27.427
2008-08-26T13:48:27.427
null
null
null
27,266
1
27,280
null
6
6,219
I heard that if you use port 443 (the port usually used for https) for ssh, the encrypted packets look the same to your isp. Could this be a way to avoid traffic shaping/throttling?
Avoid traffic shaping by using ssh on port 443
CC BY-SA 2.5
null
2008-08-26T02:11:52.750
2015-02-21T21:47:00.567
2015-02-21T21:47:00.567
508,666
2,908
[ "linux", "ssh", "https", "trafficshaping" ]
27,268
2
null
27,129
0
null
You could also try [Open Flash Charts](http://teethgrinder.co.uk/open-flash-chart/)
null
CC BY-SA 2.5
null
2008-08-26T02:13:25.430
2008-08-26T02:13:25.430
null
null
2,279
null
27,267
1
null
null
56
51,636
I've been interacting with Amazon S3 through [S3Fox](https://addons.mozilla.org/en-US/firefox/addon/3247) and I can't seem to delete my buckets. I select a bucket, hit delete, confirm the delete in a popup, and... nothing happens. Is there another tool that I should use?
Delete Amazon S3 buckets?
CC BY-SA 2.5
0
2008-08-26T02:12:06.790
2014-08-14T16:49:06.770
2012-05-03T02:03:39.923
352,841
658
[ "amazon-s3", "buckets" ]
27,270
2
null
27,258
6
null
If you don't want to create a blank page, you could call a IHttpHandler (ashx) file: ``` public class RSSHandler : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/xml"; string sXml = BuildXMLString(); //not showing t...
null
CC BY-SA 2.5
null
2008-08-26T02:14:36.237
2008-08-26T02:14:36.237
null
null
2,758
null
27,269
2
null
27,018
1
null
I don't know that there's a good answer to this one other than "apply your judgement, based on your experience." Failing that, get help, which I guess is what you're doing here ;) Seriously, though, if you find that you're creating a gazillion classes to do what seems like a simple job, then you're probably being too ...
null
CC BY-SA 2.5
null
2008-08-26T02:13:39.487
2008-08-26T02:13:39.487
null
null
1,157
null
27,272
2
null
27,253
3
null
This isn't command-line, Mono or Linux, but it's something: I've been using [ReSharper](http://www.jetbrains.com/resharper/) (made by JetBrains) and it's rather good. It's a Visual Studio plugin, so I'm guessing it's not your cup of tea.
null
CC BY-SA 4.0
null
2008-08-26T02:16:26.063
2020-06-13T01:18:12.823
2020-06-13T01:18:12.823
63,550
1,157
null
27,271
2
null
27,253
4
null
You could give [Artistic Style](http://astyle.sourceforge.net/) a try. It requires [Perl](https://en.wikipedia.org/wiki/Perl) to be installed though. It's got a decent list of formatting options, and supports C and Java as well.
null
CC BY-SA 4.0
null
2008-08-26T02:15:47.217
2020-06-13T01:14:57.893
2020-06-13T01:14:57.893
63,550
2,567
null
27,275
2
null
27,258
-1
null
You can also use WebMethods which are built into the asp.net ajax library. You simply create a static method on the page's codebehind and call that from your Ajax. There's a pretty basic example of how to do it [here](https://web.archive.org/web/20200803212711/http://geekswithblogs.net/frankw/archive/2008/03/13/asp.net...
null
CC BY-SA 4.0
null
2008-08-26T02:18:51.453
2022-07-21T14:05:39.420
2022-07-21T14:05:39.420
4,751,173
493
null
27,276
2
null
27,247
19
null
Here's an introduction to Epoll, a pretty basic tutorial: [http://blog.kovyrin.net/2006/04/13/epoll-asynchronous-network-programming/](https://kovyrin.net/2006/04/13/epoll-asynchronous-network-programming/) A more complete example can be found here: [https://banu.com/blog/2/how-to-use-epoll-a-complete-example-in-c/](h...
null
CC BY-SA 4.0
null
2008-08-26T02:19:03.140
2020-05-27T11:00:50.537
2020-05-27T11:00:50.537
635,464
1,811
null
27,278
2
null
27,258
-1
null
You should use a web service (.asmx). With Microsoft's ASP.NET AJAX you can even auto-generate the stubs.
null
CC BY-SA 2.5
null
2008-08-26T02:19:21.797
2008-08-26T02:19:21.797
null
null
1,208
null
27,284
2
null
27,222
1
null
For manipulating the DOM i think that what you're looking for is [this](http://www.php.net/manual/en/intro.dom.php). I've used to parse HTML documents from the web and it worked fine for me.
null
CC BY-SA 2.5
null
2008-08-26T02:24:55.607
2008-08-26T02:24:55.607
null
null
550
null
27,280
2
null
27,266
5
null
I'm not sure it's true that any given ssh packet "looks" the same as any given https packet. However, over their lifetime they don't behave the same way. The session set up and tear down don't look alike (SSH offer a plain text banner during initial connect, for one thing). Also, typically wouldn't an https session ...
null
CC BY-SA 2.5
null
2008-08-26T02:21:48.187
2008-08-26T02:21:48.187
null
null
430
null
27,285
2
null
27,267
0
null
I've always ended up using their C# API and little scripts to do this. I'm not sure why S3Fox can't do it, but that functionality appears to be broken within it at the moment. I'm sure that many of the other S3 tools can do it as well, though.
null
CC BY-SA 2.5
null
2008-08-26T02:26:43.323
2008-08-26T02:26:43.323
null
null
1,432
null
27,288
1
null
null
1
14,328
I know that this should be easy but how do I export/save a DataGridView to excel?
How do I save a datagrid to excel in vb.net?
CC BY-SA 2.5
0
2008-08-26T02:28:39.370
2014-04-11T05:56:30.113
null
null
359
[ "vb.net", "excel" ]
27,281
2
null
27,219
3
null
If you are using HTML5, you can use a [custom data attribute](http://ejohn.org/blog/html-5-data-attributes/). It would look like this: ``` $select = $("<select></select>"); $select.append("<option data-key=\"1\">Jason</option>") //Key = 1 .append("<option data-key=\"32\">John</option>") //Key = 32 .append("<opti...
null
CC BY-SA 2.5
null
2008-08-26T02:22:07.843
2008-08-26T02:22:07.843
null
null
653
null
27,274
2
null
27,266
2
null
Your ISP is probably more likely to traffic shape port 443 over 22, seeing as 22 requires more real-time responsiveness. Not really a programming question though, maybe you'll get a more accurate response somewhere else..
null
CC BY-SA 2.5
null
2008-08-26T02:18:06.603
2008-08-26T02:18:06.603
null
null
1,693
null
27,258
1
27,270
null
6
4,635
I'm about to start a fairly Ajax heavy feature in my company's application. What I need to do is make an Ajax callback every few minutes a user has been on the page. - - What I'm curious to find out, is if there is any clean and simple way to make a JavaScript Ajax callback to an ASP.NET page without posting back t...
ASP.NET JavaScript Callbacks Without Full PostBacks?
CC BY-SA 2.5
0
2008-08-26T02:07:25.630
2022-07-21T14:05:39.420
2017-05-23T12:13:34.533
-1
392
[ "asp.net", "javascript", "ajax" ]
27,291
2
null
27,220
13
null
If you are in an ATL/MFC environment, You can use the ATL conversion macro: ``` #include <atlbase.h> #include <atlconv.h> . . . string myStr("My string"); CA2W unicodeStr(myStr); ``` You can then use unicodeStr as an LPCWSTR. The memory for the unicode string is created on the stack and released then the destruct...
null
CC BY-SA 2.5
null
2008-08-26T02:30:25.013
2008-08-26T02:30:25.013
null
null
2,284
null
27,297
2
null
27,138
1
null
[http://www.instamapper.com/iphone](http://www.instamapper.com/iphone) [iPhone App store](http://www.apple.com/iphone/appstore/) While this may not directly answer your question, there are quite a few iPhone apps that already do this kind of thing with GPS. Instamapper is the first one I pulled up from the app store,...
null
CC BY-SA 2.5
null
2008-08-26T02:36:59.757
2008-08-26T02:36:59.757
null
null
1,880
null
27,294
1
27,310
null
21
4,982
I'm working on an internal project for my company, and part of the project is to be able to parse various "Tasks" from an XML file into a collection of tasks to be ran later. Because each type of Task has a multitude of different associated fields, I decided it would be best to represent each type of Task with a seper...
Abstract Factory Design Pattern
CC BY-SA 2.5
0
2008-08-26T02:35:30.993
2017-09-15T12:02:26.570
2008-09-16T14:37:22.503
1,965
1,965
[ "c#", "design-patterns", "factory" ]
27,298
2
null
27,292
4
null
You can still use SVN, but instead of doing a checkout on your live environment, do an export, that way no .svn directories will be created. The downside, of course, is that no code changes on your live environment can take place. This is a good thing. As a general rule, code changes on production systems should never...
null
CC BY-SA 2.5
null
2008-08-26T02:37:51.423
2008-08-26T02:37:51.423
null
null
1,693
null
27,301
2
null
27,253
1
null
Take a look at [Polystyle](http://www.polystyle.com/)
null
CC BY-SA 2.5
null
2008-08-26T02:39:13.323
2008-08-26T02:39:13.323
null
null
2,768
null
27,302
2
null
6,623
0
null
It looks reasonable enough to me, unless something is imposing a 4096 character limit [you list 4020 characters] A 4096 limit to me seems a bit absurd, it'd be 2048 or 32767 or 8192 from stuff I've found by searching for the command-line limits.
null
CC BY-SA 2.5
null
2008-08-26T02:40:07.427
2008-08-26T02:40:07.427
null
null
2,775
null
27,304
2
null
27,288
1
null
Does it need to be a native XLS file? Your best bet is probably just to export the data to a CSV file, which is plain text and reasonably easy to generate. CSVs open in Excel by default for most users so they won't know the difference.
null
CC BY-SA 2.5
null
2008-08-26T02:40:29.937
2008-08-26T02:40:29.937
null
null
615
null
27,303
1
27,478
null
1
3,201
Anyone know if it's possible to databind the ScaleX and ScaleY of a render transform in Silverlight 2 Beta 2? Binding transforms is possible in WPF - But I'm getting an error when setting up my binding in Silverlight through XAML. Perhaps it's possible to do it through code? ``` <Image Height="60" HorizontalAlignment=...
Databind RenderTransform Scaling in Silverlight 2 Beta 2
CC BY-SA 3.0
0
2008-08-26T02:40:08.017
2013-12-02T12:45:12.007
2013-12-02T12:45:12.007
2,432,317
1,199,387
[ "silverlight", "data-binding" ]
27,299
2
null
27,292
1
null
Any source control solution you pick is going to have problems if people are moving, deleting, or adding files and not telling the source control system about it. I'm not aware of any source control item that could solve this problem. In the case where you just can't educate the people working on the project[1], th...
null
CC BY-SA 2.5
null
2008-08-26T02:37:57.663
2008-08-26T02:37:57.663
null
null
1,862
null
27,292
1
27,298
null
3
1,105
What is the best solution for maintaining backup and revision control on live websites? As part of my job I work with several live websites. We need an efficient means of maintaining backups of the live folders over time. Additionally, updating these sites can be a pain, especially if a change happens to break in the...
What is the best solution for maintaining backup and revision control on live websites?
CC BY-SA 3.0
null
2008-08-26T02:32:39.783
2014-09-15T11:24:07.863
2014-09-15T11:24:07.863
100,297
364
[ "version-control", "backup", "hosting" ]
27,242
1
27,254
null
126
28,770
I've had a lot of good experiences learning about web development on [w3schools.com](http://www.w3schools.com/). It's hit or miss, I know, but the PHP and CSS sections specifically have proven very useful for reference. Anyway, I was wondering if there was a similar site for [jQuery](http://en.wikipedia.org/wiki/JQuer...
Where can I learn jQuery? Is it worth it?
CC BY-SA 3.0
0
2008-08-26T01:58:23.093
2012-05-20T21:26:18.520
2012-02-10T17:14:13.793
257,493
2,908
[ "javascript", "jquery", "review" ]
27,312
2
null
27,258
2
null
My vote is with the HTTPHandler suggestion as well. I utilize this often. Because it does not invoke an instance of the page class, it is very lightweight. All of the ASP.NET AJAX framework tricks actually instantiate and create the entire page again on the backend per call, so they are huge resource hogs. Hence, my...
null
CC BY-SA 2.5
null
2008-08-26T02:45:38.003
2008-08-26T03:04:42.513
2008-08-26T03:04:42.513
1,965
1,965
null
27,310
2
null
27,294
12
null
I use reflection to do this. You can make a factory that basically expands without you having to add any extra code. make sure you have "using System.Reflection", place the following code in your instantiation method. ``` public Task CreateTask(XmlElement elem) { if (elem != null) { try { ...
null
CC BY-SA 2.5
null
2008-08-26T02:45:00.907
2008-08-26T02:45:00.907
null
null
1,220
null