text stringlengths 8 267k | meta dict |
|---|---|
Q: To find the dependency of objects across multiple databases? How can you find the dependencies of a table across databases?
Normally sp_depends will provide information for all dependent objects on a particular objects, or through a GUI tool you can see it in a more structured way. Now dependencies shown by these me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to move the buttons in a UIAlertView to make room for an inserted UITextField? [EDIT] Hmm. Perhaps this question should be titled "what is the default user-input dialog view called in CocoaTouch?" I realize that I can create an entire view that is exactly what I want, and wrap it in a view controller and prese... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What architecture do VoIP applications use, P2P or Client-Server? Please let me know what architecture do VoIP applications use, P2P or Client-Server?
Thank you.
A: Some of each in general. There are three protocols involved, usually. One of them, for example SIP, is used to establish the connection. you need a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Process Monitoring in GWT Does anyone know how to monitor long-running server-side processes in GWT, other than polling the server? We need to do some time-consuming, multiple-step, I/O-bound processing on the server, and it would be nice to display the progress of this processing in the browser.
A: This is fairly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: dropdownlist DataTextField composed from properties? is there a way to make the datatextfield property of a dropdownlist in asp.net via c# composed of more than one property of an object?
public class MyObject
{
public int Id { get; set; }
public string Name { get; set; }
public string FunkyValue { get; set; }... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What versions of Python and wxPython correspond to each version of OSX? I'd like to know what versions of Python and wxPython correspond to each version of OSX. I'm interested to know exactly how far back some of my apps will remain compatible on a mac before having to install newer versions of Python and wxPython.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make Apache handle .pl (Perl) files, using mod_perl? I'm using Apache 2. I know how to handle .pl files as "cgi-script", but mod_perl is supposedly way faster. I successfully built and installed mod_perl, but how do I change httpd.conf so that .pl files will be handled by mod_perl (and not as cgi-script)?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Multithreaded paranoia This is a complex question, please consider carefully before answering.
Consider this situation. Two threads (a reader and a writer) access a single global int. Is this safe? Normally, I would respond without thought, yes!
However, it seems to me that Herb Sutter doesn't think so. In his a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: MySQL - Selecting data from multiple tables all with same structure but different data Ok, here is my dilemma I have a database set up with about 5 tables all with the exact same data structure. The data is separated in this manner for localization purposes and to split up a total of about 4.5 million records.
A maj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: How to determine uniqueness of clients from http requests? I notice that when http requests are made from clients through a proxy server, then the IP address of the requests is always that of the proxy. So if many clients from a huge corporation with a proxy server access a web site, I cannot tell if the requests a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How best to write documentation targeting both HTML and PDF? Latex-to-html converters I've seen in the past have been pretty awful. Editing raw html is no fun and doesn't seem to translate well to the printed page. How do others solve this problem? Links to examples (both pdf and html) would be great.
Added: Anot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How can I convert existing users into a OpenID I do not want to alienate my users, but having multiple ways to sign in to the site defeats the purpose of having an OpenID implementation. This is not a brand new site and has about 3k users which are somewhat diehards (we have a great community), but not all of them ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to force SharePoint tasks to be editable by "Assigned To" only? We are using the default Task list from a Team Site and would like to only allow those that the Task is "Assigned To" to edit the tasks. How do you go about enforcing this?
When we tried the "Advanced Settings", we found that "Only their own" meant ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is PostgreSQL eating up all my precious HD space? I just finished transferring as much link-structure data concerning wikipedia (English) as I could. Basically, I downloaded a bunch of SQL dumps from wikipedia's latest dump repository. Since I am using PostgreSQL instead of MySQL, I decided to load all these dum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Alter elements of a list I have a list of booleans where occasionally I reset them all to false. After first writing the reset as:
for b in bool_list:
b = False
I found it doesn't work. I spent a moment scratching my head, then remembered that of course it won't work since I'm only changing a reference to the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Why is only 64kB of data being saved in my MySQL data column? I am trying to insert a very long text string into a MySQL Blob column, but MySQL is only saving 64kB of the data. The string is 75360 characters long. I am connecting with PHP's mysql_connect().
Any ideas?
Does it make a difference if it's Blob or Text. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Does a strings length equal the byte size? Exactly that: Does a strings length equal the byte size? Does it matter on the language?
I think it is, but I just want to make sure.
Additional Info: I'm just wondering in general. My specific situation was PHP with MySQL.
As the answer is no, that's all I need know.
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Parsing fixed-format data embedded in HTML in python I am using google's appengine api
from google.appengine.api import urlfetch
to fetch a webpage. The result of
result = urlfetch.fetch("http://www.example.com/index.html")
is a string of the html content (in result.content). The problem is the data that I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails friendly url routing with open id I would like to use create a rails route for a user's open id. The url would look something like
http://mysite.com/identity/:html_encoded_openid
or
http://mysite.com/identity/:html_encoded_openid.xml
This would be so that the site could be queried for an open id and either v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: socket.shutdown vs socket.close I recently saw a bit of code that looked like this (with sock being a socket object of course):
sock.shutdown(socket.SHUT_RDWR)
sock.close()
What exactly is the purpose of calling shutdown on the socket and then closing it? If it makes a difference, this socket is being used for non... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "155"
} |
Q: What's the simplest way to print a Java array? In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the hashCode of the array, as defined by Object.toString():
int[] intArray = new int[] {1, 2, 3, 4, 5};
System.out.println(intArray); // Prints somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2354"
} |
Q: Localization CMS - Admin functionality to edit the localization files for Content Editors? Are there solutions/tutorials/open source solutions to providing the functionality of having Content Editors edit ASP.net Localization files?
For example,
With Labels.resx and Labels.fr.resx, it would be great if theres an edi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Exception vs Assert?
Possible Duplicate:
design by contract tests by assert or by exception?
Is there a rule of thumb to follow when deciding to use exceptions instead of asserts (or vice versa). Right now I do only throw if it's something I think will happen during runtime on the user side (like a socket or file ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: ASP.NET Dynamic Data & Membership (Roles) I am trying to setup roles in a dynamic data website..
the problem is that i cant set it by simpy doing this.
<location path="List.aspx">
<system.web>
<authorization>
<allow roles="Administrators" />
<deny users="*" />
</authorization>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: To what does "zero day" refer? Does "zero-day" or "0-day" (in context of software vulnerabilities and exploits) refer to the software release, or a particular type of exploit?
[I did not find an answer to this on SO. Though it is answered elsewhere on the Internet, my understanding of SO is that it's okay to ask/an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to offer links in an eclipse editor plugin? I'm writing an eclipse editor plugin for a custom file format and want to offer a way to quickly jump to the definition of an entity from a named reference to it - basically the "open declaration" functionality of the eclipse Java editor.
I know I can do this by regist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can Regex/preg_replace be used to add an anchor tag to a keyword? I would like to be able to switch this...
My sample [a id="keyword" href="someURLkeyword"] test keyword test[/a] link this keyword here.
To...
My sample [a id="keyword" href="someURLkeyword"] test keyword test[/a] link this [a href="url"]keyword[/a] h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Naming of ASP.NET controls inside User Controls with ASP.NET MVC I am wondering if there is a way to make ASP.NET controls play nicely with my ASP.NET MVC app. Here is what I am doing.
I have an order page which displays info about a single Order object. The page will normally have a bunch of rows of data, each ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Boost::Tuples vs Structs for return values I'm trying to get my head around tuples (thanks @litb), and the common suggestion for their use is for functions returning > 1 value.
This is something that I'd normally use a struct for , and I can't understand the advantages to tuples in this case - it seems an error-pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: How do I program an offline form of the crucial memory scanner I like the memory scanner you can get from crucial (http://www.crucial.com/systemscanner/index.aspx) however it only works with an online computer.
I would like to be able to do as much as possible of what it does, but off-line.
I would like to produce s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open a new window with asp.net Im new into that asp.net thing, but here goes.
I got at ImageButton, and when its clicked i want the image displayed in another window. If I can avoid using ajax i would like to do that.
If possible would like to make the window modal, but still avoid ajax, since Im not ready to mix mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL, selecting and updating I am trying to select 100s of rows at a DB that contains 100000s of row and update those rows afters.
the problem is I don't want to go to DB twice for this purpose since update only marks those rows as "read".
is there any way I can do this in java using simple jdbc libraries? (hopefully... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What the best practices to place ads in a website? I want place ads in my website, but I'm unsure about the common practices to place thes ads.
By example, some cool asp.net articles sites shows ads in the middle of the article! So you read 2-3 paragraphs, read some ad, then finish the article reading...
Another wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Delphi Syntax for TextMate I exchanged emails with Marc-André Cournoyer of RefactorMyCode.com about supporting Delphi on his site. Since his site uses Ruby's UltraViolet to do syntax highlighting, and it uses TextMate syntaxes, he needs a Delphi syntax for TextMate. Turns out it has a Pascal syntax already, so it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Send Key Strokes to Games using Direct Input I can send any windows application key strokes with PostMessage api. But I can't send key strokes to Game window by using PostMessage.
Anyone know anything about using Direct Input functions for sending keys to games from C#.
A: One alternative, instead of hooking into D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can you retrieve the hostname and port from a System.Net.Sockets.TcpClient? Is it possible to retrieve the underlying hostname/port from a new TcpClient?
TcpListener listener = new TcpListener(IPAddress.Any, port);
TcpClient client = listener.AcceptTcpClient();
// get the hostname
// get the port
I've routed around... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can PHP be installed on a local machine? For Web-dev, can the PHP Processor be installed on a regular Windows XP machine, such that viewing PHP files through a browser executes the PHP script? (NOT Windows Server 2003)
I even downloaded PHP but it appears they want it installed on a server.
Any other ways to quickly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: J2ME in Netbeans (gif image problem) I'm creating a indoor navigation application (with the intention that a user can store maps for different buildings in the phones file system). The application starts up by asking the user to select a map for the desired building. Once this has been selected, a file parser would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to overcome limitations of Java's Static Main() Method I'm trying to work this out.
In my project, i have a file called 'Hello.java' which is the file with the main() argument and which is called when the program is compiled. And I have another file called MyObj.java which has got just a random class I made up t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Timer vs ExecutorService? I have code where I schedule a task using java.util.Timer. I was looking around and saw ExecutorService can do the same. So this question here, have you used Timer and ExecutorService to schedule tasks, what is the benefit of one using over another?
Also wanted to check if anyone had u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "301"
} |
Q: Does Learning C#/.NET Require An MSDN Subscription? I'm a Java EE person who would like to climb the .NET learning curve.
I've always had the impression that one important difference between Java and .NET was that the Microsoft suite required that you (or your employer) had put up some coin to get access to the to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can a form tell if there are any modal windows open? How, being inside the main form of my WinForm app can I tell if there are any modal windows/dialogs open that belong to the main form?
A: Long story short: opening a modal form is blocks execution on the main form as long as the modal window is open, so your main... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How do you embed album art into an MP3 using Python? I've been using mutagen for reading and writing MP3 tags, but I want to be able to embed album art directly into the file.
A: Here is how to add example.png as album cover into example.mp3 with mutagen:
from mutagen.mp3 import MP3
from mutagen.id3 import ID3, API... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Best practice for debug Asserts during Unit testing Does heavy use of unit tests discourage the use of debug asserts? It seems like a debug assert firing in the code under test implies the unit test shouldn't exist or the debug assert shouldn't exist. "There can be only one" seems like a reasonable principle. Is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Polymorphism - Define In Just Two Sentences I've looked at other definitions and explanations and none of them satisfy me. I want to see if anybody can define polymorphism in at most two sentences without using any code or examples. I don't want to hear 'So you have a person/car/can opener...' or how the word is der... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: PostgreSQL query inconsistency I am trying to execute this SQL command:
SELECT page.page_namespace, pagelinks.pl_namespace, COUNT(*)
FROM page, pagelinks
WHERE
(page.page_namespace <=3 OR page.page_namespace = 12
OR page.page_namespace = 13
)
AND
(pagelinks.pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Truncate Text at a Stop Character Match How would I truncate a sentence at a certain character:
$sentence = 'Stack Overflow - Ask Questions Here';
so that only the following is echoed:
Stack Overflow
The character count varies, but the stop point is always "Space Dash Space"
A: If using python a non-regexp approach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting the location from an IP address I want to retrieve information like the city, state, and country of a visitor from their IP address, so that I can customize my web page according to their location. Is there a good and reliable way to do this in PHP? I am using JavaScript for client-side scripting, PHP for se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/409999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "209"
} |
Q: Fixing the PHP empty function PHP has the habit of evaluating (int)0 and (string)"0" as empty when using the empty() function. This can have unintended results if you expect numerical or string values of 0. How can I "fix" it to only return true to empty objects, arrays, strings, etc?
A: "0" is always considered fa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Accessing COM interface from C or C++ in Windows environment I'm relatively new to the Component Object Model specification - I have a simple question:
*
* How can I access a COM interface from a C or C++ application
For instance, accessing Microsoft Excel COM interface to perform basic operations, without use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Setting instance names on keyframes quickly in AS3 Right now in Flash CS3 and up (using Actionscript 3) if you have the same instance that is used in multiple keyframes in a layer, and you decide to assign or change the instance name later, you would have to go to each keyframe and set the instance name. This is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where do OSX applications typically store user configuration data? I've noticed on OSX, installation is frequently a drag and drop one file kinda deal. I assume that file is an archive of all the applications necessary bits and that the application runs directly from it. Where does the application store configurat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: tool to create objects from XML Web Service Schema I work a lot with external Web Services, and I need to create an object (class) based on that document, so I can use that object across my web application.
My question is simple, is there a way that I can create/generate an object using only the XML provided from th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get the value (not check or unchecked) of a checkboxlist I'm working on a winform app and am interating through a checkboxlist to see what's checked. If it's checked, i need to know what it's value member or value property is because I assigned it when I bound the checkbox list.
How can I get that?
Here's w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Send and receive SMSs to a PHP script? Can a PHP script (which can be working with a MySQL DB) send and/or receive SMSs using some sort of server-side solution?
Any special server-side application, or special hardware required?
And compatibility? Windows, Linux?
A: There are plenty of companies like Esendex that of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Proper use of 'yield return' The yield keyword is one of those keywords in C# that continues to mystify me, and I've never been confident that I'm using it correctly.
Of the following two pieces of code, which is the preferred and why?
Version 1: Using yield return
public static IEnumerable<Product> GetAllProducts()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "969"
} |
Q: Favourite Textmate Commands, Snippets, Bundles, etc This isn't specifically a general programming question but a lot of textmate users I know end up building a textmate command to do something they often do but as it's on it's own never really release it. Mines Below:
Objective-C Build and Run
For when I'm just quic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I pipe output when debugging in Visual Studio 2008? I tried going to project properties, selected debugging under configuration properties, and set command arguments to "> out.txt" (without quotation marks of course). However, when I run the program (with F5) I still see output on the console, and no out.txt ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using POSIX message queues instead of TCP sockets - how to establish "connection"? I have client and server programs which now communicate via TCP. I'm trying out using POSIX message queues instead (in cases where the client and server are on the same machine, of course). My hope is that it will improve performanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to emulate keyword arguments in ActionScript 3 functions Functions in Python can be called using keyword arguments of the form keyword = value. For instance, the following function:
def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'):
print "-- This parrot wouldn't", action,
print ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: LINQ Anonymous Types + MVC Views I've seen many questions about this, but i've never really got the answer that I need.
I'm converting a fairly large web application from Web Forms to MVC and after a while I encountred a problem with passing data to the view. In the Action I execute the code:
//This is just an exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What reasons are there NOT to use OpenID? You see a fair bit (in the Geek community anyway) about OpenID. It seems like a good idea. I'm developing a website that will be targeted at a somewhat less geeky audience (but not quite Mom and Pops either) so I have to wonder if OpenID is going to be "too hard" for some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: C# How do I append the previous item in array to the next item in the array for unknown number of items? How do I append the previous item in array to the next item in the array for unknown number of items?
Here is what I'm trying to do. I have a string containing an LDAP path such as "OU=3,OU=2,OU=1,DC=Internal,DC=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP reading a cookie file Are there any helper libs to read a cookie file in php. I have a cookie file on my local disk and I would like a better way of reading it. I am currently just reading to file like by line and parsing out the values.
A: This is pretty simple if you aim to read Netscape's format (e.g. curl s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: C#/.Net equivalent of NSNotification I'm an Objective-C developer porting an application to the .Net world. In my Obj-C application, I use NSNotification objects to communicate asynchronously between a handful of objects. Is there some way to do something similar in the .Net world (more specifically, using the C# la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: LINQ in win32 DELPHI Is it possible to use LINQ in win32 DELPHI applications
A: Yes and No. LINQ can really be thought of as two different items.
The first is the SQL like query syntax. It's what allows you to write the following in C#.
var query = from it in "foobar" select Char.ToUpper(it);
For delphi to us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: C# How do I check a selected item in a listbox using code? I have a listbox with checkboxes, how do I check the checkbox of the selecteditem?
Thanks
A: Assuming Windows Forms, clb.SetItemChecked(clb.SelectedIndex,true) where clb is a CheckedListBox object.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/410113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reducing power consumption on a low-load server running WinXP? I am using a quad-core windows XP based Dell Machine machine in my office as a server for an application that I am developing and for occasional work with remote desktop connection.
The machine is typically under very light load, running a MySQL server w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What's your prefered method to name your software releases? What's your prefered method to name your software releases?
Like Microsoft: alpha - beta - final - service pack...
Like Google: gmail beta - beta - beta - beta - :)
Like some softwares: 0.2 - 0.3 - 0.9999...
A: We don't release alpha/beta software to our c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Renaming the trash command of trash-cli? I'm the developer of the trash-cli project.
The trash-cli project is a opensource implementation of the FreeDesktop.org
Trash Specification that provides a command line interface to manage the
trashcan.
Ideally trash-cli provides these commands:
*
*trash (trashe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: When I move through a list box, why do my checked items become unchecked? The code below moves the selected item in the listbox downwards to the next item in the listbox, but it unchecks the selected item if it was checked. How can I prevent this?
private void buttonMoveDown_Click(object sender, EventArgs e)
{
in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create vector graphics and then generate icons from them? For a Website I'm developing, I will need to create some graphics. I haven't yet locked in sizes so I didn't want to generate image files (PNG, GIF, JPG) directly in case I change my mind after I get further along with layout and UI to see what works ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Vector graphics in Javascript? One of the advantages of Flash/Flex is that you can use vector graphics (SVG), which is nice. I did a bit of searching around and came across this Javascript vector graphics library. It's pretty simple stuff but it got me thinking: is there any possibility of using vector graphics fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do you filter a TableAdapter's FillBy based on two tables? I'm using VS2008 C# Express and the Northwind database on a Windows Form application.
I used drag and drop to set up the master details binding (I used the Orders and Order Details) for the two datagridviews. At this point, everything works as expecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Protecting your images, CSS and Javascript files from being used by external sites with Apache? I came across a site that demonstrated a Javascript library and it asked that you please not link to the Javascript file directly from your site. That's a reasonable request. In fact, it wouldn't have occurred to me to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which project template should I use for Visual C++ game development project? Which project template should I use for Visual C++ game development project? I am really new to Visual Studio and I am little bit confused with all these Windows Form Application, Win32 Console Application, CLR Console Application, etc. stu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: For Python programmers, is there anything equivalent to Perl's CPAN? I'm learning Python now because of the Django framework. I have been a Perl programmer for a number of years and I'm so used to Perl's tools. One of the things that I really miss is Perl's CPAN and its tools. Is there anything equivalent in Pyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Does anyone use typed DataSets in .NET? I have once tried to use typed DateSets in a relatively small production application. Initially it looked like a pretty good idea, but turned out to be different. It was pretty fine for some basic tasks, but as soon as something more advanced was required, it's limitations kic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Interested in Collective Programming for the web -- Ruby or Python or PHP? For something like a personal recommendation system, machine learning type of stuff on a website, what language would be best?
A: The language you know best would be best.
I mean that half-seriously. Given the brief description of your proj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing an application's COM interface using C++ or C In response to question, how can I (or find more information to) automate certain functionality without user intervention, from a C++ (or C) using:
*
*ATL
* Or Automation code directly in C/C++
Regards
A: If the application exposes a type library (and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I reload a running Shoes app after making source code changes? I'd like to start tinkering around with Shoes. There is one thing I can't figure out. How do I reload a running Shoes application after saving changes to the source code? I've already found the hotkeys for opening the Help, Console, and a new app.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How does ruby serialization (Marshaling) work? I have found some info on the subject (like this link), but nothing that tells me how it actually works under the covers. If you don't want to read the essay below, here are the real questions:
*
*How should I implement the marshal_dump and marshal_load methods? ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Do you plan move from ASP.Net Web Forms to ASP.Net MVC? If yes, when? and how much time do you think that the process will take to migrate your current projects (if it's the case)?
A: Yes for my new projects. But not for current production software.
A: Yes, in as orderly a fashion as possible.
MVC opens .NET up to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Natural/Relative days in Python I'd like a way to show natural times for dated items in Python. Similar to how Twitter will show a message from "a moment ago", "a few minutes ago", "two hours ago", "three days ago", etc.
Django 1.0 has a "humanize" method in django.contrib. I'm not using the Django framework, and ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Does connection close when command is disposed and the connection is defined directly on the command? I know that a lot of examples exist where a SqlConnection is defined and then a SqlCommand is defined, both in Using blocks:
using (var conn = new SqlConnection(connString)) {
using (var cmd = new SqlCommand()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Creating a UITableView with Taller Cells on the iPhone How can I go about creating a UITableView with taller cells? Basically, I want to create a full screen table with only four cells, but they should take up the entire screen (1/4 each).
Assuming this is possible using a UITableView, can it be done both in code an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Test if object implements interface What is the simplest way of testing if an object implements a given interface in C#? (Answer to this question
in Java)
A: if (object is IBlah)
or
IBlah myTest = originalObject as IBlah
if (myTest != null)
A: If you want to use the typecasted object after the check:
Since C# ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "415"
} |
Q: How to ensure hashCode() is consistent with equals()? When overriding the equals() function of java.lang.Object, the javadocs suggest that,
it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Appropriate Method of Retrieving Data from a Form New to C# and .NET.
In a windows application I place a form to query a user for some input. The user fills out the form and presses 'ok'.
What is the "correct" or "appropriate" method of retrieving that data from the form? Do forms have a return statement? Do I send ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to allow MySQL on one server to listen to requests from two other different servers? I have my MySQL database server on Server 1. I want to have my Rails apps on two other servers - say A and B to be able to connect to this Server 1. What's the best way to do this?
In the my.cnf file it appears I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to implement web services on an embedded device? We have an embedded device that needs to interact with an enterprise software system.
The enterprise system currently uses many different mechanisms for communication between its components: ODBC, RPC, proprietary protocol over TCP/IP, and is moving to .Net-impl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you lock on a generic dictionary? Or should you always create some other lock object?
A: Yes, cast it to an IDictionary and lock on .SyncRoot:
Generic.Dictionary<int, int> dic = new Generic.Dictionary<int, int>();
lock (((IDictionary)dic).SyncRoot)
{
// code
}
Thanks to this source for the info.
Of course... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Implementing a buffer-like structure in Python I'm trying to write a small wsgi application which will put some objects to an external queue after each request. I want to make this in batch, ie. make the webserver put the object to a buffer-like structure in memory, and another thread and/or process for sending thes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert a CGPoint from a UIView coordinate system to a CALayer coordinate system There are methods to transfer a CGPoint from one UIView to another and from one CALayer to another. I cannot find a way to change a CGPoint from a UIView's coordinate system to a CALayer's coordinate system.
Does a layer and it's host... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Google Web Tookit User extensions missing Spinner? When I look at the example of the user extensions of GWT-Ext I saw the Spinner as a user extension: http://www.gwt-ext.com/demo-ux/#spinner
When I download the library from http://code.google.com/p/gwt-ext-ux/downloads/list (I downloaded the latest build -- 0.3.0) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Silly SSL cert question for Windows 2000/ASP/IIS I've got an ssl certificate for what I think is my domain and I want to apply it to two separate applications in that domain that run under ASP classic in IIS on Windows 2000.
I have the following stupid questions:
*
*Are certificates issued for URLs or domains? Or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to render to offscreen bitmap then blit to screen using Core Graphics I would like to render to an offscreen bitmap (or array of RGBA values) and then blit those to a UIView during in the view's drawRect function. I would prefer to do full 32-bit rendering (including alpha channel), but would also be content wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What is Java written in? What language is Sun's JVM written in?
A: You can find out for yourself at: http://www.sun.com/software/opensource/java/.
A: C.
Sun's not a Java shop; it's a C shop. That's what Solaris is written in.
A: Sun actually has multiple JVMs. The HotSpot JVM is written largely in C++, because... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: Writing text to the middle of a file Is there a way I can write text to a file from a certain point in the file?
For example, I open a file of 10 lines of text but I want to write a line of text to the 5th line.
I guess one way is to get the lines of text in the file back as an array using the readalllines method, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: image to text in signup process I am in the training of web developement.I have seen in most of the websites while registering new user it shows one image and tells the user to type the characters in the image.I dont know What is the use of that process? Is there any reason behind that?
thanks.
A: The idea is to va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.