content stringlengths 86 88.9k | title stringlengths 0 150 | question stringlengths 1 35.8k | answers sequence | answers_scores sequence | non_answers sequence | non_answers_scores sequence | tags sequence | name stringlengths 30 130 |
|---|---|---|---|---|---|---|---|---|
Q:
Microsoft Office 2007 file type, Mime types and identifying characters
Where can I find a list of all of the MIME types and the identifying characters for Microsoft Office 2007 files?
I have an upload form that is restricting uploads based on the extensions and identifying characters, but I cannot seem to find the... | Microsoft Office 2007 file type, Mime types and identifying characters | Where can I find a list of all of the MIME types and the identifying characters for Microsoft Office 2007 files?
I have an upload form that is restricting uploads based on the extensions and identifying characters, but I cannot seem to find the Office 2007 MIME types.
Can anyone help?
| [
"Office 2007 MIME Types for IIS\n\n.docm, application/vnd.ms-word.document.macroEnabled.12\n.docx, application/vnd.openxmlformats-officedocument.wordprocessingml.document\n.dotm, application/vnd.ms-word.template.macroEnabled.12\n.dotx, application/vnd.openxmlformats-officedocument.wordprocessingml.template\n.potm, ... | [
26
] | [] | [] | [
"file_type",
"mime",
"office_2007"
] | stackoverflow_0000000061_file_type_mime_office_2007.txt |
Q:
XSD DataSets and ignoring foreign keys
I have a pretty standard table set-up in a current application using the .NET XSD DataSet and TableAdapter features. My contracts table consists of some standard contract information, with a column for the primary department. This column is a foreign key to my Departments tab... | XSD DataSets and ignoring foreign keys | I have a pretty standard table set-up in a current application using the .NET XSD DataSet and TableAdapter features. My contracts table consists of some standard contract information, with a column for the primary department. This column is a foreign key to my Departments table, where I store the basic department name,... | [
"You can try turning Check-constraints off on the DataSet (it's in its properties), or altering the properties of that relationship, and change the key to a simple reference - up to you.\n"
] | [
13
] | [] | [] | [
".net",
"database",
"xsd"
] | stackoverflow_0000000134_.net_database_xsd.txt |
Q:
What is the meaning of the type safety warning in certain Java generics casts?
What is the meaning of the Java warning?
Type safety: The cast from Object to List<Integer> is actually checking against the erased type List
I get this warning when I try to cast an Object to a type with generic information, such as ... | What is the meaning of the type safety warning in certain Java generics casts? | What is the meaning of the Java warning?
Type safety: The cast from Object to List<Integer> is actually checking against the erased type List
I get this warning when I try to cast an Object to a type with generic information, such as in the following code:
Object object = getMyList();
List<Integer> list = (List<Integ... | [
"This warning is there because Java is not actually storing type information at run-time in an object that uses generics. Thus, if object is actually a List<String>, there will be no ClassCastException at run-time except until an item is accessed from the list that doesn't match the generic type defined in the var... | [
53
] | [] | [] | [
"casting",
"generics",
"java",
"type_safety",
"warnings"
] | stackoverflow_0000000382_casting_generics_java_type_safety_warnings.txt |
Q:
Floating Point Number parsing: Is there a Catch All algorithm?
One of the fun parts of multi-cultural programming is number formats.
Americans use 10,000.50
Germans use 10.000,50
French use 10 000,50
My first approach would be to take the string, parse it backwards until I encounter a separator and use this as m... | Floating Point Number parsing: Is there a Catch All algorithm? | One of the fun parts of multi-cultural programming is number formats.
Americans use 10,000.50
Germans use 10.000,50
French use 10 000,50
My first approach would be to take the string, parse it backwards until I encounter a separator and use this as my decimal separator. There is an obvious flaw with that: 10.000 woul... | [
"I think the best you can do in this case is to take their input and then show them what you think they meant. If they disagree, show them the format you're expecting and get them to enter it again.\n",
"I don't know the ASP.NET side of the problem but .NET has a pretty powerful class: System.Globalization.Cultur... | [
31,
27,
12,
10
] | [] | [] | [
".net",
"asp.net",
"c#",
"globalization",
"internationalization"
] | stackoverflow_0000000192_.net_asp.net_c#_globalization_internationalization.txt |
Q:
Homegrown consumption of web services
I've been writing a few web services for a .net app, now I'm ready to consume them. I've seen numerous examples where there is homegrown code for consuming the service as opposed to using the auto generated methods that Visual Studio creates when adding the web reference.
Is ... | Homegrown consumption of web services | I've been writing a few web services for a .net app, now I'm ready to consume them. I've seen numerous examples where there is homegrown code for consuming the service as opposed to using the auto generated methods that Visual Studio creates when adding the web reference.
Is there some advantages to this?
| [
"No, what you're doing is fine. Don't let those people confuse you.\nIf you've written the web services with .net then the reference proxies generated by .net are going to be quite suitable. The situation you describe (where you are both producer and consumer) is the ideal situation.\nIf you need to connect to a we... | [
11
] | [] | [] | [
".net",
"web_services"
] | stackoverflow_0000000470_.net_web_services.txt |
Q:
Lucene Score results
In Lucene if you had multiple indexes that covered only one partition each. Why does the same search on different indexes return results with different scores? The results from different servers match exactly.
i.e. if I searched for :
Name - John Smith
DOB - 11/11/1934
Partition 0 would ret... | Lucene Score results | In Lucene if you had multiple indexes that covered only one partition each. Why does the same search on different indexes return results with different scores? The results from different servers match exactly.
i.e. if I searched for :
Name - John Smith
DOB - 11/11/1934
Partition 0 would return a score of 0.345
Parti... | [
"The scoring contains the Inverse Document Frequency(IDF). If the term \"John Smith\" is in one partition, 0, 100 times and in partition 1, once. The score for searching for John Smith would be higher search in partition 1 as the term is more scarce.\nTo get round this you would wither have to have your index being... | [
20,
13,
9
] | [] | [] | [
"lucene",
"search"
] | stackoverflow_0000000387_lucene_search.txt |
Q:
How to write to Web.Config in Medium Trust?
Uploading my first decently sized web app to my shared host provided me with a fresh set of challenges, by which I mean, sleepless nights. The issue was that I had most certainly not developed my application for medium trust (or had any clue what that was.)
I mitigated ... | How to write to Web.Config in Medium Trust? | Uploading my first decently sized web app to my shared host provided me with a fresh set of challenges, by which I mean, sleepless nights. The issue was that I had most certainly not developed my application for medium trust (or had any clue what that was.)
I mitigated all of the issues, save one.
I had written an in... | [
"That actually sounds like IIS's Low level. If it is, then you won't be able to write to any file, not just the web.config.\nHere are the levels from IIS's help file:\n\n\n\nFull (internal) - Specifies unrestricted permissions. Grants the ASP.NET application permissions to access any resource that is subject to ope... | [
24
] | [] | [] | [
"asp.net",
"c#",
"medium_trust"
] | stackoverflow_0000000562_asp.net_c#_medium_trust.txt |
Q:
Visual Studio Setup Project - Per User Registry Settings
I'm trying to maintain a Setup Project in Visual Studio 2003 (yes, it's a legacy application). The problem we have at the moment is that we need to write registry entries to HKCU for every user on the computer. They need to be in the HKCU rather than HKLM be... | Visual Studio Setup Project - Per User Registry Settings | I'm trying to maintain a Setup Project in Visual Studio 2003 (yes, it's a legacy application). The problem we have at the moment is that we need to write registry entries to HKCU for every user on the computer. They need to be in the HKCU rather than HKLM because they are the default user settings, and they do change p... | [
"First: Yes, this is something that belongs in the Application for the exact reson you specified: What happens after new user profiles are created? Sure, if you're using a domain it's possible to have some stuff put in the registry on creation, but this is not really a use case. The Application should check if ther... | [
6,
6,
3,
2
] | [] | [] | [
"installation",
"registry",
"visual_studio",
"windows"
] | stackoverflow_0000000810_installation_registry_visual_studio_windows.txt |
Q:
Client collation and SQL Server 2005
We're upgrading an existing program from Win2k/SQL Server 2k to Windows 2003 and SQL Server 2005 as well as purchasing a new program that also uses 2k3/2k5. The vendor says that for us to host both databases we need to get the Enterprise version because the softwares clients us... | Client collation and SQL Server 2005 | We're upgrading an existing program from Win2k/SQL Server 2k to Windows 2003 and SQL Server 2005 as well as purchasing a new program that also uses 2k3/2k5. The vendor says that for us to host both databases we need to get the Enterprise version because the softwares clients use different collation for the connections ... | [
"All editions of SQL Server 2000/2005/2008 support having multiple databases, each using their own collation sequence. You don't need the Enterprise version. \nWhen you have a database that uses a collation sequence that is different from default collation for the database server, you will need to take some extra... | [
7
] | [] | [] | [
"sql_server",
"sql_server_2005",
"windows_server_2003"
] | stackoverflow_0000000905_sql_server_sql_server_2005_windows_server_2003.txt |
Q:
Upgrading SQL Server 6.5
Yes, I know. The existence of a running copy of SQL Server 6.5 in 2008 is absurd.
That stipulated, what is the best way to migrate from 6.5 to 2005? Is there any direct path? Most of the documentation I've found deals with upgrading 6.5 to 7.
Should I forget about the native SQL Server ... | Upgrading SQL Server 6.5 | Yes, I know. The existence of a running copy of SQL Server 6.5 in 2008 is absurd.
That stipulated, what is the best way to migrate from 6.5 to 2005? Is there any direct path? Most of the documentation I've found deals with upgrading 6.5 to 7.
Should I forget about the native SQL Server upgrade utilities, script out ... | [
"Hey, I'm still stuck in that camp too. The third party application we have to support is FINALLY going to 2K5, so we're almost out of the wood. But I feel your pain 8^D\nThat said, from everything I heard from our DBA, the key is to convert the database to 8.0 format first, and then go to 2005. I believe they used... | [
11,
6,
3,
3
] | [] | [] | [
"migration",
"sql_server"
] | stackoverflow_0000000194_migration_sql_server.txt |
Q:
Why doesn't SQL Full Text Indexing return results for words containing #?
For instance, my query is like the following using SQL Server 2005:
SELECT * FROM Table WHERE FREETEXT(SearchField, 'c#')
I have a full text index defined to use the column SearchField which returns results when using:
SELECT * FROM Table ... | Why doesn't SQL Full Text Indexing return results for words containing #? | For instance, my query is like the following using SQL Server 2005:
SELECT * FROM Table WHERE FREETEXT(SearchField, 'c#')
I have a full text index defined to use the column SearchField which returns results when using:
SELECT * FROM Table WHERE SearchField LIKE '%c#%'
I believe # is a special letter, so how do I all... | [
"The # char is indexed as punctuation and therefore ignored, so it looks like we'll remove the letter C from our word indexing ignore lists.\nTested it locally after doing that and rebuilding the indexes and I get results!\nLooking at using a different word breaker language on the indexed column, so that those spec... | [
14,
1
] | [] | [] | [
"full_text_search",
"indexing",
"sql",
"sql_server",
"sql_server_2005"
] | stackoverflow_0000001042_full_text_search_indexing_sql_sql_server_sql_server_2005.txt |
Q:
Displaying Flash content in a C# WinForms application
What is the best way to display Flash content in a C# WinForms application? I would like to create a user control (similar to the current PictureBox) that will be able to display images and flash content.
It would be great to be able to load the flash content f... | Displaying Flash content in a C# WinForms application | What is the best way to display Flash content in a C# WinForms application? I would like to create a user control (similar to the current PictureBox) that will be able to display images and flash content.
It would be great to be able to load the flash content from a stream of sorts rather than a file on disk.
| [
"While I haven't used a flash object inside a windows form application myself, I do know that it's possible.\nIn Visual studio on your toolbox, choose to add a new component.\nThen in the new window that appears choose the \"COM Components\" tab to get a list in which you can find the \"Shockwave Flash Object\"\nOn... | [
33,
8
] | [] | [] | [
"adobe",
"c#",
"flash",
"macromedia",
"winforms"
] | stackoverflow_0000001037_adobe_c#_flash_macromedia_winforms.txt |
Q:
ViewState invalid only in Safari
One of the sites I maintain relies heavily on the use of ViewState (it isn't my code). However, on certain pages where the ViewState is extra-bloated, Safari throws a "Validation of viewstate MAC failed" error.
This appears to only happen in Safari. Firefox, IE and Opera all load s... | ViewState invalid only in Safari | One of the sites I maintain relies heavily on the use of ViewState (it isn't my code). However, on certain pages where the ViewState is extra-bloated, Safari throws a "Validation of viewstate MAC failed" error.
This appears to only happen in Safari. Firefox, IE and Opera all load successfully in the same scenario.
| [
"While I second the Channel 9 solution, also be aware that in some hosted environments Safari is not considered an up-level browser. You may need to add it to your application's browscap in order to make use of some ASP.Net features. \nThat was the root cause of some headaches we had for a client's site that used t... | [
5,
3,
2
] | [] | [] | [
".net",
"c#",
"safari",
"viewstate"
] | stackoverflow_0000001189_.net_c#_safari_viewstate.txt |
Q:
Using MSTest with CruiseControl.NET
We have been using CruiseControl for quite a while with NUnit and NAnt. For a recent project we decided to use the testing framework that comes with Visual Studio, which so far has been adequate.
I'm attempting to get the solution running in CruiseControl. I've finally got the ... | Using MSTest with CruiseControl.NET | We have been using CruiseControl for quite a while with NUnit and NAnt. For a recent project we decided to use the testing framework that comes with Visual Studio, which so far has been adequate.
I'm attempting to get the solution running in CruiseControl. I've finally got the build itself to work; however, I have bee... | [
"Not sure if that helps (i found the ccnet Documentation somewhat unhelpful at times):\nUsing CruiseControl.NET with MSTest\n",
"The CC.Net interface is generated via an XSL transform on your XML files put together as specified in the ccnet.config file for your projects. The XSL is already written for things lik... | [
5,
1
] | [] | [] | [
"build_process",
"cruisecontrol.net",
"msbuild"
] | stackoverflow_0000001314_build_process_cruisecontrol.net_msbuild.txt |
Q:
How can I get the authenticated user name under Apache using plain HTTP authentication and PHP?
First, let's get the security considerations out of the way. I'm using simple authentication under Apache for a one-off, internal use only, non-internet connected LAN, PHP web app.
How can get I the HTTP authenticated u... | How can I get the authenticated user name under Apache using plain HTTP authentication and PHP? | First, let's get the security considerations out of the way. I'm using simple authentication under Apache for a one-off, internal use only, non-internet connected LAN, PHP web app.
How can get I the HTTP authenticated user name in PHP?
| [
"I think that you are after this\n$username = $_SERVER['PHP_AUTH_USER'];\n$password = $_SERVER['PHP_AUTH_PW'];\n\n"
] | [
40
] | [] | [] | [
"apache",
"authentication",
"http_authentication",
"php"
] | stackoverflow_0000001417_apache_authentication_http_authentication_php.txt |
Q:
Integrating Visual Studio Test Project with Cruise Control
I'm looking into using Visual Studio 2008's built in unit test projects instead of NUnit and I was wondering if anyone has any experience in trying to integrate this type of unit test project with Cruise Control.Net.
A:
From some of the initial research ... | Integrating Visual Studio Test Project with Cruise Control | I'm looking into using Visual Studio 2008's built in unit test projects instead of NUnit and I was wondering if anyone has any experience in trying to integrate this type of unit test project with Cruise Control.Net.
| [
"From some of the initial research it doesn't appear to be a super simple solution. \nIt appears that doing this involves having Visual Studio 2008 actually installed on the continuous integration server, which could be a deal breaker.\nThen configure the MSTest.exe to run in the tasks list, but first you'll have t... | [
10
] | [] | [] | [
"continuous_integration",
"cruisecontrol.net",
"unit_testing",
"visual_studio"
] | stackoverflow_0000001503_continuous_integration_cruisecontrol.net_unit_testing_visual_studio.txt |
Q:
Register Windows program with the mailto protocol programmatically
How do I make it so mailto: links will be registered with my program?
How would I then handle that event in my program?
Most of the solutions I found from a quick Google search are how to do this manually, but I need to do this automatically for us... | Register Windows program with the mailto protocol programmatically | How do I make it so mailto: links will be registered with my program?
How would I then handle that event in my program?
Most of the solutions I found from a quick Google search are how to do this manually, but I need to do this automatically for users of my program if they click a button, such as "set as default email ... | [
"@Dillie-O: Your answer put me in the right direction (I should have expected it to just be a registry change) and I got this working. But I'm going to mark this as the answer because I'm going to put some additional information that I found while working on this.\nThe solution to this question really doesn't depen... | [
19,
13
] | [] | [] | [
"mailto",
"windows"
] | stackoverflow_0000000231_mailto_windows.txt |
Q:
How do I make a menu that does not require the user to press [enter] to make a selection?
I've got a menu in Python. That part was easy. I'm using raw_input() to get the selection from the user.
The problem is that raw_input (and input) require the user to press Enter after they make a selection. Is there any way... | How do I make a menu that does not require the user to press [enter] to make a selection? | I've got a menu in Python. That part was easy. I'm using raw_input() to get the selection from the user.
The problem is that raw_input (and input) require the user to press Enter after they make a selection. Is there any way to make the program act immediately upon a keystroke? Here's what I've got so far:
import sys
... | [
"On Windows:\nimport msvcrt\nanswer=msvcrt.getch()\n\n",
"On Linux:\n\nset raw mode\nselect and read the keystroke\nrestore normal settings\n\n\nimport sys\nimport select\nimport termios\nimport tty\n\ndef getkey():\n old_settings = termios.tcgetattr(sys.stdin)\n tty.setraw(sys.stdin.fileno())\n select.s... | [
10,
9,
4,
0
] | [] | [] | [
"python"
] | stackoverflow_0000001829_python.txt |
Q:
Can a Windows dll retrieve its own filename?
A Windows process created from an exe file has access to the command string which invoked it, including its file's path and filename. eg. C:\MyApp\MyApp.exe --help.
But this is not so for a dll invoked via LoadLibrary. Does anyone know of a way for a function loaded via... | Can a Windows dll retrieve its own filename? | A Windows process created from an exe file has access to the command string which invoked it, including its file's path and filename. eg. C:\MyApp\MyApp.exe --help.
But this is not so for a dll invoked via LoadLibrary. Does anyone know of a way for a function loaded via dll to find out what its path and filename is?
Sp... | [
"I think you're looking for GetModuleFileName.\nhttp://www.swissdelphicenter.ch/torry/showcode.php?id=143:\n{\n If you are working on a DLL and are interested in the filename of the\n DLL rather than the filename of the application, then you can use this function:\n}\n\nfunction GetModuleName: string;\nvar\n szF... | [
39
] | [] | [] | [
"delphi",
"dll",
"winapi",
"windows"
] | stackoverflow_0000002043_delphi_dll_winapi_windows.txt |
Q:
How to get the value of built, encoded ViewState?
I need to grab the base64-encoded representation of the ViewState. Obviously, this would not be available until fairly late in the request lifecycle, which is OK.
For example, if the output of the page includes:
<input type="hidden" name="__VIEWSTATE"
id="__VIEW... | How to get the value of built, encoded ViewState? | I need to grab the base64-encoded representation of the ViewState. Obviously, this would not be available until fairly late in the request lifecycle, which is OK.
For example, if the output of the page includes:
<input type="hidden" name="__VIEWSTATE"
id="__VIEWSTATE" value="/wEPDwUJODU0Njc5MD...==" />
I need a way... | [
"Rex, I suspect a good place to start looking is solutions that compress the ViewState -- they're grabbing ViewState on the server before it's sent down to the client and gzipping it. That's exactly where you want to be.\n\nScott Hanselman on ViewState Compression (2005)\nViewState Compression with System.IO.Compre... | [
13,
4,
2
] | [] | [] | [
"asp.net",
"c#",
"viewstate"
] | stackoverflow_0000001010_asp.net_c#_viewstate.txt |
Q:
How can I change the background of a masterpage from the code behind of a content page?
I specifically want to add the style of background-color to the <body> tag of a master page, from the code behind (C#) of a content page that uses that master page.
I have different content pages that need to make the master ... | How can I change the background of a masterpage from the code behind of a content page? | I specifically want to add the style of background-color to the <body> tag of a master page, from the code behind (C#) of a content page that uses that master page.
I have different content pages that need to make the master page has different colors depending on which content page is loaded, so that the master page ... | [
"What I would do for the particular case is:\ni. Define the body as a server side control\n<body runat=\"server\" id=\"masterpageBody\">\n\nii. In your content aspx page, register the MasterPage with the register:\n<% MasterPageFile=\"...\" %>\n\niii. In the Content Page, you can now simply use \nMaster.FindControl... | [
10,
1,
0
] | [] | [] | [
".net",
"asp.net",
"c#",
"master_pages"
] | stackoverflow_0000002209_.net_asp.net_c#_master_pages.txt |
Q:
Add Custom Tag to Visual Studio Validation
How can I add rules to Visual Studio (2005 and up) for validating property markup (HTML) for a vendor's proprietary controls?
My client uses a control which requires several properties to be set as tags in the aspx file which generates something like 215 validation errors... | Add Custom Tag to Visual Studio Validation | How can I add rules to Visual Studio (2005 and up) for validating property markup (HTML) for a vendor's proprietary controls?
My client uses a control which requires several properties to be set as tags in the aspx file which generates something like 215 validation errors on each build. It's not preventing me from buil... | [
"Right-click on the Source view of an HTML / ASP page and select \"Formatting and Validation\".\n\nClick \"Tag Specific Options\".\nExpand \"Client HTML Tags\" and select the heading.\nClick \"New Tag...\".\nAnd just fill it in!\n\nI wish that I could add custom CSS values as well.\n"
] | [
5
] | [] | [] | [
"visual_studio"
] | stackoverflow_0000002279_visual_studio.txt |
Q:
How do I turn on line numbers by default in TextWrangler on the Mac?
I am fed up having to turn them on every time I open the application.
A:
Go to TextWrangler > Preferences.
Choose Text Status Display in the category pane, then check the option "Show line numbers" and close the preferences. This should now be... | How do I turn on line numbers by default in TextWrangler on the Mac? | I am fed up having to turn them on every time I open the application.
| [
"Go to TextWrangler > Preferences.\nChoose Text Status Display in the category pane, then check the option \"Show line numbers\" and close the preferences. This should now be on by default when you open existing documents.\n"
] | [
28
] | [] | [] | [
"macos",
"textwrangler"
] | stackoverflow_0000002332_macos_textwrangler.txt |
Q:
How to filter and combine 2 datasets in C#
I am building a web page to show a customer what software they purchased and to give them a link to download said software. Unfortunately, the data on what was purchased and the download information are in separate databases so I can't just take care of it with joins in ... | How to filter and combine 2 datasets in C# | I am building a web page to show a customer what software they purchased and to give them a link to download said software. Unfortunately, the data on what was purchased and the download information are in separate databases so I can't just take care of it with joins in an SQL query.
The common item is SKU. I'll be pu... | [
"As long as the two databases are on the same physical server (assuming MSSQL) and the username/password being used in the connection string has rights to both DBs, then you should be able to perform a join across the two databases. Example: \nselect p.Date,\n p.Amount,\n d.SoftwareName,\n d.Downl... | [
3,
2,
0
] | [] | [] | [
".net",
"c#"
] | stackoverflow_0000002267_.net_c#.txt |
Q:
Binary file layout reference
Where are some good sources of information on binary file layout structures?
If I wanted to pull in a BTrieve index file, parse MP3 headers, etc. Where does one get reliable information?
A:
I'm not sure if there's a general information source for this kind of information. I always j... | Binary file layout reference | Where are some good sources of information on binary file layout structures?
If I wanted to pull in a BTrieve index file, parse MP3 headers, etc. Where does one get reliable information?
| [
"I'm not sure if there's a general information source for this kind of information. I always just search on google or wikipedia for that particular file type. The binary file layout structure information should be included.\nFor example, http://en.wikipedia.org/wiki/MP3#File_structure\">MP3 file layout structure\... | [
1
] | [] | [] | [
"binary",
"data_structures",
"file",
"language_agnostic"
] | stackoverflow_0000002405_binary_data_structures_file_language_agnostic.txt |
Q:
How to map a latitude/longitude to a distorted map?
I have a bunch of latitude/longitude pairs that map to known x/y coordinates on a (geographically distorted) map.
Then I have one more latitude/longitude pair. I want to plot it on the map as best is possible. How do I go about doing this?
At first I decided to c... | How to map a latitude/longitude to a distorted map? | I have a bunch of latitude/longitude pairs that map to known x/y coordinates on a (geographically distorted) map.
Then I have one more latitude/longitude pair. I want to plot it on the map as best is possible. How do I go about doing this?
At first I decided to create a system of linear equations for the three nearest ... | [
"Are there any more specific details on the kind of distortion? If, for example, your latitudes and longitudes are \"distorted\" onto your 2D map using a Mercator projection, the conversion math is readily available.\nIf the map is distorted truly arbitrarily, there are lots of things you could try, but the simple... | [
8,
2,
0,
0
] | [] | [] | [
"latitude_longitude",
"mapping",
"maps",
"math"
] | stackoverflow_0000001908_latitude_longitude_mapping_maps_math.txt |
Q:
File size differences after copying a file to a server vía FTP
I have created a PHP-script to update a web server that is live inside a local directory.
I'm migrating the script into Python. It works fine for the most part, but after a PUT command, the size of the file appears to change. Thus, the size of the file... | File size differences after copying a file to a server vía FTP | I have created a PHP-script to update a web server that is live inside a local directory.
I'm migrating the script into Python. It works fine for the most part, but after a PUT command, the size of the file appears to change. Thus, the size of the file is different from that of the file on the server.
Once I download ... | [
"Do you need to open the locfile in binary using rb?\nf = open (locfile, \"rb\")\n\n",
"Well if you go under the properties of your file in Windows or a *nix environment, you will notice two sizes. One is the sector size, and one is the actual size. The sector size is the number of sectors in bytes that are use... | [
17,
3,
0
] | [] | [] | [
"ftp",
"ftplib",
"php",
"python",
"webserver"
] | stackoverflow_0000002311_ftp_ftplib_php_python_webserver.txt |
Q:
Decoding T-SQL CAST in C#/VB.NET
Recently our site has been deluged with the resurgence of the Asprox botnet SQL injection attack. Without going into details, the attack attempts to execute SQL code by encoding the T-SQL commands in an ASCII encoded BINARY string. It looks something like this:
DECLARE%20@S%20NVARC... | Decoding T-SQL CAST in C#/VB.NET | Recently our site has been deluged with the resurgence of the Asprox botnet SQL injection attack. Without going into details, the attack attempts to execute SQL code by encoding the T-SQL commands in an ASCII encoded BINARY string. It looks something like this:
DECLARE%20@S%20NVARCHAR(4000);SET%20@S=CAST(0x44004500...0... | [
"I went back to Michael's post, did some more poking and realized that I did need to do a double conversion, and eventually worked out this little nugget:\nConvert.ToString(Convert.ToChar(Int32.Parse(EncodedString.Substring(intParseIndex, 2), System.Globalization.NumberStyles.HexNumber)));\n\nFrom there I simply ma... | [
24,
8
] | [] | [] | [
"ascii",
"c#",
"hex",
"sql",
"vb.net"
] | stackoverflow_0000000109_ascii_c#_hex_sql_vb.net.txt |
Q:
What sites offer free, quality web site design templates?
Let's aggregate a list of free quality web site design templates. There are a million of these sites out there, but most are repetitive and boring.
I'll start with freeCSStemplates.org
I also think other sites should follow some sort of standards, for exam... | What sites offer free, quality web site design templates? | Let's aggregate a list of free quality web site design templates. There are a million of these sites out there, but most are repetitive and boring.
I'll start with freeCSStemplates.org
I also think other sites should follow some sort of standards, for example here are freeCSStemplates standards
Released for FREE unde... | [
"Check out:\n\nOpen Source Web Designs\nCSS Remix\nBest Web Gallery\nCSS Based\nCSS Beauty\nCSS Genius\n\n",
"The Open Design Community is a great resource.\n",
"http://www.csszengarden.com/\nThe images are not Creative Commons, but the CSS is.\n",
"+1 for Zen garden.\nI like the resources at inobscuro.com\n"... | [
12,
3,
2,
0,
0
] | [] | [] | [
"css",
"templates"
] | stackoverflow_0000002711_css_templates.txt |
Q:
Is there a keyboard shortcut to view all open documents in Visual Studio 2008
I am trying to learn the keyboard shortcuts in Visual Studio in order to be more productive. So I downloaded a document showing many of the default keybindings in Visual Basic when using the VS 2008 IDE from Microsoft.
When I tried what... | Is there a keyboard shortcut to view all open documents in Visual Studio 2008 | I am trying to learn the keyboard shortcuts in Visual Studio in order to be more productive. So I downloaded a document showing many of the default keybindings in Visual Basic when using the VS 2008 IDE from Microsoft.
When I tried what they say is the keyboard shortcut to view all open documents (CTRL + ALT + DOWN AR... | [
"This is a conflict between your graphics driver and Visual Studio. Go to your driver settings page (Control panel) and disable the display rotation shortcuts. With this conflict removed, the shortcut will work in Visual Studio.\n"
] | [
15
] | [] | [] | [
"keyboard",
"shortcut",
"visual_studio"
] | stackoverflow_0000002765_keyboard_shortcut_visual_studio.txt |
Q:
Can't get a Console to VMs
I've followed this otherwise excellent tutorial on getting Xen working with Ubuntu but am not able to get a console into my virtual machine (domU). I've got the extra = '2 console=xvc0' line in my /etc/xen/hostname_here.cfg file like they say, but am not able to get a console on it.
If I... | Can't get a Console to VMs | I've followed this otherwise excellent tutorial on getting Xen working with Ubuntu but am not able to get a console into my virtual machine (domU). I've got the extra = '2 console=xvc0' line in my /etc/xen/hostname_here.cfg file like they say, but am not able to get a console on it.
If I statically assign an IP to the ... | [
"I had followed a different tutorial on setting up my xen on ubuntu before 8.04 but now upgraded to 8.04. I used the extra line in my cfg as folows:\nextra = ' TERM=xterm xencons=tty console=tty1'\n\nIt allows me to \"xm console hostname\" from dom0. I think this was from a problem with the xen setup in the version... | [
5
] | [] | [] | [
"ubuntu",
"virtualization",
"xen"
] | stackoverflow_0000002773_ubuntu_virtualization_xen.txt |
Q:
How to curl or wget a web page?
I would like to make a nightly cron job that fetches my stackoverflow page and diffs it from the previous day's page, so I can see a change summary of my questions, answers, ranking, etc.
Unfortunately, I couldn't get the right set of cookies, etc, to make this work. Any ideas?
Als... | How to curl or wget a web page? | I would like to make a nightly cron job that fetches my stackoverflow page and diffs it from the previous day's page, so I can see a change summary of my questions, answers, ranking, etc.
Unfortunately, I couldn't get the right set of cookies, etc, to make this work. Any ideas?
Also, when the beta is finished, will my... | [
"Your status page is available now without logging in (click logout and try it). When the beta-cookie is disabled, there will be nothing between you and your status page.\nFor wget:\nwget --no-cookies --header \"Cookie: soba=(LookItUpYourself)\" https://stackoverflow.com/users/30/myProfile.html\n\n",
"From Mark H... | [
9,
6,
3,
2,
2
] | [] | [] | [
"curl",
"http"
] | stackoverflow_0000002815_curl_http.txt |
Q:
Using ASP.NET Dynamic Data / LINQ to SQL, how do you have two table fields have a relationship to the same foreign key?
I am using ASP.NET Dynamic Data for a project and I have a table that has two seperate fields that link to the same foreign key in a different table.
This relationship works fine in SQL Server.
H... | Using ASP.NET Dynamic Data / LINQ to SQL, how do you have two table fields have a relationship to the same foreign key? | I am using ASP.NET Dynamic Data for a project and I have a table that has two seperate fields that link to the same foreign key in a different table.
This relationship works fine in SQL Server.
However, in the LINQ to SQL model in the ASP.NET Dynamic Data model, only the first field's relationship is reflected. If I a... | [
"The solution is to delete and re-add BOTH tables to the LINQ to SQL diagram, not just the one you have added the second field and keys to.\nAlternatively, it appears you can make two associations using the LINQ to SQL interface - just don't try and bundle them into a single association.\n"
] | [
5
] | [] | [] | [
"asp.net",
"dynamic_data"
] | stackoverflow_0000003004_asp.net_dynamic_data.txt |
Q:
How can you tell when a user last pressed a key (or moved the mouse)?
In a Win32 environment, you can use the GetLastInputInfo API call in Microsoft documentation. Basically, this method returns the last tick that corresponds with when the user last provided input, and you have to compare that to the current tick... | How can you tell when a user last pressed a key (or moved the mouse)? | In a Win32 environment, you can use the GetLastInputInfo API call in Microsoft documentation. Basically, this method returns the last tick that corresponds with when the user last provided input, and you have to compare that to the current tick to determine how long ago that was.
Xavi23cr has a good example for C# at ... | [
"As for Linux, I know that Pidgin has to determine idle time to change your status to away after a certain amount of time. You might open the source and see if you can find the code that does what you need it to do.\n",
"You seem to have answered your own question there Nathan ;-)\n\"GetLastInputInfo\" is the way... | [
3,
1
] | [] | [] | [
"language_agnostic"
] | stackoverflow_0000002709_language_agnostic.txt |
Q:
How should I translate from screen space coordinates to image space coordinates in a WinForms PictureBox?
I have an application that displays an image inside of a Windows Forms PictureBox control. The SizeMode of the control is set to Zoom so that the image contained in the PictureBox will be displayed in an aspe... | How should I translate from screen space coordinates to image space coordinates in a WinForms PictureBox? | I have an application that displays an image inside of a Windows Forms PictureBox control. The SizeMode of the control is set to Zoom so that the image contained in the PictureBox will be displayed in an aspect-correct way regardless of the dimensions of the PictureBox.
This is great for the visual appearance of the a... | [
"I wound up just implementing the translation manually. The code's not too bad, but it did leave me wishing that they provided support for it directly. I could see such a method being useful in a lot of different circumstances.\nI guess that's why they added extension methods :)\nIn pseudocode:\n// Recompute the ... | [
6,
2
] | [] | [] | [
"c#",
"picturebox",
"winforms"
] | stackoverflow_0000002804_c#_picturebox_winforms.txt |
Q:
'Best' Diff Algorithm
I need to implement a Diff algorithm in VB.NET to find the changes between two different versions of a piece of text. I've had a scout around the web and have found a couple of different algorithms.
Does anybody here know of a 'best' algorithm that I could implement?
A:
Well I've used the ... | 'Best' Diff Algorithm | I need to implement a Diff algorithm in VB.NET to find the changes between two different versions of a piece of text. I've had a scout around the web and have found a couple of different algorithms.
Does anybody here know of a 'best' algorithm that I could implement?
| [
"Well I've used the c# version on codeproject and its really good for what I wanted...\nhttp://www.codeproject.com/KB/recipes/diffengine.aspx\nYou can probably get this translated into VB.net via an online converter if you can't do it yourself...\n",
"I like An O(ND) Difference Algorithm and Its Variations by Eug... | [
7,
7,
3
] | [] | [] | [
"diff",
"vb.net"
] | stackoverflow_0000003144_diff_vb.net.txt |
Q:
Is there an Unobtrusive Captcha for web forms?
What is the best unobtrusive CAPTCHA for web forms? One that does not involve a UI, rather a non-UI Turing test. I have seen a simple example of a non UI CAPTCHA like the Nobot control from Microsoft. I am looking for a CAPTCHA that does not ask the user any question... | Is there an Unobtrusive Captcha for web forms? | What is the best unobtrusive CAPTCHA for web forms? One that does not involve a UI, rather a non-UI Turing test. I have seen a simple example of a non UI CAPTCHA like the Nobot control from Microsoft. I am looking for a CAPTCHA that does not ask the user any question in any form. No riddles, no what's in this image.
| [
"I think you might be alluding to an \"invisible\" captcha. Check out the Subkismet project for an invisible captcha implementation.\nhttp://www.codeplex.com/subkismet\n",
"Try akismet from wp guys \n",
"I think asking the user simple questions like:\n\"How many legs does a dog have?\"\nWould be much more effec... | [
4,
4,
2,
1,
1
] | [] | [] | [
"captcha",
"security",
"usability"
] | stackoverflow_0000003027_captcha_security_usability.txt |
Q:
How can I modify .xfdl files? (Update #1)
The .XFDL file extension identifies XFDL Formatted Document files. These belong to the XML-based document and template formatting standard. This format is exactly like the XML file format however, contains a level of encryption for use in secure communications.
I know how ... | How can I modify .xfdl files? (Update #1) | The .XFDL file extension identifies XFDL Formatted Document files. These belong to the XML-based document and template formatting standard. This format is exactly like the XML file format however, contains a level of encryption for use in secure communications.
I know how to view XFDL files using a file viewer I found ... | [
"If the encoding is base64 then this is the solution I've stumbled upon on the web:\n\"Decoding XDFL files saved with 'encoding=base64'.\nFiles saved with: \napplication/vnd.xfdl;content-encoding=\"base64-gzip\"\n\nare simple base64-encoded gzip files. They can be easily restored to XML by first decoding and then u... | [
5,
2,
1
] | [] | [] | [
"language_agnostic",
"ruby",
"xfdl"
] | stackoverflow_0000001615_language_agnostic_ruby_xfdl.txt |
Q:
SQL query for a database scheme
In SQL Server how do you query a database to bring back all the tables that have a field of a specific name?
A:
The following query will bring back a unique list of tables where Column_Name is equal to the column you are looking for:
SELECT Table_Name
FROM INFORMATION_SCHEMA.COLUM... | SQL query for a database scheme | In SQL Server how do you query a database to bring back all the tables that have a field of a specific name?
| [
"The following query will bring back a unique list of tables where Column_Name is equal to the column you are looking for:\nSELECT Table_Name\nFROM INFORMATION_SCHEMA.COLUMNS\nWHERE Column_Name = 'Desired_Column_Name'\nGROUP BY Table_Name\n\n",
"SELECT Table_Name\nFROM Information_Schema.Columns\nWHERE Column_Nam... | [
7,
0,
0
] | [] | [] | [
"sql",
"sql_server"
] | stackoverflow_0000003567_sql_sql_server.txt |
Q:
Looking for code to render a form that displays a view of an object
I've got the task of displaying a web form to represent the properties in a .NET class. In WinForms, there's a pre-fab control named PropertyGrid that is a lot like what I need. I'm just looking for something to display a simple layout of proper... | Looking for code to render a form that displays a view of an object | I've got the task of displaying a web form to represent the properties in a .NET class. In WinForms, there's a pre-fab control named PropertyGrid that is a lot like what I need. I'm just looking for something to display a simple layout of property names next to an appropriate control like a textbox for strings or a d... | [
"ASP.Net PropertyGrid\n"
] | [
8
] | [] | [] | [
"asp.net",
"controls",
"propertygrid"
] | stackoverflow_0000003757_asp.net_controls_propertygrid.txt |
Q:
Setup Visual Studio 2005 to print line numbers
How can I get line numbers to print in Visual Studio 2005 when printing code listings?
A:
Isn't there an option in the Print Dialog?
Edit: There is. Go to File => Print, and then in the bottom left there is "Print what" and then "Include line Numbers"
A:
There is ... | Setup Visual Studio 2005 to print line numbers | How can I get line numbers to print in Visual Studio 2005 when printing code listings?
| [
"Isn't there an option in the Print Dialog?\nEdit: There is. Go to File => Print, and then in the bottom left there is \"Print what\" and then \"Include line Numbers\"\n",
"There is an option in the Print Dialog to do the same (in VS 2005 and 2008 atleast)!\n"
] | [
7,
5
] | [] | [] | [
"line_numbers",
"visual_studio",
"visual_studio_2005"
] | stackoverflow_0000003809_line_numbers_visual_studio_visual_studio_2005.txt |
Q:
More vs. Faster Cores on a Webserver
The discussion of Dual vs. Quadcore is as old as the Quadcores itself and the answer is usually "it depends on your scenario". So here the scenario is a Web Server (Windows 2003 (not sure if x32 or x64), 4 GB RAM, IIS, ASP.net 3.0).
My impression is that the CPU in a Webserver ... | More vs. Faster Cores on a Webserver | The discussion of Dual vs. Quadcore is as old as the Quadcores itself and the answer is usually "it depends on your scenario". So here the scenario is a Web Server (Windows 2003 (not sure if x32 or x64), 4 GB RAM, IIS, ASP.net 3.0).
My impression is that the CPU in a Webserver does not need to be THAT fast because requ... | [
"For something like a webserver, dividing up the tasks of handling each connection is (relatively) easy. I say it's safe to say that web servers is one of the most common (and ironed out) uses of parallel code. And since you are able to split up much of the processing into multiple discrete threads, more cores ac... | [
16,
3,
3,
1
] | [] | [] | [
"asp.net",
"hardware",
"iis",
"windows"
] | stackoverflow_0000003801_asp.net_hardware_iis_windows.txt |
Q:
How do I best detect an ASP.NET expired session?
I need to detect when a session has expired in my Visuial Basic web application. This is what I'm using...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If CurrentSession.IsNew AndAlso (Not Page.Request.Headers("C... | How do I best detect an ASP.NET expired session? | I need to detect when a session has expired in my Visuial Basic web application. This is what I'm using...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If CurrentSession.IsNew AndAlso (Not Page.Request.Headers("Cookie") Is Nothing) AndAlso (Page.Request.Headers("Coo... | [
"Try the following\nIf Session(\"whatever\") IsNot Nothing Then\n\n"
] | [
10
] | [] | [] | [
"asp.net",
"http",
"session"
] | stackoverflow_0000003831_asp.net_http_session.txt |
Q:
How do you typeset code elements in normal text?
What is the best way to typeset a function with arguments for readibility, brevity, and accuracy? I tend to put empty parentheses after the function name like func(), even if there are actually arguments for the function. I have trouble including the arguments and ... | How do you typeset code elements in normal text? | What is the best way to typeset a function with arguments for readibility, brevity, and accuracy? I tend to put empty parentheses after the function name like func(), even if there are actually arguments for the function. I have trouble including the arguments and still feeling like the paragraph is readable.
Any thou... | [
"I usually take that approach, but if I feel like it's going to cause confusion, I'll use ellipses like: myFunction(...)\nI guess if I were good, I would use those any time I was omitting parameters from a function in text.\n",
"I would simply be a little more careful with the name of my variables and parameters,... | [
3,
1
] | [] | [] | [
"format",
"language_agnostic"
] | stackoverflow_0000003802_format_language_agnostic.txt |
Q:
Adobe Flex component events
I wrote a component that displays a filename, a thumbnail and has a button to load/play the file. The component is databound to a repeater. How can I make it so that the button event fires to the main application and tells it which file to play?
A:
Figured it out (finally)
Custom Comp... | Adobe Flex component events | I wrote a component that displays a filename, a thumbnail and has a button to load/play the file. The component is databound to a repeater. How can I make it so that the button event fires to the main application and tells it which file to play?
| [
"Figured it out (finally)\nCustom Component\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<mx:Canvas xmlns:mx=\"http://www.adobe.com/2006/mxml\" x=\"0\" y=\"0\" width=\"215\" height=\"102\" styleName=\"leftListItemPanel\" backgroundColor=\"#ECECEC\" horizontalScrollPolicy=\"off\" verticalScrollPolicy=\"off\">\n<mx:S... | [
1,
1
] | [] | [] | [
"actionscript_3",
"apache_flex"
] | stackoverflow_0000003856_actionscript_3_apache_flex.txt |
Q:
Is this a good way to determine OS Architecture?
Since the WMI class Win32_OperatingSystem only includes OSArchitecture in Windows Vista, I quickly wrote up a method using the registry to try and determine whether or not the current system is a 32 or 64bit system.
private Boolean is64BitOperatingSystem()
{
Reg... | Is this a good way to determine OS Architecture? | Since the WMI class Win32_OperatingSystem only includes OSArchitecture in Windows Vista, I quickly wrote up a method using the registry to try and determine whether or not the current system is a 32 or 64bit system.
private Boolean is64BitOperatingSystem()
{
RegistryKey localEnvironment = Registry.LocalMachine.Open... | [
"Take a look at Raymond Chens solution:\nHow to detect programmatically whether you are running on 64-bit Windows\nand here's the PINVOKE for .NET:\nIsWow64Process (kernel32)\nUpdate: I'd take issue with checking for 'x86'. Who's to say what intel's or AMD's next 32 bit processor may be designated as. The probabili... | [
8,
2,
1,
1
] | [] | [] | [
"c#",
"registry",
"windows"
] | stackoverflow_0000003903_c#_registry_windows.txt |
Q:
Multi-Paradigm Languages
In a language such as (since I'm working in it now) PHP, which supports procedural and object-oriented paradigms.
Is there a good rule of thumb for determining which paradigm best suits a new project? If not, how can you make the decision?
A:
It all depends on the problem you're trying t... | Multi-Paradigm Languages | In a language such as (since I'm working in it now) PHP, which supports procedural and object-oriented paradigms.
Is there a good rule of thumb for determining which paradigm best suits a new project? If not, how can you make the decision?
| [
"It all depends on the problem you're trying to solve. Obviously you can solve any problem in either style (procedural or OO), but you usually can figure out in the planning stages before you start writing code which style suits you better.\nSome people like to write up use cases and if they see a lot of the same n... | [
11,
2
] | [] | [] | [
"oop",
"paradigms",
"php",
"procedural"
] | stackoverflow_0000003978_oop_paradigms_php_procedural.txt |
Q:
How do I configure a Vista Ultimate (64bit) account so it can access a SMB share on OSX?
I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible via \rudy\myshare for all the Windows users on the network, except for one guy running Vista Ultimate 64-bit edition.
All the other users are runni... | How do I configure a Vista Ultimate (64bit) account so it can access a SMB share on OSX? | I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible via \rudy\myshare for all the Windows users on the network, except for one guy running Vista Ultimate 64-bit edition.
All the other users are running Vista or XP, all 32-bit. All the workgroup information is the same, all login with the same... | [
"Try changing the local security policy on that Vista box for \"Local Policies\\Security Options\\Network Security: LAN manager authentication level\" from “Send NTLMv2 response only” to “Send LM & NTLM - use NTLMv2 session security if negotiated”.\n",
"No I have successfully done this with my Vista 64-bit machin... | [
3,
0
] | [] | [] | [
"macos",
"smb",
"windows_vista"
] | stackoverflow_0000003996_macos_smb_windows_vista.txt |
Q:
Linking two Office documents
Problem:
I have two spreadsheets that each serve different purposes but contain one particular piece of data that needs to be the same in both spreadsheets. This piece of data (one of the columns) gets updated in spreadsheet A but needs to also be updated in spreadsheet B.
Goal:
A so... | Linking two Office documents | Problem:
I have two spreadsheets that each serve different purposes but contain one particular piece of data that needs to be the same in both spreadsheets. This piece of data (one of the columns) gets updated in spreadsheet A but needs to also be updated in spreadsheet B.
Goal:
A solution that would somehow link the... | [
"So you mean that AD743 on spreadsheet B must be equal to AD743 on spreadsheet A? Try this:\n\nOpen both spreadsheets on the same\nmachine.\nGo to AD743 on spreadsheet B.\nType =.\nGo to spreadsheed A and click on\nAD743.\nPress enter.\n\nYou'll notice that the formula is something like '[path-to-file+file-name].w... | [
5,
0
] | [] | [] | [
"office_2003",
"office_2007"
] | stackoverflow_0000003045_office_2003_office_2007.txt |
Q:
Why doesn't VFP .NET OLEdb provider work in 64 bit Windows?
I wrote a windows service using VB that read some legacy data from Visual Foxpro Databases to be inserted in SQL 2005. The problem is this use to run fine in Windows server 2003 32-Bits, but the client recently moved to Windows 2003 64-Bits and now the se... | Why doesn't VFP .NET OLEdb provider work in 64 bit Windows? | I wrote a windows service using VB that read some legacy data from Visual Foxpro Databases to be inserted in SQL 2005. The problem is this use to run fine in Windows server 2003 32-Bits, but the client recently moved to Windows 2003 64-Bits and now the service won't work. I'm getting a message the the VFP .NET OLEdb pr... | [
"Have you tried changing the target CPU to x86 instead of \"Any CPU\" in the advanced compiler options? I know that this solves some problems with other OLEDB providers by forcing the use of the 32-bit version.\n",
"You'll need to compile with the target CPU set to x86 to force your code to use the 32 bit version... | [
15,
9,
1
] | [] | [] | [
".net",
"legacy",
"oledb",
"sql_server_2005",
"visual_foxpro"
] | stackoverflow_0000000717_.net_legacy_oledb_sql_server_2005_visual_foxpro.txt |
Q:
Searching directories for tons of files?
I'm using MSVE, and I have my own tiles I'm displaying in layers on top. Problem is, there's a ton of them, and they're on a network server. In certain directories, there are something on the order of 30,000+ files. Initially I called Directory.GetFiles, but once I started ... | Searching directories for tons of files? | I'm using MSVE, and I have my own tiles I'm displaying in layers on top. Problem is, there's a ton of them, and they're on a network server. In certain directories, there are something on the order of 30,000+ files. Initially I called Directory.GetFiles, but once I started testing in a pseudo-real environment, it timed... | [
"I've worked on a SAN system in the past with telephony audio recordings which had issues with numbers of files in a single folder - that system became unusable somewhere near 5,000 (on Windows 2000 Advanced Server with an application in C#.Net 1.1)- the only sensible solution that we came up with was to change the... | [
6,
2,
1,
1,
1
] | [] | [] | [
"c#",
"directory",
"file_management"
] | stackoverflow_0000003512_c#_directory_file_management.txt |
Q:
Programmatically talking to a Serial Port in OS X or Linux
I have a Prolite LED sign that I like to set up to show scrolling search queries from a apache logs and other fun statistics. The problem is, my G5 does not have a serial port, so I have to use a usb to serial dongle. It shows up as /dev/cu.usbserial and /... | Programmatically talking to a Serial Port in OS X or Linux | I have a Prolite LED sign that I like to set up to show scrolling search queries from a apache logs and other fun statistics. The problem is, my G5 does not have a serial port, so I have to use a usb to serial dongle. It shows up as /dev/cu.usbserial and /dev/tty.usbserial .
When i do this everything seems to be hunky... | [
"/dev/cu.xxxxx is the \"callout\" device, it's what you use when you establish a connection to the serial device and start talking to it. /dev/tty.xxxxx is the \"dialin\" device, used for monitoring a port for incoming calls for e.g. a fax listener.\n",
"have you tried watching the traffic between the GUI and the... | [
5,
0
] | [] | [] | [
"linux",
"macos",
"python",
"serial_port"
] | stackoverflow_0000003976_linux_macos_python_serial_port.txt |
End of preview. Expand in Data Studio
- Downloads last month
- 133