text stringlengths 8 267k | meta dict |
|---|---|
Q: What options do exist now to implement UTF8 in Ruby and RoR? Following the development of Ruby very closely I learned that detailed character encoding is implemented in Ruby 1.9. My question for now is: How may Ruby be used at the moment to talk to a database that stores all data in UTF8?
Background: I am involved i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Determine if a resource exists in ResourceManager Is there anyway to determine if a ResourceManager contains a named resource? Currently I am catching the MissingManifestResourceException but I hate having to use Exceptions for non-exceptional situations. There must be some way to enumerate the name value pairs of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Why does Flex Builder fail to connect the app so often? Flex Builder often fails to connect to the app that it's supposed to debug. After a minute or so it times-out and says that it couldn't connect. The only way I can get it to stop doing this is by restarting Eclipse.
Very annoying. Anyone know why this is?
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to put breakpoint in every function of .cpp file? Is there a macro that does it? Which DTE objects to use?
A: Here's a quick implementation of 1800 INFORMATION's idea:
Sub TemporaryMacro()
DTE.ActiveDocument.Selection.StartOfDocument()
Dim returnValue As vsIncrementalSearchResult
While True
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Does dependency injection break the Law of Demeter I have been adding dependency injection to my code because it makes by code much easier to Unit test through mocking.
However I am requiring objects higher up my call chain to have knowledge of objects further down the call chain.
Does this break the Law of Demeter?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Finding the time taken to send messages with WCF net.tcp I’m writing a prototype WCF enabled distributed app, to try and find out any issues I’ll have upgrading my existing “sending xml over tcp to communicate” apps I’ve got. I’m using Callback Contracts to register clients with a server (Singleton in ServiceHost) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Break when a value changes using the Visual Studio debugger Is there a way to place a watch on variable and only have Visual Studio break when that value changes?
It would make it so much easier to find tricky state issues.
Can this be done?
Breakpoint conditions still need a breakpoint set, and I'd rather set a wat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "229"
} |
Q: Is there a way to keep Visual Studio from modifying the solution file after every test run? Visual Studio seems to be modifying a list of .vsmdi files in my .sln every time sometimes when I run a unit test. This is annoying because my source control client thinks the .sln file needs to be checked in even though I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Many-to-Many with "Primary" I'm working on a database that needs to represent computers and their users. Each computer can have multiple users and each user can be associated with multiple computers, so it's a classic many-to-many relationship. However, there also needs to be a concept of a "primary" user. I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you decide which API function documentations to read and how seriously? Suppose that you are writing or maintaining a piece of code that uses some API that you are not 100% familiar with.
How do you decide whether to read the documentation of a certain call target, and how much time to spend reading it? How d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the big deal with BUILDING 64-bit versions of binaries? There are a ton of drivers & famous applications that are not available in 64-bit. Adobe for instance does not provider a 64-bit Flash player plugin for Internet Explorer. And because of that, even though I am running 64-bit Vista, I have to run 32-bit ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What's the difference between <%# %> and <%= %>? Pardon my ASP ignorance, but what's the difference?
A: See http://weblogs.asp.net/leftslipper/archive/2007/06/29/how-asp-net-databinding-deals-with-eval-and-bind-statements.aspx
As Albert says, it's all to do with parsing databinding statements.
A: These are somewha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do you add all untracked files in svn? Something like git add -i? I've been using this long command:
svn st | awk '/\?/ {print $2}' | xargs svn add
Similarly, to svn rm files I accidentally deleted with normal rm with :
svn st | awk '/\!/ {print $2}' | xargs svn rm --force
I guess I can write a bash function t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How can you bring a control to front in mfc How do you change controls' Z-order in MFC at design time - i.e. I can't use SetWindowPos or do this at runtime - I want to see the changed z-order in the designer (even if I have to resort to direct-editing the .rc code).
I have an MFC dialog to which I am adding controls... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to implement find as you type on a TComboBox descendant What is the correct way to implement the "find as you type" behavior on a TComboBox descendant component whose style is csOwnerDrawFixed?
A: *
*Use a TTimer (let's call it timIncSearch). Set (at design time) the following properties:
Enabled:=False;
Inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Static and Instance methods with the same name? I have a class with both a static and a non-static interface in C#. Is it possible to have a static and a non-static method in a class with the same name and signature?
I get a compiler error when I try to do this, but for some reason I thought there was a way to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: SQL split/merge of table partitions: What is the best approach to implement? Microsoft in its MSDN entry about altering SQL 2005 partitions, listed a few possible approaches:
*
*Create a new partitioned table with the desired partition function, and then insert the data from the old table into the new table by us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Divide by zero error, how do I fix this? C# novice here, when the int 'max' below is 0 I get a divide by zero error, I can see why this happens but how should I handle this when max is 0? position is also an int.
private void SetProgressBar(string text, int position, int max)
{
try
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Find X/Y of an HTML element with JavaScript How can I find the XY coordinates of an HTML element (DIV) from JavaScript if they were not explicitly set?
A: That can be tricky depending on browser and version. I would suggest using jQuery and the positions plugin.
A: You can use a library such as Prototype or jQuer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Catching exceptions from a constructor's initializer list Here's a curious one. I have a class A. It has an item of class B, which I want to initialize in the constructor of A using an initializer list, like so:
class A {
public:
A(const B& b): mB(b) { };
private:
B mB;
};
Is there a way to catch e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: "Authorization failed" with SVN 1.5.2 on OS X (PowerPC G4) I'm trying to commit to an SVN server hosted on my school's network. I have installed SVN 1.5.2 with binaries downloaded from CollabNet here. The error reported is:
svn: Commit failed (details follow):
svn: MKACTIVITY of '/opensvn/cs598r/!svn/act/defe271c-f3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Required Fields in Share Point data collection not throwing errors I have created a workflow in Share Point Designer on our MOSS2007 dev server. (No one is allowed to have access to write .NET code yet as company policy)
In this workflow I am collecting data from the user, and both of my custom content types I crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Traversing a multi-dimensional hash in Perl If you have a hash (or reference to a hash) in perl with many dimensions and you want to iterate across all values, what's the best way to do it. In other words, if we have
$f->{$x}{$y}, I want something like
foreach ($x, $y) (deep_keys %{$f})
{
}
instead of
foreach $x ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Visual Studio 2005, how to get where project are used in a solution? I have a solution with other 70 projects into it. My question is : How can I know where the project is used? I do not want to open all those 70 projects to verify the References one by one. How can I see which project use one project in particular?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use ditto on OS X to work like cp -a on Linux I'm a Linux guy and I'm used to copying directory trees with cp -a. OS X doesn't have -a option on cp... but it does have the ditto command. I'm reading the man on ditto now, but is there anything I should specifically be looking out for?
A: Personally I use rsyn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: VisualSVN and class libraries not in the working copy root We're making the switch from SourceGear Vault to TortoiseSVN with VisualSVN for Visual Studio integration - absolutely love it. However, there are multiple class libraries that we reference in multiple different applications that aren't a part of the working... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What does a ListViewSubtemCollection use for its keys? I am trying to get the value of some ListViewSubItems, but I have no idea what values it uses for its keys. I have some simple code:
protected override void OnItemDrag(ItemDragEventArgs e)
{
base.OnItemDrag(e);
ListViewItem i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# How to replace system tray clock How do I replace the standard system tray clock in the taskbar?
Thanks!
A: I found an example here in C++: C++ Open Source Project
I hope you are able to find something in C# as well.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/160215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ForEach loop in Mathematica I'd like something like this:
each[i_, {1,2,3},
Print[i]
]
Or, more generally, to destructure arbitrary stuff in the list you're looping over, like:
each[{i_, j_}, {{1,10}, {2,20}, {3,30}},
Print[i*j]
]
Usually you want to use Map or other purely functional constructs and eschew a n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: To ternary or not to ternary? I'm personally an advocate of the ternary operator: () ? :
I do realize that it has its place, but I have come across many programmers that are completely against ever using it, and some that use it too often.
What are your feelings on it? What interesting code have you seen using it?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "199"
} |
Q: ASP.net Web App undo support I have a simple web form that has a several fields and a gridview on it. I also have a save and cancel button.
I would like a way to undo what was done to the data on the form when the user presses cancel. This is simple enough with the fields however since changes to the gridview happe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What does mysql error 1025 (HY000): Error on rename of './foo' (errorno: 150) mean? I tried this in mysql:
mysql> alter table region drop column country_id;
And got this:
ERROR 1025 (HY000): Error on rename of './product/#sql-14ae_81' to
'./product/region' (errno: 150)
Any ideas? Foreign key stuff?
A: Simply run ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "163"
} |
Q: Which is the best way to get a list of running processes in unix with python? I'm trying:
import commands
print commands.getoutput("ps -u 0")
But it doesn't work on os x.
os instead of commands gives the same output:
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
nothing more
A: This wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Flex: Modify an embedded icon and use it in a button? Just that, if you embed an icon:
[Embed(source='icons/checkmark.png')]
private static var CheckMark:Class;
You end up with a dynamic class. You can pretty easily assign the icon to a button at runtime by calling the setStyle method:
var btn:Button = new Button()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compile error in VS.NET 2008 (VB.NET) that I can't get rid of! I can't shake this error when compiling my Visual Studio.NET 2008 solution. The project that's generating the error is a VB.NET Web Application in a 12 project solution (mixed types and languages).
I've tried all the tricks I can find on google, and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Open Source C++ to C# compiler/converter Even if it requires manual input. Is there any good-enough option available?
A: I don't know anything about this site, but a little googling found this.
A: If it was in managed C++ or C++/CLI, you could compile it and then disassemble the assembly into C# using a tool like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to update object with no data contexts Entity framework provides great flexibility to update data in the same datacontext
Dim personA = (from p in datacontext.Person where p.PersonID = 1 select p)
personA.name = txtName.value
datacontext.savechanges()
If I have to move this Update function to Service layer whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: should I free pointer returned by getpwuid() in Linux? After I call getpwuid(uid), I have a reference to a pointer. Should I free that pointer when I don't use it anymore? Reading the man pages, it says that it makes reference to some static area, that may be overwritten by subsequent calls to the same functions, so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I access argc and argv in c++ from a library function I'm writing a library which is to be dynamically loaded in C++.
I'd like to read argc and argv (for debugging reasons) from within my code, however I do not have access to the main function. Is there any way to retrieve the command line (both Windows and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Localization in OpenSocial gadget app I'm trying to add multi-language support to an OpenSocial application. I see that I can link to my own message bundles in the gadget XML markup:
<Module>
<ModulePrefs title="Hello" description="Message bundle demo">
<Require feature="opensocial-0.7"/>
<Locale lang="e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django/Python - Grouping objects by common set from a many-to-many relationships This is a part algorithm-logic question (how to do it), part implementation question (how to do it best!). I'm working with Django, so I thought I'd share with that.
In Python, it's worth mentioning that the problem is somewhat related ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there any thing such as SELECT LAST in sql query? I am using sybase database to query the daily transaction report. I had subquery within my script.
Here as it goes:
SELECT orders.accountid ,items.x,etc
(SELECT charges.mistotal FROM charges where items.id = charges.id)
FROM items,orders
WHERE date = '2008-10-02'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Enumerated types as constants across web services? I'm working on a project where I'm trying to avoid hard-coding DB IDs in a .NET service-oriented project. There are some instances where I need to set ID values through code but I don't want to just hard code the IDs since I've done that before and it lead to DB ali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to check for key being held down on startup in Java I'm trying to write a resolution selection dialog that pops up when a program first starts up. To prevent boring the user, I want to implement the fairly standard feature that you can turn off that dialog with a checkbox, but get it back by holding down the alt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Considerations about a simulation game The kind of simulation game that I have in mind is the kind where you have things to build in various locations and workers/transporters that connect such locations.
Something more like the Settlers series.
Let's assume I don't want any graphics at the moment, that I think I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you localize a database driven website I've been playing with the .NET built in localization features and they seem to all rely on putting data in resx files.
But most systems can't rely on this because they are database driven. So how do you solve this issue? Is there a built in .NET way, or do you create a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What svn command would list all the files modified on a branch? In svn, I have a branch which was created, say at revision 22334. Commits were then made on the branch.
How do I get a list of all files that were changed on the branch compared to what's on the trunk? I do not want to see files that were changed on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: String problem with SQL Reader? Function FillAdminAccount() As Boolean
FillAdminAccount = True
Try
SQLconn.ConnectionString = "connect timeout=9999999;" & _
"data source=" & DefaultIserver & ";" & _
"initial catalog=" & D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TSQL: How do I do a self-join in XML to get a nested document? I have a SQL Server 2005 table like this:
create table Taxonomy(
CategoryId integer primary key,
ParentCategoryId integer references Taxonomy(CategoryId),
CategoryDescription varchar(50)
)
with data looking like
CategoryIdParentCategoryIdCategoryDescr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why move your Javascript files to a different main domain that you also own? I've noticed that just in the last year or so, many major websites have made the same change to the way their pages are structured. Each has moved their Javascript files from being hosted on the same domain as the page itself (or a subdomai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Improving the quality of code? So, in reading this site, it seems that the shop in which I work does a lot of things wrong and some things right. How can I improve the code that I work with from my colleagues? The only thing I can think of is to lead by example - start using Boost, etc. Any other thoughts?
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Extract all string from a java project I have a rather big number of source files that I need parse and extract all string literals and put them in a file as play old java constant.
For exemple:
Label l = new Label("Cat");
Would become:
Label l = new Label(Constants.CAT);
And in Constants.java I would have:
public... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Apache mod_rewrite to catch XML requests How do I create a apache RewriteRule that catches any request URL ending in .xml, strips off the .xml and passes it to a specific script?
http://www.example.com/document.xml, becomes http://www.example.com/document passed to script.php
A: This should do the trick, I believe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ListBox with Grid as ItemsPanelTemplate produces weird binding errors I've got a ListBox control and I'm presenting a fixed number of ListBoxItem objects in a grid layout. So I've set my ItemsPanelTemplate to be a Grid.
I'm accessing the Grid from code behind to configure the RowDefinitions and ColumnDefinitions.
So... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Programmatically Sort Start Menu I'm looking to sort the start menu alphabetically using C#. I've read about deleting the registry key
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder
but when I tried it on my machine it doesn't appear to do much of anything. Does anyone have any other ideas as to w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What exactly do you do when your team leader is incompetent? One of your team members has been appointed "technical lead" or "team lead" yet he is technically incompetent and lacks major leadership skills.
By technically incompetent, I mean that the person doesn't know the difference between an abstract class and an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Updating two tables in a many-to-one relationship through a view in PostgreSQL I have two tables: foos and bars, and there is a many-to-one relationship between them: each foo can have many bars. I also have a view foobars, which joins these two tables (its query is like select foo.*, bar.id from foos, bars where ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create a Jet ODBC link to a SQL Server view with periods in the field names? I need to create an ODBC link from an Access 2003 (Jet) database to a SQL Server hosted view which contains aliased field names containing periods such as:
Seq.Group
In the SQL source behind the view, the field names are encased i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to check if there is any read/write activity for a specific harddrive with C#? I'm curious how to assess if there is any read- or write-activity for a specific harddrive at a given moment with .NET / C#. Second it would be interesting to assess the actual speed of access.
Any ideas?
A: Look into the Windows Man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Deployment For the last couple of months I have been writing an intranet site for my college with lots of reports for staff about students. It is all going well but once a week (ish) I am having to go to IT get them to log into IIS stop the application pool, clear out the website folder, clear out the tempor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java development in a Perl shop: How to select the right tool? My group is a Perl shop in an organization that is very heterogenous. Although we support the odd Java, PHP, or Python installation, we're using Perl for nearly all of our web applications and systems/data marshalling tasks. All of our boxes are Linux,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET WSAT (Website Administration Tool) and Custom Membership Providers I'm building an ASP.NET MVC applicaiton that will have custom role and membership providers. I have been looking into adminstration tools to save us some time, WSAT has crossed my path. It looks good at a glance, it's all open source and v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Generic method call using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GenericCount
{
class Program
{
static int Count1<T>(T a) where T : IEnumerable<T>
{
return a.Count();
}
static void Main(string[] args)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to remove TFS source control bindings for a solution from the command line Is there a command-line approach for having VS 2008 remove TFS source control bindings from a solution file and the constituent project files? I need something that I can run from a batch file so that I don't have to open the solution an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Removing .svn folders from project for deployment I'm using subversion (TortoiseSVN) and I want to remove the .svn folders from my project for deployment, is there an automated way of doing this using subversion or do I have to create a custom script for this?
A: But if you don't want to use svn export (for whateve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I use Google Analytics in ASP.NET? I have a web page in which people go to register for my site. I use server side validation to authenticate them. I need to call some Javascript to tell GA that user was or was not registered. Later I need stats on success in registration.
How can I call the GA function on my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Partial Classes in C# Are there are good uses of Partial Classes outside the webforms/winforms generated code scenarios? Or is this feature basically to support that?
A: Code generation was the driving force behind partial classes. The need comes from having a code-generated class that is constantly changing, but a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: linqtosql, timespan, aggregates ... can it be done? Can this be done w/ linqtosql?
SELECT City, SUM(DATEDIFF(minute,StartDate,Completed)) AS Downtime
FROM Incidents
GROUP BY City
A: using System.Data.Linq.SqlClient;
db.Incidents
.GroupBy(i => i.City)
.Select(g => new
{
City = g.Key,
DownTime = g.Su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Exporting MSAccess Tables as Unicode with Tilde delimiter I want to export the contents of several tables from MSAccess2003.
The tables contain unicode Japanese characters.
I want to store them as tilde delimited text files.
I can do this manually using File/Export and, in the 'Advanced' dialog selecting tilde as F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get the "td" in a table element with jquery? I need to get the "td" element of a table. I do not have the ability to add a mouseover or onclick event to the "td" element, so I need to add them with JQUERY.
I need JQUERY to add the mouseover and onclick event to the all "td" elements in the table.
Thats wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ZIP Code (US Postal Code) validation I thought people would be working on little code projects together, but I don't see them, so here's an easy one:
Code that validates a valid US Zip Code. I know there are ZIP code databases out there, but there are still uses, like web pages, quick validation, and also the fact t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: My form doesn't properly display when it is launched from another thread Here's the situation:
I'm developing a simple application with the following structure:
*
*FormMain (startup point)
*FormNotification
*CompleFunctions
Right?
Well, in FormMain I have the following function:
private void DoItInNewThread(P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Defining custom actions in Selenium I have a Selenium test case that enters dates into a date selector made up of three pulldowns (year, month, and day).
select validity_Y label=2008
select validity_M label=08
select validity_D label=08
This part gets repeated a lot throughout the test case. I'd like to reduce it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Programming Contests (with prizes) I've had a go at solving the Eternity puzzle (1,000,000 GBP prize) and Netflix Prize ($1,000,000) in the past. I didn't win either, but they motivated me to find out about a new area.
What other contests with prizes do you know about / have competed in yourself?
A: http://www.top... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: No output to console from a WPF application? I'm using Console.WriteLine() from a very simple WPF test application, but when I execute the application from the command line, I'm seeing nothing being written to the console. Does anyone know what might be going on here?
I can reproduce it by creating a WPF application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "153"
} |
Q: Experience with CSLA in a WPF/WCF application Has anyone used CSLA in an application that has a WPF front end and a WCF wire for entities?
If so, which "entity framework" did you use? (nHibernate, Linq, etc...)
What were the hang-ups? What did it help you with?
I am concerned with implementing this for an applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Combine multiple LINQ expressions from an array I'm trying to combine a list of functions like so.
I have this:
Func<int, bool>[] criteria = new Func<int, bool>[3];
criteria[0] = i => i % 2 == 0;
criteria[1] = i => i % 3 == 0;
criteria[2] = i => i % 5 == 0;
And I want this:
Func<int, bool>[] predicates = new Func<i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do a "git export" (like "svn export")? I've been wondering whether there is a good "git export" solution that creates a copy of a tree without the .git repository directory. There are at least three methods I know of:
*
*git clone followed by removing the .git repository directory.
*git checkout-index alludes to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2521"
} |
Q: Cause of No suitable driver found for I'm trying to unit test (JUnit) a DAO i've created. I'm using Spring as my framework, my DAO (JdbcPackageDAO) extends SimpleJdbcDaoSupport. The testing class (JdbcPackageDAOTest) extends AbstractTransactionalDataSourceSpringContextTests. I've overridden the configLocations as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Using ASP.NET Dynamic Data site on Windows XP IIS? I have a Dynamic Data website built in Visual Studio 2008 using .NET 3.5 SP1. The site works OK on my Vista machine, but I get the following error when running it on a Windows XP machine:
Server Error in '/FlixManagerWeb'
Application.
-------------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do we still program with flat files? Why are flat text files the state of the art for representing source code?
Sure - the preprocessor and compiler need to see a flat file representation of the file, but that's easily created.
It seems to me that some form of XML or binary data could represent lots of ideas tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: FitNesse Wiki Per Project or Company? For a company with many development projects, should you create multiple FitNesse wikis (one for each project/product) or contain them all within a large wiki for everything?
Advantages of one large wiki is the ability to easily link to other products in the company and that it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Run custom Javascript whenever a client-side ASP.NET validator is triggered? Is there a way to run some custom Javascript whenever a client-side ASP.NET validator (RequiredFieldValidator, RangeValidator, etc) is triggered?
Basically, I have a complicated layout that requires I run a custom script whenever a DOM ele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HTTPHandler to Retrieve Download File from another server? I would like to provide downloadable files to website users, but want to hide the URL of the files from the user... I'm thinking an HTTPHandler could do the trick, but is it possible to retrieve a file from an external server and stream it to the user?
Perha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML - display an image as large as possible while preserving aspect ratio I'd like to have an HTML page which displays a single PNG or JPEG image. I want the image to take up the whole screen but when I do this:
<img src="whatever.jpeg" width="100%" height="100%" />
It just stretches the image and messes up the as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do you know if the HTTP compression is working? How do you know if the HTTP compression setup is working? Is there any tool I can use to see the compressed page before it is uncompressed by the browser? Are there any tools to measure the amount compressed and response speed?
A: As well as something like Fiddler... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Syntax highlighting code with Javascript What Javascript libraries can you recommend for syntax highlighting <code> blocks in HTML?
(One suggestion per answer please).
A: How about:
syntaxhighlighter
highlight.js
JSHighlighter
A: If you're using jQuery there's Chilli:
http://code.google.com/p/jquery-chili-js/
All ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: Is it good practice to use the xor operator for boolean checks? I personally like the exclusive or, ^, operator when it makes sense in the context of boolean checks because of its conciseness. I much prefer to write
if (boolean1 ^ boolean2)
{
//do it
}
than
if((boolean1 && !boolean2) || (boolean2 && !boolean1))
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "159"
} |
Q: How to make ODBC connection in web.Config file I was to make crystal reporting with sybase database. I will use reportviewer to view those report. I am stuck on how to make ODBC connection in web.config file.
I had done with winforms but I am still learning.
A: have a look at connectionstrings.com: http://www.con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uploading images along with Google App Engine I'm working on a Google App Engine project.
My app is working and looking correct locally, but when I try to upload images in an image directory, they're not being displayed at appspot.
As a little troubleshoot, I put a HTML page in "/images/page2.html" and I can load t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Giving character to your unit tests I have been thinking a lot about unit testing and how to improve the readability of the unit tests. I thought why not give a character to the classes in the unit test to clarify what they do.
Here is a simple unit test that I wrote:
[TestFixture]
public class when_dave_trans... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Crystal Reports data source in a different project in my solution? I would like to create a Crystal Reports report using pre-existing LINQ classes that live in a different project than where the report lives. I can't find a way to do this. I'm using VS2008.
Whenever I expand the "Project Data" tree, I see only cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you put { and } in a format string I'm trying to generate some code at runtime where I put in some boiler-plate stuff and the user is allowed to enter the actual working code. My boiler-plate code looks something like this:
using System;
public class ClassName
{
public double TheFunction(double input)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How would you compare IP address? For my server app, I need to check if an ip address is in our blacklist.
What is the most efficient way of comparing ip addresses? Would converting the IP address to integer and comparing them efficient?
A: 32-bit integers are the way to go -- until you start dealing with 128-bit ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Sticky mouse when dragging controls in VS2005 Maybe this is a dumb question, but I have the following behavior in Visual Studio 2005 while designing forms:
1 - Drop a control onto the form (suppose it's a Label, just for discussion)
2 - Drag that label to a specific location (aligning w/other controls, whatever)
3 -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there build farm for checking open source apps against different OS'es? I have an Open Source app and I have it working on Windows, Linux and Macintosh ( it's in C++ and built with gcc ). I've only tested it on a few different flavors of Linux so I don't know if it compiles and runs on all different Linux version... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Run Sparc binaries without Sparc hardware I've been curious in the past few months in trying my hand at doing some assembly for the SPARC processor (either V8 or V9). My question is this, I have no access to a SPARC machine, is there a way I can run SPARC binaries on my x86 machine? I've looked at QEMU but I am not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Define a .NET extension method with solution scope I have a few 'helper' style extension methods I use quite regularly now (they are mostly quite simple, intuitive, and work for good not evil, so please don't have this descend into a discussion around whether or not I should use them). They are largely extending cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I pass data between activities in Windows Workflow? I'm not completely sure I understand the workflow way of doing things, but if it's a pipeline n filter style model I should be able to pass data (even strings) from one activity to another.
Does anyone know how to do this? Bonus points for a video!
I hope t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any other good alternatives to zc.buildout and/or virtualenv for installing non-python dependencies? I am a member of a team that is about to launch a beta of a python (Django specifically) based web site and accompanying suite of backend tools. The team itself has doubled in size from 2 to 4 over the pas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/160834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.