qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
90,313 | <p>Despite my lack of coding knowledge I managed to write a small little app in VB net that a lot of people are now using. Since I made it for free I have no way of knowing how popular it really is and was thinking I could make it ping some sort of online stat counter so I could figure out if I should port it to other... | [
{
"answer_id": 90344,
"author": "Vincent McNabb",
"author_id": 16299,
"author_profile": "https://Stackoverflow.com/users/16299",
"pm_score": 1,
"selected": false,
"text": "Sub PingServer(Server As String, Port As Integer)\n Dim Temp As New System.Net.Sockets();\n Temp.Connect(Server, P... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,350 | <p>I have 3 PDF documents that are generated on the fly by a legacy library that we use, and written to disk. What's the easiest way for my JAVA server code to grab these 3 documents and turn them into one long PDF document where it's just all the pages from document #1, followed by all the pages from document #2, etc.... | [
{
"answer_id": 90512,
"author": "rustyshelf",
"author_id": 6044,
"author_profile": "https://Stackoverflow.com/users/6044",
"pm_score": 3,
"selected": true,
"text": "public class PdfMergeHelper {\n\n /**\n * Merges the passed in PDFs, in the order that they are listed in the java.u... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6044/"
] |
90,360 | <p>I was investigating the rapid growth of a SQL Server 2005 transaction log when I found that transaction logs will only truncate correctly - if the sys.databases "log_reuse_wait" column is set to 0 - meaning that nothing is keeping the transaction log from reusing existing space. </p>
<p>One day when I was intend... | [
{
"answer_id": 93269,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profile": "https://Stackoverflow.com/users/6970",
"pm_score": 1,
"selected": false,
"text": "TRUNCATE_ONLY NO_LOG"
},
{
"answer_id": 335014,
"author": "Clinemi",
"author_id": 14947,
"author_pro... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14947/"
] |
90,363 | <p>I'm trying to read a .doc file into a database so that I can index it's contents. Is there an easy way for PHP on Linux to read .doc files? Failing that is it possible to convert .doc files to rtf, pdf or some other 'open' format that is easy to read?</p>
<p>Note, I am not interested in .docx files. </p>
| [
{
"answer_id": 93504,
"author": "Ivan Krechetov",
"author_id": 6430,
"author_profile": "https://Stackoverflow.com/users/6430",
"pm_score": 3,
"selected": false,
"text": "/usr/lib/ooo-2.0/program/soffice.bin -norestore -nofirststart -nologo -headless -invisible \"macro:///Standard.Modul... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17265/"
] |
90,367 | <p>I recently started using Rake to build some of my (non-ruby) packages. Rake is nice, but what I found missing is a way to do hierarchical builds (aggregate Rakefiles in subdirectories). Since this is a common feature in most other build tools, I'm wondering if someone more familiar with Rake has a good solution.</p>... | [
{
"answer_id": 123520,
"author": "davetron5000",
"author_id": 3029,
"author_profile": "https://Stackoverflow.com/users/3029",
"pm_score": 1,
"selected": false,
"text": "SUBDIR = \"subdir\"\ntask :subtask => SRC_FILES do |t|\n chdir(SUBDIR) do \n system(\"rake\")\n end\nend\n... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17276/"
] |
90,401 | <p>How to create new PCL file similar to existing MS doc. I have MS doc template and replacing it with actual data. I need to achieve same for PCL format (Create PCL file as template and replacing it with actual value from database and send it to fax).</p>
| [
{
"answer_id": 90653,
"author": "CL.",
"author_id": 11654,
"author_profile": "https://Stackoverflow.com/users/11654",
"pm_score": 4,
"selected": true,
"text": "c:\\temp\\print.pcl"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/90401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,411 | <p>I want to extend an existing application I made to make it set mixer volume by wheel-scrolling over it's notification area icon.</p>
<p>As far as I know, the notification area doesn't receive any WM_MOUSEWHEEL messages, but still I found an application that does exactly what I want to achieve (<a href="http://www.a... | [
{
"answer_id": 90793,
"author": "Davy Landman",
"author_id": 11098,
"author_profile": "https://Stackoverflow.com/users/11098",
"pm_score": 1,
"selected": false,
"text": "var\n hwndTaskBar, hwndTrayWnd, hwndTrayToolBar : HWND;\n rTrayToolBar : tRect;\nbegin\n hwndTaskBar := FindWindowEx ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2073/"
] |
90,413 | <p>I want to encrypt few files using python what is the best way
I can use gpg/pgp using any standard/famous python libraries?</p>
| [
{
"answer_id": 90959,
"author": "bortzmeyer",
"author_id": 15625,
"author_profile": "https://Stackoverflow.com/users/15625",
"pm_score": 3,
"selected": false,
"text": "signed = core.Data(sys.stdin.read())\nplain = core.Data()\ncontext = core.Context()\n\ncontext.op_verify(signed, None, p... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6946/"
] |
90,418 | <p>I have a shell script that executes a number of commands. How do I make the shell script exit if any of the commands exit with a non-zero exit code?</p>
| [
{
"answer_id": 90434,
"author": "Martin W",
"author_id": 14199,
"author_profile": "https://Stackoverflow.com/users/14199",
"pm_score": 4,
"selected": false,
"text": "&& command1 && command2 && command3\n if command1\n then\n if command2\n then\n do_somethi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9940/"
] |
90,428 | <p>I'm looking for an LDAP libracy in C or C++ that allows me to specify a list of LDAP hostnames instead of a single hostname. The library should then use the first one it can connect to in case one or more of the servers is/are down. I'm sure it'd be easy to wrap an existing library to create this, but why reinvent t... | [
{
"answer_id": 288838,
"author": "geocar",
"author_id": 37507,
"author_profile": "https://Stackoverflow.com/users/37507",
"pm_score": 2,
"selected": false,
"text": "ldapserver.example.com. IN A 1.2.3.4\nldapserver.example.com. IN A 2.3.4.5\n"
},
{
"answer_id": 1329273... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,462 | <p>How do I obtain the serial number of the CPU in a PC?</p>
| [
{
"answer_id": 90505,
"author": "Friedrich",
"author_id": 15068,
"author_profile": "https://Stackoverflow.com/users/15068",
"pm_score": -1,
"selected": false,
"text": "#include <stdlib.h>\n#include <string.h>\n#include <intrinsics.h>\n\n_CPUID cpuinfo;\nint main(void) {\n_cpuid(&cpuinfo)... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16314/"
] |
90,493 | <p>How can I cast long to HWND (C++ visual studio 8)?</p>
<pre><code>Long lWindowHandler;
HWND oHwnd = (HWND)lWindowHandler;
</code></pre>
<p>But I got the following warning:</p>
<blockquote>
<p>warning C4312: 'type cast' : conversion from 'LONG' to 'HWND' of greater size</p>
</blockquote>
<p>Thanks.</p>
| [
{
"answer_id": 90508,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 3,
"selected": false,
"text": "HWND hWnd = (HWND)(LONG_PTR)lParam;\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/90493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,511 | <p>Basically, I would like a brief explanation of how I can access a SQL database in C# code. I gather that a connection and a command is required, but what's going on? I guess what I'm asking is for someone to de-mystify the process a bit. Thanks.</p>
<p>For clarity, in my case I'm doing web apps, e-commerce stuff. I... | [
{
"answer_id": 90514,
"author": "Espo",
"author_id": 2257,
"author_profile": "https://Stackoverflow.com/users/2257",
"pm_score": 3,
"selected": false,
"text": "private static void ReadOrderData(string connectionString)\n{\n string queryString = \n \"SELECT OrderID, CustomerID F... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13578/"
] |
90,517 | <p>When a user goes to my site, my script checks for 2 cookies which store the user id + part of the password, to automatically log them in. </p>
<p>It's possible to edit the contents of cookies via a cookie editor, so I guess it's possible to add some malicious content to a written cookie?</p>
<p>Should I add <code>... | [
{
"answer_id": 90609,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://Stackoverflow.com/users/11438",
"pm_score": 4,
"selected": true,
"text": "define('COOKIE_SALT', 'secretblahblahlkdsfklj');\n$cookie_value = sha1($username.$password.COOKIE_SALT);\n if ($user_cooki... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,553 | <p>I've kind of backed myself into a corner here.</p>
<p>I have a series of UserControls that inherit from a parent, which contains a couple of methods and events to simplify things so I don't have to write lines and lines of near-identical code. As you do. The parent contains no other controls.</p>
<p>What I want to... | [
{
"answer_id": 90606,
"author": "TK.",
"author_id": 1816,
"author_profile": "https://Stackoverflow.com/users/1816",
"pm_score": 4,
"selected": true,
"text": "base.checkReadyness(sender, e);\n"
},
{
"answer_id": 11704494,
"author": "Bolek",
"author_id": 1524524,
"autho... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5133/"
] |
90,565 | <p>NHibernate is not really a good fit for our environment due to all the dependencies. (Castle, log4net etc.)</p>
<p>Is there a good lightweight alternative?</p>
<p>Support for simple file based databases such as Access/SQLite/VistaDB is essential.</p>
<p>Ideally, something contained in a single assembly that only ... | [
{
"answer_id": 23510631,
"author": "Vitaliy Fedorchenko",
"author_id": 2756471,
"author_profile": "https://Stackoverflow.com/users/2756471",
"pm_score": 0,
"selected": false,
"text": "var dalc = new DbDalc(new SqlClientDalcFactory(), connectionStr);\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/90565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5776/"
] |
90,578 | <p>I've recently started developing applications for the Blackberry. Consequently, I've had to jump to Java-ME and learn that and its associated tools. The syntax is easy, but I keep having issues with various gotchas and the environment. </p>
<p>For instance, something that surprised me and wasted a lot of time is... | [
{
"answer_id": 90601,
"author": "Noel Grandin",
"author_id": 6591,
"author_profile": "https://Stackoverflow.com/users/6591",
"pm_score": 2,
"selected": false,
"text": "public class MyClass {\n public static int MY_CLASS_PROPERTY = 12;\n}\n"
},
{
"answer_id": 90655,
"author... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9382/"
] |
90,579 | <p>How to center text over an image in a table cell using javascript, css, and/or html?</p>
<p>I have an HTML table containing images - all the same size - and I want to center a text label over each image. The text in the labels may vary in size. Horizontal centering is not difficult, but vertical centering is.</p>
... | [
{
"answer_id": 90596,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 5,
"selected": true,
"text": "<table>\n <tr>\n <td style=\"background: url(myImg.jpg) no-repeat; vertical-align: middle; text-align: center\">\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9345/"
] |
90,580 | <p>Without getting a degree in information retrieval, I'd like to know if there exists any algorithms for counting the frequency that words occur in a given body of text. The goal is to get a "general feel" of what people are saying over a set of textual comments. Along the lines of <a href="http://wordle.net/" rel="... | [
{
"answer_id": 90890,
"author": "underspecified",
"author_id": 8146,
"author_profile": "https://Stackoverflow.com/users/8146",
"pm_score": 4,
"selected": false,
"text": "$ echo \"Without getting a degree in information retrieval, I'd like to know if there exists any algorithms for counti... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17328/"
] |
90,595 | <p>How to implement a web page that scales when the browser window is resized?</p>
<p>I can lay out the elements of the page using either a table or CSS float sections, but i want the display to rescale when the browser window is resized</p>
<p>i have a working solution using AJAX PRO and DIVs with overflow:auto and ... | [
{
"answer_id": 90603,
"author": "Fire Lancer",
"author_id": 6266,
"author_profile": "https://Stackoverflow.com/users/6266",
"pm_score": 5,
"selected": true,
"text": "<body>\n <div style=\"width:50%\">\n <!--some stuff-->\n </div>\n</body>\n"
},
{
"answer_id": 90696,
"author"... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9345/"
] |
90,657 | <p>I'm trying to find a way to fake the result of a method called from within another method.</p>
<p>I have a "LoadData" method which calls a separate helper to get some data and then it will transform it (I'm interested in testing the transformed result).</p>
<p>So I have code like this:</p>
<pre><code>public class... | [
{
"answer_id": 90692,
"author": "Fossmo",
"author_id": 4093,
"author_profile": "https://Stackoverflow.com/users/4093",
"pm_score": 0,
"selected": false,
"text": "public class MyClass(){\n public void LoadData(IHelper helper){\n SomeProperty = helper.GetSomeData();\n }\n"
},
{
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11388/"
] |
90,662 | <p>I'm a CompSci student, and fairly new at C#, and I was doing a "Josephus Problem" program for a class, and I created an Exit button that calls Application.Exit() to exit at anytime, but if C# is still working on painting and the button is pressed it throws an ObjectDisposedExeception for the Graphics object. Is ther... | [
{
"answer_id": 93204,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profile": "https://Stackoverflow.com/users/6970",
"pm_score": 2,
"selected": true,
"text": "WM_PAINT System.Windows.Forms.Timer System.Threading.Timer"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/90662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4182/"
] |
90,674 | <p>I am developing an application using vb.net. For performing some tasks the application needs administrator privileges in the machine. How to ask for the privileges during the execution of the program?</p>
<p>What is the general method of switching user accounts for executing an application? In other words, is there... | [
{
"answer_id": 860277,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "<requestedExecutionLevel level=\"asInvoker\" uiAccess=\"false\" /> level=\"asInvoker\" level=\"requireAdministrator level=\"hig... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
90,682 | <p>Is it possible to get a thread dump of a Java Web Start application? And if so, how?</p>
<p>It would be nice if there were a simple solution, which would enable a non-developer (customer) to create a thread dump. Alternatively, is it possible to create a thread dump programmatically?</p>
<p>In the Java Web Start C... | [
{
"answer_id": 90711,
"author": "Amir Arad",
"author_id": 11813,
"author_profile": "https://Stackoverflow.com/users/11813",
"pm_score": 2,
"selected": false,
"text": "StackTraceElement[] stack = Thread.currentThread().getStackTrace();\n"
},
{
"answer_id": 90794,
"author": "Ma... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15646/"
] |
90,693 | <p>I have tree control object created using CTreeCtrl MFC class. The tree control needs to support rename.
When I left click on any of item in Tree the TVN_SELCHANGED event is called from which I can get the selected item of the tree as below :
HTREEITEM h = m_moveListTree.GetSelectedItem();
CString s = m_moveListT... | [
{
"answer_id": 90773,
"author": "jussij",
"author_id": 14738,
"author_profile": "https://Stackoverflow.com/users/14738",
"pm_score": 1,
"selected": true,
"text": "LRESULT xTreeCtrl::onRightClick(NMHDR *)\n{\n xPoint pt;\n\n //-- get the cursor at the time the mesage was posted\n DWORD... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,697 | <p>How do I create a resource that I can reference and use in various parts of my program easily?</p>
<p>My specific problem is that I have a NotifyIcon that I want to change the icon of depending on the state of the program. A common problem, but one I've been struggling with for a long time. </p>
| [
{
"answer_id": 90699,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 9,
"selected": true,
"text": "Properties.Resources paused = !paused;\nif (paused)\n notifyIcon.Icon = Properties.Resources.RedIcon;\nelse\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
90,702 | <p>I am working on a small application in VB.NET. The program needs administrator privilege for doing some tasks. Is there a way to ask for administrator privileges during the execution if the program?</p>
<p>What is the general way of changing the user account under which the application is running?</p>
| [
{
"answer_id": 90718,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 3,
"selected": true,
"text": "CoCreateInstanceAsAdmin"
},
{
"answer_id": 3334114,
"author": "AnOnYmOuS",
"author_id": 402172,
"... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
90,704 | <p>GNU/Linux text console, X11 not involved, indeed not even
installed. Keyboard is US layout, keymap US default. Kernel
version 2.20.x or later.</p>
<p>An application written in C is getting keyboard input in
translation mode, i.e. <code>XLATE</code> or <code>UNICODE</code>. When a key is
pressed, the application rec... | [
{
"answer_id": 90837,
"author": "Sqeaky",
"author_id": 17315,
"author_profile": "https://Stackoverflow.com/users/17315",
"pm_score": 0,
"selected": false,
"text": "dumpkeys -f > test.txt\n kbd-1.12/src/loadkeys.y"
},
{
"answer_id": 92228,
"author": "Steve Baker",
"author_... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,713 | <p>i've created a Form Panel, and i'm rendering couple of Combo Boxes in the panel with a store which is populated via an response handler.
the problem if i want to render the panel again it renders the combo boxes without the store, though i'm re-constructing the panel.
i tried to debug to figure out the cause and sur... | [
{
"answer_id": 91347,
"author": "Thevs",
"author_id": 8559,
"author_profile": "https://Stackoverflow.com/users/8559",
"pm_score": 0,
"selected": false,
"text": "doLayout() FormPanel"
},
{
"answer_id": 91589,
"author": "Thevs",
"author_id": 8559,
"author_profile": "htt... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,751 | <p>Do C#/.NET floating point operations differ in precision between debug mode and release mode?</p>
| [
{
"answer_id": 90815,
"author": "Dark Shikari",
"author_id": 11206,
"author_profile": "https://Stackoverflow.com/users/11206",
"pm_score": 1,
"selected": false,
"text": "#include <stdio.h>\n\nint main()\n{\n float e = 0.000000001;\n float f[3] = {33810340466158.90625,27655380531603... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/288629/"
] |
90,755 | <p>How do I get a list of the active IP-addresses, MAC-addresses and <a href="http://en.wikipedia.org/wiki/NetBIOS" rel="nofollow noreferrer">NetBIOS</a> names on the LAN?</p>
<p>I'd like to get NetBIOS name, IP and <a href="http://en.wikipedia.org/wiki/MAC_address" rel="nofollow noreferrer">MAC addresses</a> for ever... | [
{
"answer_id": 90854,
"author": "mana",
"author_id": 12016,
"author_profile": "https://Stackoverflow.com/users/12016",
"pm_score": 4,
"selected": true,
"text": " nmap -sP 192.168.1.1/24\n nmap -O 192.168.1.1/24\n man nmap\n"
},
{
"answer_id": 90875,
"author": "Matthew Schin... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6069/"
] |
90,758 | <p>I'm currently using ImageMagick to determine the size of images uploaded to the website. By calling ImageMagick's "identify" on the command line it takes about 0.42 seconds to determine a 1MB JPEG's dimensions along with the fact that it's a JPEG. I find that a bit slow.</p>
<p>Using the Imagick PHP library is even... | [
{
"answer_id": 90784,
"author": "Kasprzol",
"author_id": 5957,
"author_profile": "https://Stackoverflow.com/users/5957",
"pm_score": 2,
"selected": false,
"text": "/tmp$ file stackoverflow-logo-250.png stackoverflow-logo-250.png: PNG image data, 250 x 70, 8-bit colormap, non-interlaced"
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10024/"
] |
90,775 | <p>I have an exe file generated with py2exe. In the setup.py I specify an icon to be embedded in the exe:</p>
<pre><code>windows=[{'script': 'my_script.py','icon_resources': [(0, 'my_icon.ico')], ...
</code></pre>
<p>I tried loading the icon using:</p>
<pre><code>hinst = win32api.GetModuleHandle(None)
hicon = win32g... | [
{
"answer_id": 91245,
"author": "efotinis",
"author_id": 12320,
"author_profile": "https://Stackoverflow.com/users/12320",
"pm_score": 0,
"selected": false,
"text": "'icon_resources': [(42, 'my_icon.ico')]\n"
},
{
"answer_id": 91670,
"author": "elifiner",
"author_id": 151... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1531/"
] |
90,838 | <p>In our application, we receive text files (<code>.txt</code>, <code>.csv</code>, etc.) from diverse sources. When reading, these files sometimes contain garbage, because the files where created in a different/unknown codepage.</p>
<p>Is there a way to (automatically) detect the codepage of a text file? </p>
<p>The... | [
{
"answer_id": 10861648,
"author": "Thommy Johansson",
"author_id": 1432278,
"author_profile": "https://Stackoverflow.com/users/1432278",
"pm_score": -1,
"selected": false,
"text": "'Works for Default and unicode (auto detect)\nDim mystreamreader As New StreamReader(LocalFileName, Encodi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11492/"
] |
90,855 | <p>I'd like to offer my users correct links to an upgraded version of my program based on what platform they're running on, so I need to know whether I'm currently running on an x86 OS or an x64 OS.</p>
<p>The best I've found is using <code>Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE")</code>, but I wou... | [
{
"answer_id": 90945,
"author": "Jakub Kotrla",
"author_id": 16943,
"author_profile": "https://Stackoverflow.com/users/16943",
"pm_score": -1,
"selected": false,
"text": "IntPtr.Size"
},
{
"answer_id": 93074,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profil... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3191/"
] |
90,871 | <p>Continuing from my <a href="https://stackoverflow.com/questions/90751/double-and-floats-in-c">previous question</a>, is there a comprehensive document that lists all available differences between debug and release modes in a C# application, and particularly in a web application?</p>
<p>What differences are there?</... | [
{
"answer_id": 579456,
"author": "andleer",
"author_id": 64262,
"author_profile": "https://Stackoverflow.com/users/64262",
"pm_score": 3,
"selected": false,
"text": "web.config <system.web>\n <compilation debug=\"true\">\n"
},
{
"answer_id": 17891796,
"author": "Samuel Poi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/288629/"
] |
90,885 | <p>I want to make an entity that has an autogenerated primary key, but also a unique compound key made up of two other fields. How do I do this in JPA?<br>
I want to do this because the primary key should be used as foreign key in another table and making it compound would not be good.</p>
<p>In the following snippet,... | [
{
"answer_id": 90960,
"author": "Michel",
"author_id": 7198,
"author_profile": "https://Stackoverflow.com/users/7198",
"pm_score": 5,
"selected": true,
"text": "@UniqueConstraint @Entity\n@Table(name = \"dm_action_plan\",\n uniqueConstraints={ @UniqueConstraint(columnNames= \"comma... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16152/"
] |
90,891 | <p>Is there a way to control the Fujitsu Softune debugger with an other application(e.g. Eclipse)? I think about sending the command mentioned in the documentation of Softune and parse the output, but also other approaches are welcome.</p>
| [
{
"answer_id": 998989,
"author": "guzelo",
"author_id": 118732,
"author_profile": "https://Stackoverflow.com/users/118732",
"pm_score": 1,
"selected": false,
"text": "debug: debug: $(make_vars)\n# start debugger\nmake -f$(make_vars) -f$(make_dir)/$(cfg) cfg=\"$(cfg)\" debug_session\n d... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,899 | <p>How can I get all items from a specific calendar (for a specific date).
Lets say for instance that I have a calendar with a recurring item every Monday evening. When I request all items like this:</p>
<pre><code>CalendarItems = CalendarFolder.Items;
CalendarItems.IncludeRecurrences = true;
</code></pre>
<p>I only... | [
{
"answer_id": 92184,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": false,
"text": "public void GetAllCalendarItems()\n{\n Microsoft.Office.Interop.Outlook.Application oApp = null;\n Microsoft.Office.Inter... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,907 | <p>I would like to know what would be the best way to do unit testing of a servlet. </p>
<p>Testing internal methods is not a problem as long as they don't refer to the servlet context, but what about testing the doGet/doPost methods as well as the internal method that refer to the context or make use of session param... | [
{
"answer_id": 90993,
"author": "Marcio Aguiar",
"author_id": 4213,
"author_profile": "https://Stackoverflow.com/users/4213",
"pm_score": 3,
"selected": false,
"text": "myServlet.doGet(new HttpServletRequestWrapper() {\n public HttpSession getSession() {\n return mockSession;... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9396/"
] |
90,920 | <p>Could somebody please name a few. I could given time, but this is for somebody else, and I'd also like some community input.</p>
| [
{
"answer_id": 117106,
"author": "JohnIdol",
"author_id": 1311500,
"author_profile": "https://Stackoverflow.com/users/1311500",
"pm_score": 1,
"selected": false,
"text": "BEGIN TRY\n -- Generate divide-by-zero error.\n SELECT 1/0;\nEND TRY\nBEGIN CATCH\n -- Execute custom error ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8741/"
] |
90,940 | <p>I'm writing the memory manager for an application, as part of a team of twenty-odd coders. We're running out of memory quota and we need to be able to see what's going on, since we only appear to be using about 700Mb. I need to be able to report where it's all going - fragmentation etc. Any ideas?</p>
| [
{
"answer_id": 91054,
"author": "Suma",
"author_id": 16673,
"author_profile": "https://Stackoverflow.com/users/16673",
"pm_score": 3,
"selected": true,
"text": "void PrintVMMap()\n{\n size_t start = 0;\n // TODO: make portable - not compatible with /3GB, 64b OS or 64b app\n size_t end... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11483/"
] |
90,949 | <p>There is no documentation on cakephp.org and I am unable to find one on google. Please link me some documentation or supply one!</p>
| [
{
"answer_id": 100658,
"author": "David Heggie",
"author_id": 4309,
"author_profile": "https://Stackoverflow.com/users/4309",
"pm_score": 5,
"selected": true,
"text": "__('string') gettext CREATE TABLE `contents` (\n `id` int(11) unsigned NOT NULL auto_increment,\n `title` varchar(... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4013/"
] |
90,971 | <p>Let's say I have a class:</p>
<pre><code>class Foo
{
public string Bar
{
get { ... }
}
public string this[int index]
{
get { ... }
}
}
</code></pre>
<p>I can bind to these two properties using "{Binding Path=Bar}" and "{Binding Path=[x]}". Fine.</p>
<p>Now let's say I want to implement INotif... | [
{
"answer_id": 91083,
"author": "stusmith",
"author_id": 6604,
"author_profile": "https://Stackoverflow.com/users/6604",
"pm_score": 5,
"selected": true,
"text": "Item[]\n"
},
{
"answer_id": 798762,
"author": "jEROD",
"author_id": 97207,
"author_profile": "https://Sta... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6604/"
] |
90,977 | <p>Emacs Lisp has <code>replace-string</code> but has no <code>replace-char</code>. I want to replace "typographic" curly quotes (Emacs code for this character is hexadecimal 53979) with regular ASCII quotes, and I can do so with:</p>
<pre><code>(replace-string (make-string 1 ?\x53979) "'")
</code></pre>
<p>I think i... | [
{
"answer_id": 91043,
"author": "0124816",
"author_id": 11521,
"author_profile": "https://Stackoverflow.com/users/11521",
"pm_score": 2,
"selected": false,
"text": "This function is usually the wrong thing to use in a Lisp program.\nWhat you probably want is a loop like this:\n (while (... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15625/"
] |
90,982 | <p>I'm looking for a good, clean way to go around the fact that PHP5 still doesn't support multiple inheritance. Here's the class hierarchy:</p>
<p>Message<br>
-- TextMessage<br>
-------- InvitationTextMessage<br>
-- EmailMessage<br>
-------- InvitationEmailMessage </p>
<p>The two types of Invitation* cl... | [
{
"answer_id": 91303,
"author": "Michał Niedźwiedzki",
"author_id": 2169,
"author_profile": "https://Stackoverflow.com/users/2169",
"pm_score": 8,
"selected": true,
"text": "$m = new Message();\n$m->type = 'text/html';\n$m->from = 'John Doe <jdoe@yahoo.com>';\n$m->to = 'Random Hacker <rh... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16668/"
] |
90,988 | <p>Using eclipse 3.3.2 with MyEclipse installed. For some reason if a file isn't called build.xml then it isnt' recognised as an ant file. The file association for *.xml includes ant and says "locked by 'Ant Buildfile' content type.</p>
<p>The run-as menu is broken. Even if the editor association works run-as doesn't.... | [
{
"answer_id": 91557,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 2,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<project name=\"myproject\" default=\"t1\">\n <target name=\"t1\"></target>\n... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
90,996 | <p>I have an IList that contains items ( parent first ), they need to be added to a Diagram Document in the reverse order so that the parent is added last, drawn on top so that it is the first thing to be selected by the user.</p>
<p>What's the best way to do it? Something better/more elegant than what I am doing curr... | [
{
"answer_id": 90998,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 0,
"selected": false,
"text": "for(int iLooper = obEvtArgs.NewItems.Count-1; iLooper >= 0; iLooper--)\n {\n GoViewBoy.Document.Add(C... | 2008/09/18 | [
"https://Stackoverflow.com/questions/90996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1695/"
] |
91,007 | <p>What is the best way of doing this?
tmpnam() returns a path to a file in the root of the drive, which requires administrator privileges on Windows Vista, so this is not an option.</p>
| [
{
"answer_id": 91141,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 0,
"selected": false,
"text": "BUGS\n Never use this function. Use mkstemp(3) instead.\n SYNOPSIS\n #include <stdlib.h>\n\n int mkstemp(char ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17424/"
] |
91,038 | <p>I would like to redirect/rewrite this two kinds of URLs:</p>
<ul>
<li>mydomain.com -> newdomain.com</li>
<li>mydomain.com/specificPage -> newdomain.com/newSpecificPage</li>
<li>mydomain.com/anyOtherPage -> mydomain.com/anyOtherPage (no redirect here)</li>
</ul>
<p>So I just want to redirect the root domain to a ne... | [
{
"answer_id": 91167,
"author": "Hank Gay",
"author_id": 4203,
"author_profile": "https://Stackoverflow.com/users/4203",
"pm_score": 1,
"selected": false,
"text": "RewriteCond %{REQUEST_URI} ^URI_TO_REDIRECT\nRewriteRule redirect=301 NEW_SITE [L]\n [L]"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/91038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17426/"
] |
91,071 | <p>In Emacs, <kbd>C-x o</kbd> takes me to the next window.</p>
<p>What keyboard macro takes me to the previous window in Emacs?</p>
| [
{
"answer_id": 96540,
"author": "Nate",
"author_id": 17009,
"author_profile": "https://Stackoverflow.com/users/17009",
"pm_score": 7,
"selected": false,
"text": "(global-set-key (kbd \"C-x <up>\") 'windmove-up)\n(global-set-key (kbd \"C-x <down>\") 'windmove-down)\n(global-set-key (kbd \... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17239/"
] |
91,108 | <p>How do I get my C# program to sleep (pause execution) for 50 milliseconds?</p>
| [
{
"answer_id": 91119,
"author": "Isak Savo",
"author_id": 8521,
"author_profile": "https://Stackoverflow.com/users/8521",
"pm_score": 10,
"selected": true,
"text": "System.Threading.Thread.Sleep(50);\n ;"
},
{
"answer_id": 91120,
"author": "Alexander Prokofyev",
"author_i... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816/"
] |
91,110 | <p>How to match a single quote in sed if the expression is enclosed in single quotes:</p>
<pre><code>sed -e '...'
</code></pre>
<p>For example need to match this text:</p>
<pre><code>'foo'
</code></pre>
| [
{
"answer_id": 91176,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 7,
"selected": true,
"text": "\"texta'textb\" (APOSTROPHE inside QUOTATION MARKs)\n 'texta'\\''textb' (APOSTROPHE text APOSTROPHE, then REVERSE SOLIDUS, APOSTR... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1692070/"
] |
91,116 | <p>I'm using this formula to calculate the distance between entries in my (My)SQL database which have latitude and longitude fields in decimal format:</p>
<pre><code>6371 * ACOS(SIN(RADIANS( %lat1% )) * SIN(RADIANS( %lat2% )) +
COS(RADIANS( %lat1% )) * COS(RADIANS( %lat2% )) * COS(RADIANS( %lon2% ) -
RADIANS( %lon1% ... | [
{
"answer_id": 123413,
"author": "David",
"author_id": 21328,
"author_profile": "https://Stackoverflow.com/users/21328",
"pm_score": 3,
"selected": false,
"text": "class User < ActiveRecord::Base\n ...\n # has integer x & y coordinates\n ...\n\n # Returns array of {:user => <User>, :... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/476/"
] |
91,127 | <p>I want to verify a drag & drop operation is allowed. A valid item can come from another one of our "controls", or internally from within the custom treeview. Currently I have this:</p>
<pre><code>bool CanDrop(DragEventArgs e)
{
bool allow = false;
Point point = tree.PointToClient(new Point(e.X, e.Y));
... | [
{
"answer_id": 91995,
"author": "Hallgrim",
"author_id": 15454,
"author_profile": "https://Stackoverflow.com/users/15454",
"pm_score": 3,
"selected": true,
"text": "class TreeNodeController {\n Entity data; \n\n virtual bool IsReadOnly { get; }\n virtual bool CanDrop(TreeNodeControlle... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15608/"
] |
91,137 | <p>I've been thinking about this object oriented design question for a while now and have unable to come up with a satisfactory solution, so thought I'd throw it open to the crowds here for some opinions.</p>
<p>I have a <em>Game</em> class that represents a turn based board game, we can assume it's similar to Monopol... | [
{
"answer_id": 91172,
"author": "Grad van Horck",
"author_id": 12569,
"author_profile": "https://Stackoverflow.com/users/12569",
"pm_score": 0,
"selected": false,
"text": "Game HumanPlayer"
},
{
"answer_id": 91247,
"author": "RhysC",
"author_id": 17466,
"author_profil... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16752/"
] |
91,150 | <p>How do I create an optional parameter in a mysql stored procedure?</p>
| [
{
"answer_id": 18519386,
"author": "Anthony Geoghegan",
"author_id": 1640661,
"author_profile": "https://Stackoverflow.com/users/1640661",
"pm_score": 2,
"selected": false,
"text": "CREATE PROCEDURE add_product(product_name VARCHAR(100), product_price FLOAT,\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
91,160 | <p>How do I best convert a System.Data.DbType enumeration value to the corresponding (or at least one of the possible corresponding) System.Type values?</p>
<p>For example:</p>
<pre><code>DbType.StringFixedLength -> System.String
DbType.String -> System.String
DbType.Int32 -> System.Int32
</code></pre>
<p>... | [
{
"answer_id": 18621961,
"author": "Jon Banta",
"author_id": 2748177,
"author_profile": "https://Stackoverflow.com/users/2748177",
"pm_score": 2,
"selected": false,
"text": "var dbType = DbType.Currency;\n\nType metaClrType = Type.GetType(\n \"System.Data.SqlClient.MetaType, System.Da... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5790/"
] |
91,169 | <p>So I log into a Solaris box, try to start Apache, and find that there is already a process listening on port 80, and it's not Apache. Our boxes don't have lsof installed, so I can't query with that. I guess I could do:</p>
<pre><code>pfiles `ls /proc` | less
</code></pre>
<p>and look for "port: 80", but if anyone ... | [
{
"answer_id": 91188,
"author": "Christoffer",
"author_id": 15514,
"author_profile": "https://Stackoverflow.com/users/15514",
"pm_score": -1,
"selected": false,
"text": "netstat"
},
{
"answer_id": 825155,
"author": "mavroprovato",
"author_id": 89435,
"author_profile":... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
91,179 | <p>What options are there for building automated tests for GUIs written in Java Swing?</p>
<p>I'd like to test some GUIs which have been written using the <a href="http://www.netbeans.org/features/java/swing.html" rel="noreferrer">NetBeans Swing GUI Builder</a>, so something that works without requiring special tamper... | [
{
"answer_id": 92459,
"author": "Javaxpert",
"author_id": 15241,
"author_profile": "https://Stackoverflow.com/users/15241",
"pm_score": 3,
"selected": false,
"text": "java.awt.Robot"
},
{
"answer_id": 1001028,
"author": "Dema",
"author_id": 407003,
"author_profile": "... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755/"
] |
91,181 | <p>this is my first question to stackoverflow so here it goes...</p>
<p>I use cruise control for my continuous integration scheme, i want to use obfuscation in order to add another protection layer to my assemblies. The thing is that i don't know how to go about it since i couldn't find articles describing about this.... | [
{
"answer_id": 91197,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 0,
"selected": false,
"text": "<exec>\n <executable>make</executable>\n <baseDirectory>D:\\dev\\MyProject</baseDirectory>\n <buildArgs>all</... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17443/"
] |
91,183 | <p>I need to write code in python language for comparing the text of document using fingerprint techniques. I do not know to take fingerprint of a document or to generate fingerprint of a document. I'm asking if anyone knows the method or has source code for generating fingerprints of documents which is stored in bits ... | [
{
"answer_id": 91197,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 0,
"selected": false,
"text": "<exec>\n <executable>make</executable>\n <baseDirectory>D:\\dev\\MyProject</baseDirectory>\n <buildArgs>all</... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17451/"
] |
91,202 | <p>I'm trying to draw a polygon using c# and directx</p>
<p>All I get is an ordered list of points from a file and I need to draw the flat polygon in a 3d world.</p>
<p>I can load the points and draw a convex shape using a trianglefan and drawuserprimitives.</p>
<p>This obviously leads to incorrect results when the ... | [
{
"answer_id": 347033,
"author": "Walt D",
"author_id": 44003,
"author_profile": "https://Stackoverflow.com/users/44003",
"pm_score": 2,
"selected": false,
"text": "Clear the stencil buffer to 1.\nPick an arbitrary vertex v0, probably somewhere near the polygon to reduce floating-point e... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16268/"
] |
91,205 | <p>I'm a little confused about how the standard library will behave now that Python (from 3.0) is unicode-based. Will modules such as CGI and urllib use unicode strings or will they use the new 'bytes' type and just provide encoded data?</p>
| [
{
"answer_id": 91301,
"author": "pdc",
"author_id": 8925,
"author_profile": "https://Stackoverflow.com/users/8925",
"pm_score": 5,
"selected": true,
"text": "bytes bytes string str unicode"
},
{
"answer_id": 91325,
"author": "cdleary",
"author_id": 3594,
"author_profi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17457/"
] |
91,216 | <p><code>mysql_real_escape_string</code> and <code>addslashes</code> are both used to escape data before the database query, so what's the difference? (This question is not about parametrized queries/PDO/mysqli)</p>
| [
{
"answer_id": 91250,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "mysql_real_escape_string mysql_real_escape_string"
},
{
"answer_id": 91255,
"author": "Mark Embling",
"author_i... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7506/"
] |
91,223 | <p>I'm using Microsoft.XMLHTTP to get some information from another server from an old ASP/VBScript site. But that other server is restarted fairly often, so I want to check that it's up and running before trying to pull information from it (or avoid my page from giving an HTTP 500 by detecting the problem some other w... | [
{
"answer_id": 91488,
"author": "bastos.sergio",
"author_id": 12772,
"author_profile": "https://Stackoverflow.com/users/12772",
"pm_score": 2,
"selected": true,
"text": "PostURL = homelink & \"CustID.aspx?SearchFlag=PO\"\nset xmlhttp = CreateObject(\"MSXML2.ServerXMLHTTP.3.0\")\n xmlhttp... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1367/"
] |
91,263 | <p>Part of the install for an app I am responsible for, compiles some C code libraries. This is done in a console using GNU Make.</p>
<p>So, as part of the install, a console window pops open, you see the make file output wiz by as it compiles and links, when finished the console window closes and the installer contin... | [
{
"answer_id": 91273,
"author": "Amir Arad",
"author_id": 11813,
"author_profile": "https://Stackoverflow.com/users/11813",
"pm_score": 4,
"selected": true,
"text": "if not ERRORLEVEL 0 pause\n help if"
},
{
"answer_id": 91346,
"author": "Community",
"author_id": -1,
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6063/"
] |
91,275 | <p>I'm writing a small tool in C# which will need to send and receive data to/from a website using POST and json formatting. I've never done anything like this before in C# (or any language really) so I'm struggling to find some useful information to get me started.</p>
<p>I've found some information on the WebReques... | [
{
"answer_id": 91317,
"author": "Eric Schoonover",
"author_id": 3957,
"author_profile": "https://Stackoverflow.com/users/3957",
"pm_score": 4,
"selected": false,
"text": "using (WebClient client = new WebClient ())\n{\n //manipulate request headers (optional)\n client.Headers.Add (... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
91,289 | <p>I have a migration that runs an SQL script to create a new Postgres schema. When creating a new database in Postgres by default it creates a schema called 'public', which is the main schema we use. The migration to create the new database schema seems to be working fine, however the problem occurs after the migratio... | [
{
"answer_id": 91603,
"author": "Jean",
"author_id": 7898,
"author_profile": "https://Stackoverflow.com/users/7898",
"pm_score": 4,
"selected": true,
"text": " # Drops a PostgreSQL database\n #\n # Example:\n # drop_database 'matt_development'\n def drop_database(name) #:nodoc:\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11557/"
] |
91,305 | <p>Is there a easy way to do this? Or do I have to parse the file and do some search/replacing on my own?</p>
<p>The ideal would be something like:</p>
<pre><code>var myXML: XML = ???; // ... load xml data into the XML object
myXML.someAttribute = newValue;
</code></pre>
| [
{
"answer_id": 91952,
"author": "Swaroop C H",
"author_id": 4869,
"author_profile": "https://Stackoverflow.com/users/4869",
"pm_score": 5,
"selected": true,
"text": "@ var myXML:XML = <test name=\"something\"></test>;\ntrace(myXML.@name);\nmyXML.@name = \"new\";\ntrace(myXML.@name);\n so... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
91,307 | <p>When I use quick documentaion lookup (Ctrl+Q) on j2ee classes or annotations in IDEA I only get an empty javadoc. It only contains the basics like class name.</p>
<p>How do I add the javadoc to the libs IDEA provides itself?</p>
| [
{
"answer_id": 91514,
"author": "Hugo Palma",
"author_id": 17515,
"author_profile": "https://Stackoverflow.com/users/17515",
"pm_score": 8,
"selected": true,
"text": "(File -> Project Structure)"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/91307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16152/"
] |
91,350 | <p>Coming from a Classic ASP background, I'm used to multiple forms on a page, but this clearly limited in a ASP.NET page.</p>
<p>However, I have a situation where I have a form that gathers input from the user, saves the data to a DB, and afterwards I want to render (and tweak the values of) a special form that posts ... | [
{
"answer_id": 91374,
"author": "blowdart",
"author_id": 2525,
"author_profile": "https://Stackoverflow.com/users/2525",
"pm_score": 4,
"selected": true,
"text": "runat=\"server\""
},
{
"answer_id": 91378,
"author": "RB.",
"author_id": 15393,
"author_profile": "https:... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6898/"
] |
91,355 | <p>Environment: HP laptop with Windows XP SP2</p>
<p>I had created some encrypted files using GnuPG (gpg) for Windows. Yesterday, my hard disk failed so I had reimage the hard disk. I have now reinstalled gpg and regenerated my keys using the same passphrase as earlier. But, I am now unable to decrypt the files. I... | [
{
"answer_id": 91457,
"author": "workmad3",
"author_id": 16035,
"author_profile": "https://Stackoverflow.com/users/16035",
"pm_score": 5,
"selected": false,
"text": "gpg --allow-secret-key-import --import <keyring>\n"
},
{
"answer_id": 1482670,
"author": "Randy Fay",
"aut... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
91,357 | <p>I want to log in to Stack Overflow with Techorati OpenID hosted at my site.</p>
<p><a href="https://stackoverflow.com/users/login">https://stackoverflow.com/users/login</a> has some basic information.</p>
<p>I understood that I should change</p>
<pre><code><link rel="openid.delegate" href="http://yourname.x.co... | [
{
"answer_id": 91457,
"author": "workmad3",
"author_id": 16035,
"author_profile": "https://Stackoverflow.com/users/16035",
"pm_score": 5,
"selected": false,
"text": "gpg --allow-secret-key-import --import <keyring>\n"
},
{
"answer_id": 1482670,
"author": "Randy Fay",
"aut... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17469/"
] |
91,360 | <p>I need to sum points on each level earned by a tree of users. Level 1 is the sum of users' points of the users 1 level below the user. Level 2 is the Level 1 points of the users 2 levels below the user, etc...</p>
<p>The calculation happens once a month on a non production server, no worries about performance.</p>
... | [
{
"answer_id": 91400,
"author": "Matthias Winkelmann",
"author_id": 4494,
"author_profile": "https://Stackoverflow.com/users/4494",
"pm_score": 2,
"selected": false,
"text": "SELECT SUM(points) \nFROM users \nwhere left > x and right < y \n"
},
{
"answer_id": 91418,
"author":... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6681/"
] |
91,362 | <p>How can brackets be escaped in using <code>string.Format</code>?</p>
<p>For example:</p>
<pre><code>String val = "1,2,3"
String.Format(" foo {{0}}", val);
</code></pre>
<p>This example doesn't throw an exception, but it outputs the string <code>foo {0}</code>.</p>
<p>Is there a way to escape the ... | [
{
"answer_id": 91375,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 11,
"selected": true,
"text": " foo {1, 2, 3} string t = \"1, 2, 3\";\nstring v = String.Format(\" foo {{{0}}}\", t);\n { {{ } }} var inVal = \"1, 2,... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4685/"
] |
91,364 | <p>I have a virtual machine (VMware) with Mercury Quick Test Professional 9.2 installed. I have a script to test an application, written in VB.NET using the Infragistics library.</p>
<p>If I access this virtual machine using my laptop (using Remote Desktop), everything works fine, the script completes without a proble... | [
{
"answer_id": 125734,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stackoverflow.com/users/3848",
"pm_score": 0,
"selected": false,
"text": "SwfTable WinObject"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/91364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1836/"
] |
91,367 | <p>Is there a way to debug or trace every JavaScript event in Internet Explorer 7?</p>
<p>I have a bug that prevents scrolling after text-selecting, and I have no idea which event or action creates the bug. I really want to see which events are being triggered when I move the mouse for example. </p>
<p>It's... | [
{
"answer_id": 91410,
"author": "Michiel Borkent",
"author_id": 6264,
"author_profile": "https://Stackoverflow.com/users/6264",
"pm_score": 2,
"selected": false,
"text": "console.log"
},
{
"answer_id": 91453,
"author": "Glenn",
"author_id": 11814,
"author_profile": "h... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15981/"
] |
91,368 | <p>From a shell script, how do I check if a directory contains files?</p>
<p>Something similar to this</p>
<pre class="lang-sh prettyprint-override"><code>if [ -e /some/dir/* ]; then echo "huzzah"; fi;
</code></pre>
<p>but which works if the directory contains one or several files (the above one only works with exac... | [
{
"answer_id": 91387,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 5,
"selected": false,
"text": "if [ ! -z `ls /some/dir/*` ]; then echo \"huzzah\"; fi\n"
},
{
"answer_id": 91394,
"author": "Andrew Taylor",
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17491/"
] |
91,384 | <p>I'm working on a large c++ system that is has been in development for a few years now. As part of an effort to improve the quality of the existing code we engaged on a large long-term refactoring project.</p>
<p>Do you know a good tool that can help me write unit tests in C++? Maybe something similar to Junit or Nu... | [
{
"answer_id": 4212585,
"author": "icecrime",
"author_id": 451980,
"author_profile": "https://Stackoverflow.com/users/451980",
"pm_score": 4,
"selected": false,
"text": "calculator view // declares a 'mock_view' class implementing 'view'\nMOCK_BASE_CLASS( mock_view, view )\n{\n // imp... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12818/"
] |
91,413 | <p>JSON text (<a href="http://www.ietf.org/rfc/rfc4627.txt?number=4627" rel="noreferrer">RFC 4627</a>) has unambigious representation of objects, arrays, strings, numbers, Boolean values (literally <code>true</code> or <code>false</code>) and <code>null</code>. However, it has nothing defined for representing time info... | [
{
"answer_id": 10900081,
"author": "Vebjorn Ljosa",
"author_id": 17498,
"author_profile": "https://Stackoverflow.com/users/17498",
"pm_score": 3,
"selected": false,
"text": "Date Date"
},
{
"answer_id": 44058166,
"author": "Jim DeLaHunt",
"author_id": 1099571,
"author... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6682/"
] |
91,420 | <p>I have a static library written in C++ and I have a structure describing data format, i.e.<br></p>
<pre><code>struct Format{
long fmtId;
long dataChunkSize;
long headerSize;
Format(long, long, long);
bool operator==(Format const & other) const;
};
</code></pre>
<p>Some of data formats are... | [
{
"answer_id": 91433,
"author": "yrp",
"author_id": 7228,
"author_profile": "https://Stackoverflow.com/users/7228",
"pm_score": 2,
"selected": false,
"text": "struct Format\n{\n [...]\n static Format gFmt128;\n};\n// Format.cpp\nFormat Format::gFmt128 = { 0, 128, 0 }\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/91420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17481/"
] |
91,443 | <p>I seem to recall reading about an Amazon S3-compatible test server that you could run on your own server for unit tests or whatever. However, I've just exhausted my patience looking for this with both Google and AWS. Does such a thing exist? If not, I think I'll write one.</p>
<p>Note: I'm asking about Amazon S3 (t... | [
{
"answer_id": 16627235,
"author": "andres.riancho",
"author_id": 1347554,
"author_profile": "https://Stackoverflow.com/users/1347554",
"pm_score": 2,
"selected": false,
"text": "import boto\nfrom boto.s3.key import Key\n\nclass MyModel(object):\n def __init__(self, name, value):\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/893/"
] |
91,479 | <p>By default data extracted by the <code>GROUP BY</code> clause is ordered as ascending.
How to change it to descending.</p>
| [
{
"answer_id": 91485,
"author": "RB.",
"author_id": 15393,
"author_profile": "https://Stackoverflow.com/users/15393",
"pm_score": 3,
"selected": false,
"text": "DESC GROUP BY GROUP BY myDate DESC\n"
},
{
"answer_id": 91491,
"author": "Hank Gay",
"author_id": 4203,
"au... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
91,480 | <p>I would like to know where can I find the code which eclipse uses to display the forms in the plugin.xml file. In particular I am looking for the form layout used in the extension tab in the plugin.xml</p>
| [
{
"answer_id": 91485,
"author": "RB.",
"author_id": 15393,
"author_profile": "https://Stackoverflow.com/users/15393",
"pm_score": 3,
"selected": false,
"text": "DESC GROUP BY GROUP BY myDate DESC\n"
},
{
"answer_id": 91491,
"author": "Hank Gay",
"author_id": 4203,
"au... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17512/"
] |
91,487 | <p>I keep running into this problem when debugging JSP pages in OpenNMS. The Jetty wiki talks about keepGenerated (<a href="http://docs.codehaus.org/display/JETTY/KeepGenerated" rel="nofollow noreferrer">http://docs.codehaus.org/display/JETTY/KeepGenerated</a>) in webdefault.xml but it seems unclear how this works in e... | [
{
"answer_id": 92213,
"author": "Javaxpert",
"author_id": 15241,
"author_profile": "https://Stackoverflow.com/users/15241",
"pm_score": 0,
"selected": false,
"text": "index.jsp index_jsp.java"
},
{
"answer_id": 92233,
"author": "Roel Spilker",
"author_id": 12634,
"aut... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17507/"
] |
91,511 | <p>I have a memory buffer corresponding to my screen resolution (1280x800 at 24-bits-per-pixel) that contains my screen contents at 24bpp. I want to convert this to 8-bpp (ie. Halftone color palette in Windows).
I currently do this:
1. Use CreateDIBSection to allocate a new 1280x800 24-bpp buffer and access it as a DC,... | [
{
"answer_id": 91575,
"author": "Ray Hayes",
"author_id": 7093,
"author_profile": "https://Stackoverflow.com/users/7093",
"pm_score": 3,
"selected": true,
"text": "private void LockUnlockBitsExample(PaintEventArgs e)\n{\n\n // Create a new bitmap.\n Bitmap bmp = new Bitmap(\"c:\\\\fa... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17465/"
] |
91,518 | <p>Suppose I have a simple XHTML document that uses a custom namespace for attributes:</p>
<pre><code><html xmlns="..." xmlns:custom="http://www.example.com/ns">
...
<div class="foo" custom:attr="bla"/>
...
</html>
</code></pre>
<p>How do I match each element that has a certain custom at... | [
{
"answer_id": 91607,
"author": "redsquare",
"author_id": 6440,
"author_profile": "https://Stackoverflow.com/users/6440",
"pm_score": 2,
"selected": false,
"text": "$('div').attr('custom:attr')"
},
{
"answer_id": 91807,
"author": "Devon",
"author_id": 13850,
"author_p... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7779/"
] |
91,521 | <p>I am using c# 2005 i want to write string diagonally on image. But by default c# provides the option to write horizontally or vertically.</p>
<p>how we write diagonally?</p>
<p>Thanks</p>
| [
{
"answer_id": 91542,
"author": "Phil Wright",
"author_id": 6276,
"author_profile": "https://Stackoverflow.com/users/6276",
"pm_score": 3,
"selected": false,
"text": "g.RotateTransform(45f);\ng.DrawString(\"My String\"...);\ng.RotateTransform(-45f);\n"
},
{
"answer_id": 16771661,... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17465/"
] |
91,563 | <p>How can I make this work?</p>
<pre><code>switch(property.PropertyType){
case typeof(Boolean):
//doStuff
break;
case typeof(String):
//doOtherStuff
break;
default: break;
}
</code></pre>
<p>I don't want to use the name since string comparing for types is just awfull and... | [
{
"answer_id": 91591,
"author": "Sam Meldrum",
"author_id": 16005,
"author_profile": "https://Stackoverflow.com/users/16005",
"pm_score": 0,
"selected": false,
"text": "if(property.PropertyType == typeof(bool)) {\n //dostuff;\n}\nelse if (property.PropertyType == typeof(string)) {\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
91,576 | <p>I'm building a project using a GNU tool chain and everything works fine until I get to linking it, where the linker complains that it is missing/can't find <code>crti.o</code>. This is not one of my object files, it seems to be related to libc but I can't understand why it would need this <code>crti.o</code>, wouldn... | [
{
"answer_id": 91595,
"author": "stsquad",
"author_id": 17507,
"author_profile": "https://Stackoverflow.com/users/17507",
"pm_score": 6,
"selected": true,
"text": "crti.o /usr/lib gcc -print-search-dirs strace -v -o log -f -e trace=open,fork,execve gcc hello.c -o test\n 10616 execve(\"/u... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/76121/"
] |
91,585 | <p>I'm one of the people involved in the <a href="http://testanything.org/wiki/index.php/TAP_at_IETF:_Notes" rel="noreferrer">Test Anything Protocol (TAP) IETF group</a> (if interested, feel free to join the mailing list). Many programming languages are starting to adopt TAP as their primary testing protocol and they ... | [
{
"answer_id": 27824043,
"author": "Erik Aronesty",
"author_id": 627042,
"author_profile": "https://Stackoverflow.com/users/627042",
"pm_score": 0,
"selected": false,
"text": "1..4\nok 1 - yay\nnot ok 2 - boo\nok 3 - yay #json:{...}\nok 4 - see my json\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/91585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8003/"
] |
91,617 | <p>I am looking for a tool that can take a unit test, like </p>
<pre><code>IPerson p = new Person();
p.Name = "Sklivvz";
Assert.AreEqual("Sklivvz", p.Name);
</code></pre>
<p>and generate, automatically, the corresponding stub class and interface</p>
<pre><code>interface IPerson // inferred from IPerson p = n... | [
{
"answer_id": 93321,
"author": "Jay Bazuzi",
"author_id": 5314,
"author_profile": "https://Stackoverflow.com/users/5314",
"pm_score": -1,
"selected": false,
"text": "public string Name { get; set; }\n"
},
{
"answer_id": 9969981,
"author": "Ira Baxter",
"author_id": 12016... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7028/"
] |
91,618 | <p>In static languages like Java you need interfaces because
otherwise the type system just won't let you do certain things.
But in dynamic languages like PHP and Python you just take
advantage of <em>duck-typing</em>.</p>
<p>PHP supports interfaces.
Ruby and Python don't have them.
So you can clearly live happily wit... | [
{
"answer_id": 91687,
"author": "David Webb",
"author_id": 3171,
"author_profile": "https://Stackoverflow.com/users/3171",
"pm_score": 2,
"selected": false,
"text": "pass"
},
{
"answer_id": 92183,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stac... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15982/"
] |
91,628 | <p>I would like to automatically increment a field named `incrementID' anytime any field in any row within the table named 'tb_users' is updated.
Currently I am doing it via the sql update statement.
i.e "UPDATE tb_users SET name = @name, incrementID = incrementID + 1 .....WHERE id = @id;</p>
<p>I'm wondering how I ca... | [
{
"answer_id": 92442,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profile": "https://Stackoverflow.com/users/6970",
"pm_score": 2,
"selected": false,
"text": "rowversion"
},
{
"answer_id": 92505,
"author": "TrevorD",
"author_id": 12492,
"author_profile": "htt... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17510/"
] |
91,629 | <p>I'm trying to match elements with a name that is <code>'container1$container2$chkChecked'</code>, using a regex of <code>'.+\$chkChecked'</code>, but I'm not getting the matches I expect when the element name is as described. What am I doing wrong?</p>
| [
{
"answer_id": 91647,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 2,
"selected": false,
"text": "string.match( /[$]chkChecked$/ ) \n string.match( /[^a-zA-Z0-9]chkChecked/ ) \n //"
},
{
"answer_id": 91724,
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8741/"
] |
91,635 | <p>I am considering using Postsharp framework to ease the burden of application method logging.
It basically allows me to adorn methods with logging attribute and at compile time injects the logging code needed into the il. I like this solution as it keeps the noise out of the deign time code environment.
Any thoughts,... | [
{
"answer_id": 91659,
"author": "Chris Canal",
"author_id": 5802,
"author_profile": "https://Stackoverflow.com/users/5802",
"pm_score": 4,
"selected": true,
"text": "namespace Tools.CastleWindsor.Interceptors\n{\nusing System;\nusing System.Text;\nusing Castle.Core.Interceptor;\nusing Ca... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6440/"
] |
91,672 | <p>In an application where users can belong to multiple groups, I'm currently storing their groups in a column called <code>groups</code> as a binary. Every four bytes is a 32 bit integer which is the <code>GroupID</code>. However, this means that to enumerate all the users in a group I have to programatically select a... | [
{
"answer_id": 91702,
"author": "JacquesB",
"author_id": 7488,
"author_profile": "https://Stackoverflow.com/users/7488",
"pm_score": 4,
"selected": true,
"text": "User: (UserId[PrimaryKey], UserName etc.)\nGroup: (GroupId[PrimaryKey], GroupName etc.)\nUserInGroup: (UserId[ForeignKey], Gr... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16299/"
] |
91,678 | <p>My Tomcat instance is listening to multiple IP addresses, but I want to control which source IP address is used when opening a <code>URLConnection</code>. </p>
<p>How can I specify this?</p>
| [
{
"answer_id": 92124,
"author": "Javaxpert",
"author_id": 15241,
"author_profile": "https://Stackoverflow.com/users/15241",
"pm_score": 4,
"selected": true,
"text": "URL url = new URL(yourUrlHere);\nProxy proxy = new Proxy(Proxy.Type.DIRECT, \n new InetSocketAddress( \n InetAdd... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17542/"
] |
91,692 | <p>Can anyone recommend a framework for templating/formatting messages in a standalone application along the lines of the JSP EL (Expression Language)?</p>
<p>I would expect to be able to instantiate a an object of some sort, give it a template along the lines of</p>
<pre><code>Dear ${customer.firstName}. You order w... | [
{
"answer_id": 133028,
"author": "Vihung",
"author_id": 15452,
"author_profile": "https://Stackoverflow.com/users/15452",
"pm_score": 0,
"selected": false,
"text": "Dear {0}. Your order will be dispatched on {1,date,EEE dd MMM yyyy}\n"
},
{
"answer_id": 28663050,
"author": "y... | 2008/09/18 | [
"https://Stackoverflow.com/questions/91692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15452/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.