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
18,305
1
18,315
null
3
3,794
Can somebody point me to a resource that explains how to go about having 2+ IIS web server clustered (or Webfarm not sure what its called) ? All I need is something basic, an overview how and where to start. Can't seem to find anything...
Web server farms with IIS ? Basic Infos
CC BY-SA 2.5
0
2008-08-20T16:21:05.613
2018-04-03T15:35:35.553
null
null
925
[ "iis", "webserver", "web-farm" ]
18,297
2
null
18,292
2
null
You can run OpenSSH on Cygwin, and even install it as a Windows service. I once used it this way to easily add backups of a Unix system - it would rsync a bunch of files onto the Windows server, and the Windows server had full tape backups.
null
CC BY-SA 2.5
null
2008-08-20T16:15:31.477
2008-08-20T16:15:31.477
null
null
954
null
18,295
2
null
18,284
2
null
A lot of languages have web counterparts. JSP for Java, Rails for Ruby, Django for Python, etc. That might be a lead. If you want to go for the platform with arguably the biggest user base (and with that, the biggest pile of tutorials and examples), go for PHP. I strongly advise on looking into various frameworks tho...
null
CC BY-SA 2.5
null
2008-08-20T16:14:26.800
2008-08-20T16:14:26.800
null
null
909
null
18,298
1
18,322
null
1
5,912
I cannot figure out how to change the title bar icon (the icon in the furthest top left corner of the application) in Adobe AIR. It is currently displaying the default 'Adobe AIR' red icon. I have been able to change it in the system tray, however.
How do I change the title bar icon in Adobe AIR?
CC BY-SA 2.5
null
2008-08-20T16:15:55.953
2013-01-30T15:57:37.073
null
null
26
[ "apache-flex", "air" ]
18,306
2
null
18,292
3
null
> OpenSSH is a contender. Looks like it hasn't been updated in a while though. It's the de facto choice in my opinion. And yes, running under Cygwin is really the nicest method.
null
CC BY-SA 2.5
null
2008-08-20T16:21:08.513
2008-08-20T16:21:08.513
null
null
1,951
null
18,303
2
null
18,284
1
null
[Eloquent JavaScript](http://eloquentjavascript.net/) and [AppJet](http://appjet.com/learn-to-program/lessons/intro) offer great tutorials that allow you to follow along while you learn. Once you cover all the basics, [Ajaxian](http://ajaxian.com/) should answer many of the questions you have about application design,...
null
CC BY-SA 2.5
null
2008-08-20T16:17:23.330
2008-08-20T16:17:23.330
null
null
2,120
null
18,313
2
null
18,305
3
null
This MSDN magazine article has a good overview of the technologies involved: [http://msdn.microsoft.com/en-us/magazine/cc500561.aspx](http://msdn.microsoft.com/en-us/magazine/cc500561.aspx)
null
CC BY-SA 2.5
null
2008-08-20T16:25:29.720
2008-08-20T16:25:29.720
null
null
814
null
18,317
2
null
17,056
2
null
You might want to check out [Lucene.net](http://incubator.apache.org/lucene.net/) as an alternative to Full Text.
null
CC BY-SA 2.5
null
2008-08-20T16:27:25.147
2008-08-20T16:27:25.147
null
null
307
null
18,300
2
null
16,432
14
null
Here are my results over 100,000 iterations: ``` Console.WriteLine("{0} {1}", p.FirstName, p.LastName); took (avg): 0ms - 689 ticks Console.WriteLine(p.FirstName + " " + p.LastName); took (avg): 0ms - 683 ticks ``` And here is the bench code: ``` Stopwatch s = new Stopwatch(); var p = new { FirstName = "Bill", Las...
null
CC BY-SA 3.0
null
2008-08-20T16:16:31.537
2017-08-09T12:49:01.803
2017-08-09T12:49:01.803
1,941,353
920
null
18,315
2
null
18,305
0
null
What you're after is called Load Balancing. [http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/0baca8b1-73b9-4cd2-ab9c-654d88d05b4f.mspx?mfr=true](http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/0baca8b1-73b9-4cd2-ab9c-654d88d05b4f.mspx?mfr=true) There's a very good...
null
CC BY-SA 2.5
null
2008-08-20T16:27:04.087
2008-08-20T16:27:04.087
null
null
419
null
18,318
2
null
18,292
3
null
[VanDyke VShell](http://www.vandyke.com/products/vshell/index.html) is the Windows SSH Server I've ever worked with. It is kind of expensive though ($250). If you want a free solution, [freeSSHd](http://www.freesshd.com) works okay. The CYGWIN solution is always an option, I've found, however, that it is a lot of work...
null
CC BY-SA 2.5
null
2008-08-20T16:28:23.660
2008-08-20T16:28:23.660
null
null
317
null
18,320
2
null
10,616
15
null
MySQL is more likely to have database corruption issues, and it doesn't fix them automatically when they happen. I've worked with MSSQL since version 6.5 and don't remember a database corruption issue taking the database offline. The few times I've worked with MySQL in a production environment, a database corruption is...
null
CC BY-SA 2.5
null
2008-08-20T16:28:51.663
2008-08-20T16:28:51.663
null
null
5
null
18,322
2
null
18,298
2
null
Does the following help? [http://groups.google.com/group/chennai-flex-user-group/browse_thread/thread/cffb9ab56450c28e](http://groups.google.com/group/chennai-flex-user-group/browse_thread/thread/cffb9ab56450c28e)
null
CC BY-SA 2.5
null
2008-08-20T16:29:50.897
2013-01-30T15:57:37.073
2013-01-30T15:57:37.073
770
770
null
18,316
2
null
18,194
5
null
This can be broad but here are some responsibilities that could get thrown at you in a brain dump format. on the DBA end - - - - - - - - On the Programing end - - - - -
null
CC BY-SA 2.5
null
2008-08-20T16:27:06.970
2008-08-20T16:27:06.970
null
null
1,293
null
18,325
2
null
18,167
0
null
creating a linked server from .NET doesn't make any sense since a linked server is nothing but a connection from one sqlserver to another server (sql, file, excel, sybase etc etc), in essence it is just a connection string (you can impersonate and do some other stuff when creating a linked server).
null
CC BY-SA 2.5
null
2008-08-20T16:31:44.887
2008-08-20T16:31:44.887
null
null
740
null
18,327
2
null
18,292
8
null
I agree that cygwin/OpenSSH is the best choice, but its setup can be involved to say the least. Here is a document to get you started though: [Installing OpenSSH](http://web.archive.org/web/20030329073204/http://pigtail.net/LRP/printsrv/cygwin-sshd.html)
null
CC BY-SA 3.0
null
2008-08-20T16:32:33.900
2014-03-04T20:16:57.577
2014-03-04T20:16:57.577
426,671
2,147
null
18,329
2
null
18,194
3
null
[Sql Books Online](http://www.microsoft.com/downloads/details.aspx?familyid=BE6A2C5D-00DF-4220-B133-29C1E0B6585F&displaylang=en) would be a good place for referance.
null
CC BY-SA 2.5
null
2008-08-20T16:33:41.027
2008-08-20T16:33:41.027
null
null
1,731
null
18,307
2
null
18,284
10
null
There is a wide variety of web application languages you could get into. The ones I have most experience with (and therefore will be talking about here) are PHP, eRuby and Ruby on Rails. All of these have good tutorials available on the internet - I'll link to some of them below. Which to choose depends on exactly wha...
null
CC BY-SA 3.0
null
2008-08-20T16:21:13.583
2014-08-17T09:36:39.793
2014-08-17T09:36:39.793
2,074,608
1,912
null
18,324
1
null
null
6
3,477
This is a low-level systems question. I need to mix 32 bit and 16 bit code because I'm trying to return to real-mode from protected mode. As a bit of background information, my code is doing this just after GRUB boots so I don't have any pesky operating system to tell me what I can and can't do. Anyway, I use [BITS 3...
Mixing 32 bit and 16 bit code with nasm
CC BY-SA 3.0
0
2008-08-20T16:30:52.487
2017-07-10T19:03:03.703
2017-07-10T19:03:03.703
7,750,640
null
[ "operating-system", "nasm", "osdev", "assembly" ]
18,335
2
null
5,087
3
null
I've been learning RoR and Grails and the latter is far easier to learn. Both frameworks share the same principles (agile, kiss, dry, duck typing and so..) but Groovy syntax is...well is simply great, something you can learn and use in a blink of an eye. I truly feel that Grails has brighter future than RoR. PD: Ju...
null
CC BY-SA 2.5
null
2008-08-20T16:36:21.630
2008-08-20T16:36:21.630
null
null
2,249
null
18,323
2
null
18,305
2
null
Microsoft have articles on TechNet about [clustering IIS using Network Load Balancing](http://technet.microsoft.com/en-us/library/cc759613.aspx). You can do this more simply than using special hardware load balancing. For hardware load balancing you place a device in front of the web servers and it manages the load. ...
null
CC BY-SA 2.5
null
2008-08-20T16:30:24.920
2008-08-20T16:30:24.920
null
null
636
null
18,336
2
null
18,272
5
null
Take a look at Data Dictionary Creator, an open source tool I wrote to make it easier to edit extended properties. It includes the ability to export the information in a variety of formats, as well. [http://www.codeplex.com/datadictionary](http://www.codeplex.com/datadictionary) ![enter image description here](https:...
null
CC BY-SA 3.0
null
2008-08-20T16:36:26.717
2012-03-28T19:41:43.530
2012-03-28T19:41:43.530
122,607
5
null
18,328
2
null
17,225
5
null
Here's an updated execute that will print the results and return them: ``` sub execute { my $cmd = shift; print "$cmd\n"; my $ret = `$cmd`; print $ret; return $ret; } ```
null
CC BY-SA 2.5
null
2008-08-20T16:33:40.217
2008-08-20T16:33:40.217
null
null
432
null
18,337
2
null
17,911
0
null
As you mentioned in your question, the problem is very likely that your program is looking at the XML before it has actually been completely downloaded, I don't know that there's a surefire way to "parse" the XML because the parsing portion of your code is more than likely fine, it's simply a matter of whether or not i...
null
CC BY-SA 2.5
null
2008-08-20T16:36:44.657
2008-08-20T16:36:44.657
null
null
1,945
null
18,352
2
null
18,348
9
null
I've found [SvcTraceViewer.exe](http://msdn.microsoft.com/en-us/library/ms732023.aspx) to be the most valuable tool when it comes to diagnosing WCF errors.
null
CC BY-SA 2.5
null
2008-08-20T16:47:01.590
2008-08-20T16:47:01.590
null
null
1,659
null
18,364
2
null
18,324
4
null
The 0x66 and 0x67 are opcodes that are used to indicate that the following opcode should be interpreted as a non-default bitness. More specifically, (and according to [this link](http://nasm.sourceforge.net/doc/nasmdoc5.html)), "When NASM is in BITS 16 mode, instructions which use 32-bit data are prefixed with an 0x6...
null
CC BY-SA 2.5
null
2008-08-20T16:54:09.823
2008-08-20T16:54:09.823
null
null
533
null
18,344
2
null
18,290
12
null
You'll also want to make sure that your SSH system is well secured to prevent people from logging in your Capistrano bot. I'd suggest restricting access to password-protected key pairs. Encrypting the .yml file on the server is useless since you have to give the bot the key, which would be stored . . . on the same s...
null
CC BY-SA 2.5
null
2008-08-20T16:41:15.220
2008-08-20T16:41:15.220
null
null
1,190
null
18,326
1
null
null
3
2,077
I like a bit of TiVo hacking in spare time - TiVo uses a Linux variant and [TCL](http://wiki.tcl.tk/299). I'd like to write TCL scripts on my Windows laptop, test them and then FTP them over to my TiVo. Can I have a recommendation for a TCL debugging environment for Windows, please?
TCL development: debug environment
CC BY-SA 2.5
0
2008-08-20T16:32:15.383
2011-09-25T22:00:51.773
null
null
1,223
[ "debugging", "tcl", "tivo" ]
18,359
2
null
18,324
0
null
You weren't kidding about this being low-level! Have you checked the generated opcodes / operands to make sure that nasm is honoring your BITS directives correctly? Also check to make sure the jump targets are correct - maybe nasm is using the wrong offsets. If it's not a bug in nasm, maybe there is a bug in bochs. I...
null
CC BY-SA 2.5
null
2008-08-20T16:50:47.757
2008-08-20T16:50:47.757
null
null
619
null
18,348
1
18,352
null
2
4,221
I've created a WCF service and when I browse to the endpoint I get the following fault: ``` <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none"> a:ActionNotSupported <...
I would like some tips for debugging WCF Web Service exceptions
CC BY-SA 2.5
0
2008-08-20T16:44:04.170
2010-11-24T12:48:21.090
2010-11-24T12:48:21.090
4,023
1,456
[ ".net", "wcf", "web-services" ]
18,365
2
null
17,911
1
null
The concerning thing to me is that it might be firing Event.COMPLETE before it's finished loading, and that makes me wonder whether or not the load is timing out. How often does the problem happen? Can you have success one moment, then failure the very next with the same feed? For testing purposes, try tracing the `...
null
CC BY-SA 2.5
null
2008-08-20T16:54:12.570
2008-08-20T16:54:12.570
null
null
1,344
null
18,376
2
null
12,716
0
null
Also, make sure your C# class doesn't have this attribute: [ClassInterface(ClassInterfaceType.AutoDual)] <-- Seems to cause errors in C++ with _TypePtr
null
CC BY-SA 2.5
null
2008-08-20T17:08:27.310
2008-08-20T17:08:27.310
null
null
814
null
18,377
2
null
18,292
5
null
I've been using [Bitvise SSH Server](http://www.bitvise.com/winsshd) for a number of years. It is a wonderful product and it is easy to setup and maintain. It gives you great control over how users connect to the server with support for security groups.
null
CC BY-SA 3.0
null
2008-08-20T17:10:00.643
2018-03-12T07:45:31.833
2018-03-12T07:45:31.833
4,752,883
636
null
18,349
2
null
18,298
1
null
The first link shows how to change the Taskbar Icon, the second shows the application icon I believe used on the desktop. I am going to recompile and install the application and see if it works. Edit: Yea, the one that changes the Desktop Icon also changes the Title Bar icon. It's in the app.xml file.
null
CC BY-SA 2.5
null
2008-08-20T16:44:20.987
2008-08-20T17:02:41.410
2008-08-20T17:02:41.427
26
26
null
18,391
1
18,396
null
10
8,293
There is previous little on the google on this subject other than people asking this very same question. How would I get started writing my own firewall? I'm looking to write one for the windows platform but I would also be interested in this information for other operating systems too. ­­­­­­­­­­­­­­­­­­
How would I get started writing my own firewall?
CC BY-SA 3.0
0
2008-08-20T17:25:03.197
2017-07-10T19:14:49.263
2017-07-10T19:14:49.263
7,750,640
840
[ "language-agnostic", "firewall" ]
18,370
2
null
18,292
51
null
I've been using [Bitvise SSH Server](http://www.bitvise.com/winsshd) and it's really great. From install to administration it does it all through a GUI so you won't be putting together a sshd_config file. Plus if you use their client, [Tunnelier](http://www.bitvise.com/tunnelier), you get some bonus features (like ma...
null
CC BY-SA 3.0
null
2008-08-20T16:58:05.320
2018-03-12T09:40:41.513
2018-03-12T09:40:41.513
4,752,883
1,804
null
18,342
2
null
16,432
89
null
Try this code. It's a slightly modified version of your code. 1. I removed Console.WriteLine as it's probably a few orders of magnitude slower than what I'm trying to measure. 2. I'm starting the Stopwatch before the loop and stopping it right after, this way I'm not losing precision if the function takes for example ...
null
CC BY-SA 4.0
null
2008-08-20T16:40:14.973
2021-07-11T15:57:35.153
2021-07-11T15:57:35.153
2,667,173
1,534
null
18,379
2
null
18,250
0
null
Deleting the executable doesn't do the job. That's the problem. Also I could not identify any projectfile, whose datetime was the same as the later linked executable. That lets me conclude, that the 'creation date' is an information taken from within some project-file. The project has 400000 lines, so a full build is ...
null
CC BY-SA 2.5
null
2008-08-20T17:12:57.860
2008-08-20T17:12:57.860
null
null
null
null
18,394
2
null
18,216
0
null
I do have a type/format for my properties table, that way I know how to cast/evaluate when I'm dealing with an integer value. I wasn't sure if it was pertinent to this issue or not.
null
CC BY-SA 2.5
null
2008-08-20T17:29:19.927
2008-08-20T17:29:19.927
null
null
71
null
18,398
2
null
18,391
2
null
The usual approach is to use API hooking. Google can teach you that. Just hook all important networking stuff, like `connect`'s and `listens`'s, and refuse what you want.
null
CC BY-SA 2.5
null
2008-08-20T17:30:49.020
2008-08-20T17:30:49.020
null
null
2,018
null
18,396
2
null
18,391
10
null
For Windows 2000/XP there is an article with examples on CodeProject [Developing Firewalls for Windows 2000/XP](http://www.codeproject.com/KB/IP/drvfltip.aspx)For Vista I think you will need to use [Windows Filtering Platform](http://www.microsoft.com/whdc/device/network/wfp.mspx)
null
CC BY-SA 2.5
null
2008-08-20T17:30:31.470
2008-08-20T17:30:31.470
null
null
1,534
null
18,397
2
null
18,324
0
null
If you're in real mode your default size is implicitly 16 bits, so you should use BITS 16 mode. This way if you need a 32-bit operand size you add the 0x66 prefix, and for a 32-bit address size you add the 0x67 prefix. Look at the Intel IA-32 Software Developer's Guide, Volume 3, Chapter 16 (MIXING 16-BIT AND 32-BIT ...
null
CC BY-SA 2.5
null
2008-08-20T17:30:46.710
2008-08-20T17:30:46.710
null
null
1,084
null
18,393
2
null
11
14
null
In PHP, I do it this way: ``` <?php function timesince($original) { // array of time period chunks $chunks = array( array(60 * 60 * 24 * 365 , 'year'), array(60 * 60 * 24 * 30 , 'month'), array(60 * 60 * 24 * 7, 'week'), array(60 * 60 * 24 , 'day'), array(60 * 60 , 'hou...
null
CC BY-SA 3.0
null
2008-08-20T17:26:49.357
2012-02-06T02:05:49.427
2012-02-06T02:05:49.427
558,592
1,063
null
18,400
2
null
17,965
30
null
What I did at the end was attach gdb to the process before it crashed, and then when it got the segfault I executed the `generate-core-file` command. That forced generation of a core dump.
null
CC BY-SA 2.5
null
2008-08-20T17:33:38.700
2010-01-26T13:33:27.870
2010-01-26T13:33:27.870
1,084
1,084
null
18,413
1
18,471
null
2
15,131
I have a column of data that contains a percentage range as a string that I'd like to convert to a number so I can do easy comparisons. Possible values in the string: ``` '<5%' '5-10%' '10-15%' ... '95-100%' ``` I'd like to convert this in my select where clause to just the first number, 5, 10, 15, etc. so that I c...
Get a number from a sql string range
CC BY-SA 3.0
null
2008-08-20T17:39:52.040
2014-08-27T11:36:20.583
2014-08-27T11:29:29.893
2,357,766
1,097
[ "sql-server" ]
18,385
2
null
17,274
1
null
Plain HTML is great, gives you the most control. If you want to make updating a bit easier though, you could use SSI. Most servers have this enabled. It basically let's you attach one file to many pages. For example, you could have your menu in navigation.html and every page would include this file. That way you...
null
CC BY-SA 2.5
null
2008-08-20T17:19:54.693
2008-12-25T01:19:48.160
null
null
40
null
18,407
1
18,416
null
11
3,964
If I have a variable in C# that needs to be checked to determine if it is equal to one of a set of variables, what is the best way to do this? I'm not looking for a solution that stores the set in an array. I'm more curious to see if there is a solution that uses boolean logic in some way to get the answer. I know I ...
Most succinct way to determine if a variable equals a value from a 'list' of values
CC BY-SA 2.5
0
2008-08-20T17:37:16.943
2008-11-27T08:46:33.563
2008-08-20T22:28:38.913
392
392
[ "c#", "logic", "boolean-logic" ]
18,395
2
null
18,167
2
null
I don't believe that you can access a linked server directly from an application without the OpenQuery syntax. Depending on the complexity of your schema, it might make sense to write a routine or sproc to populate your staging database with data from your live database. You might also consider looking at Redgates SQ...
null
CC BY-SA 2.5
null
2008-08-20T17:29:23.577
2008-08-20T17:29:23.577
null
null
1,865
null
18,423
2
null
18,407
0
null
I usually use [CoreyN](https://stackoverflow.com/users/1595/coreyn)'s [solution](https://stackoverflow.com/questions/18407/most-succinct-way-to-determine-if-a-variable-equals-a-value-from-a-list-of-valu#18416) for simple cases like that. Anything more complex, use a LINQ query.
null
CC BY-SA 2.5
null
2008-08-20T17:43:57.693
2008-08-20T17:43:57.693
2017-05-23T12:33:26.220
-1
5
null
18,418
1
18,435
null
57
45,560
When I am writing code in Python, I often need to remove items from a list or other sequence type based on some criteria. I haven't found a solution that is elegant and efficient, as removing items from a list you are currently iterating through is bad. For example, you can't do this: ``` for name in names: if na...
Elegant way to remove items from sequence in Python?
CC BY-SA 2.5
0
2008-08-20T17:41:24.377
2013-03-15T14:12:56.133
2008-10-02T17:33:21.597
8,454
1,892
[ "python", "optimization", "set", "series" ]
18,416
2
null
18,407
16
null
``` bool b = new int[] { 3,7,12,5 }.Contains(5); ```
null
CC BY-SA 2.5
null
2008-08-20T17:40:30.570
2008-08-20T17:40:30.570
null
null
1,595
null
18,424
2
null
18,418
-2
null
Well, this is clearly an issue with the data structure you are using. Use a hashtable for example. Some implementations support multiple entries per key, so one can either pop the newest element off, or remove all of them. But this is, and what you're going to find the solution is, elegance through a different data st...
null
CC BY-SA 2.5
null
2008-08-20T17:46:43.630
2008-08-21T20:33:22.067
2008-08-21T20:33:22.067
157
157
null
18,421
1
18,456
null
16
4,575
In a desktop application needing some serious re-factoring, I have several chunks of code that look like this: ``` private void LoadSettings() { WindowState = Properties.Settings.Default.WindowState; Location = Properties.Settings.Default.WindowLocation; ... } private void SaveSettings() { Properties....
Best way to bind Windows Forms properties to ApplicationSettings in C#?
CC BY-SA 3.0
0
2008-08-20T17:42:21.457
2017-07-10T19:33:15.430
2017-07-10T19:33:15.430
7,750,640
229
[ "c#", ".net" ]
18,430
2
null
18,418
2
null
``` names = filter(lambda x: x[-5:] != "Smith", names); ```
null
CC BY-SA 2.5
null
2008-08-20T17:48:56.730
2008-08-20T17:48:56.730
null
null
2,120
null
18,437
2
null
18,413
0
null
You can convert char data to other types of char (convert char(10) to varchar(10)), but you won't be able to convert character data to integer data from within SQL.
null
CC BY-SA 2.5
null
2008-08-20T17:51:10.827
2008-08-20T17:51:10.827
null
null
2,165
null
18,431
2
null
18,418
3
null
filter would be awesome for this. Simple example: ``` names = ['mike', 'dave', 'jim'] filter(lambda x: x != 'mike', names) ['dave', 'jim'] ``` Corey's list comprehension is awesome too.
null
CC BY-SA 2.5
null
2008-08-20T17:49:10.427
2008-08-20T17:49:10.427
null
null
1,797
null
18,435
2
null
18,418
56
null
Two easy ways to accomplish just the filtering are: 1. Using filter: names = filter(lambda name: name[-5:] != "Smith", names) 2. Using list comprehensions: names = [name for name in names if name[-5:] != "Smith"] Note that both cases keep the values for which the predicate function evaluates to `True`, so you have...
null
CC BY-SA 3.0
null
2008-08-20T17:50:47.003
2012-04-10T05:32:20.757
2012-04-10T05:32:20.757
4,872
2,168
null
18,432
1
18,502
null
3
1,468
I am developing a Reporting Services solution for a DOD website. Frequently I'll have a report and want to have as a parameter the Service (in addition to other similar mundane, but repetitive parameters like Fiscal Year, Data Effective Date, etc). Basically everything I've seen of SSRS 2005 says it can't be done... ...
I can share a SQL Server Reporting Services Data SOURCE... what about a Data SET?
CC BY-SA 2.5
null
2008-08-20T17:49:18.163
2016-09-27T11:54:59.067
2008-08-23T05:10:09.507
202
2,156
[ "reporting-services" ]
18,445
2
null
13,217
0
null
Thanks for that, I will take a look at those links, I was considering chunking my data anyway, seems to be the only way I can get any reasonable progress reports out of it.
null
CC BY-SA 3.0
null
2008-08-20T17:54:22.940
2012-08-11T16:04:03.773
2012-08-11T16:04:03.773
1,477,076
1,478
null
18,433
2
null
18,418
10
null
Using [a list comprehension](http://docs.python.org/tut/node7.html#SECTION007140000000000000000) ``` list = [x for x in list if x[-5:] != "smith"] ```
null
CC BY-SA 2.5
null
2008-08-20T17:49:29.783
2008-08-20T17:49:29.783
null
null
1,595
null
18,406
2
null
18,265
7
null
If you are on systems with the BSD [backtrace](http://linux.die.net/man/3/backtrace) functionality available (Linux, OSX 1.5, BSD of course), you can do this programmatically in your signal handler. For example ([backtrace code derived from IBM example](http://www-128.ibm.com/developerworks/linux/library/l-cppexcep.ht...
null
CC BY-SA 3.0
null
2008-08-20T17:36:55.697
2016-04-13T17:11:09.527
2016-04-13T17:11:09.527
906,523
872
null
18,450
1
93,952
null
314
24,763
Has anyone used Mono, the open source .NET implementation on a large or medium sized project? I'm wondering if it's ready for real world, production environments. Is it stable, fast, compatible, ... enough to use? Does it take a lot of effort to port projects to the Mono runtime, or is it really, compatible enough to ...
Is Mono ready for prime time?
CC BY-SA 2.5
0
2008-08-20T17:57:44.977
2021-09-17T02:13:54.523
2021-09-17T02:13:54.523
100,297
2,018
[ ".net", "mono" ]
18,448
1
18,484
null
18
11,473
I'm looking for a simple way to encrypt my soap communication in my C# Web-Service. I was looking into [WSE 3.0](http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.microsoft.com%2Fdownloads%2Fdetails.aspx%3Ffamilyid%3D018a09fd-3a74-43c5-8ec1-8d789091255d&ei=x1isSPTUO4bS0QXsjIzWAw&usg=AFQjCNHn7aOkIXoysM1wo...
Encryption in C# Web-Services
CC BY-SA 2.5
0
2008-08-20T17:55:34.247
2009-04-21T20:00:02.960
2008-08-31T01:44:37.317
305
1,256,645
[ "c#", "web-services", "security", "encryption" ]
18,452
2
null
18,448
0
null
Perhaps I'm being naive, but would forcing the communication to be via https be acceptable? I develop web services that run on 2.0 and have had success with just getting IIS to enforce https on the virtual directory. Alternatively, or in addition, you can check the [HttpRequest.IsSecureConnection property](http://msd...
null
CC BY-SA 2.5
null
2008-08-20T17:58:43.740
2008-08-20T17:58:43.740
null
null
1,199
null
18,419
1
null
null
1
4,537
I've got a combo-box that sits inside of a panel in Flex 3. Basically I want to fade the panel using a Fade effect in ActionScript. I can get the fade to work fine, however the label of the combo-box does not fade. I had this same issue with buttons and found that their fonts needed to be embedded. No problem. I e...
How To Get Label Of Combobox to Fade In Flex
CC BY-SA 3.0
null
2008-08-20T17:41:43.250
2017-07-10T19:36:40.427
2017-07-10T19:36:40.427
7,750,640
1,290
[ "apache-flex", "actionscript-3" ]
18,460
1
18,469
null
1
638
What is the best way to authorize all users to one single page in a asp.net website. For except the login page and one other page, I deny all users from viewing pages in the website. How do you make this page accessible to all users?
Best practise to authorize all users for just one page
CC BY-SA 3.0
null
2008-08-20T18:04:58.233
2012-09-11T00:15:51.440
2012-09-11T00:15:51.440
1,270,384
2,172
[ "asp.net", "authorization" ]
18,449
1
18,607
null
12
7,780
For those of us who use standard shared hosting packages, such as GoDaddy or Network Solutions, how do you handle datetime conversions when your hosting server (PHP) and MySQL server are in different time zones? Also, does anybody have some best practice advice for determining what time zone a visitor to your site is ...
Dealing with PHP server and MySQL server in different time zones
CC BY-SA 2.5
0
2008-08-20T17:55:35.323
2017-02-05T06:34:55.787
2012-04-30T11:30:24.437
729,768
2,056
[ "php", "mysql", "datetime", "date", "timezone" ]
18,456
2
null
18,421
12
null
If you open your windows form in the designer, look in the properties box. The first item should be "(ApplicationSetting)". Under that is "(PropertyBinding)". That's where you'll find the option to do exactly what you want.
null
CC BY-SA 2.5
null
2008-08-20T18:02:14.637
2008-08-20T18:02:14.637
null
null
1,453
null
18,451
2
null
18,413
0
null
I don't know if this works in SQL Server, but within MySQL, you can use several tricks to convert character data into numbers. Examples from your sample data: ``` "<5%" => 0 "5-10%" => 5 "95-100%" => 95 ``` now obviously this fails your first test, but some clever string replacements on the start of the string...
null
CC BY-SA 2.5
null
2008-08-20T17:58:16.190
2008-08-20T17:58:16.190
null
null
1,951
null
18,465
1
18,523
null
13
1,655
In .Net you can read a string value into another data type using either `<datatype>.parse` or `Convert.To<DataType>`. I'm not familiar with the fundamentals of parse versus convert so I am always at a loss when asked which one is better/faster/more appropriate. So - which way is best in what type of circumstances?
.Net Parse versus Convert
CC BY-SA 3.0
0
2008-08-20T18:06:12.880
2015-12-16T08:17:05.847
2015-12-16T08:17:05.847
1,016,716
149
[ ".net", "parsing" ]
18,463
2
null
18,419
2
null
Hmm, I am not sure why that isn't working for you. Here is an example of how I got it to work: ``` <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="fx.play([panel])"> <mx:Style> @font-face { src: local("Arial");...
null
CC BY-SA 2.5
null
2008-08-20T18:05:41.057
2008-08-20T18:05:41.057
null
null
22
null
18,467
2
null
16,432
2
null
Nice one! Just added ``` s.Start(); for (var i = 0; i < n; i++) result = string.Concat(p.FirstName, " ", p.LastName); s.Stop(); ceElapsedMilliseconds = s.ElapsedMilliseconds; ceElapsedTicks = s.ElapsedTicks; s.Reset(); ``` And it is even faster (I guess string.Con...
null
CC BY-SA 2.5
null
2008-08-20T18:07:42.207
2008-08-20T18:07:42.207
null
null
920
null
18,466
2
null
18,448
1
null
> > Perhaps I'm being naive, but would forcing the communication to be via https be acceptable? I develop web services that run on 2.0 and have had success with just getting IIS to enforce https on the virtual directory.That would be the simplest way to go probably, but unfortunately I don't ...
null
CC BY-SA 2.5
null
2008-08-20T18:06:20.307
2008-08-21T00:16:26.390
2008-08-21T00:16:26.390
1,199
1,199
null
18,454
2
null
18,413
0
null
You'd probably be much better off changing `<5%` and `5-10%` to store 2 values in 2 fields. Instead of storing `<5%`, you would store 0, and 5, and instead of `5-10%`, yould end up with 5 and 10. You'd end up with 2 columns, one called lowerbound, and one called upperbound, and then just check value `>=` lowerbound A...
null
CC BY-SA 3.0
null
2008-08-20T18:00:17.030
2014-08-27T11:36:20.583
2014-08-27T11:36:20.583
2,357,766
1,862
null
18,475
2
null
18,460
-1
null
I created a base "page" class that handles that sort of thing. All my pages can then be decorated with the RequiresLogin attribute if a login is required to view them. If the attribute is not present, the page is accessible to all. Example: ``` <RequiresLogin()> _ <RequiresPermission("process")> _ Partial Class Desi...
null
CC BY-SA 2.5
null
2008-08-20T18:12:40.277
2008-08-20T18:12:40.277
null
null
160
null
18,476
2
null
18,465
1
null
There is also the DirectCast method which you should use only if you are sure what the type of the object is. It is faster, but doesn't do any proper checks. I use DirectCast when I'm extracting values from a loosely typed DataTable when I know the type for each column.
null
CC BY-SA 2.5
null
2008-08-20T18:12:54.300
2008-08-20T18:12:54.300
null
null
71
null
18,481
2
null
3,748
0
null
Attempting to mimic a file system using SQL is generally a bad plan. You ultimately write less code with equal or better results if you stick with the file system for external storage.
null
CC BY-SA 2.5
null
2008-08-20T18:15:08.490
2008-08-20T18:15:08.490
null
null
1,473,493
null
18,477
2
null
18,465
1
null
If you need speed, I'm pretty sure a direct cast is the fastest way. That being said, I normally use .Parse or .TryParse because is seems to make things easier to read, and behave in a more predictable manner. Convert actually calls Parse under the hood, I believe. So there is little difference there, and its real...
null
CC BY-SA 2.5
null
2008-08-20T18:12:58.590
2008-08-20T18:12:58.590
null
null
794
null
18,471
2
null
18,413
5
null
Try this, ``` SELECT substring(replace(interest , '<',''), patindex('%[0-9]%',replace(interest , '<','')), patindex('%[^0-9]%',replace(interest, '<',''))-1) FROM table1 ``` Tested at my end and it works, it's only my first try so you might be able to optimise it.
null
CC BY-SA 2.5
null
2008-08-20T18:09:39.160
2008-08-20T18:09:39.160
null
null
770
null
18,474
2
null
18,465
5
null
Here's an answer for you: [http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=77428](http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=77428) Though I think in modern versions of .NET, the best thing to do is use TryParse in any case, if there's any doubt that the conversion will work.
null
CC BY-SA 2.5
null
2008-08-20T18:11:09.857
2008-08-20T18:11:09.857
null
null
1,975,282
null
18,478
2
null
18,413
0
null
You can do this in sql server with a cursor. If you can create a CLR function to pull out number groupings that will help. Its possible in T-SQL, just will be ugly. Create the cursor to loop over the list. Find the first number, If there is only 1 number group in their then return it. Otherwise find the second item gr...
null
CC BY-SA 2.5
null
2008-08-20T18:13:34.423
2008-08-20T18:13:34.423
null
null
805
null
18,469
2
null
18,460
5
null
I've been using forms authentication and creating the necessary GenericIdentity and CustomPrincipal objects that allows me to leverage the User.IsInRole type functions you typically only get with Windows authentication. That way in my web.config file, I can do stuff like... ``` <location path="Login.aspx"> <system...
null
CC BY-SA 3.0
null
2008-08-20T18:09:05.400
2012-08-11T16:03:50.357
2012-08-11T16:03:50.357
1,477,076
71
null
18,487
2
null
18,450
4
null
In many cases, you can take existing code and just run it on Mono, particularly if you're porting an ASP.NET application. In some cases, you may require whole new sections of code to make it work. If you use System.Windows.Forms, for example, the application won't work unmodified. Likewise if you use any Windows-speci...
null
CC BY-SA 2.5
null
2008-08-20T18:17:22.277
2008-08-20T18:17:22.277
null
null
1,975,282
null
18,484
2
null
18,448
9
null
I think this can help; last year we used this to compress the webservices and it performed very well, I believe it could be enhanced with encryption classes; [Creating Custom SOAP Extensions - Compression Extension](http://www.mastercsharp.com/article.aspx?ArticleID=86&&TopicID=7)
null
CC BY-SA 2.5
null
2008-08-20T18:15:46.133
2008-08-20T18:15:46.133
null
null
1,130,097
null
18,492
2
null
18,448
0
null
We actually use WSE 3.0 in our web services, which were originally developed pre-WCF. For security, we use a SAML token based system built on the Cryptography classes in System.Security. It works very well. However, this method is by no means "simple".
null
CC BY-SA 2.5
null
2008-08-20T18:18:38.530
2008-08-20T18:18:38.530
null
null
1,683
null
18,473
2
null
16,804
7
null
I've been using SSRS for a while now... and coworkers who look over my shoulder say it looks to be easier to do the SSRS thing than the Crystal. I've never used Crystal, so I can't tell you which is better, but I get the distinct impression that MS tried to rush SSRS out the door. Largest weaknesses: - - - - Str...
null
CC BY-SA 2.5
null
2008-08-20T18:10:26.850
2008-08-20T18:10:26.850
null
null
2,156
null
18,485
2
null
18,413
0
null
The issue you are having is a symptom of not keeping the data atomic. In this case it looks purely unintentional (Legacy) but here is a [link](http://books.google.com/books?id=ZO6MF9Ja1zoC&pg=PA170&lpg=PA170&dq=sql+atomic+data&source=web&ots=WLBCmRzH5G&sig=fjRhYDpCwdQpJEmGxRPfieA1FnY&hl=en&sa=X&oi=book_result&resnum=1...
null
CC BY-SA 2.5
null
2008-08-20T18:16:05.650
2008-08-20T18:16:05.650
null
null
1,293
null
18,490
2
null
18,119
3
null
If you want to notify others of changes you should implement the ["Observer Pattern"](http://en.wikipedia.org/wiki/Observer_pattern). Delphi has already done that for you for TComponent descendants. You can call the TComponent.FreeNotification method and have your object be notified when the other component gets destro...
null
CC BY-SA 2.5
null
2008-08-20T18:18:02.273
2008-08-20T18:18:02.273
null
null
1,242
null
18,497
2
null
18,418
2
null
Both solutions, and requires building a new list. I don't know enough of the Python internals to be sure, but I that a more traditional (but less elegant) approach could be more efficient: ``` names = ['Jones', 'Vai', 'Smith', 'Perez'] item = 0 while item <> len(names): name = names [item] if name=='Smith'...
null
CC BY-SA 2.5
null
2008-08-20T18:20:33.970
2008-08-20T18:20:33.970
null
null
394
null
18,488
2
null
18,450
39
null
On the desktop side, Mono works great if you commit to using GTK#. The Windows.Forms implementation is still a little buggy (for example, TrayIcon's don't work) but it has come a long way. Besides, GTK# is a better toolkit than Windows Forms as it is. On the web side, Mono has implemented enough of ASP.NET to run most...
null
CC BY-SA 3.0
null
2008-08-20T18:17:32.510
2011-06-29T12:33:39.493
2011-06-29T12:33:39.493
6,278
1,965
null
18,503
2
null
18,413
2
null
@Martin: Your solution works. Here is another I came up with based on inspiration from @mercutio ``` select cast(replace(replace(replace(interest,'<',''),'%',''),'-','.0') as numeric) test from table1 where interest is not null ```
null
CC BY-SA 2.5
null
2008-08-20T18:22:11.610
2008-08-20T18:22:11.610
null
null
1,097
null
18,501
2
null
18,450
1
null
It really depends on the namespaces and classes that you are using from the .NET framework. I had interest in converting one of my windows services to run on my email server, which is Suse, but we ran into several hard roadblocks with APIs that had not been completely implemented. There is a chart somewhere on the Mo...
null
CC BY-SA 2.5
null
2008-08-20T18:21:50.660
2008-08-20T18:21:50.660
null
null
1,219
null
18,505
1
18,756
null
7
5,738
In an application that I am currently working on, a requirement is to bring a window of an external application to the foreground. Making Win32 API calls such as BringWindowToTop and SetForeground window do not work all the time. This is due to some restrictions within Windows XP. What I would like to do instead is ...
Sending a mouse click to a button in the taskbar using C#
CC BY-SA 2.5
0
2008-08-20T18:22:55.320
2013-01-23T05:09:55.427
2008-08-22T06:13:03.843
611
324
[ "c#", ".net", "windows", "winapi" ]
18,502
2
null
18,432
1
null
I am not clear if you need to share a dataset, since you have some SQL results that you need to use twice, and don't want to re-compute the same data twice, or you want to do something regarding parameters. So with this "I didn't really understand the question" preface... 1. You cannot share a dataset. Meaning, you ...
null
CC BY-SA 3.0
null
2008-08-20T18:22:11.453
2015-08-26T21:12:03.907
2015-08-26T21:12:03.907
3,593,852
350
null
18,507
2
null
15,219
1
null
I've found what was wrong. The column must allow updates. ``` uwgMyGrid.Columns.FromKey("colTest").AllowUpdate = AllowUpdate.Yes; ```
null
CC BY-SA 2.5
null
2008-08-20T18:24:25.567
2008-08-20T18:24:25.567
null
null
810
null
18,500
2
null
18,450
65
null
It has pretty extensive coverage up to .NET 4.0 and even include some features from .NET 4.5 APIs, but there are a few areas that we have chosen not to implement due to the APIs being deprecated, new alternatives being created or the scope being too large. The following APIs are not available in Mono: - - - - Addi...
null
CC BY-SA 3.0
null
2008-08-20T18:21:49.800
2013-04-21T23:34:26.150
2013-04-21T23:34:26.150
205,859
5
null
18,520
2
null
18,505
2
null
It's possible. But it's extremely sketchy. Your application may also break with the next version of Windows, since it's undocumented. What you need to do is find the window handle of the taskbar, then find the window handle of the child window representing the button, then send it a WM_MOUSEDOWN (I think) message. Her...
null
CC BY-SA 3.0
null
2008-08-20T18:27:57.273
2013-01-23T05:09:55.427
2013-01-23T05:09:55.427
1,410,342
1,975,282
null
18,511
2
null
3,748
25
null
One thing that I haven't seen anyone mention yet but is definitely worth noting is that there are issues associated with storing large amounts of images in most filesystems too. For example if you take the approach mentioned above and name each image file after the primary key, on most filesystems you will run into is...
null
CC BY-SA 2.5
null
2008-08-20T18:25:12.540
2008-08-20T18:25:12.540
null
null
2,168
null
18,522
2
null
18,413
0
null
It's complicated, but for the test cases you provided, this works. Just replace @Test with the column you are looking in from your table. ``` DECLARE @TEST varchar(10) set @Test = '<5%' --set @Test = '5-10%' --set @Test = '10-15%' --set @Test = '95-100%' Select CASE WHEN Substring(@TEST,1,1) = '<' THEN 0 ELSE...
null
CC BY-SA 2.5
null
2008-08-20T18:28:38.973
2008-08-20T18:36:14.213
2008-08-20T18:36:14.213
1,862
1,862
null
18,516
2
null
18,291
40
null
[DUnit](http://dunit.sourceforge.net/) is a xUnit type of unit testing framework to be used with win32 Delphi. Since Delphi 2005 DUnit is integrated to a certan point into the IDE. Other DUnit integration tools for the Delphi IDE can be found [here](http://www.elvenware.com/charlie/conferences/2004/talks/UnitTests/duni...
null
CC BY-SA 2.5
null
2008-08-20T18:26:09.400
2008-08-20T18:26:09.400
null
null
1,242
null