text stringlengths 8 267k | meta dict |
|---|---|
Q: Getting started with mobile programming. What is a good platform? What is a good mobile programming platform to go with for a c++ developer?
Is learning android a good option?
A: If you already know C++ then Symbian has the largest install base, and isn't sandboxed like java/android vm/iphone.
Whilst the iPhone an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Qt context menu breaking selection in QTreeView I have a QTreeView class with a context menu installed as follows:
m_ui.tree->setContextMenuPolicy(Qt::CustomContextMenu);
connect(m_ui.tree, SIGNAL(customContextMenuRequested(const QPoint&)),
this, SLOT(ShowTreeContextMenu(const QPoint&)));
...
void ShowTreeCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best Windows Installation file Creator? I'm not the best programmer so I found it was much easier to write a program as several separate executables, which occasionally call each other. But now I need an easy way to actually run them without writing detailed instructions like Run file one, wait until its completed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: What does a db table created by the Rails framework look like? I don't have a Rails environment set up and this is actually quite hard to find a quick answer for, so I'll ask the experts.
When Rails creates a table based on your "model" that you have set up, does Rails create a table that mirrors this model exactly,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's in your Utility Toolkit? Some of the most efficient engineers, developers and IT professionals I know usually carry around a common "toolkit" of useful programs, add-ins or utilities which help them for day-to-day debugging, developing or designing.
The question is:
What is in your utility toolkit.. What tool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to decrypt a password from SQL server? I have this query in sql server 2000:
select pwdencrypt('AAAA')
which outputs an encrypted string of 'AAAA':
0x0100CF465B7B12625EF019E157120D58DD46569AC7BF4118455D12625EF019E157120D58DD46569AC7BF4118455D
How can I convert (decrypt) the output from its origin (which is 'A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How should I express fractions like 15/16ths in HTML? I know there are HTML entities for 1/2, 1/4, and 3/4, but are there others? Like 1/3 or 1/8? Is there a good way to encode arbitrary fractions?
A: how about 15β16? (<sup>15</sup>⁄<sub>16</sub>)
A: 1/2 β ½ or ½
1/4 β ¼ or ¼
3/4 β &#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: SMS alerting to respond to error situations faster What is the easiest way to set up an SMS alerting system so that I will receive notification if my server doesn't respond or a GET query doesn't return correct content?
A: You can completely outsource the monitoring and alerting, for example by subscribing to Pingd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which database implementations allow sandboxing users in separate databases? Can anyone tell me if there are RDBMSs that allow me to create a separate database for every user so that there is full separation of users' data?
Are there any?
I know I can add UID to every table but this solution has its own problems (fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you free a wrapped C++ object when associated Javascript object is garbage collected in V8? V8's documentation explains how to create a Javascript object that wraps a C++ object. The Javascript object holds on to a pointer to a C++ object instance. My question is, let's say you create the C++ object on the he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How do you deal with large dependencies in Boost? Boost is a very large library with many inter-dependencies -- which also takes a long time to compile (which for me slows down our CruiseControl response time).
The only parts of boost I use are boost::regex and boost::format.
Is there an easy way to extract only the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Has anyone built web-apps that can run totally off-line? I'm building an app that authors would (hopefully) use to help them, uh.. author things.
Think of it like a wiki but just for one person, but cooler. I wish to make it as accessible as possible to my (potential) adoring masses, and so I'm thinking about making... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Nhibernate 2.0.1 with mono I've build my WinForm app on windows machine and the app is working
ok. When I user nhibernate 1.2.1 the app also worked on linux machine
using mono, but now when i upgraded app to nhibernate 2.0.1 it works
only in windows.
I've get error:
NHibernate.InvalidProxyTypeException: The followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the best installation tool for java? Depends on your experience could you recommend something?
I've use izpack, and it's very nice tool, is there any other, better tool?
A: for Windows there's AdvancedInstaller, it was very easy to use and created standard .msi files. It has some extra features for Java i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Example of using Service Exists MSBuild task in Microsoft.Sdc.Tasks? I'm trying to use the Microsoft.Sdc.Tasks.ServiceProcess.Exists to check whether or not a service exists. There is no example of using it in the documentation though. Anyone have one?
A: This is how we check if service exists, stop it if so, do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check if PHP array is associative or sequential? PHP treats all arrays as associative, so there aren't any built in functions. Can anyone recommend a fairly efficient way to check if an array "is a list" (contains only numeric keys starting from 0)?
Basically, I want to be able to differentiate between this:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "895"
} |
Q: How can I find the execution time of a section of my program in C? I'm trying to find a way to get the execution time of a section of code in C. I've already tried both time() and clock() from time.h, but it seems that time() returns seconds and clock() seems to give me milliseconds (or centiseconds?) I would like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Developing a scheduled task for Windows I have to develop an application using C#.net that has to be run once a day. It only runs for at most one minute, so developing a Windows service is overkill and a scheduled task is the appropriate way.
However, I have a few questions about how the application can communicate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to fix DWMAPI.DLL delay-load dependency under WinXP? I have built a .dll under WinXP that claims it can't find DWMAPI.DLL when it's loaded. The problem is that this DLL is a Vista DLL, and this a known issue for XP users that have IE7 installed. The recommendation is to uninstall IE7 or repair the .NET Framework... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: MinGW library converted to Windows library gives odd link in VC++6 I used the MinGW .a to Windows .lib transformation process as detailed in a
thread on the gmp-discuss list, as below (acting against a library created with --disable-shared --enable-static.)
cp libgmp.a gmp.a
ranlib gmp.a
mv gmp.a gmp.lib
I now ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Track completed downloads from glassfish I want to be able to track completed downloads served by my glassfish server. I couldn't find a 100% correct solution using servlet life cycle listeners.
Does anyone have a better idea?
A: Put a try-catch on IOException while serving the file download. If it's thrown, then ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using Microsoft.Sdc.Tasks.ServiceProcess.ControlService how do I check if a service exists on a remote machine? I'm trying to check if a service exists on a remote machine using the Microsoft.Sdc.Tasks.ServiceProcess.ControlService task.
<ControlService MachineName="$(TargetMachineName)" Action="Exists" ServiceName... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Learning Windows Forms vs. Windows Presentation Foundation So I've been thinking of going for Microsoft certification and I have to make a choice (for now) between Windows Forms and WPF for developing Windows applications. I have had good exposure to Windows Forms but never tried WPF before. Furthermore, most of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Positioning flash content using CSS I have a generated HTML page with flash content in it. I am trying to reposition the flash content and make it "absolute". I have tried to wrap the object tags with a div tag, but to no avail. Can anyone tell me how to do this? Removing the generated positioning attributes does no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does anyone have experience with PyS60 mobile development I am in the position of having to make a technology choice early in a project which is targetted at mobile phones. I saw that there is a python derivative for S60 and wondered whether anyone could share experiences, good and bad, and suggest appropriate IDE'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Problems with shutting down JBoss in Eclipse if I change JNDI port 1st phase
I have a problem shutting down my running JBoss instance under Eclipse since I changed
the JNDI port of JBoss. Of course I can shut it down from the console view but not with
the stop button (it still searches JNDI port at the default... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Create destinations for all bookmarks in a PDF file with iText API I'd like to write some (java) code that takes a PDF document, and creates named destinations from all of the bookmarks. I think the iText API is the easiest way of doing this, but I have never used the API before.
How would you go about writing this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Code syntax formatter for posting code on webpages Is there a utility that will generate html or css for blocks of code (.net c#) when you post it on a website?
I have seen several websites with very nicely formatted code and I dont believe they do this manually.
A: Google prettify -
http://code.google.com/p/googl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# open source NMEA parser Am looking for C# open source NMEA parser.
A: Well, I'm not familiar with it myself, but some quick searches show one on CodeProject, which links to 2 other such, here and here. Any of those help?
A: check out sharpGPS . there are several other gps and nmea related projects o codeplex ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Using PHP to take the first line of a CSV file and create a MySQL Table with the data I am trying to take a rather large CSV file and insert it into a MySQL database for referencing in a project. I would like to use the first line of the file to create the table using proper data types and not varchar for each colum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to generate pdf files _with_ utf-8 multibyte characters using Zend Framework I've got a "little" problem with Zend Framework Zend_Pdf class. Multibyte characters are stripped from generated pdf files. E.g. when I write aΔ
bcΔdeΔ it becomes abcd with lithuanian letters stripped.
I'm not sure if it's particularly Z... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why use Glassfish instead of Apache? What's it strengths and weaknesses? Sorry for my ignorance here, but when I hear the word webserver, I immediately imagine Apache, although I know people use Microsoft's IIS too. However since I've been hanging out here at Stackoverflow I've noticed lots of people use Glassfish.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: How can I change the 259 char limit inside WinForms Treeview LabelEdit? My VB.Net Winforms app is a tool to allow hierarchical data to be edited in a tree, then stored in a database. I am using a treeview control.
Content is drag-dropped from other documents onto the treenodes, or the nodes can be edited directly.
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a new rrd database based on an existing one I have some old rrdtool databases, for which the exact creation recipe has long been since lost. I need to create a new database with the same characteristics as the current ones. I've dumped a couple of old databases and pored over the contents but I'm not sure h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Flush disk write cache When the policy for a disk in Windows XP and Vista is set to enable write caching on the hard disk, is there a way to flush a file that has just been written, and ensure that it has been committed to disk?
I want to do this programmatically in C++.
Closing the file does perform a flush at the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Open port 8080 (APACHE) in ISA Server 2006 Im using APACHE as my web server and using port 8080. Ive create a site called
(e.g. http://test.domain.com:8080). I have a Firewall (ISA Server 2006).
How am I suppose to establish "http://test.domain.com:8080"in ISA Server?
Will I just add "http://test.domain.com" as its... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to use the LoginView control in combitation with the server session in ASP.NET? Is it possible to use the LoginView control in combitation with the server session in ASP.NAT?
A: Yes, it can use the session automatically. You can just set a username field or authenticated field in session so you know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass mouse events to applications behind mine in C#/Vista? I am writing a very specialized app in C# that floats as a mostly transparent window over the entire desktop. I want to be able to create and pass mouse events to applications behind mine, and have them appear to operate "normally", responding to thos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I restore a windows size and position in a wxRuby app? Does anyone know of any sample code for restoring a window's position and size in wxRuby?
A: YAML would be a better choice to serialize the prefs, but here I just store a comma-delimited string in the prefs.txt file.
require "rubygems"
require "wx"
incl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TFS: comparing shelveset files with local version When viewing files in a shelveset, I would like the option of comparing the files to my current local version. Unfortunately, the only options available are "With Unmodified", "With Workspace" (I guess this one would be the answer, if it wasn't disabled) and "With La... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: How to catch Control-V in C# app? I've tried to override WndProc, but no message show up on paste event.
Then I tried to create custom filter and using method PreFilterMessage I was able to catch message with value 257 (KEYUP event), but that's not enough...
A: You can do this by:
*
*Intercepting the Ctrl+V in Ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to map caller memory in a Windows CE device driver past the end of a call to XXX_IOControl? I'm implementing a ioctl in a Windows CE device driver that takes a pointer to a large chunk of application memory to perform asynchronous I/O initiated through an application call to DeviceIoControl.
When using MapCaller... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you structure your NUnit tests on a large project? I am interested in seeing if I can improve the way we use NUnit in a Visual Studio solution containing 30+ projects.
First, would you have one assembly of tests for every assembly in the solution, or would you try to keep the number of test assemblies down? I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Calling JS from Applet: MalformedURLException: unknown protocol: javascript I read that you could call JavaScript code from a Java Applet by calling
JApplet.getAppletContext().showDocument( "javascript:alert('Hello World');" );
However, when I do this i get the following error:
java.net.MalformedURLException: unkno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a portable equivalent to DebugBreak()/__debugbreak? In MSVC, DebugBreak() or __debugbreak cause a debugger to break. On x86 it is equivalent to writing "_asm int 3", on x64 it is something different. When compiling with gcc (or any other standard compiler) I want to do a break into debugger, too. Is there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: Is it possible to make git svn "relocate" branch files on checkout? Our svn repository has lots of branches that are branches off of sub-trees. This works OK with svn because I can check out that sub-tree in the correct spot in my working copy. However, if I check out the same branch using git, I get a working copy ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where can I find sample uses of LWJGL? I have seen the official demos on lwjgl.org but I would like to see some more tutorial level examples.
A: Google "import org.lwjgl" to find lots of examples, as all code that uses LWJGL must contain that string to import parts of the package.
A: If it still does matter: http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What Oracle driver should I install in my MS SQL server to be able to use DTS to copy data from the Oracle server to the MS SQL server? I have an Oracle server (version 9, I believe) and a MS SQL server (version 2000). The MS SQL server is running MS Windows Server 2003.
I would like to use DTS to extract some data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I see Debug.WriteLine statements when using TestDriven.Net? I'm trying to use TestDriven.Net not only to test my code, but to call a function on my code whose purpose is to print out the internal state of the code to the Debug window.
Here's a very simplified example of what I'm trying to do..
<TestFixture()>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I get a list of files that have been added to the SVN since a certain date? I only want a list of files that have been added (not ones that have been modified) since a certain date. Is there an easy way to do this?
Answer: Here's what ended up working for me, thanks guys!
svn log -v -r{2008-10-1}:HEAD svn://... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Version control for video editing work I am looking into improving the backup process a group of animators use. Currently they back up their work into external hard drives or DVDs manually, taking full copies of everything. The data consists of thousands of high resolution images, project files of various video edit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can I Define Exceptions to Eclipse cleanup rules? Most often the cleanup rules (Preferences > Java > Code Style > Clean Up) in Eclipse work perfectly and create nice-looking code.
But sometimes, especially with comments and concatenated string snippets (like inline SQL queries), the cleanup just messes things up, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I make modal dialog for a Page in my WPF-application? I have a WPF Window which has a among other controls hosts a Frame. In that frame I display different pages. Is there way to make a dialog modal to only a page? When I'm showing the dialog it should not be possible to click on any control on the page but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How to disable right click menu in external launched application Good day.
I have a program thats launches an external application. That external app has a right click sub menu on it which I need to disable. Is it possible (without modifying the external app) to disable the right click? Maybe permission or group pol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is there no RAII in .NET? Being primarily a C++ developer the absence of RAII (Resource Acquisition Is Initialization) in Java and .NET has always bothered me. The fact that the onus of cleaning up is moved from the class writer to its consumer (by means of try finally or .NET's using construct) seems to be mark... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: String literals inside functions: automatic variables or allocated in heap? Are the string literals we use inside functions automatic variables? Or are they allocated in heap which we have to free manually?
I've a situation like the code shown below wherein I'm assigning a string literal to a private field of the cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to pass arguments into event bindings? I haven't found an answer elsewhere and this doesn't appear to have been asked yet on SO.
When creating an event binding in wxPython, is it possible to pass additional arguments to the event? For example, this is the normal way:
b = wx.Button(self, 10, "Default B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Can I change the Visual Studio text editor's cursor? The tiny text entry cursor in the Visual Studio 2005's editor is driving me nuts. I'd ideally like to be able to highlight (say in yellow) the entire line that I'm currently on, but I'll settle for just making the cursor bigger and/or a different colour. Any hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I develop for both Portrait and Landscape display formats? I'm currently developing for a handheld device running Windows XP Professional (not Tablet PC edition). The device allows users to switch from the standard widescreen landscape display format to a portrait one. I would like to know if there are any VB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I delete a specific node within a XML file by using vbscript I am having the problem that I cannot select a specific XML node which needs to be deleted. I have already tried to select the node by using the XPath which works fine for some XML files but I cannot figure out the correct XPath for a node in a mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inline editing in a winforms textbox at design time I'm using a custom winforms 2.0 designer (i.e. my apps hosting the designer) which is being used for a small internal project.
So far all the controls have their properties edited via the property grid - but I'd like to make it a little more user-friendly by allowi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server: Copying column within table What is the easiest way to copy the all the values from a column in a table to another column in the same table?
A: With a single statement (if the columns have the same datatype)
UPDATE <tablename>
SET <destination column name> = <source column name>
A: This script will up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: When and why are database joins expensive? I'm doing some research into databases and I'm looking at some limitations of relational DBs.
I'm getting that joins of large tables is very expensive, but I'm not completely sure why. What does the DBMS need to do to execute a join operation, where is the bottleneck?
How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "394"
} |
Q: How to save encrypted data in cookie (using php)? I would like to save data in cookies (user name, email address, etc...) but I don't the user to easily read it or modify it. I need to be able able to read the data back. How can I do that with php 5.2+?
It would be used for "welcome back bob" kind of feature. It is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does Installshield 2008 not roll back XML Changes? I am using Installshield 2008 Premier to edit some XML files which are already on the targetsystem. This process does work fine with the "XML file changes" function.
My problem is, that Installshield does not remove these changes on uninstall. I have set the "Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get the count of null value columns per row in a return set? I'm looking for a query which will return me an extra column at the end of my current query which is the count of all columns within the return set which contain a null column. For example:
Col 1 - Col 2 - Col 3
A B 0
A NULL 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best / easiest way to talk to SQLite from .NET? Question says it all, really.
My application is a time tracker. It's currently written as a spreadsheet, but there's just too much data and I would like to impose a bit more structure on it.
SQLite seems like a neat way to go.
I would be open to other s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Apache uses excessive CPU We run a medium-size site that gets a few hundred thousand pageviews a day. Up until last weekend we ran with a load usually below 0.2 on a virtual machine. The OS is Ubuntu.
When deploying the latest version of our application, we also did an apt-get dist-upgrade before deploying. After we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Coverity for Java static analysis I'd like to get comments from people who have used or evaluated Coverity for statically analysing Java-code. I know it's popular in C/C++ world, but is it worth spending the money for Java analysis or am I better off with PMD, Findbugs and other Open Source tools?
A: I'll chip in w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Is .NET memory management faster in managed code than in native code? I would have thought that it would be clear cut whether memory allocation is faster in managed code than in native code - but there seems to be some controversy. Perhaps memory management under a Virtual Machine be faster because of no context-sw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What ways are there of drawing 3D trees using Java and OpenGL? I know how to draw basic objects using JOGL or LWJGL to connect to OpenGL. What I would like is something that can generate some kind of geometry for trees, similar to what SpeedTree is famous for. Obviously I don't expect the same quality as SpeedTree.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is SVN 1.5 Merge-tracking ready for prime-time? I'm already using SVN 1.5, both sever(VisualSVN 1.5.1) and client-side(TortoiseSVN 1.5.1) but we are using a fairly lengthy SVN Branch-Merge dance.
How ready is the Merge-Tracking facility of SVN 1.5.x and is it yet possible to use it from TortoiseSVN?
A: Subversion r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I iterate recursively though a sharepoint list using webservices? in sharepoint webservices, I can use getListItems() to obtain the child elements of a list.
In a document library, sometimes the element is a folder.
"ows_FSObjType = 1"
Is there any way to ask SP for the child elements of this folder?
Query... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I stop a UIScrollView from bouncing horizontally? I have a UIScrollView that shows vertical data, but where the horizontal component is no wider than the screen of the iPhone. The problem is that the user is still able to drag horizontally, and basically expose blank sections of the UI. I have tried setting:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Java: Serializing unknown Arraysize If I safe an Array and reload it, is there a possibility to get the size if its unknown?
Thanks
A: What do you mean by "unknown"? You can get the length of any java array with the length field.
int[] myArray = deserializeSomeArray();
int size = myArray.length;
A: It sounds lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AutoPostback with TextBox loses focus A TextBox is set to AutoPostback as changing the value should cause a number of (display-only) fields to be recalculated and displayed.
That works fine.
However, when the field is tabbed out of, the focus briefly moves on to the next field, then disappears when the page is redra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Should exceptions be in a different project When structuring a visual studio solution I tend to structure it so that various components are in different project (As I would assume most people do) I tend to have a bunch of User defined exceptions.
The Question is should these exceptions be in a separate project to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using ALTER to drop a column if it exists in MySQL How can ALTER be used to drop a column in a MySQL table if that column exists?
I know I can use ALTER TABLE my_table DROP COLUMN my_column, but that will throw an error if my_column does not exist. Is there alternative syntax for dropping the column conditionally?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "119"
} |
Q: How to get the function name while in a function for debug strings? I want to output the function name each time it is called, I can easily copy and paste the function name, however I wondered if there was a shortcut that would do the job for me?
At the moment I am doing:
SlideInfoHeader* lynxThreeFile::readSlideInf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: JavaScript, inputstream and DIB? Is there any useful way to load DIB into inputstream and get a handle to it and all that in JavaScript (js) ?
A: Assuming DIB means Device Independent Bitmap...
If the DIB is on the client side in a browser, then I don't think you can do this with just the JS in the browser. You wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting the schema for a table Given an SQLConnection object how can you get a schema for a single table?
I seemed to be able to get the schema from a DataSet which I'd gotten from running a query, but all the schema info I could get from the connection seemed to be related to what tables were available and not the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Showing a loader while Spry XMLDataset loads the data I am using Spry (SpryData.js,xpath.js)
var ds1 = new Spry.Data.XMLDataSet("_db/db.xml", "bildiriler/bildiri",{useCache:false});
// load the xml tree
....
<!-- use it in a loop -
Sometimes the page use "ds1.loadData();" to refresh the data -->
<div spry:r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Twin Slider control .net Has anyone seen a good twin slider control for .Net (Win forms or WPF).
I'm looking for something that will allow me to select a range from within a set so the first slider would be the start of the range and the second would be the end.
I remember seeing a Swing double slider but it was 6 y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to do dynamic URL redirects in Struts 2? I'm trying to have my Struts2 app redirect to a generated URL. In this case, I want the URL to use the current date, or a date I looked up in a database. So /section/document becomes /section/document/2008-10-06
What's the best way to do this?
A: Here's how we do it:
In ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What is the canonical way to determine commandline vs. http execution of a PHP script? I have a PHP script that needs to determine if it's been executed via the command-line or via HTTP, primarily for output-formatting purposes. What's the canonical way of doing this? I had thought it was to inspect SERVER['argc'], ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "166"
} |
Q: jQuery: Problem with windowed controls in IE6 I have a web page which contains a select box. When I open a jQuery Dialog it is displayed partly behind the select box.
How should I approach this problem? Should I hide the select box or does jQuery offer some kind of 'shim' solution. (I have Googled but didn't find a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get a file's extension in PHP? This is a question you can read everywhere on the web with various answers:
$ext = end(explode('.', $filename));
$ext = substr(strrchr($filename, '.'), 1);
$ext = substr($filename, strrpos($filename, '.') + 1);
$ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $filename);
$exts = s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "842"
} |
Q: Why can't c++ ifstreams read from devices? I knew I should never have started using c++ io, the whole "type safety" argument is a red herring (does anyone really find that it's one of their most pressing problems?). Anyhow, I did, and discovered a strange difference between ifstreams and FILE*s and plain old file de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you protect code from leaking outside? Besides open-sourcing your project and legislation, are there ways to prevent, or at least minimize the damages of code leaking outside your company/group?
We obviously can't block Internet access (to prevent emailing the code) because programmer's need their references.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Multiple instances of a java web application sharing a resource I have a web service, that takes an input xml message, transforms it, and then forwards it to another web service.
The application is deployed to two web logic app servers for performance, and resilience reasons.
I would like a single website monitoring... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ParseFloat function in JavaScript When I am adding two textbox values that are 1.001 and 0.001 and then I do a parseFloat I get 1.0019999999. I want it 1.002 . Can you help me?
A: This is a known problem: see accuraty problem
and the minimisation of the accuracy problem: minimisation
A: The javascript methods Numb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Overriding serialization for a particular .NET type Please consider this example class:
[Serializable]
public class SomeClass
{
private DateTime _SomeDateTime;
public DateTime SomeDateTime
{
get { return _SomeDateTime; }
set { _SomeDateTime = value; }
}
}
I would like to alter the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Performance issue with "new ReportDocument()" I have a C# application where I create a Crystal Reports ReportDocument, with the line
CrystalDecisions.CrystalReports.Engine.ReportDocument document =
new CrystalDecisions.CrystalReports.Engine.ReportDocument();
This line takes 3-4 seconds to exe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checkstyle's PackageHtml-rule ignores package-info.java I use checkstyle to analyze my code. A useful rule is PackageHtml, that checks, if a package contains a Javadoc-description. But with newer java-version it's recommended to use package-info.java instead of package.html. Problem is, checkstyle ignores the packag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is anyone running a production ASP.NET site on top of Mono? I'm trying to do an informal feasibility study for work on if Mono/Apache/Linux is realistically 'ready' and in any way comparable to a more traditional .NET/IIS/Windows stack.
Any comparison of performance would be helpful too.
A: http://Fiducial.Biz, a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I blink/control Macbook keyboard LEDs programmatically? Do you know how I can switch on/off (blink) Macbook keyboard led (caps lock,numlock) under Mac OS X (preferably Tiger)?
I've googled for this, but have got no results, so I am asking for help.
I would like to add this feature as notifications (eg. new me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a "theirs" version of "git merge -s ours"? When merging topic branch "B" into "A" using git merge, I get some conflicts. I know all the conflicts can be solved using the version in "B".
I am aware of git merge -s ours. But what I want is something like git merge -s theirs.
Why doesn't it exist? How can I ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1081"
} |
Q: Displaying a Desktop Shortcut for a device having windows ce 4.2 (VS 2003) I have developed a Windows CE 4.2 Application in VS 2003. When i deploy the CAB file in the device having X86 has its processor, a short cut for the application is created in Start >> Program >> Application. But I want a short cut for the app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Incorporating shareware restrictions in C++ software I wish to implement my software on a shareware basis, so that the user is
given a maximum trial period of (say) 30 days with which to try out the software. On purchase I intend the user to be given a randomly-generated key, which when entered
enables the software ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: HTML newspaper columns I'm trying to create newspaper style columns using a block of text. I would like the text to be evenly spread out across 2 columns which could react to change of length in the text.
Is this possible using just HTML/CSS, if not could javascript be used?
Thanks
A: If you decide to do this, it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.