text stringlengths 8 267k | meta dict |
|---|---|
Q: Not keyword vs = False when checking for false boolean condition When I'm using an If statement and I want to check if a boolean is false should I use the "Not" keyword or just = false, like so
If (Not myboolean) then
vs
If (myboolean = False) then
Which is better practice and more readable?
A: Since there's no ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What are some things that you've used Scheme macros for? Many examples of macros seem to be about hiding lambdas, e.g. with-open-file in CL. I'm looking for some more exotic uses of macros, particularly in PLT Scheme. I'd like to get a feel for when to consider using a macro vs. using functions.
A: Macros are neede... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Managing reference paths between x86 and x64 workstations in a team I would like to know how .NET teams out there are handling assembly reference paths when not everybody can immediately upgrade to a x64 operating system. The key issue right now is x64 versions of Windows will plant 32-bit installations into C:\Prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: List files recursively in Linux CLI with path relative to the current directory This is similar to this question, but I want to include the path relative to the current directory in unix. If I do the following:
ls -LR | grep .txt
It doesn't include the full paths. For example, I have the following directory structu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "249"
} |
Q: What's the proper name for an email address used as a login or user name? I'm trying to decide what to put in a dialog box that tells the user their login doesn't work, there is probably a duplicate. The system uses email addresses as user names, then requires a password.
Right now, I'm using "Email Login" but that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP: Error in my_thread_global_end(): 1 threads didn't exit When running PHP in CLI mode, most of the time (not always), the script will hang at the end of execution for about 5 seconds and then output this:
Error in my_thread_global_end(): 1 threads didn't exit
It doesn't seem to actually have any effect on the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What will it take to add Objective-C support to the .NET common language runtime? Is it possible for the .NET CLR to support Objective-C? Are there any reasons (either from a legal or implementational) standpoint why this wouldn't be possible?
In the spirit of cross-platform application development, it would be nice... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How JPA (Hibernate) deal with transaction when fetching Object from database I'm currently developping an application in java using Hibernate as a persistence manager and JPA as an abstraction of the persistence manage hibernate.
I'd like to know the impact of wrapping a result query around a transaction. I know th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upload a file in Django and then send it somewhere else through REST? I am building a simple Django app that will use scribd to display documents. I would like to have a page where the administrator can upload documents to scribd through the website, since I need to know a few things about it before it gets to scrib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IIS Worker Process using a LOT of memory? I have one website on my server, and my IIS Worker Process is using 4GB RAM consistently. What should I be checking?
c:\windows\system32\inetsrv\w3wp.exe
A: check the section on troubleshooting memory bottlenecks in Tuning .NET Application Performance
A: Create a mini-dum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Using jquery in Rails I am planning to use jquery in Rails instead of prototype.
I am not sure to use jRails or to use plain jquery and stay away from RJS.
What do you think about this?
EDIT: Two weeks later I found this http://www.loudthinking.com/posts/32-myth-3-rails-forces-you-to-use-prototype
EDIT: This scre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Adjacent number algorithm grouper By which I mean this:
Given the input set of numbers:
1,2,3,4,5 becomes "1-5".
1,2,3,5,7,9,10,11,12,14 becomes "1-3, 5, 7, 9-12, 14"
This is the best I managed to come up with: [C#]
Which feels a little sloppy to me, so the question is, is there somehow more readable and/or elegant... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Which variables should I typecast when doing math operations in C/C++? For example, when I'm dividing two ints and want a float returned, I superstitiously write something like this:
int a = 2, b = 3;
float c = (float)a / (float)b;
If I do not cast a and b to floats, it'll do integer division and return an int.
Sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Examples of good gotos in C or C++ In this thread, we look at examples of good uses of goto in C or C++. It's inspired by an answer which people voted up because they thought I was joking.
Summary (label changed from original to make intent even clearer):
infinite_loop:
// code goes here
goto infinite_loop;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: How to create column names/descriptors programmatically In SQL Server given a Table/View how can you generate a definition of the Table/View in the form:
C1 int,
C2 varchar(20),
C3 double
The information required to do it is contained in the meta-tables of SQL Server but is there a standard script / IDE facilt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you count the rows in a SQL query which already used count, group by, and having before? For example, using the answer for this question:
How to select all users who made more than 10 submissions
"How to select all users who made more than 10 submissions."
select userId
from submission
group by userId
hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What happens in the server when a page load is cancelled in the browser? In a fictitious web application ...
*
*The user clicks a link
*The server starts to prepare the response, but it takes several seconds
*The user cancels the page load
What happens to the request?
Does the server continue to prepare th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best way of scrolling the browser window for expanding elements? What I want to do is scroll down the window when I expand elements in my page.
The effect I am trying to achieve is like the Stack Overflow comments. If it expands beyond the page, it scrolls down to fit all the comments in the window.
Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Direct3D MDI Project: MFC or .NET? I'm looking at a new project where both Native and Managed approaches sound like a good idea. This is a Windows desktop application which should support an MDI interface. The client area will make extensive use of Direct3D. The developers on the project are equally skilled on C#, C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's a good example of a (web) user interface for a graph structure (in the CS sense of graph, nodes, edges)? Like, let's say I had a tree structure, then I would use, naturally a tree control, since that GUI element maps perfectly to the structure.
But what I have is a graph, potentially too wide to fit in one we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Jython - javaos.getenv() gives "Failed to get environment, environ will be empty" Whenever I run any jython program in Eclipse, I got the following error in the beginning of the output:
" Failed to
get environment, environ will be
empty: (0, 'Failed to execute command
([\'sh\', \'-c\', \'env\']):
java.io.I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When is not a good time to use python generators? This is rather the inverse of What can you use Python generator functions for?: python generators, generator expressions, and the itertools module are some of my favorite features of python these days. They're especially useful when setting up chains of operations to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: SSH, screen and XDISPLAY I use screen to persist my work session and connect to the same session from multiple machines. How can I setup SSH and screen such that the XDISPLAY variable inside my persistent screen session is always set to the machine I am currently connecting from?
ie. I start the screen session at wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: OOP Problems to use for Coding Tests during interviews As a second interview I get people to sit down and write code...I try to make the problem really technology independent.
My programming problems that I have don't really exercise peoples OO abilities. I tend to try and keep the coding problem solvable within 2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Making fscanf Ignore Optional Parameter I am using fscanf to read a file which has lines like
Number <-whitespace-> string <-whitespace-> optional_3rd_column
I wish to extract the number and string out of each column, but ignore the 3rd_column if it exists
Example Data:
12 foo something
03 bar
24 something #ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JVM terminates when launching Eclipse MAT on Mac OS with J2SE 6.0 I have recently discovered the incredibly useful Eclipse Memory Analysis Tool, which makes quick work of finding memory leaks in Java applications. Unfortunately, after switching my JDK to 1.6 (under Mac OS 10.5), the JVM terminates immediately upon ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does InitializeComponent() do, and how does it work in WPF? What does InitializeComponent() do, and how does it work in WPF?
In general first, but I would especially be interested to know the gory details of order of construction, and what happens when there are Attached Properties.
A: Looking at the code alwa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "176"
} |
Q: Opening pipe connection to a file descriptor in C# I have a legacy app where it reads message from a client program from file descriptor 3. This is an external app so I cannot change this. The client is written in C#. How can we open a connection to a specific file descriptor in C#? Can we use something like Anonymo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET WebPermission Security Exception I usually hate posting these types of questions as normally I find that the best way to really learn is to figure out the answer yourself.
However, I need an answer to this question really quickly as I have a client who can't run her business due to this problem.
Yesterday m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get an already (basic) authenticated context to call a web service behind the same authentication? I have a site behind basic authentication (IIS6).
Part of this site calls a web service that is also part of the site and thus behind basic authentication as well.
However, when this happens the calling code r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Binary Search Tree Deletion (Inorder Pred method) C++ Ok so I thought it was fixed, but I'm getting totally inconsistent results.
I rewrote it kind of from scratch to start fresh and here are my results. I get no errors, no crashing, it just doesn't remove them. It just totally messes up the tree and gives me a to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I rename files in sub directories? Is there any way of batch renaming files in sub directories?
For example:
Rename *.html to *.htm in a folder which has directories and sub directories.
A: Windows command prompt: (If inside a batch file, change %x to %%x)
for /r %x in (*.html) do ren "%x" *.htm
This also w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: When should I dispose my objects in .NET? For general code, do I really need to dispose an object? Can I just ignore it for the most part or is it a good idea to always dispose an object when your 100% sure you don't need it anymore?
A: The reason you should always call Dispose() on any type that implements IDis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Tell if 'elapsed' event thread is still running? Given a System.Timers.Timer, is there a way from the main thread to tell if the worker thread running the elapsed event code is still running?
In other words, how can one make sure the code running in the worker thread is not currently running before stopping the time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the difference between the different methods of putting JavaScript code in an ? I have seen the following methods of putting JavaScript code in an <a> tag:
function DoSomething() { ... return false; }
*
*<a href="javascript:;" onClick="return DoSomething();">link</a>
*<a href="javascript:DoSomething();"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: How Do I Choose Between a Hash Table and a Trie (Prefix Tree)? So if I have to choose between a hash table or a prefix tree what are the discriminating factors that would lead me to choose one over the other. From my own naive point of view it seems as though using a trie has some extra overhead since it isn't store... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "164"
} |
Q: Clear page file using vba code I have a vba macro which runs a loop for about 200 iterations, using up the ram page file as it runs.
I need some kind of quick fix to clear the page file after every iteration. I know the best fix would be to clean up the code, but time is a constraint here.
A: At the end of each loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delivery of .Net 3.5 SP1 If I were to include .Net Framework setup file along with my apps (installation process is done by our own technician), to be install on a clean Windows (XP SP2/SP3 or Vista SP1) without prior installation of any framework, which of the .Net Framework setup do I need to install in sequence, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Best way to extract MAC address from ifconfig's output? What is the best way to extract the MAC address from ifconfig's output?
Sample output:
bash-3.00# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 1F:2E:19:10:3B:52
inet addr:127.0.0.66 Bcast:127.255.255.255 Mask:255.0.0.0
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Event-based async in C#; any generic refactoring possible? Some APIs, like the WebClient, use the Event-based Async pattern. While this looks simple, and probably works well in a loosely coupled app (say, BackgroundWorker in a UI), it doesn't chain together very well.
For instance, here's a program that's multithre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SNMP payload address translation I'm using iptables under linux to NAT SNMP traffic. Some of the SNMP packets have VARBINDs that contain the (real) IP addresses of the devices that generated them. This confuses standard management tools, which need to see the NATted addresses in the VARBINDs. So I need to transla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to release a project which depends on a 3rd party SNAPSHOT project in maven i would like to release a snapshot project 'foo-1.0-SNAPSHOT' using the maven release plugin. The project depends on a 3rd party module 'bar-1.0-SNAPSHOT' which is not released yet.
I use the option 'allowTimestampedSnapshots' in my proj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: What options are there for sharing data across subdomains? I have www.example.com and also store.example.com.
(Yes they are subdomains of the same parent domain)
store.example.com is on ASP.NET 1.1
www.example.com is on ASP.NET 3.5
I want to know what options are available for sharing 'session' data between the two ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find Unused Resources in a .NET Solution How do you go about finding unused icons, images, strings in .resx files that may have become 'orphaned' and are no longer required?
A: This is no information an algorithm can reliably compute. The inspected program could fetch a list of all resources and do something with t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: C++/CLI Reference Variable void f(cli::array<PointF> ^points){
PointF& a = points[0];
// and so on...
}
Compile error at line 2.
.\ndPanel.cpp(52) : error C2440: 'initializing' : cannot convert from 'System::Drawing::PointF' to 'System::Drawing::PointF &'
An object from the gc heap (element of a ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find unused code I have to refactor a large C# application, and I found a lot of functions that are never used. How can I check for unused code, so I can remove all the unused functions?
A: I would also mention that using IOC aka Unity may make these assessments misleading. I may have erred but several very import... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "225"
} |
Q: Considerations for updating a 'SiteVisit' row many times over a session SQL Server 2005:
I have a SiteVisit row which contains information about a users visit, for instance HttpRefer, whether or not they placed an order, browser, etc.
Currently for reporting I am joining this table with SiteEvent which contains info... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coding color scheme for programming in Windows, not just Visual Studio Like many SO people, I'm in front of a computer almost all day. I like having a dark theme for Visual Studio (easier on the eyes), but since the rest of Windows and apps (explorer, dialogs, Outlook), have the full white background, it's even hard... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does Fiddler break my site's redirects? Why does using Fiddler break my site sometimes on page transitions.
After a server side redirect -- in the http response (as found in Fiddler) I get this:
Object moved
Object moved to here.
The site is an ASP.NET 1.1 / VB.NET 1.1 [sic] site.
Why doesnt Fiddler just go th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you implement C#4's IDynamicObject interface? To implement "method-missing"-semantics and such in C# 4.0, you have to implement IDynamicObject:
public interface IDynamicObject
{
MetaObject GetMetaObject(Expression parameter);
}
As far as I can figure out IDynamicObject is actually part of the DLR, so it is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you implement search functionality using location information in ASP.NET? I am currently looking into using Lucene.NET for powering the search functionality on a web application I am working on. However, the search functionality I am implementing not only needs to do full text searches, but also needs to ran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/245977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: send key for right arrow what is the syntax for the sendkey for rightarrow in .net?
A: {RIGHT}
http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx
A: Google is your friend.
{RIGHT}
| {
"language": "en",
"url": "https://stackoverflow.com/questions/246000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine whether a given Linux is 32 bit or 64 bit? When I type uname -a, it gives the following output.
Linux mars 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux
How can I know from this that the given OS is 32 or 64 bit?
This is useful when writing configure scripts, for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "475"
} |
Q: Eclipse doesn't recognize XML I'm using the PHP Eclipse.
When a XML file is opened, Eclipse doesn't seem to recognize the xml, meaning that all looks black.
When opened the XML file like "open with" and point to eclipse, it works fine.
What setting can be set to use that automatically so that eclipse recognizes it a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Button text in JTable renderer not visible. Why? I have a custom cell renderer set in JTable and it works but instead an "x" visible on buttons being table cells I see "..." (three dots). What did I miss ??
/***************************************************************************
* Listener reagujący na dodani... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: what's the fundamental differences of variables and symbols? I'm rather confused about this.
And what's their relationship(e.g., how one can be used in the context of the other)? Much thanks!!
A: Is this what you are looking for ?
A symbol is basically just an object with four fields:
*
*a name (a string),
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to determine the version of oc4j being used? I have an oc4j installation bereft of any release notes or version documentation. In the absence of such documents, how do I know for sure, which version of oc4j I am using?
A: Check Server header in HTTP headers. For example with wget or curl;
wget -S <url-to-serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How does SQL know what @p# in LINQtoSQL queries? I want to know how does the SQL Server know what @p# is in say this LINQtoSQL query
SELECT
[t0].[MemberID], [t0].[Aspnetusername], [t0].[Aspnetpassword],
[t0].[EmailAddr], [t0].[DateCreated], [t0].[Location],
[t0].[DaimokuGoal], [t0].[PreviewImageID],
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVP events or property I'm using the MVP pattern in a windows form app. I need to change a radio button on the view. I can do this by exposing a Boolean property on the view, but should I be using events to manipulate the view instead?
A: It's a matter of purity vs being pragmatic... and a bit of personal style. Sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unit testing void methods? What is the best way to unit test a method that doesn't return anything? Specifically in c#.
What I am really trying to test is a method that takes a log file and parses it for specific strings. The strings are then inserted into a database. Nothing that hasn't been done before but being V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "221"
} |
Q: How to get common Subclasses of 2 Interfaces in Java with Eclipse? Actually I try to find a subclass of InputStream which is also Serializable. I think that doesn't exist. Since both Interfaces have many sublclasses it is hard to find one that is a subclass of both.
Until now I haven't found anything to help my sear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add display a message in linux commandline upon logging in? There are certain messages which i wish to display to the personal who is doing putty to a linux shell. How do i like configure some kind of welcome message when people login to the linux shell?
A: Message of the day, /etc/motd
i.e. edit the /etc/mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to debug in VI Using vim 7.1, I recently heard you can debug php in VI.
But how?
A: If you are referring to debugging vim script, vim -D is a first step.
More details in Debugging Vim Scripts.
A: See the link on using xdebug with vim that someone else posted for a full debugger, but as an extra tip you can do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: "System.InvalidOperationException: The object is currently in use elsewhere" - how do I resolve this? I got this error when trying to update an image.
It was a cross-thread update, but I used .Invoke(), so that shouldn't be the problem, should it.
A: (Answering my own question, for others, and for future reference)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you define a Single Responsibility? I know about "class having a single reason to change". Now, what is that exactly? Are there some smells/signs that could tell that class does not have a single responsibility? Or could the real answer hide in YAGNI and only refactor to a single responsibility the first time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Basic example of a scriptable plugin for Firefox in C++ with VS2005/8 My experience to write a plugin for Firefox is below zero. Is someone out there who could point me to sample code on how to get this accomplished in C++ with VS2005/8?
What I need to do with JavaScript in the hosting html page is something like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How are Windows VK_ constants declared? For example VK_LEFT, VK_DELETE, VK_ESCAPE, VK_RETURN, etc. How and where are they declared? Are they constants, #defines, or something else? Where do they come from?
If possible, please provide a file name/path where they are declared. Or some other info as specific as possibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: EBNF to fluent interface I have recently had the need to write a fluent interface for C# that will essentially mirror SQL. Yes, I am aware of LINQ to SQL, but I'm interesting in getting "closer to the metal"--having something that essentially provides nothing more than an Intellisensified SQL shim within C#.
E.g.,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the equivalent of .NET events in Ruby? The problem is very simple. An object needs to notify some events that might be of interest to observers.
When I sat to validate a design that I cooked up now in Ruby just to validate it.. I find myself stumped as to how to implement the object events. In .Net this woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: International Phone and Address Data? I guess this is a multi-part question. I am building a membership site and want to have the accounts as international as possible.
*
*What is the best way to collect phone numbers on a form that allows for international numbers? I'm not worried about storing them, just colle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Debugging .NET dynamic methods We are using LINQ very widely in our system. Particularly LINQ-to-objects. So in some places we end up having a LINQ query in memory build up from some huge expressions. The problem comes when there's some bug in the expressions. So we get NullReferenceException and the stack trace lea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I make svnant/svnkit prompt for a username/password I have an Ant script that needs to checkout a directory from Subversion. This works using svnant/svnkit. However, Subversion access is authenticated, and I do not want to store my user password in a file.
Can I make svnkit pop up a password dialog?
Or even ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HTTP compliance testing What would you use to perform a compliance testing of an HTTP proxy? I've seen two projects so far:
*
*Web Polygraph (the feedback I got from a coworker is mostly negative)
*Funkload
A: Take a look here: http://www.measurement-factory.com/
The Co-Advisor product might be what you are aft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is volatile needed in C? Why is volatile needed in C? What is it used for? What will it do?
A: Volatile is also useful, when you want to force the compiler not to optimize a specific code sequence (e.g. for writing a micro-benchmark).
A: volatile means the storage is likely to change at anytime and be changed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "534"
} |
Q: How do I set up a test project for a Eclipse plugin project I'm working on a eclipse plug-in and I've tried to create another test project seperate from the plug-in. The reason I do this is to not let the plug-in depend on jUnit when it is exported. However, I can't access the Eclipse Plug-in API when I do the testi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to aggregate information from portal list to My Site Is it possible to aggreagate information from a list in a sitecollection and/or a portal site to "My Site"?
I would like to display all my calendar appointments made in the portal (or sub-site collection) in a webpart under "My Site"
A: You need a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Web Services in Java What do you usually use to connect to a Web Service when you are developing a Java project?
There are different API-s that can do the job.
From different books and tutorials I have read about: JAX-WS, JAXB, JAXM, JAXR, JAX-RPC, Axis ans so on.
I'm interested in what exactly are you using and how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Size-to-content-layout problem in WPF This is supposed to be a no brainer but I still can’t figure it out.
In my sample app there’s a button and a textbox in a dockpanel. If the content of the textbox is smaller than the content of the textbox the window is as big as it needs to be to display the content of the butt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I call and set the Python gettext module in a library and a module using it at the same time? Im a coding a library including textual feedback that I need to translate.
I put the following lines in a _config.py module that I import everywhere in my app :
import gettext, os, sys
pathname = os.path.dirname(sys.arg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I get the actionName in a ActionFilter? this is my old code
protected override bool OnPreAction(string actionName, System.Reflection.MethodInfo methodInfo)
{
if ("|Register|RegisterPage|Login|LoginPage|Logout|Service".ToLower().Contains(actionName.ToLower()))
{
return bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Integer representation of a date In the recent project, we had an issue with the performance of few queries that relied heavily on ordering the results by datetime field (MSSQL 2008 database).
When we executed the queries with ORDER BY RecordDate DESC (or ASC) the queries executed 10x slower than without that. Order... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can we output a picture in C? can we output a .jpg image or .gif image in C? I mean can we print a picture as output with the help of a C program?Aslo can we write a script in C language for HTML pages as can be written in JavaScript? Can the browsers operate on it?If not possible is there any plugin for any of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Group Similar Taskbar Buttons Our app is made up of several Modules, and we would like to take advantage of the XP feature that would allow these to be grouped together. For example all windows in "Module A" would be grouped together, separately from windows in "Module B".
I've tried setting the AssemblyTitle attri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you balance Framework/API Design and TDD We are building a framework that will be used by other developers and for now we have been using a lot of TDD practices. We have interfaces everywhere and have well-written unit tests that mock the interfaces.
However, we are now reaching the point where some of the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to change the value of ${user} variable used in Eclipse templates Instead of hardcoding the default @author template I would like Eclipse to use user's real name taken from account information (in Linux - but Windows solution is also welcome). Entering it somewhere into Eclipse configuration would be acceptable,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "277"
} |
Q: How do I round a number in JavaScript? While working on a project, I came across a JS-script created by a former employee that basically creates a report in the form of
Name : Value
Name2 : Value2
etc.
The peoblem is that the values can sometimes be floats (with different precision), integers, or even in the form 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Debug an installer project Could anyone tell me how to debug a custom installer class in an installer project.My custom installer class & the installer are present in same solution.
Regards,
Harsh Suman
A: You can try inserting a Debugger.Break() inside the Installer class method you want to debug which will trigge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Default capacity of StringBuilder What is the default capacity of a StringBuilder?
And when should (or shouldn't) the default be used?
A: The Venerable J. Skeet has provided a good analysis of precisely this problem:
https://jonskeet.uk/csharp/stringbuilder.html
A: The default capacity of StringBuilder is 16 chara... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: How can I generate a list of files with their absolute path in Linux? I am writing a shell script that takes file paths as input.
For this reason, I need to generate recursive file listings with full paths. For example, the file bar has the path:
/home/ken/foo/bar
but, as far as I can see, both ls and find only giv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "397"
} |
Q: Export SQL database to Access - ASP.NET Is there any way to export data (not necessarily schema) to an access database via asp.net?
The server has no office components installed and the process must occur via a webpage (like an excel export).
A: You have to do it programatically.
*
*Open the source table
*Creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to create a Midnight DateTime in C# I need to create a midnight DateTime
I've just done this:
DateTime endTime = DateTime.Now;
endTime.Subtract(endTime.TimeOfDay);
Haven't test it yet, I'm assuming it works but is there a better/cleaner way?
A: DateTime endTime = DateTime.Now.Date;
Now endTime.TimeOfDay.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: How do you change the server header returned by nginx? There's an option to hide the version so it will display only nginx, but is there a way to hide that too so it will not show anything or change the header?
A: Like Apache, this is a quick edit to the source and recompile. From Calomel.org:
The Server: string i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "159"
} |
Q: Why does my application still run after closing main window? If I make a JFrame like this
public static void main(String[] args) {
new JFrame().setVisible(true);
}
then after closing the window the appication doesn't stop (I need to kill it).
What is the proper way of showing application's main windows ?
I'd ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Regular Expression nongreedy is greedy I have the following text
tooooooooooooon
According to this book I'm reading, when the ? follows after any quantifier, it becomes non greedy.
My regex to*?n is still returning tooooooooooooon.
It should return ton shouldn't it?
Any idea why?
A: A regular expression es always ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Dot Matrix printing in C#? I'm trying to print to Dot Matrix printers (various models) out of C#, currently I'm using Win32 API (you can find alot of examples online) calls to send escape codes directly to the printer out of my C# application. This works great, but...
My problem is because I'm generating the escape ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Eclipse plugin for TestNG coverage Does anybody know about an Eclipse plug-in to analyze code coverage for TestNG unit tests?
A: EclEmma can be run on TestNG test suites. You can also run a group of test or a given TestNG class with it. It requires the TestNg plug-in
On EclEmma plugin, choose "coverage configurat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL to Linq Expression? Does anyone know of a tool to take a T-SQL query and convert it into a LINQtoSQL query?
A: I'm sorry that I don't know of any tools to do this. If your problem is that you just don't know Linq well enough, you may want to consider this tool. It will help you learn Linq and it's free (but n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Programmatically add custom event in the iPhone Calendar Is there any way to add iCal event to the iPhone Calendar from the custom App?
A: Swift 4.0 implementation :
use import in top of page by import EventKit
then
@IBAction func addtoCalendarClicked(sender: AnyObject) {
let eventStore = EKEventStore()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "184"
} |
Q: Sorting web sites in IIS Currently I'm running several websites that have several (branded) duplicates each, in the same IIS.
I wanted to have an easy overview of all the website groups so I used a naming convention like [siteName].[brandCode].
But lo and behold, IIS has its very own (seemingly random) way of orderi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET Img tag I have a problem with how ASP.Net generates the img tag.
I have a server control like this:
<asp:Image runat="server" ID="someWarning" ImageUrl="~/images/warning.gif" AlternateText="Warning" />
I expect it to generate this:
<img id="ctl00_ContentPlaceHolder1_ctl00_someWarning" src="../images/warn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/246272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.