text stringlengths 8 267k | meta dict |
|---|---|
Q: Creating 1K IDs, assigning a transactionID to all the rows with concurrency in mind
*
*A client is going to request 1K rows of IDs from the server.
*I have to make sure we have 1K ID's with clientID = -1, if not, I have to insert 1K new ID's into the table.
*I then have to link those 1K ID's with the clientID
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to Deploy a .Net application without using an MSI? I have a .Net program that I want to install on a terminal server. In the past I've created installer projects and generated an MSI. However, terminal servers require all users be bumped off before running an MSI and I want to avoid that. Is there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the proper format for an apache benchmark postfile? What's the proper format for an apache benchmark postfile?
A: nevermind I found the answer:
-p POST file
A file containing data that the program will
send to the Apache server in any HTTP POST
req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How can I use the Rails "find" method to perform an AND or an OR query? Let's assume I have a model called "product." Let's assume that product has three fields. These fields are 'name' (type string), 'cost' (type integer), and 'is_visible' (type bool).
1) How can I do a search query using the Rails "find" method ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ADO.NET: Adding DataRelation to a DataSet; which is parent and which is child? Consider an SQL Server table containing:
ID ParentID Text
=== ========= =============
1 (null) Product
2 (null) Applications
3 1 Background
4 1 Details
5 2 Mobile
i fill a SqlDataS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why do people hate SQL cursors so much? I can understand wanting to avoid having to use a cursor due to the overhead and inconvenience, but it looks like there's some serious cursor-phobia-mania going on where people are going to great lengths to avoid having to use one.
For example, one question asked how to do som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: Silverlight 2.0 - Saving to a text file I'd like to save some simple text data to a file from my Silverlight app - to a CSV file.
The user presses on a button, the code generates the contents of the file in memory (a string), then a prompt appears asking to either open the file or Save to disk, like through a normal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any free ASP.NET 3.5 App host? I want to host a test app in ASP.NET 3.5 but I can't find a decent free host anywhere!
I tried http://www.aspspider.com/ and after some days I still have a pending virtual directory creation.
Even if it has lots of banners with pub on it, it doesn't matter. I just want to try out some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Static EventHandler Memory Leaks in the Framework I'm in the process of troubleshooting some memory problems we're having in our .NET WinForms application. I'm using SciTech's .NET Memory Profiler as well as dotTrace and they all seem to be indicting root allocations by static event handlers in the .NET Framework c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between HAVING and WHERE in SQL? What is the difference between HAVING and WHERE in an SQL SELECT statement?
EDIT: I have marked Steven's answer as the correct one as it contained the key bit of information on the link:
When GROUP BY is not used, HAVING behaves like a WHERE clause
The situat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "284"
} |
Q: When To Change a GUID on a Type Library I know that when you add/change/remove methods in a COM interface you're supposed to change the interface/coclass GUID but what about type libraries. When should you change the type library's GUID? Do you change it if a GUID inside the type library has changed? Or should you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is a .NET proxy object in the Inversion of Control / Aspect-Oriented sense? What is a proxy object in the Inversion of Control / Aspect-Oriented sense?
Any good articles on what a proxy object is ?
Why you would want to use one ?
And how to write one in C# ?
A: In general, a Proxy object is an object (instan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: jQuery Zebra selector I have a CSS class called grid which I place on my tables. I want to Zebra strip my even rows so I use the following jQuery code
$(".grid tr:nth-child(even)").addClass("even");
This basically says "Apply the css class even to any tr tag which has a parent (at any level) with a class of grid." ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Encrypting/Hashing plain text passwords in database I've inherited a web app that I've just discovered stores over 300,000 usernames/passwords in plain text in a SQL Server database. I realize that this is a Very Bad Thing™.
Knowing that I'll have to update the login and password update processes to encrypt/decrypt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: frameset - swap columns with rows using javascript I have a frameset with it's cols attribute set to "50%,50%" at the moment. I have a toggleView method which is called after a click on an element.
What I aim to do is to change frameset from displaying cols to rows, again divided 50/50.
I have attempted to perform a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Correct way to Handle Exceptions in UserControl I'm build an UserControl and I'm not sure how to handle exceptions, the Control itself is not very complicated, the User chose an image from disk so they can authorize it, I don't know exactly how the control will be used so if I use a MessageBox I might block the appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I profile template performance in Template::Toolkit? What's the best method for benchmarking the performance of my various templates when using Template::Toolkit?
I want something that will break down how much cpu/system time is spent processing each block or template file, exclusive of the time spent proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do you do Cygwin passwordless rlogin or rsh to Solaris 5.7 I am trying to login in to my works Solaris box from cygwin on windows.
SSH is not supported. I have tried different combination in the .rhosts with no luck
I do not have root privileges.
A: I found the answer. When I put in the password the way it perc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to test a remoting connection (check state) I have an object created in a host application and can access it remotely using remoting, is there any way I can test the connection to ensure it is still "alive"? Maybe an event I can use that fires if the remoting connection gets disconnected, or some property that c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How could you implement something like Excel 2007's databars in HTML/CSS/JS? What I'd like to do is produce an HTML/CSS/JS version of the following. The gridlines and other aspects are not important. It's more of a question how to do the background databars.
(source: tech-recipes.com)
A: Make the bars as backgr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to programmatically sense the iPhone mute switch? I can't seem to find in the SDK how to programatically sense the mute button/switch on the iPhone. When my app plays background music, it responds properly to the volume button without me having any code to follow that but, when I use the mute switch, it just ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Are style-enforcement tools useful? A recent question about StyleCop alerted me to the use of tools to enforce coding style. I would feel very annoyed if I were required to run one of these tools while I was developing. Do people really find them useful? Why or why not?
Everyone that has answered so far has indicate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Anyone know of a free date and *time* ASP.NET custom control Every time I have to build a form with a DateTime field I try to find a decent free custom control - I always fail.
I cannot figure out why it isn't built in the .NET but let's forget about for a minute and concentrate on my question :D
Anyone got one?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Oracle, how can I detect the date on which daylight savings time begins / ends? Is there a way in Oracle to select the date on which daylight savings will switch over for my locale?
Something vaguely equivalent to this would be nice:
SELECT CHANGEOVER_DATE
FROM SOME_SYSTEM_TABLE
WHERE DATE_TYPE = 'DAYLIGHT_SAVING... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the optimal amount of data for a table? How much data should be in a table so that reading is optimal? Assuming that I have 3 fields varchar(25). This is in MySQL.
A: I would suggest that you consider the following in optimizing your database design:
*
*Consider what you want to accomplish with the datab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Crystal Reports problem I'm having problem in the following line:
rd.PrintOptions.PaperSize = PaperSize.PaperFanfoldStdGerman;
it throws an exception saying HRESULT: 0x8002000B (DISP_E_BADINDEX))
if I skip this line, the same error eccurs here:
rd.PrintOptions.ApplyPageMargins(config)
Did anyone have this proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Pass MySQL null parameter on DbCommand in Enterprise Library I'm trying to pass a null value for the first parameter in the code below, but MySQL complains that
Incorrect number of arguments for PROCEDURE myProc; expected 2, got 1
When I manually call the procedure with the first argument as null, it works... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make 4 columns across in ASP.NET MVC - How to make my current code suck less I have the following code, I'm trying to get a table with 4 columns across. If I run out of columns, create a new row and make 4 more coumns. rinse. lather. repeat.
<tbody>
<%
int i = 0;
foreach (ItmXtnMultimedia multimedia in ViewDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: t-sql decimal assignment changes value Why does the select statement below return two different values ?
declare @tempDec decimal
set @tempDec = 1.0 / (1.0 + 1.0)
select @tempDec, 1.0 / (1.0 + 1.0)
A: That's fine for literals like 1.0, but if you're pulling the data from table columns, you need to cast/convert the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why does this happen (see image)? Why does the following have the effect it does - it prints a terminal full of random characters and then exits leaving a command prompt that produces garbage when you type in it. (I tried it because I thought it would produce a seg fault).
#include <stdio.h>
int main(){
char* ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Insert into multiple database tables using Linq, ASP.NET MVC I have a rather simple scenario where I have two tables in which I want to add data. They are managed with primary key/foreign key. I want to add new data into TABLE A and then retrieve the Id and insert into TABLE B.
I can certainly do it with a stored p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Best way to suspend control events in Windows Forms? This seems like a very simple and a very common problem. The simplest example I can think of is this:
The form has five checkboxes with a "check all/check none" checkbox above them. When a user selects checking all checkboxes, I toggle the states of the "children"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is it safe to use MS SQL's WITH (NOLOCK) option for select statements and insert statements if Is it safe to use MS SQL's WITH (NOLOCK) option for select statements and insert statements if you never modify a row, but only insert or delete rows?
I..e you never do an UPDATE to any of the rows.
A: If you're asking wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why should I care about hashing passwords anyway? If a hacker has access to the hashes in my DB, he has access to the rest of the information in the DB anyways. So why would he bother trying to decrypt the passwords? Should I be storing the passwords on a different server to the rest of my data? That is the only sce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Find out sql server hardware or speed test I use an sql server regularly and have recently been getting frustrated by the performance. It would be difficult for me to get direct access to find out the hardware so:
Is there a direct way in management studio to assess performance or find out the exact hardware.
Altern... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: query join question I have a right outer join, that almost does what I want...
SELECT
users_usr.firstname_usr,
users_usr.lastname_usr,
credit_acc.given_credit_acc,
users_usr.created_usr,
users_usr.sitenum_usr,
users_usr.original_aff_usr,
users_usr.id_usr
FROM
credit_acc
right Outer Join users_usr ON credit_acc.uid_u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Response.Write DataTable Data to Text File, ASP.net Hangs Very odd problem as this is working perfectly on our old Classic ASP site. We are basically querying the database and exporting around 2200 lines of text to a Text File through Response.Write to be output to a dialog box and allows the user to save the file.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java - C-Like Fork? Is it possible to do a "C like" fork in java, using an new independent jvm process ?
How?
A: The Application Isolation API (JSR 121) introduces Isolate which addresses this use case.
A: This answer is probably a little late but:
http://akuma.kohsuke.org/
seems to be exactly what your looking f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: How can I check if a method is static using reflection? I want to discover at run-time ONLY the static Methods of a class, how can I do this?
Or, how to differentiate between static and non-static methods.
A: To flesh out the previous (correct) answer, here is a full code snippet which does what you want (exception... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: Looking for *small*, open source, c# project with extensive Unit Testing (I asked this question but did not receive much response. It was recommended that I ask the same question with regards to C#. )
I am a VB.NET developer with little C# experience (yes, I know I need to write more in C#), looking for small open s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: OpenGL rotating a camera around a point In OpenGL I'm trying to rotate a camera around a point, with camera being distance r from the point and facing the point when it rotates. In other words, I want the camera to move along the circumference of a circle at a radius r from the center, with the camera facing the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How do I unregister all handlers for a form event? I have 2 handlers using the same form. How do I remove the handlers before adding the new one (C#)?
A: If you know what those handlers are, just remove them in the same way that you subscribed to them, except with -= instead of +=.
If you don't know what the handle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: An easy way to set the active tab using controllers and a usercontrol in ASP.NET MVC? How do I create tabbed navigation with the "Current" tab highlighted in the UI?
A: One method I am using on a current project - this also helps for other page-specific CSS needs.
First, an HTML helper that returns a string that re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Regular expression to validate hex string I'm using this simple regular expression to validate a hex string:
^[A-Fa-f0-9]{16}$
As you can see, I'm using a quantifier to validate that the string is 16 characters long. I was wondering if I can use another quantifier in the same regex to validate the string length to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Raise LostFocus event on a control manually I have a bunch of controls (textbox and combobox) on a form with toolstripcontainer and toolstripbuttons for save, cancel etc for edits. We are using .Net 3.5 SP1
There is bunch of logic written in control.lostfocus and control.leave events. These events are not being ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Thoughts on making a webapp fullscreen in a pop-up At my company most inventory tracking is done via an ASP.NET web application. The application is poorly conceived, poorly designed, poorly implemented, and somewhat of a hassle for a user to work with. These are things that are my opinion though and management has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Executable reading itself I need to read data added to the end of an executable from within that executable .
On win32 I have a problem that I cannot open the .exe for reading. I have tried CreateFile and std::ifstream.
Is there a way of specifying non-exclusive read access to a file that wasn't initially opened wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IIS 6 Compress static files when using Wildcard application mapping I'm using IIS 6 with EPiserver CMS which requires all requests to go through aspnet_isapi.dll.
I want to gzip all my static files (js, css mainly). Trying to setup compression in IIS didn't work.
Is there a setting in EPiServer that will allow me to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best Practices for uploading files to database I am looking for any best practices or ideas on how you would create an interface with a DB from a .NET web application to upload data from Excel files
Should I use a mechanism that allows all the records to be loaded and flags the errors or should I use a mechanism tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I remove carriage returns with Ruby? I thought this code would work, but the regular expression doesn't ever match the \r\n. I have viewed the data I am reading in a hex editor and verified there really is a hex D and hex A pattern in the file.
I have also tried the regular expressions /\xD\xA/m and /\x0D\x0A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: OOP: Designing a menu system I am currently trying to create a menu system for a game and cannot arrive at any really sound way to do it. There are several menu screens, each of them non-trivial, so that I would like to keep these as separate classes. The main problem I am having is passing control between these men... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using mySql data in ASP.NET application I am a newcomer to ASP, and would like to experiment with it by writing a website for a club at my school using .net 2008 and the mySql database available from the school's apache server. What is the best way to set this up, since I see a lot of options to connect the web app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I pre-cache images for quick viewing with javascript? I have a webpage where I want the user to see a new image when they put thier mouse over a certain part of the image. I used an image map.
<img src="pic.jpg" usemap="#picmap" />
<map id="picmap" name="picmap"><area shape="rect" coords ="10,20,30,40"
onMou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Python's ConfigParser unique keys per section I read the part of the docs and saw that the ConfigParser returns a list of key/value pairs for the options within a section. I figured that keys did not need to be unique within a section, otherwise the parser would just return a mapping. I designed my config file schem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Oracle Rollback Segments and ADO.NET I am using an ancient version of Oracle (8.something) and my ADO.NET application needs to do some fairly large transactions. Large enough to not fin in our small rollback segments. Now we have a large rollback segment as well but it is not used by default.
Oracle has a command to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the fastest way to Parse a line in Delphi? I have a huge file that I must parse line by line. Speed is of the essence.
Example of a line:
Token-1 Here-is-the-Next-Token Last-Token-on-Line
^ ^
Current Position
Position after GetToken
G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: multivalued attributes in databases How should a relational database be designed to handle multi-valued attributes ?
edit: To elaborate:
There are two ways I could think of for doing this -
*
*Trying something like putting comma separated values in the field, which appears a bit clumsy.
*Create another table fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What makes IE 6 & 7 report 'Operation Aborted'? Recently an application I wrote started not working on Internet Explorer. There has been no change to the underlying (ruby on rails) code.
In IE 6 or IE 7, I can make one request (HTTP Post) to the app, but when I try to make a 2nd request, I get an "Operation Aborted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Submit changes of only one entity If I select many rows from one table with one instance of DataContext.
And then do I some changes in properties in the rows, can I submit changes to database only for one of the selected rows?
A: Yes you can.
First you need to isolate the entities you want to undo the changes.
Then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java <-> Javascript for non-Applets? I'm working with an existing Java codebase which, while it can be invoked from an HTML page using an <APPLET> tag, does not actually subclass the Applet class. The same jars are also used in a non-browser context, so they did not subclass Applet.
Now I need to communicate some va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I charge a recurring monthly subscription fee for my website? My business is setting up online billing using PayPal and Google checkout. I'm looking for the best way to charge a recurring monthly service fee for my website. My site is subscription based and I charge X amount of dollars per month. I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Dictonaries and Lambda inside a class? How can i do something like this:
class Foo():
do_stuff = {
"A" : lambda x: self.do_A(x),
"B" : lambda x: self.do_B(x)
}
def __init__(self):
print "hi"
def run(self):
muh = ['A', 'B', 'A']
for each in muh:
self.do_stuff[eac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use libFLAC to read FLAC tags in c# Is there an .net c# wrapper for the libFLAC library? If not, how can I read FLAC tags using the libFLAC in a .net framework c# application? If neither, are there other opensource libraries to read flac tags in c#?
Thanks!
A: There is an article on CodeProject that could b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to use RegEx in ASP/VBScript? I have an ASP website which I need to add a RegEx match to. Is there any support for RegEx in ASP/VBScript?
Thank you,
Brett
A: Yes, as of VBScript 5 http://authors.aspalliance.com/brettb/VBScriptRegularExpressions.asp
http://www.regular-expressions.info/vbscript.html
| {
"language": "en",
"url": "https://stackoverflow.com/questions/287830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Easy HTML underline I am creating a form in HTML that will be printed, with fields that need to be written in by the recipient. Basically what I want is a single line that stretches from the end of the field label to the side of the page. Here's how I'm doing it right now:
<table width="100%">
<tr>
<td w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I integrate a virtual machine into my automated unit tests in Visual Studio? I've got some legacy software that I'd like to involve in an automated unit test (for testing network protocol compatibility) and because this software is old and runs in an outdated environment I'd like to encapsulate it in a virtu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to define structure in a tag-based organization? [former title: Is there a way to force a relationship structure on a tag-based organizational methodology?]
I have some entities, and they have a series of attributes. Some of the attributes affect what other attributes the entity can have, many of the attributes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is StringBuilder.Replace() more efficient than String.Replace? If you have to use String.Replace() to replace test 50 times, you essentially have to create a new string 50 times. Does StringBuilder.Replace() do this more efficiently? E.g., should I use a StringBuilder if I'm going to be replacing a lot of text, ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: In Python, how can I efficiently manage references between script files? I have a fair number of Python scripts that contain reusable code that are used and referenced by other Python scripts. However, these scripts tend to be scattered across different directories and I find it to be somewhat tedious to have to inc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Running a Windows Batch Script to Startup Multiple Files I'm trying to replace the programs that run from my startup directory with a batch script. The batch script will simply warn me that the programs are going to run and I can either continue running the script or stop it.
Here's the script as I have written s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a way to programatically "reboot" a .net assembly? Hypothetical situation: let's say I have a 3rd party .net assembly being used in the ASP.Net web system that I'm working on that just kinda crashes every now and then. When it does so, all calls to it throw exceptions until the system is rebooted. This is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing around XML Object vs. Populating a struct Actionscript 3.0 has decent native XML support so I'm not surprised to see a lot of people loading an external XML and then passing the object around to various modules/sections of code.
However my instinct is to create a class (i.e. with statically named/typed field... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a Subversion API that can be used to program against in .NET Is there an API to access Subversion from C#?
A: SharpSvn is a new Subversion wrapper library for .Net/C# that hides all interopand memory management for you and includes a staticly compiled Subversion library for easy integration. It is probably... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How do I print colored text to the terminal? How do I output colored text to the terminal in Python?
A: Rich is a relatively new Python library for working with color in the terminal.
There are a few ways of working with color in Rich. The quickest way to get started would be the rich print method which renders a B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3017"
} |
Q: Testing objects for ancestor/descendent relationship in JavaScript or Jquery I'm trying to come up with a reusable JS or jQuery function that would allow me to test if one object is a DOM descendant of another.
I've seen a model of testing for
$b.parents('nodename').length>0
Which is fantastic when you only need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: The Web Server Could Not Find the Requested Resource I have a .NET 3.5 Web application on VS 2008 SP1 running on Vista Ultimate 32 SP1. I created an Application under the Default Web Site. So the url to the app is "http://localhost/mysite". The application folder is pointing to the solution folder and it is outside ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: IOC for a Console Application? Can anyone think of a good solution for getting IOC into a console application?
At the moment we are just using a static class with the following method:
public static T Resolve<T>()
{
return dependencyResolver.Resolve<T>();
}
I would like the experience to be seamless but cannot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How can I guarantee that my enums definition doesn't change in JavaScript? Would the following make the objects fulfil all characteristics that enums have in JavaScript? Something like:
my.namespace.ColorEnum = {
RED : 0,
GREEN : 1,
BLUE : 2
}
// later on
if(currentColor == my.namespace.ColorEnum.RED) {
//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2374"
} |
Q: Best way to transfer data between smart phone and a website? I want to transfer data between a smart phone app and a website. What are the conventional and not-so-conventional ways of doing it?
Here's what I have thought of so far:
*
*Simple HTTP GET/POST with data being represented as JSON array string, variati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Decoding chunked HTTP with Actionscript I have successfully connected to an HTTP server with ActionScript 3 over sockets. The only problem is, the server is sending chunked HTTP. Is there a generic function in any other language I can look at that clearly shows how to decode the chunking? I'm pretty sure there are n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I overload the square-bracket operator in C#? DataGridView, for example, lets you do this:
DataGridView dgv = ...;
DataGridViewCell cell = dgv[1,5];
but for the life of me I can't find the documentation on the index/square-bracket operator. What do they call it? Where is it implemented? Can it throw? How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "270"
} |
Q: How to improve Visual Studio 2008 Website Compilation Perfomance I am having severe performance issues when compiling a moderately large ASP.Net website in Visual Studio 2008 (targeting .Net 3.5). I know there are some tips & registry hacks for improving compilation performance in VS 2005, are there any for VS 2008?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you add a NOT NULL Column to a large table in SQL Server? To add a NOT NULL Column to a table with many records, a DEFAULT constraint needs to be applied. This constraint causes the entire ALTER TABLE command to take a long time to run if the table is very large. This is because:
Assumptions:
*
*The DEFAUL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: How do I look over a javascript array without using indexes in YUI? I know that jQuery and prototype have a $.each() function for iterating over each element in an array. Does YUI offer any help with this?
A: YAHOO.util.Dom has the batch function which has the following signature:
Any | Array batch( el , method , ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Validating data of a model from another controller in Rails I have two tables:
Client(id,name,...)
Purchase(id,item,date,client_id,...)
They have their respective Model, with their validations. What I need is to create a new client with a new purchase, all into the create method of Client controller. Something like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL inline if statement type question I'd like to make an (MS)SQL query that returns something like this:
Col1 Col2 Col3
---- --------------------- ------
AAA 18.92 18.92
BBB 20.00 40.00
AAA 30.84 30.84
BBB 06.00 12.00
AAA 30.84 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Specifying multiple parameters of the same name using HTTPService Ruby on Rails controllers will automatically convert parameters to an array if they have a specific format, like so:
http://foo.com?x[]=1&x[]=5&x[]=bar
This would get converted into the following array:
['1','5','bar']
Is there any way I can do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Match everything inbetween two tags with Regular Expressions? How can I match (PCRE) everything inbetween two tags?
I tried something like this:
<!--\s*LoginStart\s*-->(.*)<!--\s*LoginEnd\s*-->
But it didn't work out too well for me..
I'm kind of new to regular expressions, so I was hoping if someone would be kind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How big can a Sourcesafe DB be before "problems" arise? We use SourceSafe 6.0d and have a DB that is about 1.6GB. We haven't had any problems yet, and there is no plan to change source control programs right now, but how big can the SourceSafe database be before it becomes an issue?
Thanks
A: I've had VSS problems... | {
"language": "en",
"url": "https://stackoverflow.com/questions/287995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Oracle SQL Optimization: SQL Query taking very long time SELECT DISTINCT
'LRS-TECH 1' || rpad(code,7) || rpad('APPTYPE',30) ||
rpad(licensing_no,30) || rpad(' ',300) AS RECORD
FROM APPS
WHERE L_code = '1000' AND licensing_no IS NOT NULL
This seems to be the primary culprit in why I cannot export these ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to make a newsletter slideshow kiosk for the office? So, I've been tasked with making a kiosk for the office for showing statistics about our SCRUM progress, build server status, rentability and so forth. It should ideally run a slideshow with bunch of different pages, some of them showing text, some showin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I use Excel for project management? Joel often talks about using MS Excel for lightweight project management, but I'm curious about actual implementations of this idea. I've seen some templates that seem to clone MS Project via macros, which would be overkill for a lightweight project. Anyone have any useful... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How does one - without inheritance - override a class method and call the original from within the new method? I found one source which successfully overrode Time.strftime like this:
class Time
alias :old_strftime :strftime
def strftime
#do something
old_strftime
end
end
The trouble is, strftime is an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is there anything like a functional model? In Object Oriented Paradigm, I would create an object/conceptual model before I start implementing it using OO language.
Is there anything parallel to object model in functional programming. Is it called functional model? or we create the same conceptual model in both the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: randomness algorithm I need some help regarding algorithm for randomness. So Problem is.
There are 50 events going to happen in 8 hours duration. Events can happen at random times.
Now it means in each second there is a chance of event happening is 50/(8*60*60)= .001736.
How can I do this with random generation algo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can a NetStream publisher in Flash pause their stream? I'm working on a webcam video streaming application utilizing Flash 8 (AS2) and Flash Media Server 3. Streaming the video live is fairly trivial, but I want to give the publisher the ability to pause their stream, effectively giving the people watching a snapsh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to safely escape a string from C++ I'm writing a simple program to browse the local network and pass on filenames to mplayer using "system". However, sometimes filenames contain spaces or quotes.
Obviously I could write my own function to escape those, but I'm not sure exactly what characters do or do not need e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Tapestry 4: Asset Cache Control? I use Tapestry 4, and whenever we push a release that changes any assets (image, style sheet, JS library), we get problems because users still have the old version of the asset in their browser cache. I'd like to set up some easy way to allow caching, but force a new asset download w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I create icons for menu items in Android's ListView? I am using a ListView to display the main screen of my application.
The main screen is essentially a menu to get into the different sections of application. Currently, I have the ListView whose contents are added programmatically in the onCreate method. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Getting the version of a COM object I am accessing a .NET COM object from C++. I want to know the version information about this COM object. When I open the TLB in OLEVIEW.exe I can see the version information associated with the coclass. How can I access this information from C++? This is the information I get:
[
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.