text stringlengths 8 267k | meta dict |
|---|---|
Q: Image thumbnail creation in the Model? I am wondering if including image thumbnail information in the model makes sense. Like specifying what sizes of thumbnails you would like to be created. Thumbnail directory. Etc.
Also when working with thumbnails and a database, Is it advisable to store all created thumbnails a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MSDTC communication fails over VPN I have an application that runs transactions spanning over multiple databases on the same server. Naturally this involves the Microsoft Distributed Transaction Coordinator and everything works like it is supposed to.
Howver, when I remotely connect to the network where the server i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to deploy a VS-2008 web project what is the preferred method of deploying a web project? Just copy the dll's after compiling in release mode and registering them? or using NSIS to build an installer or the MS set up project.
A: I usually use a Web Deployment Project per WebSite or WebApplication, it allows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I run Perl scripts using FastCGI on Nginx? So I am following this guide: http://technotes.1000lines.net/?p=23 and I am going through the steps. I have a VPN (slicehost.com) with Debian Etch, serving a website (static so far) with nginx. I used wget to download FastCGI and I did the usual make make install ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do you JOIN two MySQL tables where the data is NOT in the other table? For example, I have a pet table and a lost pets table. I want to get all of the pets that are NOT lost with 1 join and no sub-selects. Is that possible? A typical join only returns results that are in both tables.
A: You're describing an OUT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Basic Authentication with IIS 6.0 and Asp.Net Is it possible to provide Basic authentication to clients using ASP.Net to authenticate the request in IIS 6.0 (I am pretty sure this is doable in 7.0 without much pain).
A: Bjorn has some source code that accomplishes this task.
http://blog.smithfamily.dk/2008/08/27/Im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to decode U.P.S. Information from UPS MaxiCode Barcode? I recently purchased a 2D Barcode reader. When scanning a U.P.S. barcode, I get about half of the information I want, and about half of it looks to be encrypted in some way. I have heard there is a UPS DLL.
Example - Everything in bold seems to be encrypted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Silverlight: How to force binding after setting the DataContext property Is it possible to set the DataContext property of a usercontrol after the user control has been loaded, and force the usercontrol to rebind?
A: I'm pretty sure that if you just set the datacontext again, it will rebind
A: If you need to do ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a tool that can visually map table relationships in MySQL? I'm looking for a tool that can map the relationships in my database in mysql. I would like something like the view that is generated in MS-SQL Server Management Studio in the 'Show Diagram Pane'. Does such a thing exist?
I'm in charge of the desi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to uninstall plugins in Eclipse 3.4.X or higher The GUI for managing plugins in Eclipse got a bit of an overhaul in version 3.4.0.
This GUI is accessed via the "Software Updates..." option in the Help menu.
The option to remove the selected Mylyn plugin is greyed out. In fact, this is true of virtually every ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: YAGNI - The Agile practice that must not be named? As I've increasingly absorbed Agile thinking into the way I work, yagni ("you aren't going to need it") seems to become more and more important. It seems to me to be one of the most effective rules for filtering out misguided priorities and deciding what not to work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Difference between dict.clear() and assigning {} in Python In python, is there a difference between calling clear() and assigning {} to a dictionary? If yes, what is it?
Example:d = {"stuff":"things"}
d.clear() #this way
d = {} #vs this way
A: As an illustration for the things already mentioned before:
>>> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "180"
} |
Q: How do I programmatically open a MS Word document without invoking the Document_Open macro I am trying to use Office Automation to open a word document. The problem is that I would like to open it without invoking the Document_Open macro. Is there a way to do this?
The relevant line below is wordApp.Documents.Open... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WinInet: timeout management in FTP put My program puts a file into a remote host using HTTP. For some unavoidable
reasons, the remote hosts needs some time to acknowledge the final packet of
the data transmission. More time than the default timeout, which according
to my experience is around 30 seconds.
Therefore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL statement to collect data in a day-by-day, hour-for-hour fashion I have a database which gets updated with 200-1000 new rows per day. Now, I'd like to have an SQL-statement which returns the data day-by-day, hour-by-hour so I can give a rough estimate for the current trend, i.e. how many rows will be added to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Serializing a java Map to a db i'm using jdbc to work with my db.
I want to store a HashMap directly in the db, oracle.
i figure i need to serialize the Map, and its contents, which are only String.
Map already implements Serializeable, but my question is how do i put the Map in the SQL using jdbc?
for instance, i h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Common Lisp's symbol-name in Clojure? Is there anything in Clojure that is equivalent to Common Lisp's
symbol-name function?
A: The Clojure name function will return the name of the symbol, instead of the symbol itself.
(name symbol)
Answer by Stuart Sierra on Clojure group.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/369939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Simple Interpreted Language Design & Implementation I need some resources for implementing a simple virtual machine and interpreted language. Something that is pratical is most useful. I have read the Virtual Machine Implementation book and found that it is quite old and doesn't represent the vms I see today. Als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Event-driven simulation class I am working through some of the exercises in The C++ Programming Language by Bjarne Stroustrup. I am confused by problem 11 at the end of Chapter 12:
(*5) Design and implement a library for writing event-driven simulations. Hint: <task.h>. ... An object of class task should be able ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Items from multiple categories best practices I'm making list of items in categories, problem is that item can be in multiple categories.
What is your best practice to store items in categories and how list all items within category and its child categories? I am using Zend Framework and MySQL to solve this issue.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Silverlight Databinding - Binding a ValueConverter to a property on a view-model Let's pretend I have the following xaml...
<UserControl.Resources>
<local:ViewModel x:Name="viewModel" />
<local:LoadChildrenValueConverter x:Name="valueConverter" />
</UserControl.Resources>
<UserControl.DataContext>
<Bin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fail to read uncommitted data from same session in MySql/.net connector I've been banging my head against the wall with this one, may be someone can shed some light as of to what may be causing this behavior.
I have an asp.net (2.0) app that as some point does:
using(TransactionScope scope = new TransactionScope(...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Whats the pros and cons of using Castle Active Record vs Straight NHibernate? Assuming that writing nhibernate mapping files is not a big issue....or polluting your domain objects with attributes is not a big issue either....
what are the pros and cons?
is there any fundamental technical issues? What tends to influ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: SQL injection attack - What is going on here?
Possible Duplicate:
Attempted SQL injection attack - what are they trying to do?
I have seen this SQL injection attempt on my site many times in the last few months.
';DECLARE @S CHAR(4000);SET @S=CAST(0x4445434C415245204054207661726368617228323535292C40432076617263... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Custom command for Eclipse on current file I would like to enhance Eclipse so that when I press a custom key combo--say Ctrl + Shift + E--then it will run a command on the current file (if my current buffer is foo.c then it will run `mycommand foo.c' in foo.c's directory).
A: Also, make sure that your "resource" (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Which language(s) have comments that are not comments? What language(s) have comments with side effects? In essence, comments which are not comments....
A: English. Do I win?
A: DOS Batch Shell programming
The REM (Remark) allows you to put in a comment. But it has the side-effect of modifying the ERRORLEVEL va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to customize error display in powershell? I find the standard Powershell display of errors (red text, multi-line display) a bit distracting. Is it possible to customize this?
A: Here is a bunch of stuff that will let you customize your console output. You can set these settings as you like in your p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Log changes made to all fields in a table to another table (SQL Server 2005) I would like to log changes made to all fields in a table to another table. This will be used to keep a history of all the changes made to that table (Your basic change log table).
What is the best way to do it in SQL Server 2005?
I am goin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Managing Session State I have a need to maintain the session state in the database. However I cannot access the database directly from the web server. The web server communicates with an app server which in turn has access to the database.
Is there a way to configure this? Or does a custom component have to be wri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/369995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: default value for generic type in c# The docs for Dictionary.TryGetValue say:
When this method returns, [the value argument] contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
I need to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Simple properties to string conversion in Java Using Java, I need to encode a Map<String, String> of name value pairs to store into a String, and be able to decode it again. These will be stored in a database column, and will probably usually be short and simple, so the common case should produce a simple nice loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Measuring Response Times In Combination With WatiN I'm looking for a tool that I could potentially use in combination with WatiN that would allow me to more or less measure both the response time of an interaction and also the filesize of the same interaction in combination with WatiN. Let's say, I make a google req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery delete all table rows except first Using jQuery, how do I delete all rows in a table except the first? This is my first attempt at using index selectors. If I understand the examples correctly, the following should work:
$(some table selector).remove("tr:gt(0)");
which I would read as "Wrap some table in a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "294"
} |
Q: Rhino Mocks: How do I mock a method call within a method call? I have a really simple class with two methods; One that will be called and the other that it will call. The idea is to call the OuterMockMethod method BUT mock the InnerMockMethod. Right now I can only seem to mock the OuterMockMethod method.
public cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL Server 2005 "public" database role doesn't seem to apply? I have a SQL Server 2005 database that I'm trying to access as a limited user account, using Windows authentication. I've got BUILTIN\Users added as a database user (before I did so, I couldn't even open the database). I'm working under the assumption t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why git can't remember my passphrase under Windows I have just start using git and i can't get it to remember my passphrase I'm using cmd.exe elevated and my git host is github and i have create a ssh key like that guide on github
but i still get
*\subnus.mvc>git push origin master
Enter passphrase for key '/c/Use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "215"
} |
Q: What is the most elegant way to remove a path from the $PATH variable in Bash? Or more generally, how do I remove an item from a colon-separated list in a Bash environment variable?
I thought I had seen a simple way to do this years ago, using the more advanced forms of Bash variable expansion, but if so I've lost t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "130"
} |
Q: Programmatically Switching Views in Cocoa Touch How would one change the view on the screen programmatically in an iPhone app?
I've been able to create navigation view's and programmatically push/pop them to produce this behaviour, but if I wanted to simply change the current view (not using a UINavigation controlle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I include css files from an MVC partial control? I'm using ASP.NET MVC and I have a partial control that needs a particular CSS & JS file included. Is there a way to make the parent page render the script and link tags in the 'head' section of the page, rather than just rendering them inline in the partial ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: command-line world clock? Is there a script to display a simple world clock (time in various places around the world) on a *nix terminal?
I was thinking of writing a quick Python script, but I have a feeling that's gonna be more work than I think (e.g. due to config and output format) - not to mention reinventing th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I put a SQLAlchemy label on the result of an arithmetic expression? How do I translate something like this into SQLAlchemy?
select x - y as difference...
I know how to do:
x.label('foo')
...but I'm not sure where to put the ".label()" method call below:
select ([table.c.x - table.c.y], ...
A: The ColumnEl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PInvoke for C function that returns char * I'm trying to write some C# code that calls a method from an unmanaged DLL. The prototype for the function in the dll is:
extern "C" __declspec(dllexport) char *foo(void);
In C#, I first used:
[DllImport(_dllLocation)]
public static extern string foo();
It seems to work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: How do I pass a dynamic URL from XML into an onClick Mouse Event in ActionScript 3? I'm loading the XML in, and I'm able to read the XML nodes into text fields in my flash. It is also loading the URL, but the last one from the loop. It's not loading the one that I click on. I tried using event.target, but that is no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle function concurrency I currently have an INSERT TRIGGER which in Oracle 10g runs a custom defined function that generates a funky alpha-numeric code that is used as part of the insert.
I really need to make sure that the function (or even trigger) is thread safe so that if two users activate the trigger at on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get the network view to work in GitHub? I've run the suggested commands found here but I still can't seem to get the network view working. Here's what the page/view says instead:
If this is a Github repository you can
set your credentials to view your
network
git config github.user REPO_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Using PHP variables in your CSS file in Symfony I'd love to use PHP variables in my CSS files but I don't want to load up the whole Symfony stack for each file load. Any one have any best practices and/or plugins to manage their CSS files in Symfony?
A: but you dont need full symfony stack for that ( except if you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Load Balancing, AJAX, and You If you were an asynchronous javascript call in an Asp.Net MVC environment, and you had to work with a round-robin style of load balancer, would you be able to find your way home?
edit: adding clarification ..using in-memory session state.
A: I'd configure my load balancer with stickey ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Show messagebox over Save dialog in C# SaveFileDialog savefileDialog1 = new SaveFileDialog();
DialogResult result = savefileDialog1.ShowDialog();
switch(result == DialogResult.OK)
case true:
//do something
case false:
MessageBox.Show("are you sure?","",MessageBoxButtons.YesNo,MessageBoxIcon.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I add a context menu to the Windows Explorer for a Java application? How would one go about adding a submenu item to the windows explorer context menu (like for example 7-Zip does) for a Java application?
A: You could also package the java program in an installer like NSIS and you could use NSIS script to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Why is SQL Server not loading my index in memory? I have a table that has 8 million records, with many fields, including lat/long values, and it has an index over the Lat/Long fields.
I'm making a query to find the records that fall within a square around a point (to later refine into a circle), which is kind of:
SE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any pre-written component-like Silverlight web widgets like there are for Flash? Are there any pre-written component-like Silverlight web widgets like there are for Flash?
Flash examples:
XSPF Web Music Player
WordPress Audio Player
FLAMPlayer
Aflax
Clarification: I don't mean controls to use in your ID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Outer Join using Propel 1.2? I'm trying to do an Outer Join in Symfony. Here's the bit of code that seems like it would work if Criteria supported OUTER_JOIN:
$user = sfContext::getInstance()->getUser();
$petCriteria = new Criteria();
$petCriteria->add(PetInfoPeer::ACCOUNT_ID, $user->getProfile()->getAccountId());
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compressing web service request I have a webservice and client in c#/dotnet and I am using EnableDecompression to gzip compress the responses that I get from the web server. Is it possible to compress the requests as well?
A: SOAP extensions allow you to monkey with the SOAP stream on both the client and server. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I ORDER BY an arithmetic express in SQLAlchemy? How do I translate something like this into SQLAlchemy?
SELECT (a * b) - (x + y) / z AS result
FROM table
ORDER BY result
A: Just pass the label in as a string argument to order_by:
result_exp = sqlalchemy.sql.expression.label('result',
((test2_table.c.a * ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Datareader returns no results in VS yet Stored Procedure returns multiple result sets in Sql Server I am having trouble retrieving results from my datareader in visual studio 2008. I have several stored Procs in the same database. I am able to retrieve values from those that dont receive input parameters. However, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a Windows API hook for "this application wants attention"? In Windows XP, when a program wants the user's attention, it'll flash its taskbar button orange. Anyone with an IM program is probably familiar with this behavior. But when I'm playing a fullscreen-mode game, I don't see that, and messages go unan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQLAlchemy with count, group_by and order_by using the ORM I've got several function where I need to do a one-to-many join, using count(), group_by, and order_by. I'm using the sqlalchemy.select function to produce a query that will return me a set of id's, which I then iterate over to do an ORM select on the indiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Remote debugging - Remote debugger doesn't support this version of Windows error I have an XP client that is experiencing an issue. My dev box is Vista Home 64. I start up the debugger on the client machine and when i try to run on the dev box, it says 'Unable to debug. Remote debugger doesn't support this version o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Multiple Clients writing to a single file using Logging Application Block I have the following scenario:
1. .NET UI side uses Logging App Block to write to a flat file
2. Unmanaged Windows Service uses a proprietary logger to write to the same file as 1.
Question: Is there a way to enable FlatFile TraceListener to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS static margin-bottom below content? I'm trying to achieve a 50px space at the bottom of my page, below the main content area so that no matter what text size the user is at, or how much content happens to be inside the page - there is always a proceeding 50px space after the content area which will make either t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I find the correct case of a filename? This is on the Mac:
If I have two filenames /foo/foo and /foo/FOO they may refer to the same file or the may be different files depending on the file system. How do I figure out if they are both pointing to the same file? And if they are, how do I get the correct represe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Eclipse keyboard shortcuts broken in OSX 10.5.6 So I have been using Leopard for a year now, and the lastest update broke the keyboard mapping for eclipse. I use the dvorak layout, and now in eclipse if I press the ⌘ and the b key it does a build, instead of a cut(b = x).
Does anyone else have this issue, and are t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: When and why will a compiler initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete? I know that the compiler will sometimes initialize memory with certain patterns such as 0xCD and 0xDD. What I want to know is when and why this happens.
When
Is this specific to the compiler used?
Do malloc/new and free/de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: Why will <%= %> expressions as property values on a server-controls lead to a compile errors? This question is a result of what i noticed while trying to answer another question. And now im curious to know why <asp:TextBox runat="server" Visible="<%= true %>" /> leads to a compile error, and not to a visible TextBox... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Groovy/Grails SimpleTemplateEngine Freezes I'm using Grails to send a large number of HTML emails. I use the SimpleTemplateEngine to create my email bodies in this fashion:
def ccIdToEmailMap = [:]
def emailTemplateFile = Utilities.retrieveFile("email${File.separator}emailTemplate.gtpl")
def engine = new SimpleTemp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eclipse keyboard shortcut to an Ant task? Is there a way to run a specific Ant task via the keyboard? I have a rsync to dev task that I run a lot and running to the mouse to double-click is a pain.
A: If you launch regularly the same external launch, you can assign a shortcut to the command:
"Run Last Launched Exte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do you insert binary data into a BLOB column with Class::DBI? I want to create a new object using Class::DBI. One of the fields of this object is a BLOB type. I have a filehandle I want to use for this data, but apparently, just doing this doesn't work:
my $item = My::Class::DBI::Class->insert({
foo ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I break the reading this text file (using ifstream)? C++ I wanna stop the reading of my text input file when the word "synonyms" appears. I'm using ifstream and I don't know how to break the loop. I tried using a stringstream "synonyms" but it ended up junking my bst. I included the complete project files b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you get the content type of an uploaded file using CGI::Application? I am trying to process an uploaded file in a Perl program, using CGI::Application. I need to get the content type of the uploaded file. From what I read, the following should work, but it doesn't for me:
my $filename = $q->param("file");
m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: trouble installing rubygems I'm trying to setup a second ruby install in my home directory (a different version of ruby for testing). I've compiled ruby into ~/bin/ and everything is working until I try to install rubygems.
I have GEM_HOME set to ~/gems directory and GEM_PATH set to the same. Then I try to install r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing the Document class in AS3 How can instantiated classes access the Document class?
Even after I name the Document class using the Properties bar in Flash, attempting to access it from other classes usually fails, saying "attempting to access an undefined property...
One solution is always casting the Docume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Targetting Windows Mobile 6 Professional and Standard from one project Is it possible to target Windows Mobile 6 Professional and Standard from one project?
Perhaps a class library, with the program logic, and two GUI apps (one for Professional, one for Standard) to interact with the logic.
Is this possible?
A: I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExpressionEngine Multiple Site Manager and Member Groups I’m looking for some links to further info on how EE handles Member Groups in relation to the MSM.
In my case, I have two membership sites. Generally speaking, the two sites serve the same overall group of people, so the fact that the MSM shares the member dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to debug COM object in Visual Studio 6.0 that is created in an ASP page? I have an old C++ COM component which has to stay in Visual Studio 6.0 format. I can't for the life of me figure out how to debug the code in the actual COM component.
I'm able to build it in debug mode, add breakpoints and attach it to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Real World Example of the Strategy Pattern I've been reading about the OCP principle and how to use the strategy pattern to accomplish this.
I was going to try and explain this to a couple of people, but the only example I can think of is using different validation classes based on what status an "order" is.
I've re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: Java GUI Swing Model Explanation I've been working with Swing for a while now but the whole model/structure of JFrames, paint(), super, etc is all murky in my mind.
I need a clear explanation or link that will explain how the whole GUI system is organized.
A: Have you looked at the Java Swing Tutorial (click here)?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Undo and Object release Newbie question.
I have a NSMutableArray that holds multiple objects (objects that stores Bezier paths and related variables e.g. path colour etc.) These are properly released whenever the relevant -dealloc method is called. Each object is instantiated with +alloc/-init and added to the array... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get the drive letter from a path string or FileInfo This may seem like a stupid question, so here goes:
Other than parsing the string of FileInfo.FullPath for the drive letter to then use DriveInfo("c") etc to see if there is enough space to write this file. Is there a way to get the drive letter from FileInfo?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: What's the difference between "using" and "on" in table joins in MySQL? Is this
... T1 join T2 using(ID) where T2.VALUE=42 ...
the same as
... T1 join T2 on(T1.ID=T2.ID) where T2.VALUE=42 ...
for all types of joins?
My understanding of using(ID) is that it's just shorthand for on(T1.ID=T2.ID). Is this true?
Now ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Render multiple POV-Ray scenes on Windows I have a whole bunch of POV-RAY files from a molecular dynamics simulation with the general name "frameXX.pov" where "XX" is the number of the frame. I want to render them all but I have like 500 so I really don't wanna do it by hand. I'm sure there is a way to do this from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why can't I have a non-integral static const member in a class? I noticed C++ will not compile the following:
class No_Good {
static double const d = 1.0;
};
However it will happily allow a variation where the double is changed to an int, unsigned, or any integral type:
class Happy_Times {
static unsigned const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: C# Interface (Call Method in Different Project/Assembly) The code below pretty much sums up what I want to achieve.
We have a solution which comprises many different projects however we have a need to be able to call methods in projects from projects which are not referenced (would cause circular reference).
I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LINQ GroupJoin innerKeySelector/outerKeySeletor issue with two DataTables Given a DataSet, I'm left joining DataTables[1-n] onto DataTable[0]. I have created a method with a signature as follows:
public DataTable LeftJoin(DataSet ds, params JoinKey[] JoinKey)
Notes:
*
*The return type is a DataTable, which is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Serializing without XmlInclude I'm deserializing a class called Method using .NET Serialization. Method contains a list of objects implementing IAction. I originally used the [XmlInclude] attribute to specify all classes which implement IAction.
But now, I'd like to change my program to load all the dll's in a dire... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Work around magic quotes, or just make sure they're off? Is it worth changing my code to be "more portable" and able to deal with the horror of magic quotes, or should I just make sure that it's always off via a .htaccess file?
if (get_magic_quotes_gpc()) {
$var = stripslashes($_POST['var']);
} else {
$var =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are there any open source projects in D? I remember looking at D about 2 years ago, and it looked nice, was actually faster than C for some of the typical language benchmarks, and in general seemed ok, but I didn't find any real projects written in D back then, so I just left as a I came.
Now that a few years have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java get JPanel Components I have a JPanel full of JTextFields...
for (int i=0; i<maxPoints; i++) {
JTextField textField = new JTextField();
points.add(textField);
}
How do I later get the JTextFields in that JPanel? Like if I want their values with
TextField.getText();
Thanks
A: You should call the get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Remove character from string if it starts with that character? How can I remove the very first "1" from any string if that string starts with a "1"?
"1hello world" => "hello world"
"112345" => "12345"
I'm thinking of doing
string.sub!('1', '') if string =~ /^1/
but I' wondering there's a better way. Thanks!
A: if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Best Product to Obfuscate a Mixed .NET DLL I have a .NET DLL and application. The DLL is written in C++/CLI and it's "mixed", i.e., partially managed code and partially native.
I have two goals:
1. Obfuscate all the managed code so it can't be disassembled
2. Obfuscate the public methods/classes of the mixed DLL s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Multifield search in Lucene I need to do a multi-field level search on Books database using Lucene.
for example:my search criteria is something like:
(Author:a1 and title:t1) OR (Author:a2 and title:t2) OR (Author:a3 and title:t3)
where a1, t1 etc are author names and book titles respectively. How do I get my Luc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Override members on a built-in JavaScript object I would like to override the default behavior of the offsetParent member of all html elements. I would like to do something like this if it's possible:
// For <div id="foo"></div>
var oFooElem = document.getElementById("foo");
oFooElem._offsetParent = oFooElem.offsetP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: in SQL, or Django ORM, what's the conventional way to have an ordered one-to-many? Say I wanted to have a project, and one-to-many with to-do items, and wanted to re-order the to-do items arbitrarily?
In the past, I've added a numbered order field, and when someone wants to change the order, had to update all the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can you build an entire application in Silverlight? Is it possible to build a good medium to full sized application using just silverlight as a host?
A few things that would be needed:
- dynamic pages (one silverlight "screen" can switch between screens, like a normal app.
- similar to a java applet which launches f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Response, Result, Reply, which is best? I'm refactoring some client-server code and it uses the terms Response, Result & Reply for the same thing (an answer from the server). And although its not really that important it's become hard to guess which word to use while writing new code, so I'd like to unify the three ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: UnboundLocalError trying to use a variable (supposed to be global) that is (re)assigned (even after first use) When I try this code:
a, b, c = (1, 2, 3)
def test():
print(a)
print(b)
print(c)
c += 1
test()
I get an error from the print(c) line that says:
UnboundLocalError: local variable 'c' refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "281"
} |
Q: Passing parameters to a JQuery function I'm creating HTML with a loop that has a column for Action. That column
is a Hyperlink that when the user clicks calls a JavaScript
function and passes the parameters...
example:
<a href="#" OnClick="DoAction(1,'Jose');" > Click </a>
<a href="#" OnClick="DoAction(2,'Juan');" >... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Why put the constant before the variable in a comparison? I noticed for a while now the following syntax in some of our code:
if( NULL == var){
//...
}
or
if( 0 == var){
//...
}
and similar things.
Can someone please explain why did the person who wrote this choose this notation instead of the common var == 0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to load only signed assembly to a new AppDomain? I'm doing a addin system where the main app loads assemblies Addin1.dll and Addin2.dll on runtime in new AppDomain's.
However, in case that Addin1.dll is signed (strong name) with my key and Addin2.dll is not, I want to be able to only load Addin1.dll and reject A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JTable updates not appearing I have a JTable with a custom TableModel called DataTableModel. I initialized the table with a set of column names and no data as follows:
books = new JTable(new DataTableModel(new Vector<Vector<String>>(), title2));
JScrollPane scroll1 = new JScrollPane(books);
scroll1.setEnabled(true);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP and mysql proc If php code like below how it's like as mysql stored procedure equivalent. If any links tutorial on advance stored procedure mysql please put.
$sql = " SELECT a,b FROM j ";
$result = mysql_query($sql);
if(mysql_num_rows($result) > 0) {
while($row = mysql_fetch_array($result)) {
$sql_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/370379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.