content stringlengths 86 88.9k | title stringlengths 0 150 | question stringlengths 1 35.8k | answers list | answers_scores list | non_answers list | non_answers_scores list | tags list | name stringlengths 30 130 |
|---|---|---|---|---|---|---|---|---|
Q:
NHibernate and Oracle connect through Windows Authenication
How do I use Windows Authentication to connect to an Oracle database?
Currently, I just use an Oracle Username and password, however, a requirement is to give the user on install the option of selecting Windows Authentication since we offer the same as SQ... | NHibernate and Oracle connect through Windows Authenication | How do I use Windows Authentication to connect to an Oracle database?
Currently, I just use an Oracle Username and password, however, a requirement is to give the user on install the option of selecting Windows Authentication since we offer the same as SQL.
| [
"You need to modify the AUTHENTICATION_SERVICES entry in SQLNET.ORA to this:\nSQLNET.AUTHENTICATION_SERVICES= (NTS)\n\nAs well, you will need to setup the accounts in Oracle to match the Windows accounts. Have a look at http://www.dba-oracle.com/bk_sqlnet_authentication_services.htm for more details.\n"
] | [
4
] | [] | [] | [
"nhibernate",
"oracle",
"windows"
] | stackoverflow_0000030775_nhibernate_oracle_windows.txt |
Q:
Fast SQL Server 2005 script generation
It seems like the generation of SQL scripts from the SQL Server Management Studio is terribly slow. I think that the old Enterprise Manager could run laps around the newer script generation tool. I've seen a few posts here and there with other folks complaining about the spee... | Fast SQL Server 2005 script generation | It seems like the generation of SQL scripts from the SQL Server Management Studio is terribly slow. I think that the old Enterprise Manager could run laps around the newer script generation tool. I've seen a few posts here and there with other folks complaining about the speed, but I haven't seen much offered in the wa... | [
"We are using the tools by RedGate which I personally find very useful in any aspect of work with databases. For scripting I would recommend the SQL Compare (you need a pro version for scripting). The SQL Compare is a must have for deploying schema changes from the deployment DB to the live Server and a real timesa... | [
3,
3,
0,
0
] | [] | [] | [
"scripting",
"sql_server"
] | stackoverflow_0000031296_scripting_sql_server.txt |
Q:
How do I add a constant column value during data transfer from CSV to SQL?
I am reading in CSV file and translating it to an SQL Table. The kicker is that one of the columns in the table is of data type ID that needs to be set to a constant (in this case 2). I am not sure how to do this.
A:
You can use a Derive... | How do I add a constant column value during data transfer from CSV to SQL? | I am reading in CSV file and translating it to an SQL Table. The kicker is that one of the columns in the table is of data type ID that needs to be set to a constant (in this case 2). I am not sure how to do this.
| [
"You can use a Derived Column Transformation in which you'll create a new output column and set its value to 2. You can then use that column when outputting to SQL.\n"
] | [
25
] | [] | [] | [
"csv",
"sql_server",
"ssis"
] | stackoverflow_0000031324_csv_sql_server_ssis.txt |
Q:
Proprietary plug-ins for GPL programs: what about interpreted languages?
I am developing a GPL-licensed application in Python and need to know if the GPL allows my program to use proprietary plug-ins. This is what the FSF has to say on the issue:
If a program released under the GPL uses plug-ins, what are the req... | Proprietary plug-ins for GPL programs: what about interpreted languages? | I am developing a GPL-licensed application in Python and need to know if the GPL allows my program to use proprietary plug-ins. This is what the FSF has to say on the issue:
If a program released under the GPL uses plug-ins, what are the requirements for the licenses of a plug-in?
It depends on how the program invokes... | [
"\nhe distinction between fork/exec and dynamic linking, besides being kind of artificial,\n\nI don't think its artificial at all. Basically they are just making the division based upon the level of integration. If the program has \"plugins\" which are essentially fire and forget with no API level integration, th... | [
7,
1,
0
] | [] | [] | [
"interpreted_language",
"licensing",
"open_source",
"plugins",
"python"
] | stackoverflow_0000031412_interpreted_language_licensing_open_source_plugins_python.txt |
Q:
Storing a file in a database as opposed to the file system?
Generally, how bad of a performance hit is storing a file in a database (specifically mssql) as opposed to the file system? I can't come up with a reason outside of application portability that I would want to store my files as varbinaries in SQL Server.... | Storing a file in a database as opposed to the file system? | Generally, how bad of a performance hit is storing a file in a database (specifically mssql) as opposed to the file system? I can't come up with a reason outside of application portability that I would want to store my files as varbinaries in SQL Server.
| [
"Have a look at this answer:\nStoring Images in DB - Yea or Nay?\nEssentially, the space and performance hit can be quite big, depending on the number of users. Also, keep in mind that Web servers are cheap and you can easily add more to balance the load, whereas the database is the most expensive and hardest to sc... | [
79,
37,
22,
7,
5,
3,
2,
1,
1,
0
] | [] | [] | [
"database",
"filesystems",
"sql_server",
"storage"
] | stackoverflow_0000008952_database_filesystems_sql_server_storage.txt |
Q:
Visual Studio 2008 debugging issue
I'm working in VS 2008 and have three projects in one solution. I'm debugging by attaching to a .net process invoked by a third party app (SalesLogix, a CRM app).
Once it has attached to the process and I attempt to set a breakpoint in one of the projects, it doesn't set a bre... | Visual Studio 2008 debugging issue | I'm working in VS 2008 and have three projects in one solution. I'm debugging by attaching to a .net process invoked by a third party app (SalesLogix, a CRM app).
Once it has attached to the process and I attempt to set a breakpoint in one of the projects, it doesn't set a breakpoint in that file. It actually switc... | [
"I saw this functionality in older versions of VS.Net (2003 I think). It may still exist in current versions, but I haven't encountered it. Seems that files with the same name, even in different directories confuse VS.Net, and it ends up setting a break point in a file with the same name. May only happen if the ... | [
4,
0
] | [] | [] | [
"c#",
"debugging",
"visual_studio_2008"
] | stackoverflow_0000031410_c#_debugging_visual_studio_2008.txt |
Q:
WCF Backward Compatibility Issue
I have a WCF service that I have to reference from a .net 2.0 project.
I have tried to reference it using the "add web reference" method but it messes up the params.
For example, I have a method in the service that expects a char[] to be passed in, but when I add the web referenc... | WCF Backward Compatibility Issue | I have a WCF service that I have to reference from a .net 2.0 project.
I have tried to reference it using the "add web reference" method but it messes up the params.
For example, I have a method in the service that expects a char[] to be passed in, but when I add the web reference, the method expects an int[].
So the... | [
"One of those instances that you need to edit the WSDL. For a start a useful tool\nhttp://codeplex.com/storm\n",
"What binding are you using - I think if you stick to the basicHttp binding you should be able to generate a proxy using the \"add web reference\" approach from a .net 2 project?\nPerhaps if you post ... | [
2,
1,
0,
0
] | [] | [] | [
".net",
"c#",
"wcf"
] | stackoverflow_0000009472_.net_c#_wcf.txt |
Q:
How do I configure an ASP.NET MVC project to work with Boo
I want to build an ASP.NET MVC application with Boo instead of C#. If you know the steps to configure this type of project setup, I'd be interested to know what I need to do.
The MVC project setup is no problem. What I'm trying to figure out how to config... | How do I configure an ASP.NET MVC project to work with Boo | I want to build an ASP.NET MVC application with Boo instead of C#. If you know the steps to configure this type of project setup, I'd be interested to know what I need to do.
The MVC project setup is no problem. What I'm trying to figure out how to configure the pages and project to switch to use the Boo language and ... | [
"So there are two levels of \"work with Boo\". One would be all the code (namely, the Controllers), and the other would be the views.\nFor the code, I assume Boo compiles to standard .NET assemblies, so simply properly following the naming conventions using by ASP.NET MVC should allow you to write Controllers. You ... | [
2,
1
] | [] | [] | [
"asp.net",
"asp.net_mvc",
"boo"
] | stackoverflow_0000030752_asp.net_asp.net_mvc_boo.txt |
Q:
How stable is WPF?
How stable is WPF not in terms of stability of a WPF program, but in terms of the 'stability' of the API itself.
Let me explain:
Microsoft is notorious for changing its whole methodology around with new technology. Like with the move from silverlight 1 to silverlight 2. With WPF, I know that... | How stable is WPF? | How stable is WPF not in terms of stability of a WPF program, but in terms of the 'stability' of the API itself.
Let me explain:
Microsoft is notorious for changing its whole methodology around with new technology. Like with the move from silverlight 1 to silverlight 2. With WPF, I know that MS changed a bunch of s... | [
"MS do have a history of \"fire and movement\" with regards to introducing new technology into their development stack, but they also have a strong history of maintaining support for the older stuff, and backwards-compatibility. WPF seems to be getting stuff added to it with each new release of the framework but th... | [
12,
3,
0
] | [] | [] | [
".net",
"wpf"
] | stackoverflow_0000031480_.net_wpf.txt |
Q:
How do I check the active solution configuration Visual Studio built with at runtime?
I would like to enable/disable some code based on a custom solution configuration I added in Visual Studio. How do I check this value at runtime?
A:
You can use precompiler directives within Visual Studio. The #if directive wi... | How do I check the active solution configuration Visual Studio built with at runtime? | I would like to enable/disable some code based on a custom solution configuration I added in Visual Studio. How do I check this value at runtime?
| [
"You can use precompiler directives within Visual Studio. The #if directive will allow you to determine if you are going to include code or not based on your custom solution configuration.\n",
"add a const value assign to a value that designate the configuration you are in.\nlike\n#ifdef _ENABLE_CODE1_\nconst cod... | [
9,
7,
4,
0
] | [] | [] | [
"visual_studio"
] | stackoverflow_0000031496_visual_studio.txt |
Q:
Query to list all tables that contain a specific column with SQL Server 2005
Question as stated in the title.
A:
http://blog.sqlauthority.com/2008/08/06/sql-server-query-to-find-column-from-all-tables-of-database/
USE AdventureWorks
GO
SELECT
t.name AS table_name
,SCHEMA_NAME(schema_id) AS schema_name
... | Query to list all tables that contain a specific column with SQL Server 2005 | Question as stated in the title.
| [
"http://blog.sqlauthority.com/2008/08/06/sql-server-query-to-find-column-from-all-tables-of-database/\nUSE AdventureWorks\nGO\nSELECT \n t.name AS table_name\n ,SCHEMA_NAME(schema_id) AS schema_name\n ,c.name AS column_name\nFROM \n sys.tables AS t\n INNER JOIN sys.columns c \n ON t.OBJECT_ID ... | [
2
] | [] | [] | [
"sql_server_2005"
] | stackoverflow_0000031566_sql_server_2005.txt |
Q:
Suggestions for Migrating from ASP.NET WebForms to ASP.NET MVC?
ASP.NET MVC has been discussed on this forum a few times. I'm about to do a large migration of several websites from classic ASP/ASP.NET WebForms to ASP.NET MVC and was wondering what kind of advice those of you with experience in both technologies ha... | Suggestions for Migrating from ASP.NET WebForms to ASP.NET MVC? | ASP.NET MVC has been discussed on this forum a few times. I'm about to do a large migration of several websites from classic ASP/ASP.NET WebForms to ASP.NET MVC and was wondering what kind of advice those of you with experience in both technologies have.
What I have: a typical ASP.NET app with heavily coupled presentat... | [
"Wow, I'm not sure we're talking migration here anymore - the difference is more like re-writing!\n\nAs others have also said, MVC is a whole new way to build web apps - most of your presentation code won't carry across.\nHowever, if you are re-writing in MVC what you already have is a good prototype. Your problem ... | [
3,
2,
1,
0
] | [] | [] | [
".net",
"asp.net",
"asp.net_mvc",
"webforms"
] | stackoverflow_0000013704_.net_asp.net_asp.net_mvc_webforms.txt |
Q:
How to get the libraries you need into the bin folder when using IoC/DI
I'm using Castle Windsor to do some dependency injection, specifically I've abstracted the DAL layer to interfaces that are now being loaded by DI.
Once the project is developed & deployed all the .bin files will be in the same location, but f... | How to get the libraries you need into the bin folder when using IoC/DI | I'm using Castle Windsor to do some dependency injection, specifically I've abstracted the DAL layer to interfaces that are now being loaded by DI.
Once the project is developed & deployed all the .bin files will be in the same location, but for while I'm developing in Visual Studio, the only ways I can see of getting ... | [
"Could you set the build output path of the concrete DAL project to be the bin folder of the dependent project? \n",
"Mike: Didn't think of that, that could work, have to remember to turn off copy-local for any libraries / projects that are common between them\n"
] | [
1,
0
] | [] | [] | [
"castle_windsor",
"dependency_injection",
"inversion_of_control",
"visual_studio"
] | stackoverflow_0000031592_castle_windsor_dependency_injection_inversion_of_control_visual_studio.txt |
Q:
Migrating from ASP Classic to .NET and pain mitigation
We're in the process of redesigning the customer-facing section of our site in .NET 3.5. It's been going well so far, we're using the same workflow and stored procedures, for the most part, the biggest changes are the UI, the ORM (from dictionaries to LINQ), a... | Migrating from ASP Classic to .NET and pain mitigation | We're in the process of redesigning the customer-facing section of our site in .NET 3.5. It's been going well so far, we're using the same workflow and stored procedures, for the most part, the biggest changes are the UI, the ORM (from dictionaries to LINQ), and obviously the language. Most of the pages to this point h... | [
"Believe me, I know exactly where you are coming from.. I am currently migrating a large app from ASP classic to .NET.. And I am still learning ASP.NET! :S (yes, I am terrified!).\nThe main things I have kept in my mind is this:\n\nI dont stray too far from the current design (i.e. no massive \"lets rip ALL of this... | [
6,
2,
1,
1,
0,
0,
0,
0
] | [] | [] | [
"asp.net",
"asp_classic",
"migration"
] | stackoverflow_0000031192_asp.net_asp_classic_migration.txt |
Q:
What's the fastest way to determine a full URL from a relative URL (given a base URL)
I'm currently using the module URI::URL to generate a full URL from a relative URL; however, it isn't running as fast as I'd like it to be. Does anyone know another way to do this that may be faster?
A:
Just happened across thi... | What's the fastest way to determine a full URL from a relative URL (given a base URL) | I'm currently using the module URI::URL to generate a full URL from a relative URL; however, it isn't running as fast as I'd like it to be. Does anyone know another way to do this that may be faster?
| [
"Just happened across this article which point out shortcomings in Redhat/Centos/Fedora implementations of Perl which affect URI profoundly.\nIf you are running one of these Linux flavours, you might want to recompile Perl from original source (not RPM source).\n\nI realized that anyone running perl code with the d... | [
4,
3,
1,
1,
0
] | [] | [] | [
"performance",
"perl",
"perl_module",
"regex",
"uri"
] | stackoverflow_0000026855_performance_perl_perl_module_regex_uri.txt |
Q:
Checklist for Database Schema Upgrades
Having to upgrade a database schema makes installing a new release of software a lot trickier. What are the best practices for doing this?
I'm looking for a checklist or timeline of action items, such as
8:30 shut down apps
8:45 modify schema
9:15 install new apps
9:30 rest... | Checklist for Database Schema Upgrades | Having to upgrade a database schema makes installing a new release of software a lot trickier. What are the best practices for doing this?
I'm looking for a checklist or timeline of action items, such as
8:30 shut down apps
8:45 modify schema
9:15 install new apps
9:30 restart db
etc, showing how to minimize risk an... | [
"I have a lot of experience with this. My application is highly iterative, and schema changes happen frequently. I do a production release roughly every 2 to 3 weeks, with 50-100 items cleared from my FogBugz list for each one. Every release we've done over the last few years has required schema changes to suppo... | [
5,
2,
1,
1,
1
] | [] | [] | [
"database",
"installation",
"version_control"
] | stackoverflow_0000031303_database_installation_version_control.txt |
Q:
Find and Replace with Unique
I am performing a find and replace on the line feed character ( ) and replacing it with the paragraph close and paragraph open tags using the following code:
<xsl:template match="/STORIES/STORY">
<component>
<xsl:if test="boolean(ARTICLEBODY)">
<p>
... | Find and Replace with Unique | I am performing a find and replace on the line feed character ( ) and replacing it with the paragraph close and paragraph open tags using the following code:
<xsl:template match="/STORIES/STORY">
<component>
<xsl:if test="boolean(ARTICLEBODY)">
<p>
<xsl:call-template name=... | [
"disable-output-escaping isn't evil in itself, but there are only few cases where you should use it and this isn't one of them. In XSLT you work with trees, not markup string. Here's an XSTL 1.0 solution:\n<xsl:template match=\"/STORIES/STORY\">\n <component>\n <xsl:if test=\"ARTICLEBODY\">\n <xsl:call-tem... | [
5,
1,
1
] | [] | [] | [
"xml",
"xslt"
] | stackoverflow_0000031366_xml_xslt.txt |
Q:
Asp.net MVC User Control ViewData
When a controller renders a view based on a model you can get the properties from the ViewData collection using the indexer (ie. ViewData["Property"]). However, I have a shared user control that I tried to call using the following:
return View("Message", new { DisplayMessage = "T... | Asp.net MVC User Control ViewData | When a controller renders a view based on a model you can get the properties from the ViewData collection using the indexer (ie. ViewData["Property"]). However, I have a shared user control that I tried to call using the following:
return View("Message", new { DisplayMessage = "This is a test" });
and on my Message c... | [
"The method \nViewData.Eval(\"DisplayMessage\") \n\nshould work for you.\n",
"Of course after I create this question I immediately find the answer after a few more searches on Google\nhttp://forums.asp.net/t/1197059.aspx\nApparently this happens because of the wrapper class. Even so, it seems like any property p... | [
6,
2
] | [] | [] | [
"asp.net",
"asp.net_mvc",
"viewdata",
"viewusercontrol"
] | stackoverflow_0000018787_asp.net_asp.net_mvc_viewdata_viewusercontrol.txt |
Q:
Why do I receive a q[num] error when aborting a jQuery queue pipeline?
When creating and executing a ajax request queue with $.manageAjax, I call ajaxManager.abort();, to abort the entire queue due to error, at which time I get an error stating: q[num] has no properties (jquery.ajaxmanager.js line 75)
Here is the ... | Why do I receive a q[num] error when aborting a jQuery queue pipeline? | When creating and executing a ajax request queue with $.manageAjax, I call ajaxManager.abort();, to abort the entire queue due to error, at which time I get an error stating: q[num] has no properties (jquery.ajaxmanager.js line 75)
Here is the calling code:
var ajaxManager = $.manageAjax({manageType:'sync', maxReq:0});... | [
"It looks like you've got fewer items in q than you were expecting when you started iterating. Your script may be trying to access q[q.length], i.e. the element after the last element.\nCould it be that your successful request has been popped from the queue, and you have a race condition? Are you trying to abort a ... | [
1
] | [] | [] | [
"ajax",
"jquery"
] | stackoverflow_0000030342_ajax_jquery.txt |
Q:
Install Python to match directory layout in OS X 10.5
The default Python install on OS X 10.5 is 2.5.1 with a FAT 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past, I have run Apache and MySQL to match this install in 32 bit mode (even stripping out the 64 bit stuff from Ap... | Install Python to match directory layout in OS X 10.5 | The default Python install on OS X 10.5 is 2.5.1 with a FAT 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past, I have run Apache and MySQL to match this install in 32 bit mode (even stripping out the 64 bit stuff from Apache to make it work).
I want to upgrade Python to 64 bit. ... | [
"Not sure I entirely understand your question, but can't you simply build and install a 64 bit version and then create symbolic links so that /Library/Python/2.5 and below point to your freshly built version of python?\n",
"Personally, I wouldn't worry about it until you see a problem. Messing with the default p... | [
1,
1,
1,
0,
0
] | [] | [] | [
"64_bit",
"macos",
"python"
] | stackoverflow_0000029856_64_bit_macos_python.txt |
Q:
How to plot a long path with Virtual Earth
The obvious way to plot a path with virtual earth (VEMap.GetDirections) is limited to 25 points. When trying to plot a vehicle's journey this is extremely limiting.
How can I plot a by-road journey of more than 25 points on a virtual earth map?
A:
According to this you ... | How to plot a long path with Virtual Earth | The obvious way to plot a path with virtual earth (VEMap.GetDirections) is limited to 25 points. When trying to plot a vehicle's journey this is extremely limiting.
How can I plot a by-road journey of more than 25 points on a virtual earth map?
| [
"According to this you need to call VEMap.GetDirections every 25 points until you reach the end of the route and then plot a custom shape of the complete route.\n"
] | [
1
] | [] | [] | [
"javascript",
"virtual_earth"
] | stackoverflow_0000031711_javascript_virtual_earth.txt |
Q:
Process.StartTime Access Denied
My code needs to determine how long a particular process has been running. But it continues to fail with an access denied error message on the Process.StartTime request. This is a process running with a User's credentials (ie, not a high-privilege process). There's clearly a securit... | Process.StartTime Access Denied | My code needs to determine how long a particular process has been running. But it continues to fail with an access denied error message on the Process.StartTime request. This is a process running with a User's credentials (ie, not a high-privilege process). There's clearly a security setting or a policy setting, or som... | [
"I've read something similar to what you said in the past, Lars. Unfortunately, I'm somewhat restricted with what I can do with the machine in question (in other words, I can't go creating user groups willy-nilly: it's a server, not just some random PC).\nThanks for the answers, Will and Lars. Unfortunately, they d... | [
6,
2,
1,
0,
0
] | [] | [] | [
".net_1.1",
"c#",
"windows_server_2000"
] | stackoverflow_0000028708_.net_1.1_c#_windows_server_2000.txt |
Q:
How many ServiceContracts can a WCF service have?
How many ServiceContracts can a WCF service have?
Specifically, since a ServiceContract is an attribute to an interface, how many interfaces can I code into one WCF web service? Is it a one-to-one?
Does it make sense to separate the contracts across multiple web se... | How many ServiceContracts can a WCF service have? | How many ServiceContracts can a WCF service have?
Specifically, since a ServiceContract is an attribute to an interface, how many interfaces can I code into one WCF web service? Is it a one-to-one?
Does it make sense to separate the contracts across multiple web services?
| [
"WCF services can have multiple endpoints, each of which can implement a different service contract.\nFor example, you could have a service declared as follows:\n[ServiceBehavior(Namespace = \"DemoService\")]\npublic class DemoService : IDemoService, IDoNothingService\n\nWhich would have configuration along these l... | [
18,
1,
1,
0
] | [] | [] | [
"wcf",
"web_services"
] | stackoverflow_0000031790_wcf_web_services.txt |
Q:
How do I make the manifest of a .net assembly private?
What should I do if I want to release a .net assembly but wish to keep its internals detailed in the manifest private (from a utility such as ildasm.exe) ?
A:
I think what you're talking about is "obfuscation".
There are lots of articles about it on the net:... | How do I make the manifest of a .net assembly private? | What should I do if I want to release a .net assembly but wish to keep its internals detailed in the manifest private (from a utility such as ildasm.exe) ?
| [
"I think what you're talking about is \"obfuscation\".\nThere are lots of articles about it on the net:\nhttp://en.wikipedia.org/wiki/Obfuscation\nThe \"standard\" tool for obfuscation on .NET is by Preemptive Solutions:\nhttp://www.preemptive.com/obfuscator.html\nThey have a community edition that ships with Visua... | [
7,
1
] | [] | [] | [
".net",
"obfuscation",
"security"
] | stackoverflow_0000029677_.net_obfuscation_security.txt |
Q:
XML Schema construct for "Any number of these elements - in any order"
I need to create an XML schema that looks something like this:
<xs:element name="wrapperElement">
<xs:complexType>
<xs:sequence>
<xs:element type="el1">
<xs:element type="el2">
</xs:sequence>
<xs:WhatGoesHere?>
... | XML Schema construct for "Any number of these elements - in any order" | I need to create an XML schema that looks something like this:
<xs:element name="wrapperElement">
<xs:complexType>
<xs:sequence>
<xs:element type="el1">
<xs:element type="el2">
</xs:sequence>
<xs:WhatGoesHere?>
<xs:element type="el3">
<xs:element type="el4">
<xs:ele... | [
"You want xs:choice with occurrence constraints:\n<xs:element name=\"wrapperElement\">\n <xs:complexType>\n <xs:sequence>\n <xs:element name=\"e11\"/>\n <xs:element name=\"el2\"/>\n <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n <xs:element name=\"el3\"/>\n <xs:element name=\... | [
13
] | [] | [] | [
"schema",
"xml",
"xsd"
] | stackoverflow_0000031847_schema_xml_xsd.txt |
Q:
Remove Meta Data from .NET applications?
Is this possible? Does the .NET framework depend on the meta data in the bytecode? I'd like to have an application i write not work in reflector or a similar .NET decompiler.
A:
If you remove the metadata the framework won't be able to load your code, or figure out which ... | Remove Meta Data from .NET applications? | Is this possible? Does the .NET framework depend on the meta data in the bytecode? I'd like to have an application i write not work in reflector or a similar .NET decompiler.
| [
"If you remove the metadata the framework won't be able to load your code, or figure out which other assemblies it references, or anything like that, so no, that's not a good idea.\nObfuscators will make it a lot harder for an 'attacker' to decompile your code, but at the end of the day if someone is motivated and ... | [
2,
1,
1,
0,
0,
0
] | [] | [] | [
".net",
"decompiling",
"metadata"
] | stackoverflow_0000031637_.net_decompiling_metadata.txt |
Q:
Using MySQLi - which is better for closing queries
I have a habit of keeping my variable usage to a bare minimum. So I'm wondering if there is any advantage to be gained by the following:
$query = $mysqli->query('SELECT * FROM `people` ORDER BY `name` ASC LIMIT 0,30');
// Example 1
$query = $query->fetch_assoc()... | Using MySQLi - which is better for closing queries | I have a habit of keeping my variable usage to a bare minimum. So I'm wondering if there is any advantage to be gained by the following:
$query = $mysqli->query('SELECT * FROM `people` ORDER BY `name` ASC LIMIT 0,30');
// Example 1
$query = $query->fetch_assoc();
// Example 2
$query_r = $query->fetch_assoc();
$query... | [
"The manual seems to suggest that you should still be using free() to release the memory. I believe the reasoning is that free() is freeing the memory in MySQL, not in PHP. Since PHP can't garbage-collect for MySQL, you need to call free().\n",
"Example 1 dissociates the $query variable from the MySQL result. The... | [
5,
3
] | [] | [] | [
"memory",
"mysql",
"mysqli",
"php"
] | stackoverflow_0000026515_memory_mysql_mysqli_php.txt |
Q:
How scalable is System.Threading.Timer?
I'm writing an app that will need to make use of Timers, but potentially very many of them. How scalable is the System.Threading.Timer class? The documentation merely say it's "lightweight", but doesn't explain further. Do these timers get sucked into a single thread (or ... | How scalable is System.Threading.Timer? | I'm writing an app that will need to make use of Timers, but potentially very many of them. How scalable is the System.Threading.Timer class? The documentation merely say it's "lightweight", but doesn't explain further. Do these timers get sucked into a single thread (or very small threadpool) that processes all the... | [
"I say this in response to a lot of questions: Don't forget that the (managed) source code to the framework is available. You can use this tool to get it all: http://www.codeplex.com/NetMassDownloader\nUnfortunately, in this specific case, a lot of the implementation is in native code, so you don't get to look at... | [
29,
7,
5,
0
] | [] | [] | [
".net",
"c#",
"multithreading",
"timer"
] | stackoverflow_0000031581_.net_c#_multithreading_timer.txt |
Q:
(Why) should I use obfuscation?
It seems to me obfuscation is an idea that falls somewhere in the "security by obscurity" or "false sense of protection" camp. To protect intellectual property, there's copyright; to prevent security issues from being found, there's fixing those issues. In short, I regard it as a te... | (Why) should I use obfuscation? | It seems to me obfuscation is an idea that falls somewhere in the "security by obscurity" or "false sense of protection" camp. To protect intellectual property, there's copyright; to prevent security issues from being found, there's fixing those issues. In short, I regard it as a technical solution to a social problem.... | [
"You asked for engineering reasons, so this is not strictly speaking an answer to the question. But I think it's a valid clarification.\nAs you say, obfuscation is intended to address a social problem. And social (or business) problems, unlike technical ones, rarely have a complete solution. There are only degrees ... | [
14,
7,
4,
3,
3,
2,
2,
1
] | [] | [] | [
".net",
"obfuscation",
"protection",
"security"
] | stackoverflow_0000031882_.net_obfuscation_protection_security.txt |
Q:
Giant NodeManagerLogs from hibernate in weblogic
One of our weblogic 8.1s has suddenly started logging giant amounts of logs and filling the disk.
The logs giving us hassle resides in
mydrive:\bea\weblogic81\common\nodemanager\NodeManagerLogs\generatedManagedServer1\managedserveroutput.log
and the entries in the... | Giant NodeManagerLogs from hibernate in weblogic | One of our weblogic 8.1s has suddenly started logging giant amounts of logs and filling the disk.
The logs giving us hassle resides in
mydrive:\bea\weblogic81\common\nodemanager\NodeManagerLogs\generatedManagedServer1\managedserveroutput.log
and the entries in the logfile is just the some kind of entries repeated aga... | [
"Since those log entries aren't problems, it sounds like the global log level has been turned up to DEBUG. Alternatively, perhaps a new Logging mechanism has been implemented or a new log Appender that writes to stdout, and thus is being re-logged by Weblogic. I would look at the configuration of your logger. (Or p... | [
1,
1
] | [] | [] | [
"hibernate",
"logging",
"weblogic"
] | stackoverflow_0000029822_hibernate_logging_weblogic.txt |
Q:
Compile a referenced dll
Using VS2005 and VB.NET.
I have a project that is an API for a data-store that I created. When compiled creates api.dll.
I have a second project in the same solution that has a project reference to the API project which when compiled will create wrapper.dll. This is basically a wrapper for... | Compile a referenced dll | Using VS2005 and VB.NET.
I have a project that is an API for a data-store that I created. When compiled creates api.dll.
I have a second project in the same solution that has a project reference to the API project which when compiled will create wrapper.dll. This is basically a wrapper for the API that is specific to a... | [
"You'll probably have to use a tool, such as ILMerge, to merge the two assemblies.\n",
"There's an easier way. Just create shortcuts (called linked files in Visual Studio-ese) in your wrapper.dll project that point to the source files in api.dll. That will compile your source directly into wrapper.dll.\n",
"@Ja... | [
1,
1,
1,
0
] | [] | [] | [
".net",
"vb.net",
"visual_studio_2005"
] | stackoverflow_0000030833_.net_vb.net_visual_studio_2005.txt |
Q:
how do you programmatically invoke a listview label edit
in C# I'd like to invoke the label edit of a newly added item to a ListView.
basically, if I have a click here to add scenario, as soon as the new item is added, I want the text label to be in a user editable state.
Thanks!
A:
found it!
ListViewItem::Begin... | how do you programmatically invoke a listview label edit | in C# I'd like to invoke the label edit of a newly added item to a ListView.
basically, if I have a click here to add scenario, as soon as the new item is added, I want the text label to be in a user editable state.
Thanks!
| [
"found it!\nListViewItem::BeginEdit();\n\n"
] | [
10
] | [] | [] | [
".net",
"c#",
"user_interface",
"winforms"
] | stackoverflow_0000032103_.net_c#_user_interface_winforms.txt |
Q:
Is regex case insensitivity slower?
Source
RegexOptions.IgnoreCase is more expensive than I would have thought (eg, should be barely measurable)
Assuming that this applies to PHP, Python, Perl, Ruby etc as well as C# (which is what I assume Jeff was using), how much of a slowdown is it and will I incur a similar... | Is regex case insensitivity slower? | Source
RegexOptions.IgnoreCase is more expensive than I would have thought (eg, should be barely measurable)
Assuming that this applies to PHP, Python, Perl, Ruby etc as well as C# (which is what I assume Jeff was using), how much of a slowdown is it and will I incur a similar penalty with /[a-zA-z]/ as I will with /... | [
"Yes, [A-Za-z] will be much faster than setting the RegexOptions.IgnoreCase, largely because of Unicode strings. But it's also much more limiting -- [A-Za-z] does not match accented international characters, it's literally the A-Za-z ASCII set and nothing more.\nI don't know if you saw Tim Bray's answer to my messa... | [
20,
1,
0
] | [] | [] | [
"language_agnostic",
"regex"
] | stackoverflow_0000032010_language_agnostic_regex.txt |
Q:
Best way to fetch a varying HTML tag
I'm trying to fetch some HTML from various blogs and have noticed that different providers use the same tag in different ways.
For example, here are two major providers that use the meta name generator tag differently:
Blogger: <meta content='blogger' name='generator'/> (conte... | Best way to fetch a varying HTML tag | I'm trying to fetch some HTML from various blogs and have noticed that different providers use the same tag in different ways.
For example, here are two major providers that use the meta name generator tag differently:
Blogger: <meta content='blogger' name='generator'/> (content first, name later and, yes, single quot... | [
"The answer is: don't use regular expressions.\nSeriously. Use a SGML parser, or an XML parser if you happen to know it's valid XML (probably almost never true). You will absolutely screw up and waste tons of time trying to get it right. Just use what's already available.\n",
"Actually, you should probably use so... | [
14,
3,
2,
2,
1,
0,
0,
0
] | [] | [] | [
"html",
"language_agnostic",
"regex"
] | stackoverflow_0000031535_html_language_agnostic_regex.txt |
Q:
How to respond to an alternate URI in a RESTful web service
I'm building a RESTful web service which has multiple URIs for one of its resources, because there is more than one unique identifier. Should the server respond to a GET request for an alternate URI by returning the resource, or should I send an HTTP 3xx ... | How to respond to an alternate URI in a RESTful web service | I'm building a RESTful web service which has multiple URIs for one of its resources, because there is more than one unique identifier. Should the server respond to a GET request for an alternate URI by returning the resource, or should I send an HTTP 3xx redirect to the canonical URI? Is HTTP 303 (see also) the most ap... | [
"I'd personally plump for returning the resource rather than faffing with a redirect, although I suspect that's only because my subcoscious is telling me redirects are slower.\nHowever, if you were to decide to use a redirect I'd think a 302 or 307 might be more appropiate than a 303, although the w3.org has detail... | [
4,
2,
1
] | [] | [] | [
"http",
"language_agnostic",
"rest"
] | stackoverflow_0000031800_http_language_agnostic_rest.txt |
Q:
Accessing static fields in XAML
How does one go about referencing a class's static properties in xaml? In other words, I want to do something like this:
Class BaseThingy {
public static readonly Style BaseStyle;
...
}
<ResoureDictionary ...>
<Style BasedOn="BaseThingy.Style" TargetType="BaseThingy" />
</Re... | Accessing static fields in XAML | How does one go about referencing a class's static properties in xaml? In other words, I want to do something like this:
Class BaseThingy {
public static readonly Style BaseStyle;
...
}
<ResoureDictionary ...>
<Style BasedOn="BaseThingy.Style" TargetType="BaseThingy" />
</ResourceDictionary>
What is the syntax... | [
"Use x:Static markup extension\n<ResoureDictionary ...\n xmlns:local=\"clr-namespace:Namespace.Where.Your.BaseThingy.Class.Is.Defined\"\n>\n <Style BasedOn=\"{x:Static local:BaseThingy.BaseStyle}\" TargetType=\"BaseThingy\" />\n</ResourceDictionary>\n\n"
] | [
11
] | [] | [] | [
".net",
"c#",
"silverlight",
"wpf",
"xaml"
] | stackoverflow_0000032395_.net_c#_silverlight_wpf_xaml.txt |
Q:
Algorithm to format text to Pascal or camel casing
Using this question as the base is there an alogrithm or coding example to change some text to Pascal or Camel casing.
For example:
mynameisfred
becomes
Camel: myNameIsFred
Pascal: MyNameIsFred
A:
I found a thread with a bunch of Perl guys arguing the toss on t... | Algorithm to format text to Pascal or camel casing | Using this question as the base is there an alogrithm or coding example to change some text to Pascal or Camel casing.
For example:
mynameisfred
becomes
Camel: myNameIsFred
Pascal: MyNameIsFred
| [
"I found a thread with a bunch of Perl guys arguing the toss on this question over at http://www.perlmonks.org/?node_id=336331.\nI hope this isn't too much of a non-answer to the question, but I would say you have a bit of a problem in that it would be a very open-ended algorithm which could have a lot of 'misses' ... | [
3,
0
] | [] | [] | [
"algorithm",
"camelcasing",
"coding_style",
"pascalcasing"
] | stackoverflow_0000032241_algorithm_camelcasing_coding_style_pascalcasing.txt |
Q:
Assert action redirected to correct action/route?
How do I exercise an action to ensure it redirects to the correct action or route?
A:
public ActionResult Foo()
{
return RedirectToAction("Products", "Index");
}
[Test]
public void foo_redirects_to_products_index()
{
var controller = new BarController();
... | Assert action redirected to correct action/route? | How do I exercise an action to ensure it redirects to the correct action or route?
| [
"public ActionResult Foo()\n{\n return RedirectToAction(\"Products\", \"Index\");\n}\n\n[Test]\npublic void foo_redirects_to_products_index()\n{\n var controller = new BarController();\n var result = controller.Foo() as RedirectToRouteResult;\n\n if(result == null)\n Assert.Fail(\"should have redirecte... | [
10
] | [] | [] | [
"asp.net_mvc",
"unit_testing"
] | stackoverflow_0000032364_asp.net_mvc_unit_testing.txt |
Q:
Disable asp.net radiobutton with javascript
I'm trying to disable a bunch of controls with JavaScript (so that they post back values). All the controls work fine except for my radio buttons as they lose their value. In the below code which is called via a recursive function to disable all child controls the Second... | Disable asp.net radiobutton with javascript | I'm trying to disable a bunch of controls with JavaScript (so that they post back values). All the controls work fine except for my radio buttons as they lose their value. In the below code which is called via a recursive function to disable all child controls the Second else (else if (control is RadioButton)) is never... | [
"I found 2 ways to get this to work, the below code correctly distinguishes between the RadioButton and Checkbox controls.\n private static void DisableControl(WebControl control)\n {\n Type controlType = control.GetType();\n\n if (controlType == typeof(CheckBox))\n {\n ((Check... | [
3,
0
] | [] | [] | [
"asp.net",
"c#",
"javascript"
] | stackoverflow_0000032173_asp.net_c#_javascript.txt |
Q:
Configurable Table Prefixes with a .Net OR/M?
In a web application like wiki or forums or blogging software, it is often useful to store your data in a relational database. Since many hosting companies offer a single database with their hosting plans (with additional databases costing extra) it is very useful for ... | Configurable Table Prefixes with a .Net OR/M? | In a web application like wiki or forums or blogging software, it is often useful to store your data in a relational database. Since many hosting companies offer a single database with their hosting plans (with additional databases costing extra) it is very useful for your users when your database objects (tables, view... | [
"I've now researched what it takes to do this in both Entity Framework and LINQ to SQL and documented the steps required in each. It's much longer than answers here tend to be so I'll be content with a link to the answer rather than duplicate it here. It's relatively involved for each, but the LINQ to SQL is the mo... | [
2,
1,
1
] | [] | [] | [
".net",
"orm"
] | stackoverflow_0000011740_.net_orm.txt |
Q:
C# - SQLClient - Simplest INSERT
I'm basically trying to figure out the simplest way to perform your basic insert operation in C#.NET using the SqlClient namespace.
I'm using SqlConnection for my db link, I've already had success executing some reads, and I want to know the simplest way to insert data. I'm findin... | C# - SQLClient - Simplest INSERT | I'm basically trying to figure out the simplest way to perform your basic insert operation in C#.NET using the SqlClient namespace.
I'm using SqlConnection for my db link, I've already had success executing some reads, and I want to know the simplest way to insert data. I'm finding what seem to be pretty verbose metho... | [
"using (var conn = new SqlConnection(yourConnectionString))\n{\n var cmd = new SqlCommand(\"insert into Foo values (@bar)\", conn);\n cmd.Parameters.AddWithValue(\"@bar\", 17);\n conn.Open();\n cmd.ExecuteNonQuery();\n}\n\n",
"Since you seem to be just getting started with this now is the best time to... | [
18,
2,
0
] | [] | [] | [
"c#",
"sql",
"sql_server",
"tsql"
] | stackoverflow_0000032000_c#_sql_sql_server_tsql.txt |
Q:
Pulling limited tagged photos from Flickr
So I've got a hobby site I'm working on. I've got items that are tagged and I want to associate those items with photos from Flickr. Even with restrictive searches, I might get results numbering in the thousands.
Requirements:
I want to display between 10-20 pictures bu... | Pulling limited tagged photos from Flickr | So I've got a hobby site I'm working on. I've got items that are tagged and I want to associate those items with photos from Flickr. Even with restrictive searches, I might get results numbering in the thousands.
Requirements:
I want to display between 10-20 pictures but I want to randomize the photos each time. ... | [
"I would suggest moving the code that selects, randomizes, downloads and caches photos to separate service. It could be locally accessible REST application. Keep your core code clean and don't clutter it with remote operations and retention policy.\n\nBuild tags-to-images map and store it locally, in file or databa... | [
1,
1
] | [] | [] | [
"flickr",
"php",
"tags"
] | stackoverflow_0000032462_flickr_php_tags.txt |
Q:
How do you write code that is both 32 bit and 64 bit compatible?
What considerations do I need to make if I want my code to run correctly on both 32bit and 64bit platforms ?
EDIT: What kind of areas do I need to take care in, e.g. printing strings/characters or using structures ?
A:
Options:
Code it in some lang... | How do you write code that is both 32 bit and 64 bit compatible? | What considerations do I need to make if I want my code to run correctly on both 32bit and 64bit platforms ?
EDIT: What kind of areas do I need to take care in, e.g. printing strings/characters or using structures ?
| [
"Options:\nCode it in some language with a Virtual Machine (such as Java)\nCode it in .NET and don't target any specific architecture. The .NET JIT compiler will compile it for you to the right architecture before running it.\n",
"One solution would be to target a virtual environment that runs on both platforms (... | [
2,
1,
1,
0,
0,
0,
0,
0,
0
] | [] | [] | [
"32bit_64bit",
"compatibility",
"language_agnostic"
] | stackoverflow_0000032533_32bit_64bit_compatibility_language_agnostic.txt |
Q:
Is there a way to do "intraWord" text navigation in Visual Studio?
On Windows, Ctrl+Right Arrow will move the text cursor from one "word" to the next. While working with Xcode on the Mac, they extended that so that Option+Right Arrow will move the cursor to the beginning of the next subword. For example, if the ... | Is there a way to do "intraWord" text navigation in Visual Studio? | On Windows, Ctrl+Right Arrow will move the text cursor from one "word" to the next. While working with Xcode on the Mac, they extended that so that Option+Right Arrow will move the cursor to the beginning of the next subword. For example, if the cursor was at the beginning of the word myCamelCaseVar then hitting Opti... | [
"ReSharper has a \"Camel Humps\" feature that lets you do this.\n"
] | [
2
] | [] | [] | [
"keyboard",
"visual_studio"
] | stackoverflow_0000032617_keyboard_visual_studio.txt |
Q:
How can I get the number of occurrences in a SQL IN clause?
Let's say I have four tables: PAGE, USER, TAG, and PAGE-TAG:
Table | Fields
------------------------------------------
PAGE | ID, CONTENT
TAG | ID, NAME
USER | ID, NAME
PAGE-TAG | ID, PAGE-ID, TAG-ID, USER-ID
And let's say I... | How can I get the number of occurrences in a SQL IN clause? | Let's say I have four tables: PAGE, USER, TAG, and PAGE-TAG:
Table | Fields
------------------------------------------
PAGE | ID, CONTENT
TAG | ID, NAME
USER | ID, NAME
PAGE-TAG | ID, PAGE-ID, TAG-ID, USER-ID
And let's say I have four pages:
PAGE#1 'Content page 1' tagged with tag#1 by us... | [
"This might work:\nselect page.content, count(page-tag.tag-id) as tagcount\nfrom page inner join page-tag on page-tag.page-id = page.id\ngroup by page.content\nhaving page-tag.tag-id in (1, 3, 8)\n\n",
"OK, so the key difference between this and kristof's answer is that you only want a count of 1 to show against ... | [
2,
1,
0,
0,
0,
0
] | [] | [] | [
"sql"
] | stackoverflow_0000032059_sql.txt |
Q:
Transactional Design Pattern
I have a need to create a "transactional" process using an external API that does not support COM+ or .NET transactions (Sharepoint to be exact)
What I need to do is to be able to perform a number of processes in a sequence, but any failure in that sequence means that I will have to ma... | Transactional Design Pattern | I have a need to create a "transactional" process using an external API that does not support COM+ or .NET transactions (Sharepoint to be exact)
What I need to do is to be able to perform a number of processes in a sequence, but any failure in that sequence means that I will have to manually undo all of the previous st... | [
"The GoF Command Pattern supports undoable operations.\nI think the same pattern can be used for sequential operations (sequential commands).\n",
"If your changes are done to the SharePoint object model, you can use the fact that changes are not committed until you call the Update() method of the modified object,... | [
3,
3,
2,
1,
0,
0
] | [] | [] | [
"design_patterns",
"sharepoint",
"transactions"
] | stackoverflow_0000022165_design_patterns_sharepoint_transactions.txt |
Q:
procmail lockfile utility and NFS
Has anyone used the lockfile utility that ships with procmail in conjunction with NFS mounted directories?
The lockfile man page states that "Lockfile is NFS-resistant and eight-bit clean."
A:
I've used it. My company had an very NFS-intensive infrastructure at one point (less ... | procmail lockfile utility and NFS | Has anyone used the lockfile utility that ships with procmail in conjunction with NFS mounted directories?
The lockfile man page states that "Lockfile is NFS-resistant and eight-bit clean."
| [
"I've used it. My company had an very NFS-intensive infrastructure at one point (less so now) and many Perl sysadmin tools dating back to the mid 90s. We wrapped lockfile in a perl module so that we could do consistent locking across NFS mounts. For that matter, our home directories were NFS mounted and we used ... | [
2
] | [] | [] | [
"lockfile",
"nfs",
"procmail",
"unix"
] | stackoverflow_0000032123_lockfile_nfs_procmail_unix.txt |
Q:
Authenticating Domain Users with System.DirectoryServices
Given a username and a password for a domain user, what would be the best way to authenticate that user programatically?
A:
It appears that .NET 3.5 added a new namespace to deal with this issue - System.DirectoryServices.AccountManagement. Code sample is... | Authenticating Domain Users with System.DirectoryServices | Given a username and a password for a domain user, what would be the best way to authenticate that user programatically?
| [
"It appears that .NET 3.5 added a new namespace to deal with this issue - System.DirectoryServices.AccountManagement. Code sample is below:\nPrivate Function ValidateExternalUser(ByVal username As String, ByVal password As String) As Boolean\n Using context As PrincipalContext = New PrincipalContext(ContextType.... | [
17,
9
] | [] | [] | [
".net",
"authentication",
"directoryservices"
] | stackoverflow_0000030861_.net_authentication_directoryservices.txt |
Q:
List in JScrollPane painting outside the viewport
I have a list, each item of which has several things in it, including a JProgressBar which can be updated a lot. Each time one of the items updates its JProgressBar, the ListDataListener on the list tries to scroll it to the visible range using
/*
* This makes the... | List in JScrollPane painting outside the viewport | I have a list, each item of which has several things in it, including a JProgressBar which can be updated a lot. Each time one of the items updates its JProgressBar, the ListDataListener on the list tries to scroll it to the visible range using
/*
* This makes the updating content item automatically scroll
* into vie... | [
"Have you tried explicitly enabling double-buffering on the JList and/or the components that it is drawing over? (with:setDoubleBuffered(boolean aFlag))\nAnother thought is that you might need to exit the function immediately after delegating to the EDT. The way your code is written, it looks like the update will ... | [
3
] | [] | [] | [
"java",
"jscrollpane",
"swing"
] | stackoverflow_0000032519_java_jscrollpane_swing.txt |
Q:
In MS SQL Server 2005, is there a way to export, the complete maintenance plan of a database as a SQL Script?
Currently, if I want to output a SQL script for a table in my database, in Management Studio, I can right click and output a create script.
Is there an equivalent to output an SQL script for a database's ... | In MS SQL Server 2005, is there a way to export, the complete maintenance plan of a database as a SQL Script? | Currently, if I want to output a SQL script for a table in my database, in Management Studio, I can right click and output a create script.
Is there an equivalent to output an SQL script for a database's maintenance plan?#
Edit
The company I work for has 4 servers, 3 servers and no sign of integration, each one runn... | [
"You can't export them as scripts, but if your intention is to migrate them between server instances then you can import and export them as follows:\nConnect to Integration Services and expand Stored Packages>MSDB>Maintenance Plans. You can then right click on the plan and select import or export\n",
"I don't thi... | [
2,
0
] | [] | [] | [
"sql",
"sql_server",
"sql_server_2005"
] | stackoverflow_0000032689_sql_sql_server_sql_server_2005.txt |
Q:
Windows Service Increasing CPU Consumption
At my job, I have a clutch of six Windows services that I am responsible for, written in C# 2003. Each of these services contain a timer that fires every minute or so, where the majority of their work happens.
My problem is that, as these services run, they start to consu... | Windows Service Increasing CPU Consumption | At my job, I have a clutch of six Windows services that I am responsible for, written in C# 2003. Each of these services contain a timer that fires every minute or so, where the majority of their work happens.
My problem is that, as these services run, they start to consume more and more CPU time through each iteration... | [
"You mentioned that you're using NHibernate - are you closing your NHibernate sessions at appropriate points (such as the end of each iteration?)\nIf not, then the size of the object map loaded into memory will be gradually increasing over time, and each session flush will take increasingly more CPU time.\n",
"He... | [
3,
3,
2,
2,
1,
1,
0
] | [] | [] | [
".net_1.1",
"c#",
"nhibernate",
"windows_services"
] | stackoverflow_0000026148_.net_1.1_c#_nhibernate_windows_services.txt |
Q:
1:1 Foreign Key Constraints
How do you specify that a foreign key constraint should be a 1:1 relationship in transact sql? Is declaring the column UNIQUE enough? Below is my existing code.!
CREATE TABLE [dbo].MyTable(
[MyTablekey] INT IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[OtherTableKey] INT NOT NULL... | 1:1 Foreign Key Constraints | How do you specify that a foreign key constraint should be a 1:1 relationship in transact sql? Is declaring the column UNIQUE enough? Below is my existing code.!
CREATE TABLE [dbo].MyTable(
[MyTablekey] INT IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[OtherTableKey] INT NOT NULL UNIQUE
CONSTRAINT [FK_My... | [
"A foreign key column with the UNIQUE and NOT NULL constraints that references a UNIQUE, NOT NULL column in another table creates a 1:(0|1) relationship, which is probably what you want.\nIf there was a true 1:1 relationship, every record in the first table would have a corresponding record in the second table and ... | [
9,
4,
1,
0,
0
] | [] | [] | [
"sql",
"sql_server"
] | stackoverflow_0000032360_sql_sql_server.txt |
Q:
Write files to App_Data under medium trust hack?
Is there any way to Write files to App_Data under medium trust hack?
Im sure I've heard about some hack, is that true?
A:
I don't think you are able to create new files, but you should be able to write to existing files in the App_Data folder. But I have honestly... | Write files to App_Data under medium trust hack? | Is there any way to Write files to App_Data under medium trust hack?
Im sure I've heard about some hack, is that true?
| [
"I don't think you are able to create new files, but you should be able to write to existing files in the App_Data folder. But I have honestly never experienced any problems with Medium Trust and writing to the App_Data folder. Are you sure it has the necessary permissions needed for writing files to the hard dri... | [
1,
0
] | [] | [] | [
"asp.net",
"trust"
] | stackoverflow_0000032513_asp.net_trust.txt |
Q:
Restrict the server access from LAN only
Recently we got a new server at the office purely for testing purposes. It is set up so that we can access it from any computer.
However today our ip got blocked from one of our other sites saying that our ip has been suspected of having a virus that sends spam emails. we ... | Restrict the server access from LAN only | Recently we got a new server at the office purely for testing purposes. It is set up so that we can access it from any computer.
However today our ip got blocked from one of our other sites saying that our ip has been suspected of having a virus that sends spam emails. we learned this from the cbl http://cbl.abuseat.o... | [
"I assume that this server is behind a router? You should be able to block WAN connections to the server on the router and still leave it open to accepting LAN connection. Or you could restrict the IPs that can connect to the server to the development machines on the network.\n"
] | [
1
] | [] | [] | [
"lan",
"router",
"server",
"wan"
] | stackoverflow_0000032780_lan_router_server_wan.txt |
Q:
How do I get today's date in C# in mm/dd/yyyy format?
How do I get today's date in C# in mm/dd/yyyy format?
I need to set a string variable to today's date (preferably without the year), but there's got to be a better way than building it month-/-day one piece at a time.
BTW: I'm in the US so M/dd would be correct... | How do I get today's date in C# in mm/dd/yyyy format? | How do I get today's date in C# in mm/dd/yyyy format?
I need to set a string variable to today's date (preferably without the year), but there's got to be a better way than building it month-/-day one piece at a time.
BTW: I'm in the US so M/dd would be correct, e.g. September 11th is 9/11.
Note: an answer from kronoz ... | [
"DateTime.Now.ToString(\"M/d/yyyy\");\n\nhttp://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx\n",
"Not to be horribly pedantic, but if you are internationalising the code it might be more useful to have the facility to get the short date for a given culture, e.g.:-\nusing System.Globalization;\nusing System.Thre... | [
224,
23,
17,
9,
8,
8,
5,
4
] | [] | [] | [
"c#",
"date"
] | stackoverflow_0000032747_c#_date.txt |
Q:
Advice on how to be graphically creative
I've always felt that my graphic design skills have lacked, but I do have a desire to improve them. Even though I'm not the worlds worst artist, it's discouraging to see the results from a professional designer, who can do an amazing mockup from a simple spec in just a few... | Advice on how to be graphically creative | I've always felt that my graphic design skills have lacked, but I do have a desire to improve them. Even though I'm not the worlds worst artist, it's discouraging to see the results from a professional designer, who can do an amazing mockup from a simple spec in just a few hours. I always wonder how they came up with... | [
"Most of artistic talent comes from putting in the time. However, as in most skills, practicing bad habits doesn't help you progress.\nYou need to learn basic drawing skills (form, mainly) and practice doing them well and right (which means slowly). As you practice correctly, you'll improve much faster.\nThis is ... | [
4,
2,
2,
1,
1,
1,
0,
0
] | [] | [] | [
"graphics"
] | stackoverflow_0000032493_graphics.txt |
Q:
What protocols and servers are involved in sending an email, and what are the steps?
For the past few weeks, I've been trying to learn about just how email works. I understand the process of a client receiving mail from a server using POP pretty well. I also understand how a client computer can use SMTP to ask a... | What protocols and servers are involved in sending an email, and what are the steps? | For the past few weeks, I've been trying to learn about just how email works. I understand the process of a client receiving mail from a server using POP pretty well. I also understand how a client computer can use SMTP to ask an SMTP server to send a message. However, I'm still missing something...
The way I unders... | [
"The SMTP server at Gmail (which accepted the message from Thunderbird) will route the message to the final recipient.\nIt does this by using DNS to find the MX (mail exchanger) record for the domain name part of the destination email address (hotmail.com in this example). The DNS server will return an IP address w... | [
18,
5,
5,
2,
2,
1,
1
] | [] | [] | [
"email",
"pop3",
"smtp"
] | stackoverflow_0000032744_email_pop3_smtp.txt |
Q:
Do you have any recommended macros for Microsoft Visual Studio?
What are some macros that you have found useful in Visual Studio for code manipulation and automation?
A:
This is my macro to close the solution, delete the intellisense file, and reopen the solution. Essential if you're working in native C++.
Sub ... | Do you have any recommended macros for Microsoft Visual Studio? | What are some macros that you have found useful in Visual Studio for code manipulation and automation?
| [
"This is my macro to close the solution, delete the intellisense file, and reopen the solution. Essential if you're working in native C++.\nSub UpdateIntellisense()\n Dim solution As Solution = DTE.Solution\n Dim filename As String = solution.FullName\n Dim ncbFile As System.Text.StringBuilder = New System... | [
10,
5,
1,
1,
0
] | [] | [] | [
"automation",
"macros",
"visual_studio"
] | stackoverflow_0000015056_automation_macros_visual_studio.txt |
Q:
Why does sqlite3-ruby-1.2.2 not work on OS X?
I am running
OS X 10.5,
Ruby 1.8.6,
Rails 2.1,
sqlite3-ruby 1.2.2
and I get the following error when trying to rake db:migrate on an app that works find connected to MySQL.
rake aborted!
no such file to load -- sqlite3/database
A:
Looks like there's a bug w... | Why does sqlite3-ruby-1.2.2 not work on OS X? | I am running
OS X 10.5,
Ruby 1.8.6,
Rails 2.1,
sqlite3-ruby 1.2.2
and I get the following error when trying to rake db:migrate on an app that works find connected to MySQL.
rake aborted!
no such file to load -- sqlite3/database
| [
"Looks like there's a bug with 1.2.2. Just roll back to 1.2.1 with:\n\ngem install sqlite3-ruby -v=1.2.1\n\nand that will fix the problem.\n",
"Jamis has just released 1.2.4, and the comment history on that bug suggests that the fix is in 1.2.3 and later versions. As a quick test, I did the following on an OS X... | [
2,
2
] | [] | [] | [
"ruby",
"ruby_on_rails",
"sqlite"
] | stackoverflow_0000011986_ruby_ruby_on_rails_sqlite.txt |
Q:
.NET : Double-click event in TabControl
I would like to intercept the event in a .NET Windows Forms TabControl when the user has changed tab by double-clicking the tab (instead of just single-clicking it).
Do you have any idea of how I can do that?
A:
The MouseDoubleClick event of the TabControl seems to respond... | .NET : Double-click event in TabControl | I would like to intercept the event in a .NET Windows Forms TabControl when the user has changed tab by double-clicking the tab (instead of just single-clicking it).
Do you have any idea of how I can do that?
| [
"The MouseDoubleClick event of the TabControl seems to respond just fine to double-clicking. The only additional step I would do is set a short timer after the TabIndexChanged event to track that a new tab has been selected and ignore any double-clicks that happen outside the timer. This will prevent double-click... | [
3,
1,
0
] | [] | [] | [
".net",
"c#",
"tabcontrol",
"vb.net",
"winforms"
] | stackoverflow_0000032733_.net_c#_tabcontrol_vb.net_winforms.txt |
Q:
Print a Winform/visual element
All the articles I've found via google are either obsolete or contradict one another.
What's the easiest way to print a form or, say, a richtextbox in c#? I think it's using the PrintDiaglog class by setting the Document, but how does this get converted?
A:
At least in VS 2008, its... | Print a Winform/visual element | All the articles I've found via google are either obsolete or contradict one another.
What's the easiest way to print a form or, say, a richtextbox in c#? I think it's using the PrintDiaglog class by setting the Document, but how does this get converted?
| [
"At least in VS 2008, its very easy. It took me about a couple of minutes to code the answer after reading your question. Here's where I borrowed it from:\nhttp://msdn.microsoft.com/en-us/library/6he9hz8c.aspx\nI tested this, and it works.\n",
"Someone I know created a component that extends controls with a lot o... | [
6,
0
] | [] | [] | [
"c#",
"winforms"
] | stackoverflow_0000005307_c#_winforms.txt |
Q:
Creating System Restore Points - Thoughts?
Is it "taboo" to programatically create system restore points? I would be doing this before I perform a software update. If there is a better method to create a restore point with just my software's files and data, please let me know.
I would like a means by which I can... | Creating System Restore Points - Thoughts? | Is it "taboo" to programatically create system restore points? I would be doing this before I perform a software update. If there is a better method to create a restore point with just my software's files and data, please let me know.
I would like a means by which I can get the user back to a known working state if e... | [
"Whether it's a good idea or not really depends on how much you're doing. A full system restore point is weighty - it takes time to create, disk space to store, and gets added to the interface of restore points, possibly pushing earlier restore points out of storage.\nSo, if your update is really only changing your... | [
4,
4,
2,
1,
0
] | [
"I don't think a complete system restore would be a good plan. Two reasons that quickly come to mind:\n\nWasted disk space\nUnintended consequences from a rollback\n\n"
] | [
-1
] | [
"system_restore"
] | stackoverflow_0000032845_system_restore.txt |
Q:
How do I use ASP.NET Login Controls when my Login.aspx is not at the root of my application?
I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application. It keeps redirecting to a Login.aspx page at the root of my application that does not exist. My log... | How do I use ASP.NET Login Controls when my Login.aspx is not at the root of my application? | I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application. It keeps redirecting to a Login.aspx page at the root of my application that does not exist. My login page is within a folder.
| [
"Use the LoginUrl property for the forms item?\n<authentication mode=\"Forms\">\n <forms defaultUrl=\"~/Default.aspx\" loginUrl=\"~/login.aspx\" timeout=\"1440\" ></forms>\n</authentication>\n\n",
"I found the answer at CoderSource.net. I had to put the correct path into my web.config file.\n<?xml version=\"1.0... | [
6,
1
] | [] | [] | [
"asp.net",
"forms_authentication"
] | stackoverflow_0000033089_asp.net_forms_authentication.txt |
Q:
Beginning ASP.NET MVC with VB.net 2008
Where can I find a good tutorial on learning ASP.NET MVC using VB.net 2008 as the language? Most in-depth tutorials that I found in searching the web were written in C#.
A:
Have you tried adding the word "VB" to your searches??
http://www.myvbprof.com/2007_Version/MVC_Intro... | Beginning ASP.NET MVC with VB.net 2008 | Where can I find a good tutorial on learning ASP.NET MVC using VB.net 2008 as the language? Most in-depth tutorials that I found in searching the web were written in C#.
| [
"Have you tried adding the word \"VB\" to your searches??\nhttp://www.myvbprof.com/2007_Version/MVC_Intro_Tutorial.aspx\nhttp://www.asp.net/learn/mvc/tutorial-07-vb.aspx\n<Link>\n",
"http://quickstarts.asp.net/3-5-extensions/mvc/default.aspx\nIs that relevant?\n"
] | [
3,
0
] | [] | [] | [
".net_3.5",
"asp.net_mvc",
"model_view_controller",
"vb.net",
"visual_studio_2008"
] | stackoverflow_0000032642_.net_3.5_asp.net_mvc_model_view_controller_vb.net_visual_studio_2008.txt |
Q:
Using Virtual PC for Web Development with Oracle
Is anyone using Virtual PC to maintain multiple large .NET 1.1 and 2.0 websites? Are there any lessons learned? I used Virtual PC recently with a small WinForms app and it worked great, but then everything works great with WinForms. ASP.NET development hogs way m... | Using Virtual PC for Web Development with Oracle | Is anyone using Virtual PC to maintain multiple large .NET 1.1 and 2.0 websites? Are there any lessons learned? I used Virtual PC recently with a small WinForms app and it worked great, but then everything works great with WinForms. ASP.NET development hogs way more resources, requires IIS to be running, requires a ... | [
"I've used VirtualPCs for a few years for development of some fairly hefty web apps without much problem. Lots of RAM is important. I keep my VPCs on an external USB drive and they perform great from there. This gives me the flexibility to take the drive with me if I need to do work somewhere else... just insta... | [
1,
0,
0,
0,
0
] | [] | [] | [
"performance",
"virtual_pc"
] | stackoverflow_0000031287_performance_virtual_pc.txt |
Q:
How do I keep my Login.aspx page's ReturnUrl parameter from overriding my ASP.NET Login control's DestinationPageUrl property?
I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application. I've got pages such as PasswordRecovery.aspx that are accessable t... | How do I keep my Login.aspx page's ReturnUrl parameter from overriding my ASP.NET Login control's DestinationPageUrl property? | I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application. I've got pages such as PasswordRecovery.aspx that are accessable to only Anonymous users. When I click my login link from such a page, the login page has a ReturnUrl parameter in the address bar:
... | [
"I found the answer on Velocity Reviews. I handled the LoggedIn event to force a redirection to the DestinationPageUrl page.\nPublic Partial Class Login\n Inherits System.Web.UI.Page\n\n Protected Sub Login1_LoggedIn(ByVal sender As Object, _ \n ByVal e As System.EventArgs) Handles Login1.LoggedI... | [
14
] | [] | [] | [
"asp.net",
"forms_authentication"
] | stackoverflow_0000033166_asp.net_forms_authentication.txt |
Q:
Looking for Regex to find quoted newlines in a big string (for C#)
I have a big string (let's call it a CSV file, though it isn't actually one, it'll just be easier for now) that I have to parse in C# code.
The first step of the parsing process splits the file into individual lines by just using a StreamReader obj... | Looking for Regex to find quoted newlines in a big string (for C#) | I have a big string (let's call it a CSV file, though it isn't actually one, it'll just be easier for now) that I have to parse in C# code.
The first step of the parsing process splits the file into individual lines by just using a StreamReader object and calling ReadLine until it's through the file. However, any given... | [
"Since this isn't a true CSV file, does it have any sort of schema?\nFrom your example, it looks like you have:\nint, int, int, int, string , bool, bool, int\nWith that making up your record / object.\nAssuming that your data is well formed (I don't know enough about your source to know how valid this assumption is... | [
3,
3,
1,
0
] | [] | [] | [
"c#",
"regex"
] | stackoverflow_0000033063_c#_regex.txt |
Q:
Shorthand conditional in C# similar to SQL 'in' keyword
In C# is there a shorthand way to write this:
public static bool IsAllowed(int userID)
{
return (userID == Personnel.JohnDoe || userID == Personnel.JaneDoe ...);
}
Like:
public static bool IsAllowed(int userID)
{
return (userID in Personnel.JohnDoe, ... | Shorthand conditional in C# similar to SQL 'in' keyword | In C# is there a shorthand way to write this:
public static bool IsAllowed(int userID)
{
return (userID == Personnel.JohnDoe || userID == Personnel.JaneDoe ...);
}
Like:
public static bool IsAllowed(int userID)
{
return (userID in Personnel.JohnDoe, Personnel.JaneDoe ...);
}
I know I could also use switch, bu... | [
"How about this?\npublic static class Extensions\n{\n public static bool In<T>(this T testValue, params T[] values)\n {\n return values.Contains(testValue);\n }\n}\n\nUsage:\nPersonnel userId = Personnel.JohnDoe;\n\nif (userId.In(Personnel.JohnDoe, Personnel.JaneDoe))\n{\n // Do something\n}\n\nI... | [
13,
4,
2,
1,
0,
0,
0,
0
] | [] | [] | [
"c#",
"conditional",
"if_statement",
"lambda"
] | stackoverflow_0000032937_c#_conditional_if_statement_lambda.txt |
Q:
Any pitfalls developing C#/.NET code in a VM running on a Mac?
I am considering buying an Apple MacBook Pro. Are there any pitfalls developing C#/.NET code in a virtual machine running on a Mac?
Also, is it better to run Vista or XP Pro for this purpose?
A:
I can't tell you any specific experiences since I don't... | Any pitfalls developing C#/.NET code in a VM running on a Mac? | I am considering buying an Apple MacBook Pro. Are there any pitfalls developing C#/.NET code in a virtual machine running on a Mac?
Also, is it better to run Vista or XP Pro for this purpose?
| [
"I can't tell you any specific experiences since I don't have a Mac, but I did want to point out that there was an awesome episode of the DeepFriedBytes podcast that discussed this very topic. It made me want to give it a try. They discuss the pros and cons of going this route - well worth the listen IMO if this is... | [
13,
2,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [] | [] | [
".net",
"macos",
"vmware"
] | stackoverflow_0000028268_.net_macos_vmware.txt |
Q:
In a C/C++ program, how does the system (Windows, Linux, and Mac OS X) call the main() function?
I am looking for a more technical explanation than the OS calls the function.
Is there a website or book?
A:
The .exe file (or equivalent on other platforms) contains an 'entry point' address. To a first approximati... | In a C/C++ program, how does the system (Windows, Linux, and Mac OS X) call the main() function? | I am looking for a more technical explanation than the OS calls the function.
Is there a website or book?
| [
"The .exe file (or equivalent on other platforms) contains an 'entry point' address. To a first approximation, the OS loads the relevant sections of the .EXE file into RAM, and then jumps to the entry point.\nAs others have said, this entry point will not be 'main', but will instead be a part of the runtime librar... | [
27,
8,
6,
2,
1
] | [] | [] | [
"c",
"c++",
"program_entry_point"
] | stackoverflow_0000012332_c_c++_program_entry_point.txt |
Q:
In SQL Server 2000, is there a sysobjects query that will retrieve user views and not system views?
Assuming such a query exists, I would greatly appreciate the help.
I'm trying to develop a permissions script that will grant "select" and "references" permissions on the user tables and views in a database. My hop... | In SQL Server 2000, is there a sysobjects query that will retrieve user views and not system views? | Assuming such a query exists, I would greatly appreciate the help.
I'm trying to develop a permissions script that will grant "select" and "references" permissions on the user tables and views in a database. My hope is that executing the "grant" commands on each element in such a set will make it easier to keep permis... | [
"select * from information_schema.tables\nWHERE OBJECTPROPERTY(OBJECT_ID(table_name),'IsMSShipped') =0 \n\nWill exclude dt_properties and system tables\nadd \nwhere table_type = 'view' \n\nif you just want the view\n",
"SELECT\n *\nFROM\n sysobjects\nWHERE\n xtype = 'V' AND\n type = 'V' AND\n categ... | [
6,
2,
0
] | [] | [] | [
"sql_server_2000",
"sysobjects"
] | stackoverflow_0000033226_sql_server_2000_sysobjects.txt |
Q:
Is there any way to override the drag/drop or copy/paste behavior of an existing app in Windows?
I would like to extend some existing applications' drag and drop behavior, and I'm wondering if there is any way to hack on drag and drop support or changes to drag and drop behavior by monitoring the app's message loo... | Is there any way to override the drag/drop or copy/paste behavior of an existing app in Windows? | I would like to extend some existing applications' drag and drop behavior, and I'm wondering if there is any way to hack on drag and drop support or changes to drag and drop behavior by monitoring the app's message loop and injecting my own messages.
It would also work to monitor for when a paste operation is executed,... | [
"Well, think of this from the point of view of the app designer. If you wrote an application, do you want users to be able to inject things into your application (more importantly, would you want to incur the support/revenue headache of clueless users doing this and then blaming you)? Each application's drag and dr... | [
0,
0,
0
] | [] | [] | [
"detours",
"windows"
] | stackoverflow_0000033113_detours_windows.txt |
Q:
Does ReadUncommitted imply NoLock
When writing a SQL statement in SQL Server 2005, does the READUNCOMMITTED query hint imply NOLOCK or do I have to specify it manually too?
So is:
With (NoLock, ReadUnCommitted)
the same as:
With (ReadUnCommitted)
A:
According to Kalen Delaney...
The NOLOCK hint has nothing to d... | Does ReadUncommitted imply NoLock | When writing a SQL statement in SQL Server 2005, does the READUNCOMMITTED query hint imply NOLOCK or do I have to specify it manually too?
So is:
With (NoLock, ReadUnCommitted)
the same as:
With (ReadUnCommitted)
| [
"According to Kalen Delaney...\nThe NOLOCK hint has nothing to do with the index options. The hint tells SQL\nServer not to request locks when doing SELECT operations, so there will be\nno conflict with data that is already locked. The index options just tell\nSQL Server that this level of locking is allowed, when ... | [
1,
1
] | [
"I think you can say that\nReadUnCommitted has the abilities of NoLock\nHowever you cannot say that\nNoLock has the abilities of ReadUnCommitted\n"
] | [
-1
] | [
"nolock",
"sql_server_2005"
] | stackoverflow_0000032550_nolock_sql_server_2005.txt |
Q:
What's an alternative to GWL_USERDATA for storing an object pointer?
In the Windows applications I work on, we have a custom framework that sits directly above Win32 (don't ask). When we create a window, our normal practice is to put this in the window's user data area via SetWindowLong(hwnd, GWL_USERDATA, this),... | What's an alternative to GWL_USERDATA for storing an object pointer? | In the Windows applications I work on, we have a custom framework that sits directly above Win32 (don't ask). When we create a window, our normal practice is to put this in the window's user data area via SetWindowLong(hwnd, GWL_USERDATA, this), which allows us to have an MFC-like callback or a tightly integrated WndP... | [
"SetWindowLongPtr was created to replace SetWindowLong in these instances. It's LONG_PTR parameter allows you to store a pointer for 32-bit or 64-bit compilations.\nLONG_PTR SetWindowLongPtr( \n HWND hWnd,\n int nIndex,\n LONG_PTR dwNewLong\n);\n\nRemember that the constants have changed too, so usag... | [
43,
12
] | [] | [] | [
"32bit_64bit",
"winapi",
"windows"
] | stackoverflow_0000023083_32bit_64bit_winapi_windows.txt |
Q:
How do I best handle role based permissions using Forms Authentication on my ASP.NET web application?
I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application.
I've got two roles:
Users
Administrators
I want pages to be viewable by four different gro... | How do I best handle role based permissions using Forms Authentication on my ASP.NET web application? | I'm using the ASP.NET Login Controls and Forms Authentication for membership/credentials for an ASP.NET web application.
I've got two roles:
Users
Administrators
I want pages to be viewable by four different groups:
Everyone (Default, Help)
Anonymous (CreateUser, Login, PasswordRecovery)
Users (ChangePassword, DataE... | [
"A couple solutions off the top of my head.\n\nYou could set up restrictions for each page in your web.config file. This would allow you to have whatever folder hierarchy you wish to use. However, it will require that you keep the web.config file up to date whenever you add additional pages. The nice part of hav... | [
1,
1,
1
] | [] | [] | [
"asp.net",
"forms_authentication"
] | stackoverflow_0000033263_asp.net_forms_authentication.txt |
Q:
In Exchange (2003) how do I list the forms used in the public folder tree?
Does anyone have a script or can anyone point me in the right direction to query an Exchange (2003) public folder tree to determine all the forms being used ?
I need an output of form object/display name and count for each form type in each... | In Exchange (2003) how do I list the forms used in the public folder tree? | Does anyone have a script or can anyone point me in the right direction to query an Exchange (2003) public folder tree to determine all the forms being used ?
I need an output of form object/display name and count for each form type in each folder.
| [
"You can give Redemption a try. It should be suitable for what you need.\n"
] | [
1
] | [] | [] | [
"exchange_server",
"reporting",
"scripting"
] | stackoverflow_0000030788_exchange_server_reporting_scripting.txt |
Q:
Best use pattern for a DataContext
What's the best lifetime model for a DataContext? Should I just create a new one whenever I need it (aka, function level), should I keep one available in each class that would use it (class level), or should I create a static class with a static DataContext (app-domain level)? Ar... | Best use pattern for a DataContext | What's the best lifetime model for a DataContext? Should I just create a new one whenever I need it (aka, function level), should I keep one available in each class that would use it (class level), or should I create a static class with a static DataContext (app-domain level)? Are there any considered best practices on... | [
"You pretty much need to keep the same data context available throughout the lifetime of the operations you want to perform if you're ever going to be storing changes which are to be .SubmitChanges()'d later, as otherwise you will lose those changes.\nIf you're just querying stuff then it's fine to create them as n... | [
5,
0
] | [] | [] | [
".net_3.5",
"linq_to_sql"
] | stackoverflow_0000033390_.net_3.5_linq_to_sql.txt |
Q:
What's the false operator in C# good for?
There are two weird operators in C#:
the true operator
the false operator
If I understand this right these operators can be used in types which I want to use instead of a boolean expression and where I don't want to provide an implicit conversion to bool.
Let's say I hav... | What's the false operator in C# good for? | There are two weird operators in C#:
the true operator
the false operator
If I understand this right these operators can be used in types which I want to use instead of a boolean expression and where I don't want to provide an implicit conversion to bool.
Let's say I have a following class:
public class MyType
... | [
"You can use it to override the && and || operators.\nThe && and || operators can't be overridden, but if you override |, &, true and false in exactly the right way the compiler will call | and & when you write || and &&.\nFor example, look at this code (from http://ayende.com/blog/1574/nhibernate-criteria-api-oper... | [
66,
27,
14,
7,
3
] | [] | [] | [
".net",
"c#",
"syntax"
] | stackoverflow_0000033265_.net_c#_syntax.txt |
Q:
How to pass method name to custom server control in asp.net?
I am working on a Customer Server Control that extends another control. There is no problem with attaching to other controls on the form.
in vb.net: Parent.FindControl(TargetControlName)
I would like to pass a method to the control in the ASPX markup. ... | How to pass method name to custom server control in asp.net? | I am working on a Customer Server Control that extends another control. There is no problem with attaching to other controls on the form.
in vb.net: Parent.FindControl(TargetControlName)
I would like to pass a method to the control in the ASPX markup.
for example: <c:MyCustomerControl runat=server InitializeStuffCal... | [
"If you want to be able to pass a method in the ASPX markup, you need to use the Browsable attribute in your code on the event.\nVB.NET\n<Browsable(True)> Public Event InitializeStuffCallback\n\nC#\n[Browsable(true)]\npublic event EventHandler InitializeStuffCallback;\n\nReference:\nDesign-Time Attributes for Compo... | [
2,
2,
0,
0,
0
] | [] | [] | [
"asp.net",
"c#",
"custom_server_controls",
"vb.net",
"web_controls"
] | stackoverflow_0000033150_asp.net_c#_custom_server_controls_vb.net_web_controls.txt |
Q:
How can you implement trackbacks on a custom-coded blog (written in C#)?
How can you implement trackbacks on a custom-coded blog (written in C#)?
A:
The TrackBack specification was created by Six Apart back in the day for their Movable Type blogging system. After some corporate changes it seems to be no longer a... | How can you implement trackbacks on a custom-coded blog (written in C#)? | How can you implement trackbacks on a custom-coded blog (written in C#)?
| [
"The TrackBack specification was created by Six Apart back in the day for their Movable Type blogging system. After some corporate changes it seems to be no longer available, but here's an archived version:\nhttp://web.archive.org/web/20081228043036/http://www.sixapart.com/pronet/docs/trackback_spec\n",
"Personal... | [
2,
2
] | [
"If you're custom coding your own blog you have too much time on your hands. Start with something like dasBlog or SubText and customize that to your needs. Then you get trackbacks for free.\n"
] | [
-4
] | [
"blogs",
"c#",
"trackback"
] | stackoverflow_0000033217_blogs_c#_trackback.txt |
Q:
How do banks remember "your computer"?
As many of you probably know, online banks nowadays have a security system whereby you are asked some personal questions before you even enter your password. Once you have answered them, you can choose for the bank to "remember this computer" so that in the future you can lo... | How do banks remember "your computer"? | As many of you probably know, online banks nowadays have a security system whereby you are asked some personal questions before you even enter your password. Once you have answered them, you can choose for the bank to "remember this computer" so that in the future you can login by only entering your password.
How does... | [
"In fact they most probably use cookies. An alternative for them would be to use \"flash cookies\" (officially called \"Local Shared Objects\"). They are similar to cookies in that they are tied to a website and have an upper size limit, but they are maintained by the flash player, so they are invisible to any brow... | [
20,
6,
5,
1,
1,
1,
1,
0,
0
] | [
"MAC address is possible.\nIP to physical location mapping is also a possibility.\nUser agents and other HTTP headers are quiet unique to each of the machines too.\nI'm thinking about those websites that prevents you from using an accelerating download managers. There must be a way.\n"
] | [
-1
] | [
"https",
"onlinebanking",
"sessiontracking"
] | stackoverflow_0000033034_https_onlinebanking_sessiontracking.txt |
Q:
Communicating between websites (using Javascript or ?)
Here's my problem - I'd like to communicate between two websites and I'm looking for a clean solution. The current solution uses Javascript but there are nasty workarounds because of (understandable) cross-site scripting restrictions.
At the moment, website A ... | Communicating between websites (using Javascript or ?) | Here's my problem - I'd like to communicate between two websites and I'm looking for a clean solution. The current solution uses Javascript but there are nasty workarounds because of (understandable) cross-site scripting restrictions.
At the moment, website A opens a modal window containing website B using a jQuery plu... | [
"My best suggestion would be to create a webservice on each site that the other could call with the information that needs to get passed. If security is necessary, it's easy to add an SSL-like authentication scheme (or actual SSL even, if you like) to this system to ensure that only the two servers are able to talk... | [
5,
3,
0,
0
] | [] | [] | [
"javascript",
"jquery",
"web",
"xss"
] | stackoverflow_0000033104_javascript_jquery_web_xss.txt |
Q:
How to marshal an array of structs - (.Net/C# => C++)
Disclaimer: Near zero with marshalling concepts..
I have a struct B that contains a string + an array of structs C. I need to send this across the giant interop chasm to a COM - C++ consumer.
What are the right set of attributes I need to decorate my struct def... | How to marshal an array of structs - (.Net/C# => C++) | Disclaimer: Near zero with marshalling concepts..
I have a struct B that contains a string + an array of structs C. I need to send this across the giant interop chasm to a COM - C++ consumer.
What are the right set of attributes I need to decorate my struct definition ?
[ComVisible (true)]
[StructLayout(LayoutKind.Seq... | [
"C++: The Most Powerful Language for .NET Framework Programming\nI was about to approach a project that needed to marshal structured data across the C++/C# boundary, but I found what could be a better way (especially if you know C++ and like learning new programming languages). If you have access to Visual Studio 2... | [
4,
1
] | [] | [] | [
".net",
"interop",
"marshalling"
] | stackoverflow_0000031854_.net_interop_marshalling.txt |
Q:
ssh hangs when command invoked directly, but exits cleanly when run interactive
I need to launch a server on the remote machine and retrieve the port number that the server process is lsitening on. When invoked, the server will listen on a random port and output the port number on stderr.
I want to automate the p... | ssh hangs when command invoked directly, but exits cleanly when run interactive | I need to launch a server on the remote machine and retrieve the port number that the server process is lsitening on. When invoked, the server will listen on a random port and output the port number on stderr.
I want to automate the process of logging on to the remote machine, launching the process, and retrieving the... | [
"\ns = p.stderr.readline()\n\n\nI suspect it's the above line. When you invoke a command directly through ssh, you don't get your full pty (assuming Linux), and thus no stderr to read from.\nWhen you log in interactively, stdin, stdout, and stderr are set up for you, and so your script works.\n",
"what if you do... | [
3,
0
] | [] | [] | [
"python",
"ssh"
] | stackoverflow_0000033475_python_ssh.txt |
Q:
How do you find what debug switches are available? Or given a switch find out what is being disabled?
In this question the answer was to flip on a switch that is picked up by the debugger disabling the extraneous header that was causing the problem. The Microsoft help implies these switched are user generated and... | How do you find what debug switches are available? Or given a switch find out what is being disabled? | In this question the answer was to flip on a switch that is picked up by the debugger disabling the extraneous header that was causing the problem. The Microsoft help implies these switched are user generated and does not list any switches.
<configuration>
<system.diagnostics>
<switches>
<add name="Remote.... | [
"As you suspected, Remote.Disable stops the app from attaching debug info to remote requests. It's defined inside the .NET framework methods that make the SOAP request.\nThe basic situation is that these switches can be defined anywhere in code, you just need to create a new System.Diagnostics.BooleanSwitch with t... | [
2,
1
] | [] | [] | [
".net",
"app_config"
] | stackoverflow_0000033334_.net_app_config.txt |
Q:
A more generic visitor pattern
I'm sorry if my question is so long and technical but I think it's so important other people will be interested about it
I was looking for a way to separate clearly some softwares internals from their representation in c++
I have a generic parameter class (to be later stored in a con... | A more generic visitor pattern | I'm sorry if my question is so long and technical but I think it's so important other people will be interested about it
I was looking for a way to separate clearly some softwares internals from their representation in c++
I have a generic parameter class (to be later stored in a container) that can contain any kind of... | [
"For a generic implementation of Vistor, I'd suggest the Loki Visitor, part of the Loki library.\n",
"I've used this (\"acyclic visitor\") to good effect; it makes adding new classes to the hierarchy possible without changing existing ones, to some extent.\n",
"If I understand this correctly...\nWe had a object... | [
4,
1,
0,
0,
0
] | [] | [] | [
"c++",
"design_patterns",
"visitors"
] | stackoverflow_0000031913_c++_design_patterns_visitors.txt |
Q:
Good reasons for not letting the browser launch local applications
I know this might be a no-brainer, but please read on.
I also know it's generally not considered a good idea, maybe the worst, to let a browser run and interact with local apps, even in an intranet context.
We use Citrix for home-office, and people... | Good reasons for not letting the browser launch local applications | I know this might be a no-brainer, but please read on.
I also know it's generally not considered a good idea, maybe the worst, to let a browser run and interact with local apps, even in an intranet context.
We use Citrix for home-office, and people really like it. Now, they would like the same kind of environment at wo... | [
"\nWe use Citrix for home-office, and people really like it. Now, they would like the same kind of environment at work, a nice page where every important application/document/folder is nicely arranged and classified in an orderly fashion\n\nI haven't used Citrix very many times, but what's it got to do with executi... | [
4,
4,
1
] | [] | [] | [
"activex",
"internet_explorer",
"intranet",
"security"
] | stackoverflow_0000031865_activex_internet_explorer_intranet_security.txt |
Q:
Concurrent logins in a web farm
I'm really asking this by proxy, another team at work has had a change request from our customer.
The problem is that our customer doesn't want their employees to login with one user more than one at the same time. That they are getting locked out and sharing logins.
Since this is ... | Concurrent logins in a web farm | I'm really asking this by proxy, another team at work has had a change request from our customer.
The problem is that our customer doesn't want their employees to login with one user more than one at the same time. That they are getting locked out and sharing logins.
Since this is on a web farm, what would be the best... | [
"You could look at using a distributed cache system like memcached\nIt would solve this problem pretty well (it's MUCH faster than a database), and is also excellent for caching pretty much anything else too\n",
"It's just a cost of doing business.\nYes, caching to a database is slower than caching on your webser... | [
7,
6,
3,
1
] | [] | [] | [
"asp.net",
"authentication"
] | stackoverflow_0000033619_asp.net_authentication.txt |
Q:
How does GPS in a mobile phone work exactly?
I assume it doesn't connect to anything (other than the satelite I guess), is this right? Or it does and has some kind of charge?
A:
GPS, the Global Positioning System run by the United States Military, is free for civilian use, though the reality is that we're paying... | How does GPS in a mobile phone work exactly? | I assume it doesn't connect to anything (other than the satelite I guess), is this right? Or it does and has some kind of charge?
| [
"GPS, the Global Positioning System run by the United States Military, is free for civilian use, though the reality is that we're paying for it with tax dollars.\nHowever, GPS on cell phones is a bit more murky. In general, it won't cost you anything to turn on the GPS in your cell phone, but when you get a locati... | [
56,
12
] | [] | [] | [
"gps",
"mobile_phones"
] | stackoverflow_0000033637_gps_mobile_phones.txt |
Q:
Pattern recognition algorithms
In the past I had to develop a program which acted as a rule evaluator. You had an antecedent and some consecuents (actions) so if the antecedent evaled to true the actions where performed.
At that time I used a modified version of the RETE algorithm (there are three versions of RETE... | Pattern recognition algorithms | In the past I had to develop a program which acted as a rule evaluator. You had an antecedent and some consecuents (actions) so if the antecedent evaled to true the actions where performed.
At that time I used a modified version of the RETE algorithm (there are three versions of RETE only the first being public) for th... | [
"The TREAT algorithm is similar to RETE, but doesn't record partial matches. As a result, it may use less memory than RETE in certain situations. Also, if you modify a significant number of the known facts, then TREAT can be much faster because you don't have to spend time on retractions.\nThere's also RETE* which ... | [
5
] | [] | [] | [
"algorithm",
"pattern_recognition"
] | stackoverflow_0000033076_algorithm_pattern_recognition.txt |
Q:
My (Java/Swing) MouseListener isn't listening, help me figure out why
So I've got a JPanel implementing MouseListener and MouseMotionListener:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DisplayArea extends JPanel implements MouseListener, MouseMotionListener {
public Displ... | My (Java/Swing) MouseListener isn't listening, help me figure out why | So I've got a JPanel implementing MouseListener and MouseMotionListener:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DisplayArea extends JPanel implements MouseListener, MouseMotionListener {
public DisplayArea(Rectangle bounds, Display display) {
setLayout(null);
... | [
"The implements mouselistener, mousemotionlistener just allows the displayArea class to listen to some, to be defined, Swing component's mouse events. You have to explicitly define what it should be listening at. So I suppose you could add something like this to the constructor:\nthis.addMouseListener(this);\nthis.... | [
13,
3,
3
] | [] | [] | [
"actionlistener",
"java",
"mouselistener",
"swing"
] | stackoverflow_0000033708_actionlistener_java_mouselistener_swing.txt |
Q:
Can SlickEdit automatically update its tag files?
I prefer SlickEdit for my IDE but the only way I can get it to update the tag files to incorporate code changes is to recreate the project and/or run start a re-tag manually. Is there a way to setup Slick Edit so that it automatically incorporates changes in the co... | Can SlickEdit automatically update its tag files? | I prefer SlickEdit for my IDE but the only way I can get it to update the tag files to incorporate code changes is to recreate the project and/or run start a re-tag manually. Is there a way to setup Slick Edit so that it automatically incorporates changes in the code base that happen after project creation.
This proble... | [
"Okay, I asked a question on the SlickEdit forums.\nhttp://community.slickedit.com/index.php?topic=3854.0\nEDIT: Winnar! Options->Editing->Background Tagging of Other Files\n"
] | [
6
] | [] | [] | [
"ide",
"slickedit"
] | stackoverflow_0000028843_ide_slickedit.txt |
Q:
How do I add a MIME type to .htaccess?
I would like to add the following MIME type to a site run by Apache:
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
That is the Tomcat format.
I'm on a shared host, so I can only create an .htaccess file. Wo... | How do I add a MIME type to .htaccess? | I would like to add the following MIME type to a site run by Apache:
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
That is the Tomcat format.
I'm on a shared host, so I can only create an .htaccess file. Would someone please specify the complete cont... | [
"AddType application/x-java-jnlp-file .jnlp\n\nNote that you might not actually be allowed to do that.\nSee also the documentation of the AddType directive and the .htaccess howto.\n",
"You should be able to just add this line:\nAddType application/x-java-jnlp-file .jnlp\n\n"
] | [
11,
4
] | [] | [] | [
".htaccess",
"apache",
"java",
"jnlp",
"mime"
] | stackoverflow_0000033751_.htaccess_apache_java_jnlp_mime.txt |
Q:
How can I use `scp` to deploy a website's `.htaccess` file?
I am currently using the following command to upload my site content:
scp -r web/* user@site.com:site.com/
This works great except that the .htaccess file is not sent. Presumably, this is because it's hidden.
I have tried adding a second line to send the... | How can I use `scp` to deploy a website's `.htaccess` file? | I am currently using the following command to upload my site content:
scp -r web/* user@site.com:site.com/
This works great except that the .htaccess file is not sent. Presumably, this is because it's hidden.
I have tried adding a second line to send the file explicitely:
scp -r web/.htaccess user@site.com:site.com/.h... | [
"Just combine the two commands:\nscp -r web/* web/.htaccess user@site.com:site.com/\n\nIf you want 0 entries of your password you can set up public key authentication for ssh/scp.\n",
"Some background info: the * wildcard does not match so-called \"dot-files\" (i.e. files whose name begins with a dot).\nSome shel... | [
9,
4,
3
] | [] | [] | [
".htaccess",
"deployment",
"scp",
"shared_hosting"
] | stackoverflow_0000033790_.htaccess_deployment_scp_shared_hosting.txt |
Q:
Could you make a case for using Berkeley DB XML
I'm trying to read through the documentation on Berkeley DB XML, and I think I could really use a developer's blog post or synopsis of when they had a problem that found the XML layer atop Berkeley DB was the exact prescription for.
Maybe I'm not getting it, but it ... | Could you make a case for using Berkeley DB XML | I'm trying to read through the documentation on Berkeley DB XML, and I think I could really use a developer's blog post or synopsis of when they had a problem that found the XML layer atop Berkeley DB was the exact prescription for.
Maybe I'm not getting it, but it seems like they're both in-process DBs, and ultimatel... | [
"Ultimately I want my data stored in some reasonable format.\nIf that data started as XML and I want to retrieve it/them using XQuery, without the XML layer, I have to write a lot of code to do the XQuery by myself, and perhaps even worse to know my XML well enough to be able to have a reasonable storage system for... | [
6
] | [] | [] | [
"berkeley_db",
"berkeley_db_xml"
] | stackoverflow_0000033495_berkeley_db_berkeley_db_xml.txt |
Q:
How do I detect if a function is available during JNLP execution?
I have an application which really should be installed, but does work fine when deployed using JNLP.
However, it would seem that some Java functions such as Runtime.exec don't work using the default security options.
I would like to therefore disabl... | How do I detect if a function is available during JNLP execution? | I have an application which really should be installed, but does work fine when deployed using JNLP.
However, it would seem that some Java functions such as Runtime.exec don't work using the default security options.
I would like to therefore disable UI functionality that relies upon such functions.
So my question is... | [
"You want to ask to the SecurityManager if you have Exec right with the checkExec method.\n",
"I have also found that adding the following to the JNLP file:\n<security>\n <all-permissions/>\n</security>\n\nAnd signing the JAR file allows the app to run with all the permissions needed for Runtime.exec.\n",
"F... | [
1,
1,
0
] | [] | [] | [
"deployment",
"java",
"jnlp",
"permissions",
"security"
] | stackoverflow_0000033829_deployment_java_jnlp_permissions_security.txt |
Q:
How can I find the revision history of the file that was deleted and then resubmitted to SVN?
This is a follow on question to "How do I delete 1 file from a revision in SVN?" but because it probably has a very different answer and I believe that others would benefit from knowing the answer. (I don't know the answe... | How can I find the revision history of the file that was deleted and then resubmitted to SVN? | This is a follow on question to "How do I delete 1 file from a revision in SVN?" but because it probably has a very different answer and I believe that others would benefit from knowing the answer. (I don't know the answer yet.)
The previous question was answered and I discovered that it is not possible to remove a rev... | [
"What makes you think that it is not possible to remove a revision from Subversion? The solution given to your other question (svndumpfilter) does exactly that (see the parameters --drop-empty-revs and --renumber-revs)! And when the revision is gone, there's obviously no way to get at the revision history, because ... | [
3,
2,
2,
1
] | [] | [] | [
"svn"
] | stackoverflow_0000033836_svn.txt |
Q:
How do you handle versioning on a Web Application?
What are the strategies for versioning of a web application/ website?
I notice that here in the Beta there is an svn revision number in the footer and that's ideal for an application that uses svn over one repository. But what if you use externals or a different... | How do you handle versioning on a Web Application? | What are the strategies for versioning of a web application/ website?
I notice that here in the Beta there is an svn revision number in the footer and that's ideal for an application that uses svn over one repository. But what if you use externals or a different source control application that versions separate files... | [
"I think what you are looking for is something like this: How to auto-increment assembly version using a custom MSBuild task. It's a little old but I think it will work.\n",
"For my big apps I just use a incrementing version number id (1.0, 1.1, ...) that i store in a comment of the main file (usually index.php... | [
4,
2,
2,
0,
0
] | [] | [] | [
"asp.net",
"version_control",
"versioning"
] | stackoverflow_0000029802_asp.net_version_control_versioning.txt |
Q:
ASP.NET AJAX and PageRequestManagerParserErrorException
Has anyone run into this error message before when using a timer on an ASP.NET page to update a DataGrid every x seconds?
Searching google yielded this blog entry and many more but nothing that seems to apply to me yet.
The full text of the error message ... | ASP.NET AJAX and PageRequestManagerParserErrorException | Has anyone run into this error message before when using a timer on an ASP.NET page to update a DataGrid every x seconds?
Searching google yielded this blog entry and many more but nothing that seems to apply to me yet.
The full text of the error message below:
Sys.WebForms.PageRequestManagerParserErrorException: ... | [
"Many issues can cause that error. It's usually a Response.Write call, but anything that modifies the response can cause it. \nWe probably won't be able to help you unless you post some pertinent code-behind.\n",
"The RoleProvider sets a cookie to cache role information in a cookie. When the cookie resets duri... | [
3,
2,
1
] | [] | [] | [
"asp.net"
] | stackoverflow_0000027535_asp.net.txt |
Q:
Can I export translations of place names from freebase.com
So I've looked at this use of the freebase API and I was really impressed with the translations of the name that it found. IE Rome, Roma, Rom, Rzym, Rooma,로마, 罗马市. This is because I have a database of some 5000+ location names and I would very much like al... | Can I export translations of place names from freebase.com | So I've looked at this use of the freebase API and I was really impressed with the translations of the name that it found. IE Rome, Roma, Rom, Rzym, Rooma,로마, 罗马市. This is because I have a database of some 5000+ location names and I would very much like all French, German or Korean translations for these English names.... | [
"The link you posted uses mjt, a javascript framework designed for Freebase. \nThe Query they use.\n mjt.freebase.MqlRead([{\n limit: 100,\n id:qid,\n /* allow fuzzy matches in the value for more results... */\n /* 'q:name': {'value~=': qname, value:null, lang: '/lang/'+qlang}, */\n 'q:name': {v... | [
4,
4
] | [] | [] | [
"freebase",
"translation"
] | stackoverflow_0000033484_freebase_translation.txt |