text stringlengths 8 267k | meta dict |
|---|---|
Q: Why does this NASM code print my environment variables? I'm just finishing up a computer architecture course this semester where, among other things, we've been dabbling in MIPS assembly and running it in the MARS simulator. Today, out of curiosity, I started messing around with NASM on my Ubuntu box, and have basic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python, Popen and select - waiting for a process to terminate or a timeout I run a subprocess using:
p = subprocess.Popen("subprocess",
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stdin=subprocess.PIPE)
This subprocess could either exit i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Want to save binary tree to disk for "20 questions" game In short, I'd like to learn/develop an elegant method to save a binary tree to disk (a general tree, not necessarily a BST). Here is the description of my problem:
I'm implementing a game of "20-questions". I've written a binary tree whose internal nodes are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Python subprocess.call() fails when using pythonw.exe I have some Python code that works correctly when I use python.exe to run it, but fails if I use pythonw.exe.
def runStuff(commandLine):
outputFileName = 'somefile.txt'
outputFile = open(outputFileName, "w")
try:
result =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: var self = this? Using instance methods as callbacks for event handlers changes the scope of this from "My instance" to "Whatever just called the callback". So my code looks like this
function MyObject() {
this.doSomething = function() {
...
}
var self = this
$('#foobar').bind('click', function(){
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "195"
} |
Q: Does anyone know of a good article for creating MVC based components/ extension methods? I've a couple of extension methods I've been developing for a couple of projects, they currently rely heavily on some AJAX to make bits and pieces work. The problem is that they require copying and pasting JavaScript files to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Disable ASP.net AJAX Framework in ASP.net 3.5 I'm working on an ASP.net 3.5 website with MooTools as the AJAX framework. I want to disable ASP.net's AJAX framework so it behaves more like ASP.net 2.0. This is to decrease page loading times and to reduce incompatibilities. Is this possible and if so how do I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the reason for my ASP.NET Cache never expiring, despite having a sliding expiration time set? So, I've cached a value using the ASP.NET Cache object, with the following code:
Cache.Insert("TEST_VALUE", 150, null, Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(120));
As I understand it, this should mean th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Displaying a Second Form in WPF I have a main form and as sub form. I need the main Form to display the sub Form and pass into the constructor an object. When the sub Form is done it needs to destroy itself so the cycle can be repeated.
Currently I declared the sub form globaly
Public GlobalWindowBookmark As Wind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can you ensure in java that a block of code can not be interrupted by any other thread exampl:
new Thread(new Runnable() {
public void run() {
while(condition) {
*code that must not be interrupted*
*some more code*
}
}
}).start();
SomeOtherThread.start();
YetAntherThread.start();
How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is the best way to send an email from a batch file? I have a nightly batch job that can tell if it has failed. I want it to send me an email, possibly with an attachment when it does.
How can I send an email from a Windows Batch (.bat) file?
A: Blat. Nothing more needs to be said. ;)
A: If the SMTP-server th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Syntax - Your preferred practice for getting 2 or 3 answers from a method I'm just wondering how other developers tackle this issue of getting 2 or 3 answers from a method.
1) return a object[]
2) return a custom class
3) use an out or ref keyword on multiple variables
4) write or borrow (F#) a simple Tuple<> gen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I detect whether the alt/option key is down in GTK on Mac OS X? I want to detect whether the alt/option key is pressed during a mouse drag in GTK on Mac OS X. I am using pygtk. Normally, holding down alt would add MOD1_MASK to event.state, but alt does affect event.state at all. In key press events alt sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add an image to ListView column header? It should be easy, right?
Have a listview, add an imagelist, add images to the imagelist, assign image index to the column you want.
But, it doesn't work.
Microsoft article states that it is a known problem in .NET 1.1.
But has it been fixed since?
A: You still have to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SharePoint - Change Themes Style Sheet I'm using the Belltown theme in a sharepoint portal and there are some styles that I want to change change in the Belltown stylesheet. I thought that I could just edit the theme.css file located at:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing scripts inside IIS virtual directory I have an IIS 6 server with a virtual directory pointing to a network share on another machine. That web server also serves ColdFusion scripts. When I access regular HTML pages that reside in the virtual directory, they are served properly. Anytime I try to get to a Col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I convert an ASP.NET page using Ajax webmethods to an Ajax-enabled servercontrol? In this tutorial I am reading, Dave Ward creates a page that shows the server date in a label without using the update panel.
I am trying to learn how to create servercontrols that use ajax for partial postbacks where methods wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: COMET (server push to client) on iPhone I'm looking to establish some kind of socket/COMET type functionality from my server(s) to my iPhone application. Essentially, anytime a user manages to set an arbitrary object 'dirty' on the server, by say, updating their Address.. the feedback should be pushed from the serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Forms in VB.Net I am from a c# background and am converting a vb.net windows forms app to c#.
I have a windows form called associateForm.
In code the developer references associate form like so:-
Private Sub NotifyIcon1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Updating web server from ASP.NET 1.1/2.0 to 3.5 I'm still fairly new to ASP.NET development so bear with me.
I'm going to start development on an updated version of an ASP.NET 1.1 website, which I will develop in ASP.NET 3.5. Currently, my development server allows me to run web sites on 1.1 and 2.0. I've had the 3.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to test HttpSessionListener.sessionDestroyed in Java webapp? How might a person simulate firing the HttpSessionListener.sessionDestroyed object in a session listener?
Is just setting the Tomcat session timeout to 1 and then waiting the only way?
A: Use HttpSession.invalidate(). Alternatively, you can call set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How not to rush yourself? I often find that I do a less than complete work on a feature, especially in the Design phase. I detect several reasons:
*
*I'm over-optimistic
*I feel the need to provide quick solutions, so sometimes I fool myself into thinking the design is fool-proof when in fact it's still full of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/337995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Virtual machine management I'm looking for a VM management solution that will allow me to easily maintain VMs in a single repository accessible on the corporate intranet.
I'm currently looking into VMware's vCenter, HP's Manager, Microsoft's VM Manager. vCenter seems to require an ESX server, which I'm not very hap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ComboBox template problems in WPF I have a listview with a DataTemplate that has a ComboBox. I want the ComboBox to look flat like a label until the user actually wants to change the value. I had the example below working before, but I changed things around a bit, and now it doesn't work anymore and I'm not sure why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Windows build for PyLucene+JCC on python 2.6 Where can I download a PyLucene+JCC Windows build compiled for python 2.6?
Jose
A: I ended up using solr and interfacing it using XML/JSON.
A: Not tested but there appears to be an egg here:
http://code.google.com/p/pylucene-win32-binary/
A: you might want to see this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SSRS different results in Data tab and Preview tab I get the correct results (nov and dec data) when I run a query in the Data tab of a report that I built in SQL Server Reporting Services. When I preview the report I get old data from October. It doesn't make any sense to me. I'm not sure whats going on. Note: th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Which are the examples for contra guideline implementations/misnomers in .net/java framework? I can remember Convert class in .net which is named not in accordance with the guide lines. Any more examples?
A: In Java, java.lang.System.arraycopy - note the lowercase second c.
Also NullPointerException in Java is bett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Concat strings returned from RegQueryValueEx I want to read a string value from the registry and concatenate it with another certain string. I'm calling RegQueryValueEx() , like this:
Dim lResult As Long
Dim sLength As Long
Dim sString As String
sString = Space$(256)
sLength = 256
lResult = RegQueryValueEx(hKey, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sql server 2008 table valued parameters linq2sql Has anybody experimented with these. Is this supported?
A: Table Value parameters aren't supported yet in LINQ to SQL. There's a few posts about this on Microsoft's MSDN forums:
DbType.Structured not available
SQL Server 2k8.User Defined Table Type. Mapping between ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to check permissions of a specific directory? I know that using ls -l "directory/directory/filename" tells me the permissions of a file. How do I do the same on a directory?
I could obviously use ls -l on the directory higher in the hierarchy and then just scroll till I find it but it's such a pain. If I use ls ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "394"
} |
Q: How do I do a join query in rails? Say I have two tables, a master list of students containing personal info, and a list of student enrollments in classes. The two tables share a common column, which is a string uniquely identifying the student, but it is not the primary key.
Say I want to display all the enrollmen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Anyone have good information on Microsoft Kojax? Has anyone in the SO community had an opportunity to learn more about, or get any hands on exposure to Microsoft Kojax? It is way early, but are there any resources out there about this technology (Publicly available on the web)?
ZDNet Article on Kojax
From the artic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: SubSonic "Version" fails due to missing dependencies I am using SubSonic 2.1 Final but having problems running "Version" with the SubCommander. I think this problem began when I installed SQL Server 2008 on my local machine and removed 2005.
This is the error I get:
ERROR: Trying to execute Version
Error Message: Sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ResourceDictionary in a separate assembly I have resource dictionary files (MenuTemplate.xaml, ButtonTemplate.xaml, etc) that I want to use in multiple separate applications. I could add them to the applications' assemblies, but it's better if I compile these resources in one single assembly and have my applications... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "268"
} |
Q: Visual Studio 2005 not building solutions I have a solution with about 20 projects (that use Devexpress controls) in and when I do a normal solution build (ctrl-shift-B) it says everything is completed sucessfully when in actualy fact it has done nothing. To get it to build i have to right click on the solution and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Programatically Break Apart a PDF created by a scanner into separate PDF documents I have PDF documents from a scanner. This PDF contain forms filled out and signed by staff for a days work. I want to place a bar code or standard area for OCR text on every form type so the batch scan can be programatically broken a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the optimum number of projects in a Visual Studio 2008 solution? What is the optimum number of projects in a Visual Studio 2008 solution?
We have one Visual Studio 2008 solution that is around 50 projects right now. It will likely continue to grow as the bulk of the projects within the solution consist of p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to wean myself from FTP in favor of Version Control I have heard that uploading your website with FTP is now for n00bs, but it's the only way I've known how for the 8 or so years I've been building websites. Apparently all the buzz now is using a version control system, like SVN or Git, and somehow using SSH to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: CAST and IsNumeric Why would the following query return "Error converting data type varchar to bigint"? Doesn't IsNumeric make the CAST safe? I've tried every numeric datatype in the cast and get the same "Error converting..." error. I don't believe the size of the resulting number is a problem because overflow i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: 64-bit Qt and Postgres plugin in Windows I have a 32-bit Windows/Qt application using Postgres plugin. Recently, I've been intrigued to turn the app into a 64-bit app. So I checked the Qt docs for instructions, built Qt and its libraries into 64-bit successfully. Now the problem is Postgres does not provide librarie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: COM interop assembly loading sequence There is very strange assembly reference problem and loading problem I experience with my Outlook addin. Here are the detail (a long story :) ):
I have an old Outlook addin, written and build using .Net 1.1. The addin is loaded using an unmanaged shim in its own application doma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Python function attributes - uses and abuses Not many are aware of this feature, but Python's functions (and methods) can have attributes. Behold:
>>> def foo(x):
... pass
...
>>> foo.score = 10
>>> dir(foo)
['__call__', '__class__', '__delattr__', '__dict__', '__doc__', '__get__', '__getattribute__', '__ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "234"
} |
Q: Is there a compiler or IDE for C on Windows that's regarded as an industry standard? Taking advice from this post, I purchased a copy of 'The C Programming Language' and am happily reading my way through.
However, all the stuff I've written in the past has been interpreted, and I have no idea where to look for a go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How do I use IPython as my Emacs Python interpreter? I'm running Emacs 22.1.1 and IPython 0.9.1 on OS X and I'd like to be able to run lines/methods/snippets of Python code from my current buffer on demand inside an IPython interpreter.
What do I need to do to get this working?
A: also ipython wont load with the of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Avoiding a Javascript race condition My users are presented a basically a stripped down version of a spreadsheet. There are textboxes in each row in the grid. When they change a value in a textbox, I'm performing validation on their input, updating the collection that's driving the grid, and redrawing the subtotals ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: String as char[] array in C# 3.0? The C# 3.0 spec has the following code example in section 10.6.1.3 "Output parameters":
using System;
class Test
{
static void SplitPath(string path, out string dir, out string name) {
int i = path.Length;
while (i > 0) {
char ch = path[i – 1];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET [SuppressMessage] attributes in shipping assemblies fxcop I wonder if people (meaning the company/developers) really care about having [SuppressMessage] attributes lying around in the shipping assemblies.
Creating separate configs in the Project files that include CODE_ANALYSIS in Release mode and then yanking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C# assembly.load from a byte[] issues I have an EXE loaded into a byte array, and I am trying to load it into an assembly object using Assembly.Load. I am getting errors trying to load.
Here is the code that is causing the exception:
Assembly a = Assembly.Load(bin);
bin is my byte array, loaded from the EXE.
Here ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Table Naming Dilemma: Singular vs. Plural Names Academia has it that table names should be the singular of the entity that they store attributes of.
I dislike any T-SQL that requires square brackets around names, but I have renamed a Users table to the singular, forever sentencing those using the table to sometime... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1750"
} |
Q: Fatal error unpacking a tree object during a git svn fetch When running get svn fetch to pull the latest new branches from the upstream svn repository I got this error:
$ git svn fetch
fatal: failed to unpack tree object 5ecb324e8b8fcb918acb253f33edc6ce49e49e0d
read-tree 5ecb324e8b8fcb918acb253f33edc6ce49e49e0d: com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Which direction should the arrows point in a sorted table? In a sorted table, it's common to have an up or a down arrow indicating the sort style. However, I'm having some trouble determining which direction the arrow should point. In an ASC sort, characters are sorted 1-9A-Za-z. Should the arrow point up or down?
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Some images do not load under http, but do under https I've come across an issue where some images on a site load under https but do not load under http.
For example if you go to https://www.mydomain.com/myimage.gif, the image appears fine, but if you go to http://www.mydomain.com/myimage.gif the image comes back wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to automatically merge cells? I have an Excel table with several items 1, 2, 3..., each of which has subitems 1.1, 1.2, etc. I'm using the list of subitems as my key column and populating the main items using vlookups, but only showing each main item once.
/| A | B | C |
-+---------+---------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Global Variables in Cocoa/Objective-C? According to Cocoa Programming for Mac OS X, 3rd Edition, on page 202 (chapter 13):
You will be registering, reading, and
setting defaults in several classes in
your application. To make sure that
you always use the same name, you
should declare those strings in a
si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What are the available solutions for embedding chat functionality into website? We want to implement chat on our website so that users can communicate with each other.
Our general requirements are:
*
*It should be rendered on our web pages, but it could be rendered in an IFrame or something like that. The user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why can't I use switch statement on a String? Is this functionality going to be put into a later Java version?
Can someone explain why I can't do this, as in, the technical way Java's switch statement works?
A: The following is a complete example based on JeeBee's post, using java enum's instead of using a custom m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1045"
} |
Q: Regexp: Remove quotation marks from json list I've got an array of objects in json format:
[
{
"name": "obj1",
"list": [
"elem1",
"elem2",
"elem3"
]
},
{
"name": "obj2",
"list": [
"elem4",
"elem5",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is the Pair in System.Web.UI? To me at least, the Pair class is a very multi-purpose class. So why did Microsoft put it into the System.Web.UI namespace?
Is there a reason that my tiny brain cannot comprehend?
Thanks.
A: It is used to serialize viewstate (along with its cousin Triplet).
I would guess that the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Setting the width of a wxPython TextCtrl in number of characters I have a TextCtrl in my wxPython program and I'd like to set its width to exactly 3 characters. However, the only way to set its size manually accepts only numbers of pixels. Is there any way to specify characters instead of pixels?
A: There doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is it possible with AIR to play a video while it is downloaded The idea is download a video in parts (from different servers) but starting to play before video file is complete.
The issue is that VideoDisplay component doesn't read the video file if it is opened for writing and vice-versa: writing is impossible if V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Annoying exception in asp.net everybody; I have this problem in asp.net, I have a page where I insert and modify data, before saving I make a validation if it passes I save the data but if not I raise an exception and show it, the function goes like this;
protected void btnSave_Click(object sender, EventArgs e)
{
tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sharepoint default list item detail view I have a webpart that renders random list items (from any list and list type) in a specified format. I want the items that are being displayed in the webpart to link to their ListItem detail views. However, I don't see a property on the list itself that would tell me what v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I store a dictionary object in my web.config file? I'd like to store a simple key/value string dictionary in my web config file. Visual Studio makes it easy to store a string collection(see sample below) but I'm not sure how to do it with a dictionary collection.
<ArrayOfString xmlns:xsi="http://www.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: How do I enable cross-database joins in mysql? I am trying to port some data over from my production database to my sandbox using a query like this:
INSERT `dbsandbox`.`SomeTable`(Field1, Field2, Field3)
SELECT t.Field1, t.Field2, t.Field3
FROM `dbprod`.`SomeTable` t;
When I attempt this cross-database join I get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: F1001 Internal code generator error in RAD STUDIO 2009 I'm getting this worthless error in my code. it's very consistant and restarting the compiler hasn't done anything. Has anyone else ever solved this?
while( int CharPos = _Message.Pos(_What) )
{
_Message.Insert( _With, CharPos);
_Message.Delete(CharP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Window sizing related to contents I've got two sizing issue regarding a Window I've got. The basic layout is like this
<Window MaxHeight="{DynamicResource {x:Static SystemParameters.VirtualScreenHeight}}"
MaxWidth="{DynamicResource {x:Static SystemParameters.VirtualScreenWidth}}"
>
<StackPanel>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .Net framework version in Silverlight: no List.Find methods? Today I discovered something that makes me sad: objects of type System.Generic.Collections.List don't have a number of the useful extension methods I've come to love, such as Find, FindAll, FindIndex, Exists, RemoveAll, etc.
The object browser in VS2008 s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: cygwin xterm not responding to keyboard My cygwin xterm is not responding to the keyboard.
I am able to run rxvt, but when I start other X applications I have the same problem.
From the rxvt command prompt, I get the following:
$ xterm
xterm Xt error: Can't open display: :0
The contents of my XWin.0.log are:
$ cat ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cookie path special characters My application needs to set cookies for specific paths in the application. For example (in php):
setcookie(*cookie_name*,*value*,*date*,"/subpath/subpath/unique_name");
setcookie(*cookie_name*,*value*,*date*,"/subpath/subpath/another unique name");
Oddly enough, the first setcookie wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display Current Time each minute (with Prototype's Ajax.PeriodicalUpdater ?) I have an app that display's the current time when a page opens. I would like that time to update every 30 seconds. I've read about prototype's Ajax.PeriodicalUpdater and it seems to be an answer. This is how I achieve the static time dis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can a member know in what class instance it is constructed?
class C {
public
T x;
};
Is there an elegant way for the constructor of x to know implicitly in what instance of C it is constructing?
I've implemented such behavior with some dirty inelegant machinery. I need this for my sqlite3 wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does printf() not print anything before sleep()? I'm just learning C with Kernighan and Ritchie's book; I'm in the basics of the fourth chapter ("Functions and Program Structure"). The other day I became curious about the sleep() function, so tried to use it like this:
#include <stdio.h>
#include <unistd.h>
int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to get the name of the class Ok, I have the following structure. Basically a plugin architecture
// assembly 1 - Base Class which contains the contract
public class BaseEntity {
public string MyName() {
// figure out the name of the deriving class
// perhaps via reflection
}
}
// assembly 2 - conta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best practice of implementing a webservice client in rails application In situation, when I need a webservice client, which will be used by some action controllers, how should it be implemented? As it will have some constant values (addres, parameters names) and session key, refreshed every 30 minutes, I guess model... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prevent duplicates from being saved in bash history I'm trying to prevent bash from saving duplicate commands to my history. Here's what I've got:
shopt -s histappend
export HISTIGNORE='&:ls:cd ~:cd ..:[bf]g:exit:h:history'
export HISTCONTROL=erasedups
export PROMPT_COMMAND='history -a'
This works fine while I'm lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: What are the differences between osql, isql, and sqlcmd? I am interested in using some kind of a command-line utility for SQL Server similar to Oracle's SQL*Plus. SQL Server seems to have several options: osql, isql, and sqlcmd. However, I am not quite certain which one to use.
Do they all essentially do the same th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Trap Key Entries to Digits and Cap Alphas in Textbox In WPF need to trap the keys entered in a textblock to keep the user from entering anything but digits,cap letters and navigation keys (Backspace, Arrows, etc).
Thanks!
A: First there is a Filtered Text Control available here that does simple masking
The simple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use custom font with a COM Object in .NET I am trying o load a custom font in C#, so it is usable by COM libraries (like ESRI) and by GDI+.
I want to load the font from disk and don't want to install the font on the system.
COM font is of type stdole.IFontDisp.
EDIT: using in AddFontResourceEx combination with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is makeinfo, and how do I get it? I'm trying to build GNU grep, and when I run make, I get:
[snip]
/bin/bash: line 9: makeinfo: command not found
What is makeinfo, and how do I get it?
(This is Ubuntu, if it makes a difference)
A: Another option is to use apt-file (i.e. apt-file search makeinfo). It may or m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "284"
} |
Q: Spring question about @ManagedResource annotation for JMX I would like to find out what the properties of the org.springframework.ManagedResource annotation do as seen in this JavaDoc. I want to understand each param so I can set it to the proper value. If anyone knows where to find more info, I would appreciate i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Suggest a good PHP wiki engine I am looking for a small wiki engine that is easy to embed into an existing PHP application. Or perhaps a set of libraries to handle all the typical wiki functions.
Currently I am using ErfurtWiki, but it is starting to show its age. It hasn't been updated since 2005, and several of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to integration-test a network application in C I've never managed to move from unit-testing to integration-testing in any graceful or automated way when it comes to network code.
So my question is: Given a simple single-threaded client/server based network application, how would you go about integrating both cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Architecture - Multiple web apps operating on the same data I'm asking for a suitable architecture for the following Java web application:
The goal is to build several web applications which all operate on the same data. Suppose a banking system in which account data can be accessed by different web applications; i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to run arbitrary code when windows resumes from hibernate? I need to run some code when my computer resumes from hibernate (even before I logon). The laptop I am using has a bizzare problem. If I have an external monitor connected to it while resuming from hibernate the laptop chooses the external display as the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# VS.NET 2008 Changing settings per configuration Is there a way to have different application settings per each build configuration?
I would like to be able to batch build a few configurations with different settings, instead of having to change the settings and build, rinse repeat.
Thanks in advance!
A: I don't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rails recipe for a Date Range in a view I need to take in a Date Range from the UI, retrieve the records within that range and plot a graph. This is the relevant section in my Rails view.
<span>
<%= check_box_tag :applyRange, @params[:applyRange]%>
From
<%= select_date Time.now, :prefix=>"fromDate" %>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I tell WCF to skip verification of the certificate? Trying to make a web service call to an HTTPS endpoint in my Silverlight application results in this error: "Could not find a base address that matches scheme https for the endpoint with binding WSHttpBinding. Registered base address schemes are [http]"
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: : this(foo) syntax in C# constructors? Every now and then, I bump into syntax that I've seen before, but never used. This is one of those times.
Can someone explain the purpose of ":this" or ":base" following a C# constructor method?
For example:
public MyClass(SomeArg arg) : this(new SomethingElse(), arg)
{
}
My g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Warnings using format strings with sprintf() in C++ Compiling this lines
long int sz;
char tmpret[128];
//take substring of c, translate in c string, convert to int,
//and multiply with 1024
sz=atoi(c.substr(0,pos).c_str())*1024;
snprintf(tmpret,128,"%l",sz);
I read two warning on snprin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cygwin1.dll 'not found' when running a program written in C. How can I make Windows find it? So I'm trying to run my first hello world prog written in C. I compiled it in eclipse and get no errors, but when I try to run it I get:
"This application has failed to start because cygwin1.dll was not found."
I found this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a difference (re optimizations) between MSVC++ 2008 and PSDK compiler? I have just installed the Platform SDK for Windows Server 2008 and .NET 3.5 on my new system, and for the first time tried to compile a project for WIN64. The Unicode Release version of that program, built for 32 bit (using the optimizi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find out if a pointer is on the stack on PC/Visual C++ [This is for PC/Visual C++ specifically (although any other answers would be quite illuminating :))]
How can you tell if a pointer comes from an object in the stack? For example:
int g_n = 0;
void F()
{
int *pA = &s_n;
ASSERT_IS_POINTER_ON_STACK(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to query who are activesync/bb users through Exchange PowerShell? Is there a way to query against exchange 2007 to distinguish who is either an active sync or blackberry user using powershell exchange addin?
A: BBES typically uses a service account that has access to ALL mailboxes in order to do it'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio 2008 sometimes won't open .aspx html markup Every now and again I encounter a problem where Visual Studio Professional 2008 (SP1) refuses to open an aspx page. My site is in a Web Application Project.
Double clicking on the aspx page in solution explorer just causes the tree view node with the code b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: X509 Public Cert and Permissions I’ve got an issue with loading a particular X509 certificate within an ASP.NET application (i.e. not through IIS for https). I’ve loaded it into my ‘Personal’ and ‘Trusted Root’ stores on my local machine (through the MMC snap in) but can’t load it from either store.
It seems the NET... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I view an old version of a file with Git? Is there a command in Git to see (either dumped to stdout, or in $PAGER or $EDITOR) a particular version of a particular file?
A: WAY 1: (I prefer this way, no ability to lose uncommitted data)
*
*Find commit id with: git reflog
*List files from commit git diff-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1868"
} |
Q: javascript select() function with named anchor I want to use the JavaScript select() function to highlight a text field on a form, but first I want to use a named anchor so the page will scroll to the proper section. The following code works pretty well in Firefox, (Unless you enter the same value twice,) but IE doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "GRANT ALL TO role" in SQL Server Please can someone explain what the following statement does in SQL Server 2005:
GRANT ALL TO pax_writer
pax_writer is a database role previously created using the statement
CREATE ROLE pax_writer AUTHORIZATION dbo
A: GRANT ALL TO "someone" grants all permissions for all objects ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: TimedRotatingFileHandler Changing File Name? I am trying to implement the python logging handler TimedRotatingFileHandler.
When it rolls over to midnight it appends the current day in the form YYYY-MM-DD.
LOGGING_MSG_FORMAT = '%(name)-14s > [%(levelname)s] [%(asctime)s] : %(message)s'
LOGGING_DATE_FORMAT = '%Y-%m-%... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: GUI App with Visual C++ Express Edition What tool (preferably free) can be used with Visual C++ 2008 Express Edition to create Win32 GUI applications? As you know the Express Edition does not include a GUI resource editor.
A: It doesn't, but that doesn't stop you from creating a Win32 GUI app; you can still do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/338460",
"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.