text stringlengths 8 267k | meta dict |
|---|---|
Q: How to let JAXB render boolean as 0 and 1, not true and false Got a quick question. Does anyone know how to let JAXB (marshall) render boolean fields as 1 and 0 instead of printing out "true" and "false"?
A: Having the same problem as user20298, I followed the hint by mtpettyp, and adapted it for my configuration. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: What are your pros and cons of git after having used it? I'm using SVN right now, and I've used CVS and VSS in the past. SVN is the current favourite in my books, but I've been hearing a lot about git. Of the people that have used git, what are the pros and cons from your experience?
A: The Windows support is appal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Displaying Error Message from C# AfterInstall Event Can someone please tell me how to display error message in C# during execution of AfterInstallEvent?
My project uses the Microsoft set-up and deployment project and then I have created a class that is called when the AfterInstall event is fired.
MessageBox.Show()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Articles related to Hypernate in .NET I'm looking for articles related Hypernate in .net
Can anyone recommend some?
A: It seems unlikely that you're really after hypernate (which appears to be a solo project without a release in 3 years). Did you perhaps mean NHibernate? If so, you're likely to be able to find what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How about using FLEX 3 component inside Flash file? Is it possible to use Flex 3 component/code inside Flash (cs4) SWF file ?
I know its possible in the opposite direction.
A: I haven't used Flex code in a "pure AS3" project myself, but I don't see why you couldn't do that.
You can download the Flex SDK and get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create an MFC ComboBox with search I need a combobox in an Windows MFC application that has a search feature. It should work so that if you start typing something that matches one or more items in the list, the combobox should drop-down and display those items. Kinda like popular ajax-based search boxes on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Transferring files over SSH I'm SSHing into a remote server on the command line, and trying to copy a directory onto my local machine with the scp command. However, the remote server returns this "usage" message:
[Stewart:console/ebooks/discostat] jmm% scp -p ./styles/
usage: scp [-1246BCEpqrv] [-c cipher] [-F ssh_c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "490"
} |
Q: Should Microsoft avoid implementing a feature in .Net just because internationalising it is too difficult? I raised a request over at Microsoft Connect regarding the formatting of dates ("DateTime Formatting should caluclate the correct suffix for the day"). Basically I wanted to have a formatting string code for ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Bazaar and $Id$ Most my sources are in subversion and I use '$Id$' to add revision information to those sources. Then I can easily check what sources were used (e.g.. --version option shows that info).
Now I'm going to use bazaar and I can't find such a functionality.
Is there any equivalent of svn '$Id$' in bazaar?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get all Enum values in XMLBeans? Apache XMLBeans can be used to generate Java classes and interfaces from XML Schema Definition files (XSD). It also generates Enums based on StringEnumAbstractBase and StringEnumAbstractBase.Table to represent domain values. They are handy for entering only valid values. Howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What units of measure would you store engineering data in? In our app, we currently live with the legacy of a decision to store all engineering data in our database in SI.
I worry that we may run the risk of not having sufficient precision and accuracy in our database or in .NET numeric types. I am also worried that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Good F# Asynchronous IO Sample Where can I find a good sample of Asynchronous IO on files with thread hooping?
Thanks
A: In this video cast http://channel9.msdn.com/pdc2008/TL11/ Luca Bolognese explain F#, including async file reading and parallel map reduce.
I hope it helps.
A: Here is an example: Using F# Asyn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Close Parent window in fireFox Is it possible to close parent window in Firefox 2.0 using JavaScript. I have a parent page which opens another window, i need to close the parent window after say 10 seconds.
I have tried Firefox tweaks "dom.allow_scripts_to_close_windows", tried delay but nothing seems to work.
Any h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: html getting garbled from php I have a mysql database which as one of the fields contains a html description. This description is not in my control, and is obtained and inserted automatically. An example of one of these descriptions is here:
http://www.nomorepasting.com/getpaste.php?pasteid=22492
The data is origina... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there source code analysis api in .net similar to those in java?
The APIs that might be of interest to
developers of Java applications that
need to perform source code analysis
are the Java Compiler API (JSR 199),
the Pluggable Annotation Processing
API (JSR 269), and the Compiler Tree
API.
Any simi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP debugging - where to set the breakpoints? How to authenticate? So I've just recently made the step from ad hoc debugging with dump, print_r and echo to some more sophisticated methods and I'm having a struggle.
I work with Zend Framework, Aptana and Zend Debugger.
At this moment I'm trying to debug a custom con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use InterWiki links in moinmoin? We use a number of diffrent web services in our company, wiki(moinmoin), bugtracker (internally), requestracker (customer connection), subversion. Is there a way to parse the wikipages so that if I write "... in Bug1234 you could ..." Bug1234 woud be renderd as a link to http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you create (and read) windows shortcut(.lnk file) in Java? Same question, different langauge.
How do you do it in Java? Do you use JNI? run exe? or are there any library read/write *.lnk like POI read/write *.xls?
I used to workaround to create ".url" which is plain text INI file. But I am looking for other ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How many .hbm files are needed to represent Hibernate Inheritance? In order to represent inheritance how many hbm files are needed?
How do I represent the relationship between base and subclasses in the subclass hbm file?
I want hbm and pojo class of super and sub class.
A: http://docs.jboss.org/hibernate/core/3.6/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SystemSounds Play not working I am trying to play the Asterisk system sound from a C# program with
System.Media.SystemSounds.Asterisk.Play();
but no sound plays. My system does have a sound set up for Asterisk and other programs (not written by me) cause various system sounds to play.
Can anyone suggest any possib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the best way to specify execution time of recurring jobs or tasks? I am looking for a way of efficiently specifying a recurring job execution time without having to write an explicit execution time to a datastore. In other words, rather than saying 'job x next runs at 13.00pm on 11.12.08' and then having to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to search history in Perforce It seems that there are no way to do that in P4V.
I can use 'Submitted Changelist'and but it's quite cumbersome and there I can only search by User & Workspace.
I'd like to search the history by description.
Is there any easy way to do that?
A: If you are on Windows, P4Win has a "F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a jQuery Click method? I'm trying to click on a link using jquery. There only appears to be a click event that replicates "onclick" (i.e user input). Is it possible to use jquery to actually click a link?
A: I prefer $(-some object-).click() for readability
If you pass the click() method a function, it beh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: IS CAML the only way to Query MOSS? CAML is hard to learn, and dificult to use, is there a better way to get results from MOSS, besides using CAML queries? And not referring to the Web Services, which are slower, or the object model, which again is slower.
A: Essentially, yes, you need to at least be able to read ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jquery ui draggable in Internet Explorer(IE) - Object doesn't support this method When I try to execute the following code in IE:
<script type="text/javascript">
google.load("jquery", 1);
google.load("jqueryui", "1.5.3");
$(document).ready(function()
{
$("#main-dialo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to configure Tomcat 5.5 to authenticate against Win2003 Activedirectory(LDAP) How to configure Tomcat 5.5 to authenticate against Win2003 Activedirectory(LDAP)
What changes are needed to default tomcat configuration, at least server.xml needs to be changed somehow to have IP of Win2003 server?
A: I don't know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's a good algorithm to determine if an input is a perfect square?
Possible Duplicate:
Fastest way to determine if an integer's square root is an integer
What's a way to see if a number is a perfect square?
bool IsPerfectSquare(long input)
{
// TODO
}
I'm using C# but this is language agnostic.
Bonus poin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: How to convert from UTM to LatLng in python or Javascript I have a bunch of files with coordinates in UTM form. For each coordinate I have easting, northing and zone. I need to convert this to LatLng for use with Google Map API to show the information in a map.
I have found some online calculators that does this, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Is there a good way to automate translation of objects between different architectural layers? More and more applications need different representations of similar objects, e.g., when crossing the wire with web services or when mapping to the database. When you are working with a domain model you probably need one k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Taking out all classes of a specific namespace Is there a way to get an object from a specific namespace? Perhaps with the System.Reflections? I want to get all objects from type ITestType in the namespace Test.TestTypes as Objects so that I have a list of instances of TestType1, TestType2, TestType3 and so on. Can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to derive class from CFindReplaceDialog? (MFC) Is it possible to derive custom-built dialog from CFindEditDialog? I want to build a dialog template in Viasual Studio Resource Builder (to draw it), then to hide the default Find dialog window and to use my instead.
MSDN says:
To customize the dialog box, derive a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery bind error "event is not defined" Currently I'm doing something like this in markup
<input type="text" ONKEYPRESS="InputNumeric(event);" id="txtNumber" />
But I want to use the jQuery bind method instead for all the obvious reasons.
jQuery(function($)
{
$("#txtNumber").bind("keyup", InputNumeric(event))... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SandCastle Help Builder: Search Functionality I'm very happy with the output from SandCastle, but I would also like to have some search functionality included in the HTML output, is this possible?
A: The Website output from SandCastle Help File Builder contains index.aspx and index.html.
If you display index.html t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to cache data in a MVC application I have read lots of information about page caching and partial page caching in a MVC application. However, I would like to know how you would cache data.
In my scenario I will be using LINQ to Entities (entity framework). On the first call to GetNames (or whatever the method is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "260"
} |
Q: Selecting rows where first n-chars are equal (MySQL) I have a table with playerhandles, like this:
1 - [N] Laka
2 - [N] James
3 - nor | Brian
4 - nor | John
5 - Player 2
6 - Spectator
7 - [N] Joe
From there I wanna select all players where the first n-chars match, but I don't know the pattern, only that it's the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mapping ORACLE's NUMBER Type with Hibernate I have a table in a ORACLE 10g database with a column "kzCode NUMBER(1)".
If I try to map this with Hibernate annotations in JBOSS Server WebApp like this:
@Column(nullable=false)
private Integer kzCode;
I got an error:
org.hibernate.HibernateException: Wrong column type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL 2005: how does a full backup affect log shipping? I'm planning to set up log shipping to a remote site for disaster recovery but I still want to take a nightly full backup so I can copy it to our backup tape and also use it to restore onto our reporting server. Can I do that without breaking the cycle of log bac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MS DOS edit a file I am writing a batch script which I wish to open a file and then change the second line of it. I want to find the string "cat" and replace it with a value that I have SET i.e. %var% . I only want this to happen on the second line (or for the first 3 times). How would you go about doing this?
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server 2005: File Resizing I have some databases that have four files each; one for PRIMARY, IDX, IMAGE, LOG their initial sizes were set to 200MB each but they are consuming far less space, about 100MB total.
1) is it possible to resize the database files while they are in use down to more reasonable sizes, say... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java performance with very large amounts of RAM I'm exploring the possibility of running a Java app on a machine with very large amounts of RAM (anywhere from 300GB to 15TB, probably on an SGI Altix 4700 machine), and I'm curious as to how Java's GC is likely to perform in this scenario.
I've heard that IBM's or JRo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Fixed width font - Symbian C++ CEikLabel I want to change the font I am using in a CEikLabel on S60 device
I believe I can do the following
const CFont* aPlainFont = LatinPlain12();
aLabel->SetFont(aPlainFont);
where LatinPlain12 is one from this list..
Albi12
Alp13
Alpi13
Albi13
alp17
Alb17b
albi17b
alpi17
Aco13
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does Eclipse debug code in an application server? What communication is going on between Eclipse and my application server (JBoss) when I run the server from within Eclipse in debugging mode? How does this work?
A: I think it is called JDWP (Java Debugging Wire Protocol) - read more here
A: When you start the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Current Classes Loaded Constantly Increasing - Memory Leak I've got a service that has a very slow memory leak. If I analyze the .NET CLR Loading counters, I see that the Current Classes Loaded counter is constantly increasing and matches Total Classes Loaded counter at all times. This gives me the impression that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Optimizing locations of on-disk data for sequential access I need to store large amounts of data on-disk in approximately 1k blocks. I will be accessing these objects in a way that is hard to predict, but where patterns probably exist.
Is there an algorithm or heuristic I can use that will rearrange the objects on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Reading a large file into a Dictionary I have a 1GB file containing pairs of string and long.
What's the best way of reading it into a Dictionary, and how much memory would you say it requires?
File has 62 million rows.
I've managed to read it using 5.5GB of ram.
Say 22 bytes overhead per Dictionary entry, that's 1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VB6 P&D Installations, "The destination file is in use..." I am maintaining an application written in VB6 and we currently use package and deployment wizard to create installations for our project. When most users try to install this software they get the error message:
C:\WINDOWS\system32\vbajet32.dll
The destinat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SharePoint (MOSS 2007) remove user The bossman wants to know how to delete a user in Sharepoint. We've got him convinced that deleting a user is too difficult because of traces of that user through the system, so now he wants to be able to change the username to all Xs or somesuch. I've poked around the DB and fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Writing a DLL for Excel in Delphi I'm using Turbo Delphi 2006.
The DLL will be called from within Excel as part of a VBA/DLL combination.
The first part of the problem is trying to find out how to pass to the DLL a reference to the current Excel session. Most other code I've seen was that it launched a separate ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows service shut down I use VS6 and ATL with CServiceModule to implement a custom windows service. In case of a fatal error service should shut itself down. Since CServiceModule is available via _Module variable in all files I thought of something like this to cause CServiceModule::Run to stop pumping messages a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP crypt() function in .Net? I'm rewriting a PHP web site in ASP.NET MVC. I'd like to maintain the same user base but the passwords are hashed using the PHP crypt() function. I need the same function in .Net so that I can hash a password on login and check it against the hashed password in the user database.
crypt ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/343995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I replace this preprocessor macro with a #include? UPDATE:
Obviously, you'd want to do this using templates or a base class rather than macros. Unfortunately for various reasons I can't use templates, or a base class.
At the moment I am using a macro to define a bunch of fields and methods on various classes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using custom performance counters across appdomain recycles I have an ASP.NET application which tracks statistics by creating and writing to custom performance counters. Occasionally, I see in the error logs that indicate that the counters have failed to open because they had already been used in the current proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using Castle Windsor configuration files is it possible to delegate to another item declaration? Using Castle-Windsor, is it possible to declare a type once and use this declaration for multiple Ids rather than writing it out in full each time.
E.g. we have class Widget that implements IFoo and we want the keys "IF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use app.config with Visual Studio add-in? I'm building a simple VS2008 add-in. What is the best practice for storing custom run-time settings? Where do you store the app.config and how do you access it from the add-in?
A: Try something like this with System.IO.IsolatedStorageFile (haven't tested sample code.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Differences in building UI between Web and Desktop Applications The UI for web apps is constructed differently from the UI of desktop apps. I'm interested to know what are actually the major differences in building UI between the two styles of applications in the following areas:
1.Technology used
2.Techniques u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: shared_ptr: what's it used for I make a lot of use of boost::scoped_ptr in my code and it is great but I'm currently working with software that uses shared_ptr all over the place and I'm wondering if I'm missing something.
AFAIK a shared_ptr is only useful if different threads are going to be accessing the same dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using LINQ to query flat text files with fixed-length records? I've got a file filled with records like this:
NCNSCF1124557200811UPPY19871230
The codes are all fixed-length, and some of them link to other flat files (sort of like a relational database). What's the best way of querying this data using LINQ?
This is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PostgreSQL vs Postgres Plus Does anyone know what substantial differences there are between the regular PostgreSQL and Postgres Plus?
A: Postgres PLUS is proprietary, PostgreSQL is Open source under permissive license (and that's why Postgres PLUS is proprietary).
Postgres PLUS has support for Oracle PL/SQL, whil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to access the item being data bound during ItemDataBound? I want to get at the item that is being data bound, during the ItemDataBound event of an asp:repeater.
I tried the following (which was an unaccepted answer in a stackoverflow question):
protected void myRepeater_ItemDataBound(object sender, RepeaterItemE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How re-detect an USB Flash Memory by software? After selecting "Safe Remove" option in windows system tray, is there any way that I can re-detect my Flash by a code, without plug it out and again inserting it to the computer USB port?
A: You can look at re-scanning the system for devices. Test this with Microsoft'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What to do about the solution explorer and getting around? Suggestions and improvements! I find the solution explorer is a bit slow to get around in sometimes, and think that there might be a better UI solution out there. I like Ctrl+T but sometimes a visual cue is better than remembering the class name?
I think it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is StartInfo (ProcessStartInfo) always empty? According to MSDN:
If you did not use the Start method to start a process, the StartInfo property does not reflect the parameters used to start the process. For example, if you use GetProcesses to get an array of processes running on the computer, the StartInfo prop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Where do I specify the text of a Pocket PC app's shortcut? I'm unfamiliar with Pocket PC development, but I have to make a few minor changes to an VS2005, Pocket PC 2003 Device application. One of the changes (which I thought would be trivial) is changing the text of app's shortcut, but I can't figure out where thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swing JDialog slow when running remotely I have experienced performance problems for JDialogs while running my GUI remotely over X11. Does anyone know a workaround?
The GUI is fast when I run it on my local machine, but sometimes we need to run it on a remote server, which causes a significant lag until the dialog i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Database Mirroring and Logshipping I have setup both mirroring and and log shipping on 8 databases of about 10 GB each size on same instance, but now when I want to mirror another database it very long to display the Database Properties page. Any suggestion for this problem.
A: I am assuming you are using "ALTER DA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server Clustered Index - Order of Index Question I have a table like so:
keyA keyB data
keyA and keyB together are unique, are the primary key of my table and make up a clustered index.
There are 5 possible values of keyB but an unlimited number of possible values of keyA,. keyB generally increments.
For exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can a unit test project load the target application's app.config file? I am unit testing a .NET application (.exe) that uses an app.config file to load configuration properties. The unit test application itself does not have an app.config file.
When I try to unit test a method that utilizes any of the configurati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "170"
} |
Q: Yet another About ajax.net update panels performance thread Good day,
we just moved from asp.net 1.1 to asp.net 2.0. We are using ajax update panels.
In an Apress book (Pro asp.net 2008) , I've read that when you use the updatepanel, you don't reduce the acount of bandwidth sent, because the entire page is still sen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: last month in VBA Excel I have a table with a large amount of information, how do i select just the last months worth? (ie just the last 31 cells in the column?)
The data is in the form
date1 numbers
date2 numbers
. .
. .
. .
daten numbers
where date1 is dd/mm/c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is this a realistic expectation of a distributed mechanism? I've been evaluating ActiveMQ as a candidate message broker. I've written some test code to try and get an understanding of ActiveMQ's performance limitations.
I can produce a failure state in the broker by sending messages as fast as possible like this:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Retrieving Assembly Version information for multiple DLLs in MSbuild I am fairly comfortable with writing assembly version information for a given project that will output as a DLL.
However what I am looking to do now is to go through each DLL in a \Bin folder, retrieve the Assembly information and write it to a ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF Ellipse Black Background How can I remove the black background color in the corners of the ellipse?
alt text http://publicimages.s3.amazonaws.com/ellipsewithblackbackground.PNG
Thanks,
A: Here is the solution:
The AllowsTransparency should be true.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/344085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you protect web pages against slow ad tracking web beacons? I work for a large website. Our marketing department asks us to add ever more web ad tracking pixels to our pages. I have no problem with tracking the effectiveness of ad campaigns, but the servers serving those pixels can be unreliable. I'm sure mos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Handle requests to several classes within the same PHP SOAP server Is that possible to have a single PHP SOAP server which will handle requests to several classes (services)?
If yes, could you please show an example implementation?
If not, could you please describe why?
A: Could you wrap the other services in a sin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: self join query Consider the following table:
mysql> select * from phone_numbers;
+-------------+------+-----------+
| number | type | person_id |
+-------------+------+-----------+
| 17182225465 | home | 1 |
| 19172225465 | cell | 1 |
| 12129876543 | home | 2 |
| 13049876543 | cell | ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Multithreading using the boost library Wish to simultaneously call a function multiple times. I wish to use threads to call a function which will utilize the machines capability to the fullest. This is a 8 core machine, and my requirement is to use the machine cpu from 10% to 100% or more.
My requirement is to use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's quicker, an array lookup (including array build) or an IF stack? I was wondering which was better:
$lookup = array( "a" => 1, "b" => 2, "c" => 3 );
return $lookup[$key];
or
if ( $key == "a" ) return 1
else if ( $key == "b" ) return 2
else if ( $key == "c" ) return 3
or maybe just a nice switch...
switch($ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Search and replace I'm working on a new project and i want to do something similar (somehow) to intellitext ads (without popup though). In fact, i want to add links on certain words. The problem is that i don't know how to handle this.
I mean, ok, i get document.innerHTML then what? I can find any word, but some ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a .NET analogue for Java app servers? Are there any what in the Java community would be called "application servers" for .NET? Similar to Tomcat, Resin, and Jetty. I'm not interested in a JSP equivalent, I'm looking for a servlet-based technology for XML/HTTP transaction processing (no UI).
If there is not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get user roles in a JSP / Servlet Is there any way to get a String[] with the roles a user has in the JSP or Servlet?
I know about request.isUserInRole("role1") but I also want to know all the roles of the user.
I searched the servlet source and it seems this is not possible, but this seems odd to me.
So... a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I combine a java.util.Date object with a java.sql.Time object? I'm pulling back a Date and a Time from a database. They are stored in separate fields, but I would like to combine them into a java.util.Date object that reflects the date/time appropriately.
Here is my original approach, but it is flawed. I alwa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can I create a child process using WMI VB scripting? Using WMI VB scripting, I would like to create/attach multiple child processes to a parent process, such as the explorer process.
When an app is started by clicking on it, it becomes a child process of the explorer process. The same is true for all apps that are l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set HTML element's style property in javascript I have a bunch of old classic ASP pages, many of which show database data in tables. None of the pages have any sorting functionality built in: you are at the mercy of whatever ORDER BY clause the original developer saw fit to use.
I'm working on a quick fix to tack o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: JS - Advice on how to merge multiple user input to one form field design I have a page that allows users to enter a lot of information about them (metadata) they can then click on a icon which opens a modal window containing a googlemap which allows them to add locations, and a title for that location.
Using mootool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Datatable's Compute Function For Rows As we know that, with compute function of datatable we can get sum of columns.
But I want to get sum of a row of datatable.
I will explain with a example:
I have a datatable like image below: With compute function we can get the sum of each column (product). Such as for product... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: getting an embedded resource in a single dll made up of multiple class libraries my solution has multiple projects and in one of them I have the code to get the embedded resource (an xml file) from another project. All this works fine when all the projects are seperate. However when all the class libraries are embed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP MySQL Search And Order By Relevancy I know how to do a regular php mysql search and display the results. However, because of the nature of what I'm trying to accomplish I need to be able to sort by relevancy. Let me explain this better:
Normal Query "apple iphone applications" will search the database using %app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Maximum number of threads per process in Linux? What is the maximum number of threads that can be created by a process under Linux?
How (if possible) can this value be modified?
A: This is WRONG to say that LINUX doesn't have a separate threads per process limit.
Linux implements max number of threads per process... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "294"
} |
Q: Recommendations on a WPF Docking Library We are implementing an application that needs dockable windows, similar to Visual Studio 2005/2008, but with multiple "docking sites", unlike VS's single one. Does anyone have a recommendation on a good library for this - either OSS or commercial? I am aware that Infragistics... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How to determine total size of ASP.Net cache? I'm using the ASP.net cache in a web project, and I'm writing a "status" page for it which shows the items in the cache, and as many statistics about the cache as I can find. Is there any way that I can get the total size (in bytes) of the cached data? The size of each i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to change the value of a Hidden Field in a Gridview using Javascript? Ok I need to change the value of a hidden field in a gridview and here is what I have so far:
for(var i = 0; i < gv_Proofs.rows.length; i++)
{
var tbl_Cell = gv_Proofs.rows[i].cells[0];
var sdiFound = false;
for(var x = 0; x < tbl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Will Flash Popularity Become AIR Popularity? [This is a community Wiki so do not bother voting it down if it seems like a poll question. It is.]
Will Adobe be able to translate its success in Flash Penetration (although also questionable, see my post here) to Adobe AIR? Is Adobe AIR the "next big thing" in a desktop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple Answer Matrix in ASP.NET I'm involved on a project to make a survey system. We've been hammering out the logic for a few question types, and I could use a second opinion on what is the best way to proceed. We work on a ASP.NET 2.0 website using VB(VS2005) with an Oracle database.
In our oracle server, we ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a KeyValuePair in Managed C++ I have yet another managed C++ KeyValuePair question where I know what to do in C#, but am having a hard time translating to managed C++. Here is the code that does what I want to do in C#:
KeyValuePair<String, String> KVP = new KeyValuePair<string, string>("this", "that");
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rails transactions I am trying to use ActiveRecord::Base.transaction. I figured that rollback doesn't work by default using Rails 1.2.6 and mysql 5.0. Playing with it a little bit more I found out that autocommit is not set to 0 in mysql connection.
Questions:
1) How do I disable autocommit in rails for all connecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Set cookies in a php cgi enviroment without using php api How can I use cookies in a php CGI Enviroment without using any api functions from PHP?
A: Ok you want to setup cookies with php in a CGI Enviroment?
Copy the code and name it to whatever.cgi and make it executable
#!/usr/bin/php
function set_cookie($cookie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: svn: Path does not exist in revision I want to create tag in subversion. On the command line I have tried the following:
svn copy http://myserver.mycompany.com:8080/svn/SVN_Main/trunk http://myserver.mycompany.com:8080/svn/SVN_Main/tag/Build-5.4.3.2 -m "Build 5.4.3.2 tag"
I get this error:
svn: Path 'http://myserver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does passing the params collection from controller to model break MVC? I want to pass the params collection from the controller to the model to parse filtering and sorting conditions. Does having a method in the model that takes the params from the controller break MVC?
A: It depends. You are passing a hash of dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I suppress blank pages in SQL Reports? I have a SQL Report that insists on printing an extra blank page at the end, even though all the report items should fit on one page. I tried shortening the elements on the page that is spilling over, but no matter how much I compress them, or how much blank space is l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Disable Windows Mobile security features I'm currently writing an app for a Windows Mobile 5.0 app and it seems to possess some firewall-esqe feature where I need to permit the running of any deployed executable. Is there some kind of registry key I can use to turn this off during development as it's frustrating hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/344280",
"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.