text stringlengths 8 267k | meta dict |
|---|---|
Q: How to remove minimize and maximize buttons from a resizable window? WPF doesn't provide the ability to have a window that allows resize but doesn't have maximize or minimize buttons. I'd like to able to make such a window so I can have resizable dialog boxes.
I'm aware the solution will mean using pinvoke but I'm n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: Why decimal in c# is different from other c# types? I was told that decimal is implemented as user defined type and other c# types like int have specific opcodes devoted to them. What's the reasoning behind this?
A:
"What's the reasoning behind this?"
Decimal math is handled in software versus hardware. Currently... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you manage and organize your stored procedures? How do you organize your stored procedures so you can easily find them and keep track of their dependencies?
A: I tend to name them according to a convention. Typically {TableName}_{operation}{extra} where the extra part is optional.
For example: Product_Get, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why and When to use LINQ? i have never used LINQ in any of my projects , i have always used ado.net /OR tool in my Business App projects , so i want to know
What are the benefits of LINQ ? why and when anybody should use LINQ ?
A: This is a fair question but has been asked many times already. See these earlier que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I add very large numbers in C++? How can I add very large numbers in C++?
A: consider a "bignum" library like: http://gmplib.org/ or http://ttmath.slimaczek.pl/ttmath. take a look at a simple bignum class: http://www.circlemud.org/~jelson/560/
A: Do a Google on "Bigint C++" This will provide you with a lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to determine that a UIViewController has been loaded, and has a valid view? When the view property of a UIViewController is accessed, it first checks to see if it's got an existing view, and returns that. If not, it loads its nib or calls -loadView.
When a controller receives a -didReceiveMemoryWarning mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Which IDE are CLISP Programmers using? I noticed how SLIME (lisp development package for Emacs) does not come with a frame-source-location function for CLISP, so you can't automagically jump to a source location when inside the debugger. Given that, I figured CLISP users must be using some other IDE (though I guess ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I access database via virtual folder which points at a remote share I'm having a problem getting access to a database which lives on a remote server.
I have a ASP.NET 2.0 webpage that is trying to connect to a database.
The database is accessed via a virtual folder (which I set up in IIS).
The virtual fold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Please confirm: Is Windows Workflow Foundation a good horse to be backing right now? We are in the process of selecting a workflow solution for a company that uses Microsoft products end to end. Given the news on WF4, in that it seems to be essentially a rewrite of previous versions, is it a wise move to back the cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: error-page directive in web.xml does not display UTF8 properly I have an application web.xml with the following entry:
<error-page>
<error-code>404</error-code>
<location>/system_files/error/p_notfound.jsp</location>
</error-page>
However, when this page is displayed, Japanese characters are garbled.
The s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should new programmers learn ASP first or ASP.Net? My colleague here argues that new programmers must learn ASP first, before they learn ASP.Net.
I seem to agree with him as most new programmers who start with ASP.Net do not understand web get, post and state management :(
Which is best to learn web programming Cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: IBM Websphere Studio Application Developer Installation Error I am getting the following error while installing the IBMWebsphere Studio Application Developer 5.1.2 in WinXP Pro.
" The installation of WebSphere Studio cannot continue because the following required parts are missing from the electronic images. Downloa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Edit a file using javascript I need to edit an xml file using javascript. Now I'm involved in a project of online testing.
The question.xml file is already in the project folder.
In that i want to add or edit the questions(only using javascript). I'm able to bring the particular content through ajax, but I am not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java generics type erasure: when and what happens? I read about Java's type erasure on Oracle's website.
When does type erasure occur? At compile time or runtime? When the class is loaded? When the class is instantiated?
A lot of sites (including the official tutorial mentioned above) say type erasure occurs at comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "277"
} |
Q: Param name and value (independantly) as part of Rails Route DocumentsController#common_query can handle multiple different request styles.
i.e. all docs in batch 4 or all docs tagged "happy"
I want a single route to make em pretty, so:
/documents/common_query?batch=4
/documents/common_query?tag=happy
become:
/docume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the equivalent of Java's AbstractMap in C#? I need to create an object which exposes an IDictionary<K,V> interface, but I don't want to fill in the entire interface implemntation.
It would be nice to have the equivalent of Java's AbstractDictionary, which leaves you very little to impelment a complete dictio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best approach for applying styles to massive amounts of items? In my LOB apps I usually wind up with containers that contain a bunch of different textblocks and textboxes for users to enter data. Normally I need to apply a certain margin or vertical/horizontal alignment to each control.
Let's say I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to create WHERE IN clause with Zend_Db_Select So I am trying to accomplish something like this:
SELECT * FROM table WHERE status_id IN (1,3,4);
using Zend_Db_Select... can't find how to do it :( Is it at all possible?
A: apparently it is super simple... stupid me:
$select->where('status_id IN(1,3,4)');
:(
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: When is the difference between quotRem and divMod useful? From the haskell report:
The quot, rem, div, and mod class
methods satisfy these laws if y is
non-zero:
(x `quot` y)*y + (x `rem` y) == x
(x `div` y)*y + (x `mod` y) == x
quot is integer division truncated
toward zero, while the result of div
is tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Provide version to only the Prerequisites in clickonce I am deploying an application, where I need to add two prerequisites. My problme is that I need someway to provide version to the prerequisites so that in the future may be I could only update the prerequisites without updating the entire application.
Thank You
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to get GIF Transparency color in vc++ 6.0 and vc++ 2005 how to get GIF Transparency color in vc++ 6.0 and vc++ 2005 ?
A: See the GIF specification. GIFs have a palette of up to 256 possible colors. The palette index of the background color can be found at offset 11 from the beginning of the file, and consists... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SVN merge problem with "svn:mergeinfo" property I have one big problem with merging - it falls on start with strange message: "Server sent unexpected return value (401 Authorization Required) in responce to PROPFIND request for '/svn/autogroup_projects/.../Data.sln'".
Really that folder is not exists in the branch, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I change the HEAD to a previous revision We've got a situation where someone messed up a Commit to our SVN server. A lot of files were deleted, etc.
Question: What is the technique for making the previous (to the bad Commit) revision the HEAD revision? I've seen discussion here on SO for doing this for 1 fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Transferring sensitive information from javascript to rails I am currently writing a Firefox extension that will sync your tab sessions across different instances of the browser. I am using a Ruby on Rails web application to sync the different URLS for each user.
The Firefox extension is using Javascript to parse o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Possible to duplicate current java stack using JNI I am trying to record the arguments passed to a method before it is called using bytecode instrumentation.
Currently while instrumenting using java code I have to first pop all the args into a locals, then push them again twice (once for my method which will record... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Split SQL statements blocks using Regular expression in C# Can we write an regular expression such that it splits the stored procedure in multiple SQL statements.
It should split update, delete select etc statements.
Edit: my attempt to solve the problem http://tsqlparsergdr.codeplex.com/
A: If you have the gramma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Looking for an example of using Lucene.net with ASP.NET How do you implement the search capabilities of Lucene.net in asp.net? If possible, please include links or example code.
A: Be sure to check out LINQ to Lucene. It's not feature complete, but it does make getting started a lot easier:
http://www.codeplex.com/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Better languages than SQL for stored procedures I'm getting increasingly frustrated with the limitations and verbosity required to actually commit some business logic to stored procedures, using languages such as Transact-SQL or PL/SQL. I would love to convert some current databases to Oracle and take advantage of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Best way to represt n/ depth tree for use in PHP (MySQL / XML / ?) I am currently in the process of rewriting an application whereby teachers can plan curriculum online.
The application guides teachers through a process of creating a unit of work for their students. The tool is currently used in three states but we ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Would ManualResetEvent/AutoResetEvent use workerthread or IO-thread in asp.net the web layer is coded in asp.net with pages marked as async. Yes, the recommended way to code for aync is using the RegisterAsyncTask
I have a problem now - there are a few pages that have used AutoResetEvent and ManualResetEvent for ay... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use querystring as it look like below Here is my code
var SearchUser = (from u in db.Users
join l in db.LoggedInUsers on u.UserID equals l.UserID
where u.Username==txtSearch.Text
select u).SingleOrDefault();
litUsers.Text = "<div style='background-color:#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does RegularExpressionValidator use other flavor than Regex? I want to do preliminary check if entered string looks like Vehicle Identification Number (VIN). I know what it consists of 17 letters and digits, but letters I, O and Q are not allowed inside VIN, so I use this regular expression:
^[0-9A-Z-[IOQ]]{17}$
N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Asynchronous ReadDirectoryChangesW()? I want to monitor the modifications in a specified directory, and retrieve the exact change information. So I've decided to use the ReadDirectoryChangesW() function. But I want to use it asynchronously, which means I don't want my worker thread to be blocked if there are no chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: linq2sql disadvantages I am hearing a lot of rumours that Linq2Sql is not going to be supported any more in the next version of .net. I like Linq2Sql a lot and find it very easy / lightweight to work with. I can understand some of the problems people have had with it (ppl used to nhibernate...) but used correctly I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# VS 2005: How to get a class's public member list during the runtime? I'm trying to get a class memeber variable list at run time. I know this probably using typeof and reflections. but can't find an example. Please someone shed light for me.
Here is pseudo code example:
Class Test01
{
public string str01;
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reading the Superblock I know that in Unix (specifically, Mac OS X) the superblock stores information about the layout of data on the disk, including the disk addresses at which the inodes begin and end. I want to scan the list of inodes in my program to look for deleted files. How can I find the disk address at w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I add more information to MS Dynamics 2009 AX's alert messages with X++? Does anyone have some sample code or can direct me to which class I can modify to add more information to the alert messages in Dynamics AX (DAX). I want to for instance add a vendor number and userid when a name of a vendor has been ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: disabling the Validation in struts2 and use my own customized validation I'm developing web project in struts2 and I want validation in my own customized validation by disabling the struts2 validation, because if one field is being sent back it will check all fields but I want to check only at the time of submit.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Needed: Tomcat + Axis2 + JAX-WS guide for dummies We are working with Tomcat + Axis2 + POJO for web service implementation, and we encountered some issues with POJO and Axis2 that are a showstopper for us.
It seems that Axis2 and POJO implementation of SOAP parsing ignores the names of the XML elements and just assi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: List element rendering fault in IE? Has anyone seen this before - and can anything be done about it? This link is to a PNG screen shot of a list display in IE - if you look closely, the line height of each element is getting a little bigger for each successive item. The web site look is entirely controlled by CSS.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can you get script name in BSD process accounting file? I'm trying to write a program to process the BSD-style process accounting file under Linux (/var/account/pacct).
When we start a script with either ./script_name or bash script_name, the process accounting record actually gets written out the the command ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find composite location on screen I am implementing a on screen keyboard in Java for SWT and AWT.
One important thing is to move the keyboard to a position where the selected text field can show and is not lying behind the on screen keyboard.
For AWT i can detect the position of the current selected component with
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a built in Javascript function to turn the text string of a month into the numerical equivalent? Is there a built in Javascript function to turn the text string of a month into the numerical equivalent?
Ex.
I have the name of the month "December" and I want a function to return "12".
A: You can append so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best version of Emacs I'd like to enter the mysteries of Emacs - but gently! Excuse the lack of machismo, but is there a Emacs-clone for Windows which supports mouse-and-menu usage to get me started -- so I can delay learning ALT-META_CTRL-C-C for a while.
A: After using XEmacs on both Windows and Unix for a long ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to access a 64-bit dll from a 32-bit application? I have a Delphi application similar to Taskbar Shuffle that includes a hook dll.
EDIT: This hook DLL communicates with the main app by sending windows messages.
I want to add support to XP and Vista x64 and my initial idea was to convert the dll to 64-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I strptime from a pattern like this? I need to use a datetime.strptime on the text which looks like follows.
"Some Random text of undetermined length Jan 28, 1986"
how do i do this?
A: You may find this question useful. I'll give the answer I gave there, which is to use the dateutil module. This accepts a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to save file as UTF-8 format We need to send email which contains Pound (currency) symbols in ColdFusion. Before sending email, we are dumping the data into a html file for preview.
*
*How to send a email with utf-8 encoding in ColdFusion
*How to save a file with utf-8 encoding in ColdFusion
A: E-Mails a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SmartAssembly memory management Just came across this website. Feature 9 is memory management and they claim that their product "automatically releas[es] memory [that is] no longer needed."
Is this a marketing ploy, or do you think they have some trick up their sleeves? Are they just making a claim based on what the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the perfect Regex for doing wiki formatting (.Net)? H guys, I've got this wiki formatting algorithm which I am using at Stacked to create HTML out of "wiki syntax" and I am not really sure if the current one I am using is good enough, optimal or contains bugs since I am not really a "Regex Guru". Here is wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Disadvantages of using void* pointers in C There are many drawbacks to using void * in C (memory related, type related, efficiency wise ...). In spite of them we use them a lot for the flexibility they provide.
List the disadvantages/drawbacks using void * (and preferred solution in C - if possible).
EDIT:
please go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling a function from the main thread and making it working in parallel with a function in the main thread (part 2) thnx for all your replays ..
i tried your options and i want to ask if that was right and is are the 2 threads working in paralel or not..
and here is my code :
// in the Form.Load()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to bind a key to sigkill in bash? I'm developing my application (on Linux) and sadly it sometimes hangs. I can use Ctrl+C to send sigint, but my program is ignoring sigint because it's too far gone. So I have to do the process-killing-dance:
Ctrl+Z
$ ps aux | grep process_name
$ kill -9 pid
Is there a way to co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Representing a year with RoR? Suppose you are implementing a publication database and creating migrations to represent different publications. Each publication has a "year" associated with it.
t.column :year, ???
Would this year be best represented as an integer, date, or datetime?
A: I suggest using integer. Both... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Unable to Generate an Excel in an Atlas Update Panel I am unable to generate an excel in an Atlas Update Panel. (Since a response cannot be ended/written [XML] in the update panel) I don't want to use asp:updatepanel .. Is there any other way?
Any correct answer will be highly appreciated...
Thanks in advance
A: I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using hash functions for file storage? A common technique for storing a lot of files/blobs in a filesystem is to use a hash function to determine the filepath; eg hash(identifier) -> "o238455789" -> o23/8455/789
(there is often a hash-collision strategy too)
Does this technique have a name (is it a 'pattern'?) so th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Retrieve the uniqueidentifier key value for a record in context of SQL Server 2005, I have a table for which the primary key is a uniqueidentifier (GUID), with a default value generated by the newid() function. I want to write a stored procedure that inserts a new record into the table. How do I get the record's PK ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Accessing internal property out of the assembly scope I have class with internal property:
internal virtual StateEnum EnrolmentState
{
get { ..getter logic }
set { ..setter logic }
}
However I want to be able to access to this property outside of the assembly so I created method that simply returns this p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set cellpadding and cellspacing in CSS? In an HTML table, the cellpadding and cellspacing can be set like this:
<table cellspacing="1" cellpadding="1">
How can the same be accomplished using CSS?
A: Say that we want to assign a 10px "cellpadding" and a 15px "cellspacing" to our table, in a HTML5-compliant way. I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3649"
} |
Q: Internet Explorer submit button styling I'm making a web application and I got the design for it from a sub-contracted design company. The design is pretty nice, I like it, but I've stumbled across one thing I'm not sure how to implement nicely.
The thing is - they've redesigned the looks of buttons to match the pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript memory leak cleanup in window.unload Javascript client side application.
Trying to eliminate memory leaks leads to ugly (to say the least) code.
I am trying to clean up in window.unload instead on messing up all the code trying to avoid them.
We use mostly element.onevent=function(){..}; pattern, that res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visibility of script includes in an IFRAME For example:
script.js:
function functionFromScriptJS() {
alert('inside functionFromScriptJS');
}
iframe.html:
<html>
<head>
<script language="Javascript" src="script.js"></script>
</head>
<body>
<iframe>
<body>
<script language="JavaScript">
functionFro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Stacking rectangles to into the most square-like arrangement possible My Situation
*
*I have a N rectangles
*The rectangles all have the same shape (for example 2 inches wide x 1 inch tall) - Let's refer to this size as Sw and Sh for the width and height
*I want to position these rectangles in a grid such that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Designing the Architecture, separating projects. Am I "over thinking"? Imagine having the following scenario:
You need to create a system where the Back end is seperate from the Front end, which is always important when programming, of course. But What if you want to be able to change the back end completely without... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How has your coding standards document changed when you upgraded to C# 3.0 / VS2008? We are in the process of upgrading our projects from C# 2.0 / VS2005 to C# 3.0 / VS2008. As part of the upgrade, we are adding some items to our coding standards document.
How would (or did) you change your coding standards document... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the best UI for entering date of birth? What is the best method for date of birth selector?
*
*3 text inputs (month / day / year) or one mask input. User MUST use keyboard
*3 select boxes. User can use keyboard or mouse.
*One nice datepicker.
I want to know what is the most usable and problem free sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "112"
} |
Q: Difference between 2 numbers I need the perfect algorithm or C# function to calculate the difference (distance) between 2 decimal numbers.
For example the difference between:
100 and 25 is 75
100 and -25 is 125
-100 and -115 is 15
-500 and 100 is 600
Is there a C# function or a very elegant algorithm to calculate th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Replacing the decimal point key (from numpad) with correct decimal separator (in silverlight!) What I am trying to do when the user is in a textbox (in silverlight 2.0):
*
*When user presses the decimal point
(.) on the numeric pad, I want to
have it replaced by the correct
decimal separator (which is comma
(,) i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: System.Transaction implicit transaction messing with my other connections I'm trying to use System.Transaction.TransactionScope to create a transaction to call a few stored procedures but it doesn't seem to clean up after itself. Once the transaction is finished (commited or not and the transaction scope object is d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django Foreign Keys Read Only I have two models one is Employee and other is Asset, with Many to one relation between Asset and Employee. And Asset is added as StackedInline field to Employee Admin interface, Is there anyway I can make Asset as read only field in the Employee Admin.
My intention was to show all the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to include sub-directories in Visual Studio? I have to include many header files, which are in different sub-directories. Is there a way in Visual Studio (I am using 2005 edition) to set one include path that Visual Studio will search also the sub-directories for header files?
A: We haven't found a way of setti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Sql reports 2008 error Hello guys I am running some code too setup my report parameters but I am getting the following error in Visual Studio 2008:
Client found response content type of '', but expected
'text/xml'.\r\nThe request failed with an empty response."
System.Exception {System.InvalidOperationException... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A better way to do Swing Applications Is there a better way to develop Java Swing applications?
SWIXML? JavaFX? Anything else that developers out here have liked and recommend?
A: Another "better way" is through the use of a better Layout Manager:
MigLayout:
an extremely flexible and easy to use Layout Manager that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/339995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Free database of Google word frequencies? On the Stackoverflow podcast this week, Jeff mentioned that in 2004 he wrote a script which queried Google with 110,000 English words and collected a database containing the number of hits for each word. They use this on Stackoverflow e.g. for the "Related" list on the right... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the C++ equivalent to GetObject in JavaScript and VBScript? What is the C++ equivalent to GetObject in JavaScript and VBScript?
The closest match I found to my question is:
http://codewiz51.blogspot.com/2008/06/vb-script-getobject-c-api-cogetobject.html
However the sample use an unexisting interface and aski... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generating an XML file from a script I've recently have a reason to include into our build script the creation of an XML configuration file. The most straightforward way I can think of to do this is to hard-code the XML content as a string into the script and then to simply create a file and write that XML string to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# console applications all 16bit? I was reading up about NTVDM.exe as I build a quick test console app and it crashed on a friends machine complaining about this EXE.
As I understand it all DOS cmd windows (C# console apps included) run as 16bit not 32bit.
Is this true? Does this mean all my works console app back... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL - how to use index in WHERE x IN () I'm using this query to get all employees of {clients with name starting with lowercase "a"}:
SELECT * FROM employees
WHERE client_id IN (SELECT id FROM clients WHERE name LIKE 'a%')
Column employees.client_id is an int, with INDEX client_id (index_id). The subquery shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Firefox manipulation of saved form data Is there a Firefox plugin for manipulating and deleting saved form data?
In the browser there is only the option to delete all data.
A: Form History Control does what you want.
A: You can use the SQLite Manager to access the form history database directly. Just select the pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Best design for RadioButtonList usage I have a problem and i would like to learn the correct way to solve this.
I have a Data Objeckt
class LinkHolder {
public string Text;
public string Link;
}
I would like to present to the user a RadioButton list that uses the LinkHolder.Text value as descriptive text.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: EnableViewstate = true/false We have enableviewstate property for all the server controls in ASP.net.
We know that its going to have the member datas and values in viewstate across postbacks
What is the actual example for this?
A: Viewstate's purpose in ASP.NET is indeed to persist state across postbacks, where st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Vista - GetForegroundWindow doesn't return correct process ID but parent process ID When I call GetForegroundWindow from c# I am getting the explorer parent process ID (I see this from process explorer) and not the process ID of the app that is in the foreground.
Why is this and how do get the right process ID?
Malc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Looking for OSS for OSI Layer 2 Traffic Generator I am looking for layer 2 traffic generator [open source].
Some OSS using winpcap or libpcap.
Thanks a lot.
A: *
*Scapy
*bittwist
*any from perl's Net::Pcap, python's or ruby's pcap interface...
| {
"language": "en",
"url": "https://stackoverflow.com/questions/340071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to: Responsive available Wcf duplex communication I'm working on an application that uses WCF to communicate between server and clients
Server has changing number of services, along with one master service that clients can query for information about other services, and then subscribe to those they want using in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Make C# algorithm more efficient I have a C# method that projects the value of a number from an interval to a target interval.
For example: we have an interval of -1000 and 9000 and a value of 5000; if we want to project this value to an interval of 0..100 we get 60.
Here is the method:
/// <summary>
/// Projects... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Proxy objects in IronPython I'm trying to make a proxy object in IronPython, which should dynamically present underlying structure. The proxy itself shouldn't have any functions and properties, I'm trying to catch all the calls in the runtime. Catching the function calls is easy, I just need to define getattr() func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is a good .Net library for Windows User Administration? We have a company intranet with staff management functions. I would like to begin automating setup of new staff members, e.g. creating Windows accounts for them, creating their home folders, setting up shares, and the like. When a staff member leaves the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you recommend a .net template engine? I am looking for a .net templating engine - something simple, lightweight, stable with not too many dependencies. All I need it for at the moment is creating templated plain text and html emails. Can anyone give me a good recommendation?
If it helps at all - something like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Running Mercurial server on Google AppEngine I mean something like "hg serve", with HTTP push support.
This is probably not supported out of the box due GAE's read-only file system. If you know of any attempts to do it or analysis of what it would take, please share.
A: For the sake of closure. Yes, someone did thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Best way to include unobtrusive information on a web page So I've got some scripts I've written which set up a Google map on my page. These scripts are in included in the <head> of my page, and use jQuery to build the map with markers generated from a list of addresses on the page.
However, I have some exact co-ordi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# StringBuilder - how to escape this string: <document.write("<SCR"+"IPT TYPE='text/javascript' SRC='"+"http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomain+"/"+gDcsId+"/wtid.js"+"'><\/SCR"+"IPT>");
I need to escape the string above in order to add the whole thing to a StringBuilder but so fa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Relative path interpretation on linux -gcc env I have a question related to how relative paths are interpreted in various environments .
If I have a C code to be compiled on linux using Makefile and gcc , and if some source file has :
fopen(“../../xyz.ctl”, ”r”);
where should this file be located. Or in other word... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ::FindWindow fails from Service application Windows API ::FindWindow function fails when called from Service application. GetLastError() also returns 0 (success?). Is this some privilege\access right problem? Do you think it's design problem and I should use another IPC method?
A: leppie's right, Windows services ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IronPython For Unit Testing over C# We know that Python provides a lot of productivity over any compiled languages. We have programming in C# & need to write the unit test cases in C# itself. If we see the amount of code we write for unit test is approximately ten times more than the original code.
Is it ideal cho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Getting issued certificates' info from windows server 2008 CA Is it possible to query certificate store on windows server 2008 using .net platform?
I would like to get information about certificates that were issued by this system.
tnx
grega g
A: With "issued certificates", do you mean certs that have been issued b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Virtual Private Server Hosting vs. Colo + Own Server(s) for Early-Stage Web-App I'm working on a web-application and need to figure out the best way to host it. I'm looking to minimize "Total Cost of Ownership," but it's more important to keep hosting costs low than labor costs in my case.
Potentially, some day, it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ActiveRecord/NHibernate: handling Lazy collections in a persistence-unaware context My web application (MonoRail, Windsor, ActiveRecord) has a Startable import service and one or more Startable import readers. When, for example, a file is dropped in a directory, a reader parses the file, passes the data to the servi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is Visual Studio not able to open .csproj files? I have the odd problem that I am not able to open the properties of my .NET projects in Visual Studio. If I try to open it by clicking on the Properties tree node in the Solution Explorer I get the following message:
There is no editor available for '....csproj'.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Execution order of conditions in SQL 'where' clause I have a set of conditions in my where clause like
WHERE
d.attribute3 = 'abcd*'
AND x.STATUS != 'P'
AND x.STATUS != 'J'
AND x.STATUS != 'X'
AND x.STATUS != 'S'
AND x.STATUS != 'D'
AND CURRENT_TIMESTAMP - 1 < x.CREATION_TIMESTAMP
Which of these conditions w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Reboot as last step in vdproj, how can I add it? How can I add the reboot action to a vdproj?
I need an MSI file which restart the PC at the end of the installation.
A: Just add the "REBOOT" property with the value "Force" which will prompt the user to reboot once setup is complete, or automatically reboot if there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ReportViewer Client Print Control "Unable to load client print control"? Has anyone come across this issue?
Seems MS have broken it with their own update:
A number of people have reported
problems using the ActiveX print
control in the report viewer after
installing Microsoft Update 956391.
Specifically, u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.