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
40,888
2
null
40,884
2
null
You could use the [BinaryFormatter](http://msdn.microsoft.com/en-us/library/system.runtime.serialization.formatters.binary.binaryformatter.aspx) class to serialize your object to a binary format, then save the resulting string in your database.
null
CC BY-SA 2.5
null
2008-09-02T23:11:22.730
2008-09-02T23:11:22.730
null
null
2,688
null
40,878
2
null
40,471
4,182
null
There are several differences between [HashMap](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/HashMap.html) and [Hashtable](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Hashtable.html) in Java: 1. Hashtable is synchronized, whereas HashMap is not. This makes HashMap b...
null
CC BY-SA 4.0
null
2008-09-02T23:02:37.180
2023-02-07T13:26:15.613
2023-02-07T13:26:15.613
13,695,861
2,030
null
40,882
2
null
40,730
74
null
Sometimes I use this, if I don't want it to be actually set and persisted in my db: ``` class Person { private string _name; public string Name { get { return string.IsNullOrEmpty(_name) ? "Default Name" : _name; } set { _name = value; } } } ``` Obviou...
null
CC BY-SA 4.0
null
2008-09-02T23:07:27.560
2022-12-25T01:02:07.177
2022-12-25T01:02:07.177
11,107,541
3,717
null
40,891
2
null
40,845
14
null
According to a [response](http://blogs.msdn.com/andrewkennedy/archive/2008/08/22/units-of-measure-in-f-part-two-unit-conversions.aspx#8920660) on the next related blog post, they are a purely static mechanism in the F# compiler. So there is no CLR representation of the units data. Its not entirely clear whether it cur...
null
CC BY-SA 2.5
null
2008-09-02T23:12:40.963
2008-09-03T05:45:39.473
2008-09-03T05:45:39.473
4,108
4,108
null
40,873
1
41,016
null
18
22,081
I have a table which is full of arbitrarily formatted phone numbers, like this ``` 027 123 5644 021 393-5593 (07) 123 456 042123456 ``` I need to search for a phone number in a similarly arbitrary format ( e.g. `07123456` should find the entry `(07) 123 456` The way I'd do this in a normal programming language is to s...
Searching for phone numbers in mysql
CC BY-SA 3.0
0
2008-09-02T23:01:32.240
2022-03-14T11:37:17.030
2020-06-20T09:12:55.060
-1
234
[ "mysql", "string", "search", "phone-number" ]
40,877
2
null
40,816
4
null
I did some research and came across this article that seems to have a solution to your question. source: jimzimmerman [http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=330](http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=330) > So basically if you put the class name TextboxWatermark on...
null
CC BY-SA 2.5
null
2008-09-02T23:02:35.497
2008-09-02T23:02:35.497
null
null
981
null
40,895
2
null
40,873
2
null
This is a problem with MySQL - the regex function can match, but it can't replace. [See this post](http://forums.mysql.com/read.php?10,137433,137465) for a possible solution.
null
CC BY-SA 3.0
null
2008-09-02T23:16:19.050
2014-12-15T21:09:29.870
2014-12-15T21:09:29.870
2,581,872
1,462
null
40,900
2
null
40,873
2
null
Is it possible to run a query to reformat the data to match a desired format and then just run a simple query? That way even if the initial reformatting is slow you it doesn't really matter.
null
CC BY-SA 2.5
null
2008-09-02T23:18:03.103
2008-09-02T23:18:03.103
null
null
4,108
null
40,894
2
null
40,471
153
null
`HashMap`: An implementation of the `Map` interface that uses hash codes to index an array. `Hashtable`: Hi, 1998 called. They want their collections API back. Seriously though, you're better off staying away from `Hashtable` altogether. For single-threaded apps, you don't need the extra overhead of synchronisation. F...
null
CC BY-SA 3.0
null
2008-09-02T23:14:11.333
2017-12-04T21:31:14.060
2017-12-04T21:31:14.060
3,434
3,434
null
40,884
1
40,893
null
1
4,875
How can I go about storing a vb.net user defined object in a sql database. I am not trying to replicate the properties with columns. I mean something along the lines of converting or encoding my object to a byte array and then storing that in a field in the db. Like when you store an instance of an object in session, b...
vb.net object persisted in database
CC BY-SA 3.0
null
2008-09-02T23:08:54.547
2011-11-25T01:23:41.273
2011-11-25T01:23:41.273
1,288
777
[ "sql", "vb.net", "serialization" ]
40,899
2
null
40,787
2
null
I'd suggest just appending the current datetime of the build to a log file. ``` date >> builddates.txt ``` That way you get a build count via the # of lines, and you may also get some interesting statistics if you can be bothered analysing the dates and times later on. The extra size & time to count the number of...
null
CC BY-SA 2.5
null
2008-09-02T23:17:46.070
2008-09-02T23:17:46.070
null
null
3,715
null
40,903
2
null
40,545
1
null
@Unsliced I think the problem he is getting at is when you take a crystal report someone developed against another database, and you bring it up in Crystal Reports XI, you have to do a Change Datasource for each field, including those in subreports. If you just change source on the top level of the report, it often ...
null
CC BY-SA 2.5
null
2008-09-02T23:20:56.780
2008-09-02T23:20:56.780
null
null
1,233
null
40,909
2
null
40,884
1
null
The XmlSerializer or the DataContractSerializer in .net 3.x will do the job for you.
null
CC BY-SA 2.5
null
2008-09-02T23:23:49.737
2008-09-02T23:23:49.737
null
null
493
null
40,907
1
null
null
10
1,591
Does anyone know of a web based IDE (Like VS, Eclipse, IDEA)? Besides [ECCO](http://ecco.sourceforge.net/)?
Does anyone know of a web based IDE?
CC BY-SA 2.5
0
2008-09-02T23:22:39.223
2011-06-04T10:26:47.927
null
null
4,263
[ "web-ide" ]
40,908
2
null
40,863
5
null
I think WPF can greatly improve user experience. However there are not much business oriented controls out there which means you need to do a lot by yourself. As for designers I think it's really hard to find WPF designer now days, it still would be a dedicated programmer rather then design-only guy. I hope th...
null
CC BY-SA 2.5
null
2008-09-02T23:22:59.130
2008-09-02T23:53:16.980
2008-09-02T23:53:16.980
1,196
1,196
null
40,890
2
null
22,732
6
null
By the way, using a PowerShell [here-string](http://blogs.msdn.com/powershell/archive/2006/07/15/Variable-expansion-in-strings-and-herestrings.aspx) might make your function a little easier to read as well, since you won't need to double up all the `"`-marks: ``` function CreateAppPoolScript([string]$AppPoolName, [str...
null
CC BY-SA 2.5
null
2008-09-02T23:11:50.293
2008-09-02T23:11:50.293
null
null
2,495
null
40,916
2
null
40,873
0
null
Just an idea, but couldn't you use Regex to quickly strip out the characters and then compare against that like @Matt Hamilton suggested? Maybe even set up a view (not sure of mysql on views) that would hold all phone numbers stripped by regex to a plain phone number?
null
CC BY-SA 2.5
null
2008-09-02T23:32:11.727
2008-09-02T23:32:11.727
null
null
3,717
null
40,904
2
null
40,873
0
null
> MySQL can search based on regular expressions. Sure, but given the arbitrary formatting, if my haystack contained `"(027) 123 456"` (bear in mind position of spaces can change, it could just as easily be `027 12 3456` and I wanted to match it with `027123456`, would my regex therefore need to be this? ``` "^[\D]+0[...
null
CC BY-SA 2.5
null
2008-09-02T23:21:17.120
2008-09-02T23:21:17.120
null
null
234
null
40,912
1
45,189
null
10
15,973
I'm looking for a way to check within `pageLoad()` if this method is raised during load event because of a postback/async postback or because of being loaded and access the first time. This is similar to `Page.IsPostback` property within code behind page. TIA, Ricky
How to check if page is postback within reserved function pageLoad on ASP.NET AJAX
CC BY-SA 3.0
0
2008-09-02T23:27:23.347
2017-09-20T22:31:44.693
2017-09-20T22:31:44.693
6,053,654
4,191
[ "javascript", "asp.net-ajax", "postback", "lifecycle" ]
40,918
2
null
39,843
4
null
Also, have a look at [Attached Events](http://msdn.microsoft.com/en-us/library/bb613550.aspx) and see if you can attach your event to every Page in your app. Might be easier than a custom intermediary class.
null
CC BY-SA 2.5
null
2008-09-02T23:33:35.983
2008-09-02T23:33:35.983
null
null
615
null
40,914
2
null
6,371
3
null
We have a very similar setup to the OP. Developers develop in VM's with private DB's. [Developers will soon be committing into private branches] Testing is run on different machines ( actually in in VM's hosted on a server) [Will soon be run by Hudson CI server] Test by loading the reference dump into the db. Appl...
null
CC BY-SA 2.5
null
2008-09-02T23:30:03.217
2008-09-02T23:30:03.217
null
null
2,789
null
40,913
1
41,222
null
3
7,656
I am having problems manually looping through xml data that is received via an HTTPService call, the xml looks something like this: ``` <DataTable> <Row> <text>foo</text> </Row> <Row> <text>bar</text> </Row> </DataTable> ``` When the webservice result event is fired I do something li...
How do I loop through result objects in Flex?
CC BY-SA 4.0
null
2008-09-02T23:28:59.647
2019-06-11T03:34:55.200
2019-06-11T03:34:55.200
9,579,613
1,638
[ "apache-flex", "actionscript-3", "actionscript" ]
40,875
2
null
28,051
0
null
I recently did a web application that just referenced the files (about 90 in total) from one web application (aspx, master and ascx) without too much of an issue. That said I was using a heavily modified version of the [MVP pattern](http://polymorphicpodcast.com/shows/mv-patterns/), a lot of interfaces and conventions ...
null
CC BY-SA 3.0
null
2008-09-02T23:02:01.817
2015-12-03T19:47:07.977
2015-12-03T19:47:07.977
3,393,505
3,709
null
40,924
2
null
40,912
2
null
You could have a hidden input that you set to a known value on the server side if it's a postback/callback - and your javascript could check that value. That said, I really hope that there's a client-only solution for this. @mmattax - I believe he's looking for a client-side solution - the JavaScript equivalent of t...
null
CC BY-SA 2.5
null
2008-09-02T23:40:25.467
2008-09-03T00:12:56.263
2008-09-03T00:12:56.263
35
35
null
40,921
2
null
40,907
1
null
[Heroku](http://heroku.com/) - Ruby on Rails (RoR) [AppJet](http://appjet.com/) - Javascript [CodeIDE](http://www.codeide.com/) - Multi-Language
null
CC BY-SA 2.5
null
2008-09-02T23:37:42.433
2008-09-02T23:37:42.433
null
null
3,677
null
40,925
2
null
40,912
2
null
What you can do is wire up to the load event of the [Sys.Application](http://msdn.microsoft.com/en-us/library/bb310856.aspx) class. you can then use the isPartialLoad property of the [Sys.ApplicationLoadEventArgs](http://msdn.microsoft.com/en-us/library/bb397457.aspx) class. I believe that would let you know if you are...
null
CC BY-SA 2.5
null
2008-09-02T23:43:30.530
2008-09-02T23:53:26.623
2008-09-02T23:53:26.623
77
77
null
40,923
1
null
null
3
821
I have a framework written in Perl that sets a bunch of environment variables to support interprocess (typically it is sub process) communication. We keep a sets of key/value pairs in XML-ish files. We tried to make the key names camel-case `somethingLikeThis`. This all works well. Recently we have had occasion to...
Saving Perl Windows Environment Keys UPCASES them
CC BY-SA 3.0
null
2008-09-02T23:39:45.190
2013-08-08T20:41:52.063
2013-08-08T20:41:52.063
1,691,146
null
[ "perl", "hash", "key", "env" ]
40,934
2
null
40,859
0
null
There was a palm based C compiler. I had some trouble finding it though, but it's called [OnBoard-C](http://sourceforge.net/projects/onboardc/). It didn't exactly have an IDE, it compiled notes. Considering there's a lack of embedded compilers, I'd be surprised to find full embedded IDEs. Oh... I recall there being a ...
null
CC BY-SA 2.5
null
2008-09-02T23:51:32.150
2008-09-03T00:03:29.047
2008-09-03T00:03:29.047
459
459
null
40,930
2
null
40,913
2
null
Row isn't an array unless there are multiple Row elements. It is annoying. You have to do something like this, but I haven't written AS3 in a while so I forget if there's an exists function. ``` if (exists(event.result.DataTable) && exists(event.result.DataTable.Row)){ if (exists(event.result.DataTable.Row.length)) ...
null
CC BY-SA 2.5
null
2008-09-02T23:47:13.923
2008-09-02T23:47:13.923
null
null
459
null
40,917
2
null
40,884
3
null
Before you head down this road towards your own eventual insanity, you should take a look at this (or one day repeat it): [http://thedailywtf.com/Articles/The-Mythical-Business-Layer.aspx](http://thedailywtf.com/Articles/The-Mythical-Business-Layer.aspx) Persisting objects in a database is not a good idea. It kills a...
null
CC BY-SA 2.5
null
2008-09-02T23:32:41.477
2008-09-02T23:32:41.477
null
null
3,146
null
40,935
1
null
null
0
588
I have a vb6 form that I've put an ocx control on. Setting NegotiateMenus on the form displays the ocx's control (which is what I want). I then add my own control to the form. When that control has focus, the menu from the ocx disappears. How can I always keep the menu from the ocx displayed, regardless of who has foc...
VB6 NegotiateMenus
CC BY-SA 2.5
null
2008-09-02T23:53:10.663
2008-12-18T13:07:30.563
2008-10-01T09:32:41.403
123
4,495
[ "vb6", "ocx" ]
40,937
2
null
40,913
1
null
I would store it in an Xml object and then use its methods to search for the node value you need. ``` var returnedXml:Xml = new Xml(event.result.toString()); ```
null
CC BY-SA 2.5
null
2008-09-02T23:56:46.100
2008-09-03T00:03:32.620
2008-09-03T00:03:32.620
26
26
null
40,943
1
40,947
null
55
114,850
What code do you need to add in PHP to automatically have the browser download a file to the local machine when a link is visited? I am specifically thinking of functionality similar to that of download sites that prompt the user to save a file to disk once you click on the name of the software?
How to Automatically Start a Download in PHP?
CC BY-SA 2.5
0
2008-09-03T00:02:42.293
2021-07-05T15:33:00.840
2008-09-09T21:13:43.497
-1
277
[ "php", "automation", "download" ]
40,938
2
null
40,873
0
null
Woe is me. I ended up doing this: ``` mre = mobile_number && ('%' + mobile_number.gsub(/\D/, '').scan(/./m).join('%')) find(:first, :conditions => ['trim(mobile_phone) like ?', mre]) ```
null
CC BY-SA 2.5
null
2008-09-02T23:58:03.100
2008-09-02T23:58:03.100
null
null
234
null
40,947
2
null
40,943
62
null
Send the following headers before outputting the file: ``` header("Content-Disposition: attachment; filename=\"" . basename($File) . "\""); header("Content-Type: application/octet-stream"); header("Content-Length: " . filesize($File)); header("Connection: close"); ``` [@grom](https://stackoverflow.com/users/486/grom...
null
CC BY-SA 4.0
null
2008-09-03T00:07:32.500
2019-03-27T06:08:05.283
2019-03-27T06:08:05.283
1,852
1,852
null
40,948
2
null
40,054
0
null
When using an ORM you typically select an object before updating it. You can use `DataContext.ExecuteCommand(...)` to bypass the ORM if you do not want to do a select.
null
CC BY-SA 3.0
null
2008-09-03T00:07:56.463
2014-03-14T13:57:29.417
2014-03-14T13:57:29.417
2,074,649
2,785
null
40,955
2
null
40,912
0
null
You can still use Page.IsPostback during an async call.
null
CC BY-SA 2.5
null
2008-09-03T00:14:54.840
2008-09-03T00:14:54.840
null
null
26
null
40,940
2
null
40,773
3
null
TicketDesk- C# issue tracking system and support system [http://www.codeplex.com/TicketDesk](http://www.codeplex.com/TicketDesk) TicketDesk is efficient and designed to do only one thing, facilitate communications between help desk staff and end users. The overriding design goal is to be as simple and frictionless ...
null
CC BY-SA 2.5
null
2008-09-03T00:00:37.557
2008-09-03T00:00:37.557
null
null
2,062
null
40,956
2
null
40,663
3
null
Personally I like to use [XMLStarlet](http://xmlstar.sourceforge.net/) which has a command line interface, and works on streams. It is a set of tools built on Libxml2.
null
CC BY-SA 2.5
null
2008-09-03T00:19:47.993
2008-09-03T00:19:47.993
null
null
459
null
40,957
1
41,229
null
5
2,295
I'm early in development on a web application built in VS2008. I have both a desktop PC (where most of the work gets done) and a laptop (for occasional portability) on which I use AnkhSVN to keep the project code synced. What's the best way to keep my development database (SQL Server Express) synced up as well? I have...
Keeping development databases in multiple environments in sync
CC BY-SA 2.5
0
2008-09-03T00:19:51.380
2018-10-21T07:30:59.117
2008-11-02T02:10:05.313
null
4,160
[ "database", "visual-studio-2008", "svn", "version-control" ]
40,945
2
null
40,943
43
null
Here is an example of sending back a pdf. ``` header('Content-type: application/pdf'); header('Content-Disposition: attachment; filename="' . basename($filename) . '"'); header('Content-Transfer-Encoding: binary'); readfile($filename); ``` [@Swish](https://stackoverflow.com/questions/40943/how-to-automatically-start...
null
CC BY-SA 2.5
null
2008-09-03T00:05:26.937
2008-09-03T00:39:15.297
2017-05-23T12:02:23.730
-1
486
null
40,962
1
40,970
null
4
27,065
I have a need to close a parent form from within child form from a Windows application. What would be the best way to do this?
How do I close a parent Form from child form in Windows Forms 2.0?
CC BY-SA 2.5
0
2008-09-03T00:27:29.677
2017-08-09T16:26:52.240
null
null
2,062
[ "c#", "winforms" ]
40,964
2
null
40,923
2
null
As far as I remember, using ALL_CAPS for environment variables is the recommended practice in both Windows and *NIX worlds. My guess is Perl is just using some kind of legacy API to access the environment, and thus only retrieves the upper-case-only name for the variable. In any case, you should never rely on somethin...
null
CC BY-SA 2.5
null
2008-09-03T00:28:58.800
2008-09-03T00:28:58.800
null
null
2,384
null
40,961
2
null
40,273
36
null
We used the built in `soap/wsdlDriver` class, which is actually SOAP4R. It's dog slow, but really simple. The SOAP4R that you get from gems/etc is just an updated version of the same thing. Example code: ``` require 'soap/wsdlDriver' client = SOAP::WSDLDriverFactory.new( 'http://example.com/service.wsdl' ).create_rp...
null
CC BY-SA 3.0
null
2008-09-03T00:27:21.393
2014-03-20T05:11:52.657
2014-03-20T05:11:52.657
272,287
234
null
40,963
2
null
40,957
3
null
You can store backup (.bak file) of you database rather than .MDF & .LDF files. You can restore your db easily using following script: ``` use master go if exists (select * from master.dbo.sysdatabases where name = 'your_db') begin alter database your_db set SINGLE_USER with rollback IMMEDIATE drop database...
null
CC BY-SA 2.5
null
2008-09-03T00:28:30.797
2008-09-03T00:43:00.590
2008-09-03T00:43:00.590
1,196
1,196
null
40,919
2
null
38,746
23
null
[@Konrad](https://stackoverflow.com/questions/38746/how-to-detect-file-ends-in-newline#39185): tail does not return an empty line. I made a file that has some text that doesn't end in newline and a file that does. Here is the output from tail: ``` $ cat test_no_newline.txt this file doesn't end in newline$ $ cat test...
null
CC BY-SA 4.0
null
2008-09-02T23:35:22.377
2020-10-25T19:27:08.663
2020-10-25T19:27:08.663
4,518,341
486
null
40,966
1
40,972
null
14
7,576
I have a javascript function that manipulates the DOM when it is called (adds CSS classes, etc). This is invoked when the user changes some values in a form. When the document is first loading, I want to invoke this function to prepare the initial state (which is simpler in this case than setting up the DOM from the ...
Should I use window.onload or script block?
CC BY-SA 3.0
0
2008-09-03T00:32:40.333
2015-05-08T17:55:59.433
2015-05-08T17:55:59.433
1,362,287
122
[ "javascript", "dom" ]
40,970
2
null
40,962
3
null
When you close form in WinForms it disposes all of it's children. So it's not a good idea. You need to do it asynchronously, for example you can send a message to parent form.
null
CC BY-SA 2.5
null
2008-09-03T00:35:12.467
2008-09-03T00:44:28.230
2008-09-03T00:44:28.230
1,196
1,196
null
40,967
2
null
15,496
13
null
I was aware that Java 6 included scripting support, but I just recently discovered [jrunscript](http://java.sun.com/javase/6/docs/technotes/tools/share/jrunscript.html), which can interpret and run JavaScript (and, one presumes, other scripting languages such as Groovy) interactively, sort of like the Python shell or ...
null
CC BY-SA 2.5
null
2008-09-03T00:33:17.307
2008-09-03T00:33:17.307
null
null
2,177
null
40,971
2
null
40,962
0
null
The Form class doesn't provide any kind of reference to the 'parent' Form, so there's no direct way to access the parent (unless it happens to be the MDI parent as well, in which case you could access it through the MDIParent property). You'd have to pass a reference to the parent in the constructor of the child, or a ...
null
CC BY-SA 2.5
null
2008-09-03T00:36:22.073
2008-09-03T00:36:22.073
null
null
2,384
null
40,893
2
null
40,884
5
null
You can use [serialization](http://msdn.microsoft.com/en-us/library/ms973893.aspx) - it allows you to store your object at least in 3 forms: binary (suitable for BLOBs), XML (take advantage of MSSQL's XML data type) or just plain text (store in varchar or text column)
null
CC BY-SA 2.5
null
2008-09-02T23:13:34.550
2008-09-02T23:13:34.550
null
null
1,196
null
40,972
2
null
40,966
5
null
Definitely use `onload`. Keep your scripts separate from your page, or you'll go mad trying to disentangle them later.
null
CC BY-SA 2.5
null
2008-09-03T00:37:36.733
2008-09-03T00:37:36.733
null
null
3,560
null
40,969
1
41,015
null
6
2,220
Do you know if it's possible to build an application for the LinkedIn platform?
Is it possible to build an application for the LinkedIn platform?
CC BY-SA 2.5
0
2008-09-03T00:35:11.390
2010-04-25T04:55:13.997
2010-04-25T04:55:13.997
164,901
4,269
[ "linkedin", "social-media" ]
40,980
2
null
40,873
0
null
if this is something that is going to happen on a regular basis perhaps modifying the data to be all one format and then setup the search form to strip out any non-alphanumeric (if you allow numbers like 310-BELL) would be a good idea. Having data in an easily searched format is half the battle.
null
CC BY-SA 2.5
null
2008-09-03T00:44:15.423
2008-09-03T00:44:15.423
null
null
4,275
null
40,959
2
null
39,003
1
null
When testing an interface or base class contract, I prefer to let the test framework automatically take care of finding all of the implementers. This lets you concentrate on the interface under test and be reasonably sure that all implementations will be tested, without having to do a lot of manual implementation. - [...
null
CC BY-SA 2.5
null
2008-09-03T00:24:23.490
2008-10-08T13:36:35.057
2017-05-23T10:29:46.273
-1
2,495
null
40,992
1
null
null
3
1,523
Even though chrome runs tabs as different processes it appears to not support this... any ideas or documentation I might have missed?
How to use chrome to login to same site twice with different credentials?
CC BY-SA 3.0
null
2008-09-03T01:07:49.253
2017-09-06T20:30:25.763
2017-09-06T20:30:25.763
1,000,551
null
[ "google-chrome", "authentication" ]
40,929
2
null
39,910
2
null
I'm not entirely sure I understand your question, especially the bit about displaying two SPField collections. Sorry if this turns out to be the answer to a completely different question! Anyway here's a quick demo walkthrough of using the MultipleLookupField in a web part. Create a team site. Add a few tasks to the ...
null
CC BY-SA 2.5
null
2008-09-02T23:46:21.087
2008-09-02T23:46:21.087
null
null
4,301
null
40,990
2
null
39,758
1
null
I'd say that I see the improved Javascript engine being the major contribution as far as web applications go. And hopefully will cause a new look for the other browsers and possibly make Javascript implementations a bit more standardized.
null
CC BY-SA 2.5
null
2008-09-03T00:58:56.573
2008-09-03T00:58:56.573
null
null
3,442
null
40,977
2
null
40,966
0
null
My take is the former becauase you can only have 1 window.onload function, while inline script blocks you have an number.
null
CC BY-SA 2.5
null
2008-09-03T00:39:25.700
2008-09-03T00:39:25.700
null
null
2,469
null
40,996
2
null
40,966
0
null
onLoad because it is far easier to tell what code runs when the page loads up than having to read down through scads of html looking for script tags that might execute.
null
CC BY-SA 2.5
null
2008-09-03T01:09:30.840
2008-09-03T01:09:30.840
null
null
1,334
null
40,997
2
null
39,758
0
null
I wonder whether plugins/addons will ever be a big focus for Chrome. It seems to be very much focused on providing a fast, clean environment that puts the focus on the web rather than the browser. I suspect that in order to keep it nimble and stable, they may keep the extension capabilities fairly limited (plus, they w...
null
CC BY-SA 2.5
null
2008-09-03T01:10:05.767
2008-09-03T01:10:05.767
null
null
4,142
null
41,000
2
null
40,994
0
null
It's really speedy. Visibly so. I was pretty impressed with its performance compared with Firefox 3. Already made it my default browser.
null
CC BY-SA 2.5
null
2008-09-03T01:12:01.817
2008-09-03T01:12:01.817
null
null
4,223
null
40,987
2
null
39,304
0
null
If you are looking to build libraries which wont be recompiled, but want to provide a logging interface then perhaps a good way is to allow the user (of the library) to provide a callback. On initialising logging with your library, they would need to specify the callback, and then the glue-code is up to them to make i...
null
CC BY-SA 2.5
null
2008-09-03T00:54:34.230
2008-09-03T00:54:34.230
null
null
2,714
null
40,994
1
41,932
null
6
9,034
Does anyone have time to take a look at it? I've read a bit and it promises a lot, if it's half what they say, it'll change web Development a lot
Is Google Chrome's V8 engine really that good?
CC BY-SA 4.0
0
2008-09-03T01:09:04.147
2020-04-15T01:53:53.800
2020-04-15T01:53:53.800
11,756,820
1,782
[ "javascript", "google-chrome", "v8" ]
41,004
2
null
40,994
0
null
The browser is incredibly fast in general, and Javascript is very fast in particular. The benchmark showed Chrome to be 1.73x faster on average than FF3, and 14.8x faster on average than IE 7. String manipulation is IE 7's weak point, which I'm told has been improved greatly in IE 8.
null
CC BY-SA 2.5
null
2008-09-03T01:12:56.963
2008-09-03T01:24:54.140
2008-09-03T01:24:54.140
1,554
1,554
null
41,005
2
null
40,966
1
null
While I agree with the others about using window.onload if possible for clean code, I'm pretty sure that window.onload will be called again when a user hits the back button in IE, but doesn't get called again in Firefox. (Unless they changed it recently). Edit: I could have that backwards. In some cases, it's necess...
null
CC BY-SA 2.5
null
2008-09-03T01:13:00.893
2008-09-03T01:22:40.120
2008-09-03T01:22:40.120
291
291
null
41,003
2
null
40,994
5
null
Perhaps a bit anecdotal but comparing runs between Firefox and Chrome showed a significant difference in benchmarks. [http://www2.webkit.org/perf/sunspider-0.9/sunspider.html](http://www2.webkit.org/perf/sunspider-0.9/sunspider.html) Try for yourself.
null
CC BY-SA 2.5
null
2008-09-03T01:12:38.803
2008-09-03T01:50:32.770
2008-09-03T01:50:32.770
1,293
1,293
null
41,011
2
null
40,966
3
null
Some JavaScript frameworks, such as [mootools](http://docs.mootools.net/Utilities/DomReady), give you access to a special event named "domready": > Contains the window Event 'domready', which will execute when the DOM has loaded. To ensure that DOM elements exist when the code attempting to access them is executed, th...
null
CC BY-SA 2.5
null
2008-09-03T01:19:18.053
2008-09-03T01:19:18.053
null
null
4,249
null
41,009
1
45,101
null
2
578
I'm trying to use the OpenNETCF RAPI class to interact with a windows mobile device using the RAPI.Invoke() method. According to the following article: [http://blog.opennetcf.com/ncowburn/2007/07/27/HOWTORetrieveTheDeviceIDFromTheDesktop.aspx](http://blog.opennetcf.com/ncowburn/2007/07/27/HOWTORetrieveTheDeviceIDFromT...
IRAPIStream COM Interface in .NET
CC BY-SA 2.5
null
2008-09-03T01:16:07.983
2008-09-24T15:25:39.267
2008-09-24T15:25:39.283
12,870
194
[ "c#", ".net", "windows-mobile", "compact-framework", "rapi" ]
41,010
1
null
null
21
9,169
: I've been looking at a few PHP framework recently, and it came down to two. The Zend Framework or CodeIgniter. I prefer CodeIgniter, because of its simple design. It's very bare bone, and it is just kept simple. The thing I don't like though is the weak template system. The template system is important for me, beca...
Smarty integration into the CodeIgniter framework
CC BY-SA 4.0
0
2008-09-03T01:18:45.013
2019-03-23T10:21:31.427
2019-03-23T10:21:31.427
1,033,581
2,976
[ "codeigniter", "zend-framework", "smarty" ]
41,008
2
null
40,966
1
null
@The Geek > I'm pretty sure that window.onload will be called again when a user hits the back button in IE, but doesn't get called again in Firefox. (Unless they changed it recently). In Firefox, `onload` is called when the DOM has finished loading regardless of how you navigated to a page.
null
CC BY-SA 2.5
null
2008-09-03T01:15:52.260
2008-09-03T01:15:52.260
null
null
3,560
null
41,012
2
null
40,999
7
null
I'm not sure but it seems that you didn't reset position in stream before passing it to XmlReader. Try to seek at the beginning of your stream before trying to read from it. Also it may be necessary to close\flush stream after you wrote some data to it. : Just tried following code and it worked perfectly: ``` Buffer...
null
CC BY-SA 2.5
null
2008-09-03T01:19:39.800
2008-09-03T02:26:52.277
2008-09-03T02:26:52.277
1,196
1,196
null
40,973
2
null
40,969
1
null
Yes, Linkedin has an API: - [http://www.programmableweb.com/api/linkedin](http://www.programmableweb.com/api/linkedin)- [http://blog.linkedin.com/blog/2007/12/the-intelligent.html](http://blog.linkedin.com/blog/2007/12/the-intelligent.html) So you could build an application that uses it. ([from second link](http://...
null
CC BY-SA 2.5
null
2008-09-03T00:38:23.597
2008-09-03T01:19:25.167
2008-09-03T01:19:25.167
255
255
null
41,014
2
null
36,014
0
null
Wow, so of the reports so far, 2 worked correctly, and 1 experienced the issue I reported. What are the versions of Windows, Visual Studio used and .NET framework with build numbers? I'm running XP SP2, VS 2008 Team Suite (9.0.30729.1 SP), C# 2008 (91899-270-92311015-60837), and .NET 3.5 SP1.
null
CC BY-SA 2.5
null
2008-09-03T01:21:06.943
2008-09-03T01:21:06.943
null
null
3,347
null
41,017
2
null
15,731
0
null
Look for a extension called Poster.
null
CC BY-SA 2.5
null
2008-09-03T01:21:52.603
2008-09-03T01:21:52.603
null
null
4,325
null
40,999
1
41,012
null
5
31,059
Here's a quick question I've been banging my head against today. I'm trying to convert a .Net dataset into an XML stream, transform it with an xsl file in memory, then output the result to a new XML file. Here's the current solution: ``` string transformXML = @"pathToXslDocument"; XmlDocument originalXml =...
How to Convert a StreamReader into an XMLReader object in .Net 2.0/C#
CC BY-SA 2.5
null
2008-09-03T01:10:45.033
2015-02-27T04:12:34.057
2008-09-03T02:20:33.727
2,916
2,916
[ "c#", ".net", "xml", "xslt", "stream" ]
41,019
2
null
40,966
2
null
window.onload on IE waits for the binary information to load also. It isn't a strict definition of "when the DOM is loaded". So there can be significant lag between when the page is perceived to be loaded and when your script gets fired. Because of this I would recommend looking into one of the plentiful JS framewor...
null
CC BY-SA 2.5
null
2008-09-03T01:25:34.467
2008-09-03T01:25:34.467
null
null
1,295
null
41,007
2
null
40,994
0
null
Yes, V8 is extremely fast on Vista x86 -- up to 50 times as fast as IE 7 for most benchmarks I tried. More impressively, GMail running under Chrome had one-quarter the memory footprint of GMail running under IE 7. This can probably be attributed in large part to V8.
null
CC BY-SA 2.5
null
2008-09-03T01:14:55.600
2008-09-03T01:14:55.600
null
null
533
null
41,021
2
null
40,994
0
null
I am finding it visibly much faster on Vista x64 than IE8 and FF3.
null
CC BY-SA 2.5
null
2008-09-03T01:26:43.043
2008-09-03T01:26:43.043
null
null
4,121
null
41,016
2
null
40,873
14
null
This looks like a problem from the start. Any kind of searching you do will require a table scan and we all know that's bad. How about adding a column with a hash of the current phone numbers after stripping out all formatting characters. Then you can at least index the hash values and avoid a full blown table scan....
null
CC BY-SA 2.5
null
2008-09-03T01:21:31.373
2008-09-03T01:21:31.373
null
null
2,862
null
41,025
2
null
40,994
0
null
It's two times faster than Firefox 3 on my Windows XP box. FWIW, the updates in Fx3.1 are supposed to make it an order of magnitude faster.
null
CC BY-SA 2.5
null
2008-09-03T01:31:28.150
2008-09-03T01:31:28.150
null
null
1,914
null
41,013
2
null
40,966
17
null
The onload event is considered the proper way to do it, but if you don't mind using a javascript library, jQuery's $(document).ready() is even better. ``` $(document).ready(function(){ // manipulate the DOM all you want here }); ``` The advantages are: 1. Call $(document).ready() as many times as you want to reg...
null
CC BY-SA 2.5
null
2008-09-03T01:19:45.667
2008-09-03T01:19:45.667
null
null
619
null
41,023
2
null
15,496
88
null
[Dynamic proxies](http://docs.oracle.com/javase/7/docs/technotes/guides/reflection/proxy.html) (added in 1.3) allow you to define a new type at runtime that conforms to an interface. It's come in handy a surprising number of times.
null
CC BY-SA 3.0
null
2008-09-03T01:29:39.997
2012-05-10T13:14:12.720
2012-05-10T13:14:12.720
587,642
4,223
null
41,018
1
50,357
null
22
23,953
Grails makes it very easy to configure datasources for different environments (development, test, production) in its DataSources.groovy file, but there seems to be no facility for configuring multiple datasources in one environment. What to I do if I need to access several databases from the same Grails application?
How do you access two databases in Grails
CC BY-SA 2.5
0
2008-09-03T01:23:49.963
2016-04-15T12:52:22.777
null
null
2,453
[ "grails" ]
41,024
1
41,069
null
1
407
In FXRuby; how do I set the `FXFileDialog` to be at the home directory when it opens?
FXRuby FXFileDialog box default directory
CC BY-SA 3.0
null
2008-09-03T01:29:50.727
2017-08-09T20:13:48.083
2017-08-09T20:13:48.083
1,836,618
4,352
[ "fxruby" ]
41,033
2
null
38,713
3
null
A while back I ran across [this blog post](http://blog.toddwerth.com/entries/5) (by Todd Werth) which presented a rather lengthy skeleton for command-line scripts in Ruby. His skeleton uses a hybrid approach in which the application code is encapsulated in an application class which is instantiated, then executed by ca...
null
CC BY-SA 3.0
null
2008-09-03T01:41:55.677
2013-05-09T13:26:50.703
2013-05-09T13:26:50.703
198,549
4,142
null
41,027
1
865,198
null
8
22,253
I am looking for a little bit of JQuery or JS that allows me to produce a horizontally scrolling "news ticker" list. The produced HTML needs to be standards compliant as well. I have tried [liScroll](http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html) but this has a hab...
What's a good bit of JS or JQuery for horizontally scrolling news ticker
CC BY-SA 2.5
0
2008-09-03T01:33:57.100
2018-04-20T07:37:09.103
2008-09-22T20:02:51.443
16,398
364
[ "javascript", "jquery", "scroll", "client-side" ]
41,035
2
null
40,992
1
null
Try two different incognito windows.
null
CC BY-SA 2.5
null
2008-09-03T01:43:25.377
2008-09-03T01:43:25.377
null
null
3,694
null
41,029
2
null
40,994
0
null
I've compared it to Firefox and Internet Explorer using this link: [http://celtickane.com/2009/07/javascript-speed-test-2009-browsers/](http://celtickane.com/2009/07/javascript-speed-test-2009-browsers/) (was [http://celtickane.com/webdesign/jsspeed.php](http://celtickane.com/webdesign/jsspeed.php)) The difference is ...
null
CC BY-SA 2.5
null
2008-09-03T01:35:32.167
2009-09-17T16:56:11.400
2009-09-17T16:56:11.400
2,581
2,581
null
41,038
2
null
28,946
0
null
For vmware users, you can download a free edition of [vmware converter](http://www.vmware.com/products/converter/) which not only lets you resize virtual disks but also lets you convert from physical to virtual machines and vice-versa.
null
CC BY-SA 2.5
null
2008-09-03T01:48:28.453
2008-09-03T01:48:28.453
null
null
4,086
null
41,036
2
null
40,112
7
null
Another option is to put an image control on your form. There is a property of that control (Picture) that is simply the path to the image. Here is a short example in VBA of how you might use it. txtPhoto would be a text box bound to the database field with the path to the image imgPicture is the image control The e...
null
CC BY-SA 2.5
null
2008-09-03T01:44:05.780
2008-09-03T01:44:05.780
null
null
3,270
null
41,020
2
null
40,999
2
null
You must select the root node. This doesn't use Datasets, but I use this function everyday and it works great. ``` System.Xml.XmlDocument orgDoc = new System.Xml.XmlDocument(); orgDoc.LoadXml(orgXML); // MUST SELECT THE ROOT NODE XmlNode transNode = orgDoc.SelectSingleNode("/"); System.Text.StringBuilder sb = new Sy...
null
CC BY-SA 2.5
null
2008-09-03T01:25:58.537
2008-09-03T01:25:58.537
null
null
2,469
null
41,042
1
42,144
null
3
1,658
I am trying to print a report from within an InfoPath template. So my dataset is an XML DOM that I will load into the Crystal Report at runtime. But how do I define the dataset off which the Crystal Report is developed? Crystal Reports has a great tool to build a dataset from an SQL database. Is there something simil...
XML dataset in Crystal Reports
CC BY-SA 2.5
null
2008-09-03T02:01:45.097
2008-10-14T22:05:56.933
null
null
4,354
[ "xml", "crystal-reports", "infopath" ]
41,043
2
null
34,955
25
null
Not sure what your level of expertise is, but here are the basics. Below is a linker error from VS 2005 - yes, it's a giant mess if you're not familiar with it. ``` ByteComparator.obj : error LNK2019: unresolved external symbol "int __cdecl does_not_exist(void)" (?does_not_exist@@YAHXZ) referenced in function "void ...
null
CC BY-SA 2.5
null
2008-09-03T02:06:30.437
2008-09-03T02:06:30.437
null
null
1,541
null
41,047
2
null
41,027
3
null
[http://www.emrecamdere.com/news_scroller_jquery.html](http://www.emrecamdere.com/news_scroller_jquery.html)
null
CC BY-SA 2.5
null
2008-09-03T02:11:44.653
2008-09-03T02:11:44.653
null
null
2,676
null
41,039
1
78,966
null
103
117,991
Is there a way to search the latest version of every file in TFS for a specific string or regex? This is probably the only thing I miss from Visual Source Safe... Currently I perform a Get Latest on the entire codebase and use Windows Search, but this gets quite painful with over 1GB of code in 75,000 files. : Tr...
Find in Files: Search all code in Team Foundation Server
CC BY-SA 3.0
0
2008-09-03T01:49:04.270
2019-01-08T13:09:03.630
2014-03-06T15:46:15.477
16,587
952
[ "visual-studio-2008", "search", "tfs", "code-search-engine" ]
41,045
1
41,059
null
38
12,132
As a general rule, I prefer using value rather than pointer semantics in C++ (ie using `vector<Class>` instead of `vector<Class*>`). Usually the slight loss in performance is more than made up for by not having to remember to delete dynamically allocated objects. Unfortunately, value collections don't work when you wa...
Can I have polymorphic containers with value semantics in C++?
CC BY-SA 3.0
0
2008-09-03T02:09:29.027
2018-04-08T17:46:27.967
2016-05-30T18:49:48.713
901,200
2,994
[ "c++", "stl" ]
41,046
2
null
27,622
8
null
Actually, the TRACE macro is a lot more flexible than OutputDebugString. It takes a printf() style format string and parameter list whereas OutputDebugString just takes a single string. In order to implement the full TRACE functionality in release mode you need to do something like this: ``` void trace(const char* for...
null
CC BY-SA 2.5
null
2008-09-03T02:11:11.033
2008-09-03T02:11:11.033
null
null
4,086
null
41,015
2
null
40,969
4
null
While LinkedIn has promised a public API for a very long time now, they have yet to deliver. No, there is no LinkedIn API yet. IMO, their widgets (which there are only two of at the moment, which are very limited) don't count. They say that they are open to being contacted with specific uses for their API an...
null
CC BY-SA 2.5
null
2008-09-03T01:21:08.627
2008-09-03T01:21:08.627
null
null
1,627
null
40,981
2
null
40,912
4
null
@Darren: Thanks for the answer. I had tried to create pageLoad with event argument [ApplicationLoadEventArgs](http://asp.net/AJAX/Documentation/Live/ClientReference/Sys/ApplicationLoadEventArgsClass/ApplicationLoadEventArgsIsPartialLoadProperty.aspx) as parameter (see below). However according to [this](http://msdn.mi...
null
CC BY-SA 2.5
null
2008-09-03T00:44:21.290
2008-09-04T23:04:39.313
2008-09-04T23:04:39.327
4,191
4,191
null