text stringlengths 8 267k | meta dict |
|---|---|
Q: Setting "checked" for a checkbox with jQuery I'd like to do something like this to tick a checkbox using jQuery:
$(".myCheckBox").checked(true);
or
$(".myCheckBox").selected(true);
Does such a thing exist?
A: $(".myCheckBox").prop("checked","checked");
A: You can also extend the $.fn object with new methods:
(f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4534"
} |
Q: Grouping List by the last Char alt text http://barbarosalp.com/questions/list.png
Hi,
As you can see on the picture above i have a List "keys" filled with Request.Form.AllKeys which a key starts with "txt".
I want to group them by their last id, for example
[0] "txtTitle:2" "txtDescription:2"
[1] "txtTitle:3" "txtDe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a 64 bit version of SQL Server Management Studio (SSMS) 2005? Is there a x64 or ia64 version of SQL Server Management Studio (SSMS) 2005? All the information I'm seeing leads me to believe there is only a x86 version.
This link is my evidence that a 64-bit version doesn't exist - http://support.microsoft.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I (successfully) decode a encoded password from command line openSSL? Using PyCrypto (although I've tried this in ObjC with OpenSSL bindings as well) :
from Crypto.Cipher import DES
import base64
obj=DES.new('abcdefgh', DES.MODE_ECB)
plain="Guido van Rossum is a space alien.XXXXXX"
ciph=obj.encrypt(plain)
enc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SACL on Services using C# || get a handle to a service that has the ACCESS_SYSTEM_SECURITY rights using C# Anyone have any idea how to get the SACL's on a remote service using C#? I've tried numerous different methods, and basically nothing works. I can get the DACL's and SACL's on the local machine, but getting eit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use the HTTPPasswordMgrWithDefaultRealm() in Python I need to write some python ftp code that uses a ftp proxy. The proxy doesn't require authentication but the ftp server I am connecting to does. I have the following code but I am getting a "I/O error(ftp error): 501 USER format: proxy-user:auth-method@desti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you post data with a link I have a database which holds the residents of each house in a certain street. I have a 'house view' php web page which can display an individual house and residents when given the house number using 'post'. I also have a 'street view' web page which gives a list of houses. What I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Convert CYMK image to RGB using BOOST::GIL I am trying to use the boost generic image library to convert CYMK images to RGB.
The following code does not compile
// read cmyk image file
cmyk8_image_t img;
jpeg_read_image( "1502-T2-C-PER.jpg", img );
// convert to rgb
rgb8_image_t rgb( img.dimensions() );
copy_pixels... | {
"language": "no",
"url": "https://stackoverflow.com/questions/426345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is this a bad practice to catch a non-specific exception such as System.Exception? Why? I am currently doing a code review and the following code made me jump. I see multiple issues with this code. Do you agree with me? If so, how do I explain to my colleague that this is wrong (stubborn type...)?
*
*Catch a gene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Seeding java.util.Random with consecutive numbers I've simplified a bug I'm experiencing down to the following lines of code:
int[] vals = new int[8];
for (int i = 0; i < 1500; i++)
vals[new Random(i).nextInt(8)]++;
System.out.println(Arrays.toString(vals));
The output is: [0, 0, 0, 0, 0, 1310, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to tell to Search Engines that 2 domain names are the same website? If I have 2 domain names that point to same website (for example: microsoft.com and microsoft.net both point to microsoft.com), how can search engines distinguish that these two websites are the same website and not duplicate content?
My questio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Proper way to declare an enum in Managed C++ 2005? If I use /clr:oldSyntax the following should work:
public __value enum IceCreamFlavors
{
Vanilla,
Chocolate,
Sardine,
};
what is the equivalent in non-oldSyntax? How do I declare a "managed" enum in Managed C++ for .NET 2.0?
Edit:
when I follow JaredPar's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Agile - Task Breakdowns - to estimate or not? During our iteration planning, we frequently find ourselves in the same position as this guy - How to estimate a programming task if you have no experience in it
I definitely agree with prototyping before you can give a reasonable estimate. But the same applies to anyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Running out of DB connections using LINQ to SQL In developing a relatively simple web service, that takes the data provided by a post and records it in a database table, we're getting this error:
Exception caught: The remote server returned an error: (500) Internal Server Er
or.
Stack trace: at System.Net.HttpWeb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Package creation issues using SQL Developer So I've never worked with stored procedures and have not a whole lot of DB experience in general and I've been assigned a task that requires I create a package and I'm stuck.
Using SQL Developer, I'm trying to create a package called JUMPTO with this code...
create or rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert a GIF into a CUR file How do you create a .cur (for a mouse cursor), from a GIF image file?
What tool or process can I use?
A: You need to use a cursor creator, which is pretty much just a bitmap with some header data. I'd use Irfanview if you do not use Visual Studio or what not. If you use Visual Studi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How do I launch a specific telnet-based app from a web browser? What I'd like to do is provide a link on an intranet web page that will launch a telnet session and pass context information to a shell script that will take the user to a specific "green screen."
This "pseudolink" might help show what I'm looking for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there an iPhone UI component equivalent to the Cocoa NSColorPicker API? I'm looking for a way to allow the user of my iPhone application to select a color for marking items. I know I could just use a standard picker with the color text names but if something already exist like the NSColorPicker API in Cocoa, I'd ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is your favorite solution for managing database migrations in django? I quite like Rails' database migration management system. It is not 100% perfect, but it does the trick. Django does not ship with such a database migration system (yet?) but there are a number of open source projects to do just that, such ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: crystal reports : is this a custom function? I'm customizing a crystal report which was developed before me. One of the custom formulas includes the line:
FreeFormText("kIMShipWhse")
Is this a built-in or custom function?
A: UFL-based functions are listed below the 'Additional Functions' node. Custom functions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pushing Headers and AJAX I have a script that forces a download and I make a call to this via Javascript. However, the dialog box doesn't pop up, here is the download.php script:
header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CodeIgniter Table Class: Add a Link From a Generated Cell I'm using the table class that auto-generates a table for me from an array of data pulled from my database.
Model:
function get_reports_by_user_id($userid)
{
return $this->db->get_where('ss2_report',array('userid' => $userid))->result_array();
}
Controll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How much memory does a C#/.NET object use? I'm developing an application which currently have hundreds of objects created.
Is it possible to determine (or approximate) the memory allocated by an object (class instance)?
A: Each "class" requires enough memory to hold all of it's jit-compiled code for all it's memb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Do line endings differ between Windows and Linux? I am trying to parse the Linux /etc/passwd file in Java. I'm currently reading each line through the java.util.Scanner class and then using java.lang.String.split(String) to delimit each line.
The problem is that the line:
list:x:38:38:Mailing List Manager:/var/list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: CSS/Javascript to force html table row on a single line I have an HTML table that looks like this:
-------------------------------------------------
|Column 1 |Column 2 |
-------------------------------------------------
|this is the text in column |this is the column |
|one which wraps ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: What is the best way to call a .net webservice using jquery? I'd like to call a .net webservice from another domain using only jquery.
What is the best way to do this? and are there any configuration changes I need to be aware of on the web site hosting the web page?
The reason I ask this, is that I am only marginal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WPF Command Line I am trying to create a WPF application that takes command line arguments. If no arguments are given, the main window should pop up. In cases of some specific command line arguments, code should be run with no GUI and exit when finished. Any suggestions on how this should properly be done would be a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: RSA_private_decrypt returns -1 I try to encrypt simple text with RSA algorithm. I have a problem with my code.
RSA *_RSA ;
unsigned char text[2560] = "A";
unsigned char sectext[2560];
unsigned char decrypttext[2560];
int i = 0;
_RSA = RSA_generate_key ( 1024, 65537, NULL, NULL );
i = RSA_public_encrypt ( 1, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to speed up the initialization of a .NET client application (Windows Forms or WPF)? Sometimes I create some quick personal projects using C# with Windows Forms or WPF. I have noticed that managed applications can take 2x or 3x times longer to start compared with native applications.
I have written a "Quick Notes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: I'm learning AI, what game could I implement to put it to practice? I have taken an AI course, and the teacher asked us to implement a game that makes use of one of the AI algorithms. Here is where I need a bit of help:
*
*I don't know to what kind of games each algorithm is applied
*if you could just give an e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How can I call java from asp? I'm not familiar with ASP, but am helping someone out with their website as a side project. I am trying to call Apache FOP (a java application) from ASP using VB. I have seen simple examples using the GetObject('java:...') constuct, but I don't know how to pass and retrieve binary dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why are constructors not inherited in C#? I'm guessing there's something really basic about C# inheritance that I don't understand. Would someone please enlighten me?
A: Sometimes, when subclassing, you want to restrict the conditions required to create an instance of the class.
Let me give you an example. If clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: .NET C# drawing slowly I have a problem drawing something quickly in .NET. I don't think that any thing in particular should take much time, but on every machine I've tried it on, I get serious issues. This is implemented in vs2008 .NET, using C# (with some stuff in C++, but nothing relevant to the drawing).
I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: project publishing to windows web server 2008 I am working with a Visual Studio 2008 (C#) project on Windows XP Pro. I am trying to publish that application using "Publish Web" wizard to a remote server which is Windows Web Server 2008 OS.
But the publishing fails every time with following error:
Connecting to htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you rename a table in SQLite 3.0? How do you rename a table in SQLite 3.0?
A: The answer remains to use "ALTER TABLE". But the main documentation page on this topic is pretty thick. What is needed is a simple example of how that works. You can find that here: https://www.sqlitetutorial.net/sqlite-alter-table... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: Nullable Enum nullable type question I get the following compilation error with the following source code:
Compilation Error:
Type of conditional expression cannot be determined because there is no implicit conversion between '' and 'MyEnum'
Source Code
public enum MyEnum
{
Value1, Value2, Value3
}
public class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Attempted to read or write protected memory. This is often an indication that other memory has been corrupted I created a Winforms AutoComplete combobox control inheriting from ComboBox with the following method:
Protected Overrides Sub OnKeyPress(ByVal e As System.Windows.Forms.KeyPressEventArgs)
MyBase.OnK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I mock the Python method OptionParser.error(), which does a sys.exit()? I'm trying to unit test some code that looks like this:
def main():
parser = optparse.OptionParser(description='This tool is cool', prog='cool-tool')
parser.add_option('--foo', action='store', help='The foo option is self-explanat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Trouble defining a generic interface I have been struggling for some time trying to define a generic interface, but I fail to
achieve what I want. The following is a simplified example of the problem.
Let's say I have a generic Message class
public class Message<T> {
private T content;
public void setConte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How best to get the user's browser information and settings for debugging purposes? My problem is that I have a user that is having a problem displaying a portion of website I am creating, but I am unable to reproduce it on any of my browsers, even with the same version of the browser.
What I'm looking for is probab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you preserve message order when consuming messages from ActiveMQ? I have a .NET service that uses the ActiveMQ client. I have implemented a MessageListener with a transacted connection to consume the messages.
Occasionally, I get messages in a different order in which they were put onto the queue.
Was it wro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to create custom MouseEvent.CLICK event in AS3 (pass parameters to function)? This question doesn't relate only to MouseEvent.CLICK event type but to all event types that already exist in AS3. I read a lot about custom events but until now I couldn't figure it out how to do what I want to do. I'm going to try to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What adavantages does HQL have over SQL for Group By queries I am concentrating this question on 'reporting-type' queries (count, avg etc. i.e. ones that don't return the domain model itself) and I was just wondering if there is any inherent performance benefit in using HQL, as it may be able to leverage the second ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Looking for a 3 column CSS template which has these features
*
*Header div on top of the 3 columns
*Height of all columns must fill at least the height of viewport. So if a column has a different bgcolor, the color is all the way to bottom of viewport even if column has no content.
*Second and 3rd columns have v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Windows Command to detect and remove text in a file I have an ascii file and in there somewhere is the line:
BEGIN
and later on the line:
END
I'd like to be able to remove those two lines and everything in between from a command line call in windows. This needs to be completely automated.
EDIT: See sed in Vista - h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: svn: Can't create directory '/subversion/main/db/transactions/0-1.txn': Permission denied I created a local subversion directory and I'm having problems. I tried checking in my first file with the following command:
svn ci TestCommenterParseFilter.java
and I got the following error message
svn: Commit failed (deta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why is debugging better in an IDE? I've been a software developer for over twenty years, programming in C, Perl, SQL, Java, PHP, JavaScript, and recently Python. I've never had a problem I could not debug using some careful thought, and well-placed debugging print statements.
I respect that many people say that my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "146"
} |
Q: How do you kill a process for a particular user in .NET (C#)? I work off of a multi-user Windows Server, and the rdpclip bug bites us all daily. We usually just open task manager and kill then restart rdpclip, but that's a pain in the butt. I wrote a powershell script for killing then restarting rdpclip, but no on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: iPhone App name rejection? Has anyone had apple send back the app with a name change requirement? We submitted our app in Nov. and have been going back and forth with them, we corrected the items they asked us to fix which were both interface and memory driven, and they said nothing about the name. They have been te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Javascript Fibonacci nth Term Optimization I've become interested in algorithms lately, and the fibonacci sequence grabbed my attention due to its simplicity.
I've managed to put something together in javascript that calculates the nth term in the fibonacci sequence in less than 15 milliseconds after reading lots of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Programmatically enforce capitalization in Visual Studio 2008? What is the easiest way to programmatically force capitalization of keywords in Visual Studio 2008?
We work with a proprietary command delimited language (like HTML). We are attempting to migrate from an older editor to Visual Studio 2008. Our coding s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Saving CheckBox control values I am using asp.net and I am trying to save checkbox values into a database. Multiple checkboxes may be entered into the same field in the database. So for instance I have two checkboxes with names "Comma" and "Hyphen" and if the user checks both of these then the database will store th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PyObjc vs RubyCocoa for Mac development: Which is more mature? I've been wanting to have a play with either Ruby or Python while at the same time I've been wanting to do a bit of Cocoa programming.
So I thought the best way to achieve both these goals is to develop something using either a Ruby or Python to Objecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to assign Profile values? I don't know what I am missing, but I added Profile properties in the Web.config file but cannot access Profile.Item in the code or create a new profile.
A: When you create a new Web site project in Visual Studio then the object that is returned from Profile will be (automatically) gen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: How to reduce Image color-depth/ Compress Image size in Java ME? I need to transmit the image from the mobile phone to the server. I am able to reduce the image screen size but not the memory size. I understand i have to deal with the color depth.
J2ME does not seem to offer any scaling method which is available in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Curing the "Back Button Blues" Ever stumbled on a tutorial that you feel is of great value but not quite explained properly? That's my dilemma. I know THIS TUTORIAL has some value but I just can't get it.
*
*Where do you call each function?
*Which function should be called
first and which next, and which
third?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you resolve the discrepancy between "StyleCop C# style" and "Framework Design Guidelines C# style"? After going through the Appendix A, "C# Coding Style Conventions" of the great book "Framework Design Guidelines" (2nd edition from November 2008), I am quite confused as to what coding style is Microsoft using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Generate Code for Invisible ActiveX Object Event Handlers in Delphi You know in Visual Studio you can use the "+=" syntax and a couple tabs to have it autogenerate the code for an event handler?
How do I accomplish the same thing in Delphi? I'm trying to create an event handler for an event in an invisible activex ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to Get Transactional MySQL data into a SQL Server database I'm working on a project that has a MySQL transactional database backing up a web application. The company uses SQL Server for back office and reporting applications. What is the best way to update SQL Server with the data from MySQL? Right now, we ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to render an in a background WPF process? I'm taking Silverlight XAML and sending it to a web service that renders the XAML in a STA thread and generates a PNG image. All the XAML renders correctly except the <image> entries which 'appear' to load correctly when their Source property is set in WPF but the PNG d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I sort a tab separated file on the nth column using cygwin sort? I have a huge tab separated file which I want to sort on its 2nd column. I need to use the tab character as the field delimiter in cygwin sort. So I need something like this:
sort -t \t -k 2,2 in.txt > out.txt
But the command prompt evaluates '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Looking for a tool to quickly test C# format strings I am constantly forgetting what the special little codes are for formatting .NET strings. Either through ToString() or using String.Format(). Alignment, padding, month vs. minute (month is uppercase M?), abbreviation vs. full word, etc. I can never remember.
I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Where do you edit the constructor template on resharper 4.1? When I create a constructor with parameters using Resharper's 'Generate code' feature, I get something like this:
public class Example{
private int _x;
private int _y;
public Example(int _x, int _y){
this._x = _x;
this._y ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to refer to Method objects in Java? Or, in other words, what is wrong with something like -
new Method[] {Vector.add(), Vector.remove()}
Eclipse keeps telling me that I need arguments. But I obviously don't want to call the methods, I just want to use them as objects! What to do?
A: this works, I can't help bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delay Signing on Compact Framework I want to use delayed signing for my windows mobile compact framework assemblies.
When you sign an assembly using delayed signing it signs it with the public key and leaves space in the assembly for the private keys, which can be added just before shipping the assembly.
A delay sig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How To Align Body Content so it Aligns w/Header & Footer I am building a website but I started with a template and gutted it, changed a lot and got rid of the entire center section and now I have to start over with the body but whenever I try to insert the navigation menu, which is a javascript code that is inserted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sending binary data to (Rails) RESTful endpoint via JSON/XML? I am currently putting together a rails-based web application which will only serve and receive data via json and xml. However, some requirements contain the ability to upload binary data (images).
Now to my understanding JSON is not entirely meant for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: F# + MPI + MONO : Clustered Computing Is it possible for F# and MPI to run off of Mono on a linux computational cluster? Anyone able to attest to it's performance/reliability?
A: I have done some basic tests with F# and Mono 2.0 and everything worked well. I know others have done much deeper test that me and have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I start a Storyboard in a Data Template in a Content Control in a User Control from codebehind? PHEW.
I'm serious. I'll spell it out as follows...
The Storyboard has a Key "myStoryboard". It's held in a DataTemplate with a key "myDataTemplate".
This data template is used in a ContentControl with the name "myC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MVC Object Instances or Static classes? I am confused as to when to create object instances or Static Helper classes. For example, if I call a method to update a data model and submit to database, i create an instance of the DataContext. What is the lifetime of that Datacontext and is it ok to create new instances e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: compile c code in vs 2005 Is there an easy way to compile c code in visual studio 2005? Its been a while(2-3 years) since I've done any coding in either c or c++, but I remember that you used to be able ti, in vs 2003, compile c code in visual studio. I thought it was just a matter of using an empty project(rather... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sql group by versus distinct Why would someone use a group by versus distinct when there are no aggregations done in the query?
Also, does someone know the group by versus distinct performance considerations in MySQL and SQL Server. I'm guessing that SQL Server has a better optimizer and they might be close to equi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: MIN/MAX vs ORDER BY and LIMIT Out of the following queries, which method would you consider the better one? What are your reasons (code efficiency, better maintainability, less WTFery)...
SELECT MIN(`field`)
FROM `tbl`;
SELECT `field`
FROM `tbl`
ORDER BY `field`
LIMIT 1;
A: I think the answers depends on what you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "125"
} |
Q: Error: macro names must be identifiers using #ifdef 0 I have the source code of an application written in C++ and I just want to comment something using:
#ifdef 0
...
#endif
And I get this error
error: macro names must be identifiers
Why is this happening?
A: The #ifdef directive is used to check if a preprocess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Does this type of memory get allocated on the heap or the stack? In the context of C++ (not that it matters):
class Foo{
private:
int x[100];
public:
Foo();
}
What I've learnt tells me that if you create an instance of Foo like so:
Foo bar = new Foo();
Then the array x is allocated on the h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Data structure or algorithm for second degree lookups in sub-linear time? Is there any way to select a subset from a large set based on a property or predicate in less than O(n) time?
For a simple example, say I have a large set of authors. Each author has a one-to-many relationship with a set of books, and a one-to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: I have a mysterious PHP SOAP error on my host, but can't duplicate locally I've run across an interesting PHP/SOAP error that has me stymied. After searching I have not found a plausible explanation, and I'd appreciate your help. Here's the background:
I have a site built in PHP/CodeIgniter which uses SOAP to commun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: My SQL stored procedure with an update I have a stored procedure that is used when a new transaction is inserted. This procedure inserts properly into the transactions table, but I also need to update another related table based on inserted values.
Based on the Product_ID I need to update PT_Pct_to_Salon in a table... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Running a Java Thread in intervals I have a thread that needs to be executed every 10 seconds. This thread contains several calls (12 - 15) to a database on another server. Additionally, it also accesses around 3 files. Consequently, there will be quite a lot of IO and network overhead.
What is the best strategy to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: C libraries for parsing Erlang binaries? I have an erlang server that will be communicating via tcp sockets with a client written in C. Are there any C libraries for parsing erlang binary terms to C structs?
I realize this is not absolutely necessary, but it would be very convenient.
A: There are C libraries for in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HowTo for newbie: Managing currency in iPhone app I'm building a app that need manage money datatype.
I'm new on Obj-c, so I can't see the ligth in the use of NSDecimalNumber.
For example, in my unit test I do this:
@interface SamplePerson : NSObject {
NSString *name;
NSDate *birthDate;
NSInteger size;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I filter out specific column from a CSV file in Perl? I am just a beginner in Perl and need some help in filtering columns using a Perl script.
I have about 10 columns separated by comma in a file and I need to keep 5 columns in that file and get rid of every other columns from that file. How do we achieve t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Beginners guide to learn how to use Subversion with Visual Studio What's the best way for me to learn how to use Subversion as a source code control for my Asp.Net Web Projects?
I haven't had much contact with source control before; however I have a very basic understanding of its features, so I'm looking for a way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Obtaining a Mac's System Profiler data from shell How can I retrieve the information shown in the Mac's System Profiler app programatically? I'm actually interested in the USB section if that matters.
A: The OSX command line tool "ioreg" might give you want you want.
man ioreg
ioreg displays the I/O Kit registr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: javascript race condition I'm calling a javascript function that sets the opacity of an iframe an unknown amount of times in rapid succession. Basically this tweens the alpha from 0 to 100.
here is the code
function setAlpha(value)
{
iframe.style.opacity = value * .01;
iframe.style.filter = 'al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get date/time when file was placed in a directory on Windows? Is there a way to tell when a file was moved to a certain directory?
I'm being asked why a script of mine did not find a file in a certain directory. The file was created last January but I suspect it was placed in the directory after the script w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the easiest way to export data from a live Google App Engine application? I'm especially interested in solutions with source code available (Django independency is a plus, but I'm willing to hack my way through)
A: You can, of course, write your own handler. Other than that, your options currently are limit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What Type of Random Number Generator is Used in the Casino Gaming Industry? Given the extremely high requirements for unpredictability to prevent casinos from going bankrupt, what random number generation algorithm and seeding scheme is typically used in devices like slot machines, video poker machines, etc.?
EDIT: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Best design pattern for complex silverlight games What patterns do you think are best for silverlight games? Some main areas of focus are game performance, maximum number of objects reasonably updated in real time, ease of development and testing.
A: For ease of dev and testing, applying the MVVM pattern (which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Inspect the referrer in PHP Is it possible to check who is entering your website in PHP. I have a web application ( written in PHP) that should only allow users entering from some particular websites. Is it possible to get the referral websites by examining the _Request object? If yes, how?
A: While you can look at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Is Drupal ready for the enterprise? Is anyone out there using Drupal for large scale, business critical enterprise applications?
Does Drupal's lack of database transaction support dissuade potential users?
Are there any other lightweight web-frameworks based on dynamic languages that people are using for these types... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Best way to use Subversion as a project communication tool? If the only server allowed for a project was a Subversion (svn) server, what would be the best way to use it as a project communication tool? For example, is there a good way that it could be used as a wiki, bug tracker, and/or blogging platform?
Note: t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I suppress the browser’s login prompt on 401 response when using XmlHttpRequest with Twitter I'm using jQuery's ajax methods to interact with the Twitter REST API.
Their API is a bit annoying, in that some actions will return a 401 HTTP status code. In that case, I just want it to fail, instead of displaying a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Recommendations for a Windows based make tool Does anyone have any recommendations for a good, fast, make tool? SCons? KJam? Something else?
Cross platform tools would also be acceptable.
A: *
*GNU make is fast, but the native Windows-port is not very polished; there are a lot of pitfal regarding things like which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using KVC to generate SQL? I wonder if it is possible to use KVC to generate SQL. I'm doing a light ORM; I wanna do something like this (pseudocode):
for key in object.getKeys
sql = sql + formatField(key,objet.value[key]);
and get:
INSERT INTO Table (Field1) VALUES (1);
Is this possible in Objective-C?
A: Key... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Viewing include dependencies Does anyone know of a tool that will analyse a C++ codebase and display a graphical representation of which files include which header files and highlight redundant includes? I've used Understand C++ but it's expensive and became very unwieldy very quickly on a large (and poorly encapsul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there any way to do n-level nested loops in Java? In other words, can I do something like
for() {
for {
for {
}
}
}
Except N times? In other words, when the method creating the loops is called, it is given some parameter N, and the method would then create N of these loops nested one in ano... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Does the User Interface Process (UIP) Application Block live up to its promises? I'm working on a project that needs to produce an application that runs both as a stand-alone application and a web application. We're considering using the User Interface Process (UIP) Application Block that available on the Microsoft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I control the format MembershipUser.ResetPassword() Is it possible to control the format of the password that is automatically generated by a call to MembershipUser.ResetPassword()?
I want to be able to allow or not allow certain special characters in the generated password.
I am using the SqlMembershipProvid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Where to draw the line - is it possible to love LINQ too much? I recently found LINQ and love it. I find lots of occasions where use of it is so much more expressive than the longhand version but a colleague passed a comment about me abusing this technology which now has me second guessing myself. It is my perspec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.