text stringlengths 8 267k | meta dict |
|---|---|
Q: Auto commit transactions if not explicitly committed or rolledback we use Weblogic server and always set autoCommit to 'false' when getting Connection to Oracle 10g.
I want to know if there is a setting in Weblogic wherein it will automatically Commit transactions if a Commit or Rollback is not explicitly called fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I repeat a portion of a background image Is it possible to repeat-x and repeat-y just a specific portion of an image sprite? I can obviously separate the image into different files, but I was hoping there's a more efficient way of doing it.
A: Not for background - CSS3 provdes this for borders. You can combi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How i handle the game continue and external events in android(Andengine) I am developing the game using andengine.
How i handle the game continue options after redirect to home screen(press home key ) but the timer in running in background.
How to handle the external events (Incoming calls, sms). In j2me i used hid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with TAdvMemo component (about wordwrap) I am using TAdvMemo. My problem is with the WordWrap property. It works very well when I type text in the text area, but when I add a string to it in code, it has no effect.
I have set WordWrap property to: wwRightMargin and RightMargin property to 80, but not see ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tool for debugging Borland & Visual Studio applications sometimes I have to debug an application that was written with Borland C++ Builder. This application loads dlls compiled with Visual C++. Is there a debugger that can debug both parts of the application? Currently I have to decide - either I can easily set brea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Failed to initialize the Common Language Runtime (CLR) v2.0.50727 with HRESULT 0x80131522 I am getting the error
Msg 6512, Level 16, State 27, Line 6
Failed to initialize the Common Language Runtime (CLR) v2.0.50727 with HRESULT 0x80131522. You need to restart SQL Server to use CLR integration features.
i am using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can i define a mysql connection in Zend's application.ini file? I am new to Zend Framework. I want to initialize connection configration of zend and phpmyadmin.
Whats the code for that?
A: This connection is not between Zend and phpmyadmin. It is Zend-MySQL connection.
Please read following article. It include... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can SerialPort.set_ReadTimeout throw IOException { NativeErrorCode = ERROR_OPERATION_ABORTED }? After sending a message out a SerialPort to a device, in preparation to read back its response, I tried setting the ReadTimeout and got back a rather oddball error:
System.IO.IOException was unhandled
Message="The I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any way to catch whole screen re-paint event? (windows, c#) Is there any way to catch whole screen re-paint event? (windows, c#)
I want to do CopyFromScreen only after screen was updated, not by timer.
A: There is no such thing as a whole screen paint. The system optimises and only updates invalid regions.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data constraints in US state/county/city/zip database? I have a database of US zip codes and their corresponding states, cities and counties. It was supplied as a flat file and I'm trying to normalize the data and figure out exactly which entities depend on which others.
One problem I've come across is that some cit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XPath Query in JMeter I'm currently working with JMeter in order to stress test one of our systems before release. Through this, I need to simulate users clicking links on the webpage presented to them. I've decided to extract theese links with an XPath Post-Processor.
Here's my problem:
I have an a XPath expression... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert SQL Datareader to Dataset in C# I am exporting large set of records from database to Dataset which may be a cause for System.OutofMemory exception. To prevent this, as first step I have decided to use SQL Datareader. My concern is presentation should not be changed and there should be minimal code change in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I need to redirect the user to this one page in case of ANY kind of error I added this in my webconfig file but its not redirecting. It shows the aspx error as it is with the Stack Trace and all:-
<customErrors mode="RemoteOnly" defaultRedirect="myhomepage.aspx"/>
What could be wrong? Please help me out.
A: I thin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing a .NET Datatable to MATLAB I'm building an interface layer for a Matlab component which is used to analyse data maintained by a separate .NET application which I am also building. I'm trying to serialise a .NET datatable as a numeric array to be passed to the MATLAB component (as part of a more generalised s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery - disable selects which follow after I'm trying to create a number of dropdown menus which values depend on the previous selection.
What I'm trying to achieve is to get all following selects become disabled if the preceding one hasn't got the value selected.
Say someone has picked an option from the first one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Crystal Reports - Data repeating if chart is included We are using Crystal Reports XI R3 for our reporting purposes. We have created typed dataset which act as the datasource for the reports.
I am facing an issue including a bar chart along with the grid on one of the reports. The chart gets embedded into the heade... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ruby, delete null values of a string Example:
String test="hi\000\000\000"
Problem:
Some methods require a string to be without nulls, how can I delete all null values of a string?
.split("\000",1) gives me an error: 'force_encoding' method doesn't exist
.gsub('\000','') does nothing
A: Try using double quotes, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SQL 2008 - pipe delimited string split How can a split pipe delimited string value in SQL into separate columns eg.
2008|1245|0|1004|1224|0|
into
FirstValue SecondValue ThirdValue ForthValue FifthValue SixthValue
2008 1245 0 1004 1224 0
Using a simple select script.
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .htaccess loop redirect error I have a .htaccess that's supposed to force connection using SSL. It works well on localhost, when I take it online I have all manner of errors.
Here is my code.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z]*)/?$ goto.php... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extracting ClusterName RegularExpressions I have a regular expression which will give the computername, cluster name & OSinfo
Get-QADComputer | ? {$.osname -match "2008" -and $.computername -match "hv"} |
Select @{Name="ComputerName";Expression={$_.computername.replace("$","")}}
,@{Name="ClusterName";Expression={$.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: change the color of image android I want to change the color of image that exist in imageview. i got the image from imageview in Bitmap object and applied colormatrix on it.
The problem is that , once i change the color of image, it doesn't change bt override the previous color,
I want that , when i change the colo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to clip text in android canvas? I'm creating kids learning application in android.
I created Imageview on which text is displayed and i applied canvas for Imageview so i can able to
paint on whole canvas. Upto this working fine.
Now my problem is i have to clip the text present in canvas imageview.
I know to cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to retrieve records for last few hours in SQL Server theyI had a asp.net (vb) web application to store work overtime (OT) records.
In SQL server, the OT table likes this, e.g.:
ot_key | From Time | To Time | total_min
12 | 2011-09-22 10:00 | 2011-09-22 13:00 | 180
13 | 2011-09-24 14:00 |... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Text input with 100% width inside a td expands/continues outside the td Here is the live demo
I'm trying to put a padded text input inside a td, and I want it to occupy 100% of the width, but it goes outside of the td.
I don't understand why that happens, anybody knows?
CSS
table{
border: solid 1px gray;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: creating local database for reminder in Mango There ia reminder application and there is a need to create a localDatabase table for reminder keep the enteries into its table.
how do i create a local database for Reminder Enteries in Windows phone mango?
A: You can use LinQ to Sql to create your database in design... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the java.security.PrivateKey object from RSA Privatekey.pem file? I have a RSA private key file (OCkey.pem). Using java i have to get the private key from this file. this key is generated using the below openssl command.
Note : I can't change anything on this openssl command below.
openssl> req -newkey r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Hotmail - automatically encode the URL I'm developing an application with PHP that sends emails to customers. The body of the email contains a URL hyperlink back to our site kind of like this:
http://myserver/myfolder/test.cfm?id=una-bottiglia-di-vino-©-®
The above url contatins copyright and registered symbols
In Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find the IP address of an amazon EC2 instance on reboot On reboot, the IP address of an amazon instance changes. How to find the new IP address using java API?
A: curl http://169.254.169.254/latest/meta-data/public-ipv4
A: Assuming you don't want to assign an Elastic IP address (and there are reasons why t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Error in compiling VB6 active x dll I have an Active X dll created in VB6. I made some changes in the code and now when I am trying to compile it, it throws an error "Error Accessing the System Registry".Now I am not logged in to the machine as admin or in its group.
Any help would be much appreciated.
A: Are you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I implement a search service which uses proximity to a location as a ranking parameter I have a data set over which I need to implement a location based search service. I will filter the data initially based on keyword arguments and then I need to sort them based on proximity to the user's location. How do I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DOS batchfile is skipping FOR delims I'm trying to parse a text file, and it's working apart from skipping a column if it's empty.
Here's the file format:
206695844 66583369 L CAT 1 1 4144042 214857 64378180 L 4144039 214853 Y
206669467 127810625 R CAT 38 1 4136724 213413 72474920... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Javascript :checked function with a repeater in ASP.NET I am currently working on a project that needs to forward an email to every selected customer inside a repeater. I am working with a checkbox that I assign the email-address as value inside an asp repeater.
<ItemTemplate>
<d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: smarty - two or more inequality conditions in one bracket? This is my code in smarty:
{if $cat!="1_5"} do something {/if}
If I add additional condition with or:
{if $cat!="1_5" or $cat!="2_30"} do something {/if}
Then it doesn't work in proper way. Why? Is this possible to use in one brackets two or more inequalit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: best way to handle events and notifications from multiple sources to a main form in vb.net I have a vb.net application in which there is a main form. There are around 10 classes each having their own functionalities like tcpactions, fileactions, serialport actions etc. The user interacts with the main form and does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Search Events and News via Calendar Portlet Event items are searchable in Plone's default calendar portlet. When clicking on a date when an event occurs, it uses search?review_state=published&start.query:record:list:date... to look for events. How can I add News Item, or even custom types to be searchable in calenda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to open HTML file having another extension in JTextPane I have a HTML file and I need to display it in JTextPane.
editor.setPage("file:///" + new File("test-resources/test.html").getAbsoluteFile());
This works properly. It uses my modified HTML editor kit and displays special tags as needed. But modified file i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are virtual machine images reverted in windows azure? If I deploy a virtual machine image to windows azure.
Will the virtual machine be able to keep state or will it be reverted to the original state sometimes?
e.g. if the virtual machine hosts sql server (e.g. to enable full text serach which is not present in sql ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pause visualizer for a few secs? I am recording the sounds using microphone and plotting a visualization based on the visualization, the visualizer goes pretty fast and i can't analyze the data. Is there any way i could pause the visualizer or slow down the visualizer?
A: You can use the debug mode and set b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Loading of a Dynamically created Entity by automatic dyscovery I have to work with a strange DB structure, where on production there could be more tables but with same columns. And we want to use JPA (Hibernate) with handle them, by entities/JPQL queries. The idea is to create entity classes for each table dynamical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Terminology: is DHTML a predecessor of HTML5? In the end of 1990s everyone talked about how cool it is "to program DHTML". In fact, it was an umbrella term for HTML+CSS+JavaScript, there was no specific version of HTML, nor a public standard of what it means.
Now it's 2011 and everyone talks of HTML5, which is also ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How a probably NULL-valued attribute could still reference another attribute in MySQL Imagine MySQL table describing a folders in filesystem:
folder_id INT,
parent_folder_id INT,
folder_name VARCHAR(64)
And I want to add a constraint 'parent_folder_id REFERENCES folder_id' to be sure that no dead links are there in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to run Android JUnit tests from multiple projects in eclipse? I'm wondering how to run multiple projects containing Android JUnit Robotium test from eclipse at once...
I hope someone could help.
Thanks a lot!
A: I was caught up in the similar situation. I used command line to run my test. You can use the follo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: local_import function does not work local_import function randomly does not import my modules from modules
directory. The Error is:
ImportError: No module named testapp.modules.mymodule
I have this problem when i use web2py with apache (with wsgi). I have no problem when i run locally with "python web2py.py" comma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting a ComboBox value using callback I have an Asp.net page with 3 combobox and 1 button. The first combobox selection will affect the other 2 combobox datasource. I'm setting the datasource for the other combobox using a callback function.
After the user choose from all the combobox, the user click the button an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF "Coloured binding" I have few labels I use for displaying results.
Basically, they display numbers in following format
string.Format("{0:0.#}", number)
Their Text property is binded to objects. Result should be plus or minus signed.
Is there a way to set Foreground property of label according to result sign? Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JUnit testing with spring I am trying to create a junit test for a spring controller method but I keep receiving the following error
java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request,
or processing a request outside of the origin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Safari Extension, accessing page/content directly from toolbar? IS it possible to access web content directly from the (Safari) toolbar? I can now access it from a contextmenu, but no idea how i get the same functionaliy to a toolbar.
This is what i got:
// injected
document.addEventListener("contextmenu", handleMes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XPath - abbreviation of position() function Can anyone explain what's the difference between
/root/a[position()=1 or position()=2
and
/root/a[1 or 2]
?
I'd assume the 2nd to be abbreviated form of the 1st, but Java XPath (Sun JDK 1.6.0) processor thinks otherwise. Following is my test application.
libxml2 library ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Import big files/arrays with mathematica I work with mathematica 8.0.1.0 on a Windows7 32bit platform. I try to import data with
Import[file,”Table”]
which works fine as long as the file (the array in the file) is small enough. But for bigger files(38MB)/array(9429 times 2052) I get the message:
No more memory avai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Looping through XPathNodeIterator problem I've created a XPathNodeIterator that contains a few short XML segments (each with a file description):
XPathNodeIterator segments = node.SelectDescendants("Segment", node.NamespaceURI, false);
Now, when trying to loop them, it seems that only the first segment is picked ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Directx9 methods of drawing models I was wondering if there is any other method beside the classical
DrawIndexedPrimitive
DrawIndexedPrimitiveUP
DrawPrimitive
DrawPrimitiveUP
DrawRectPatch
DrawTriPatch
for drawing models on the screen.
A: if you mean that model is a mesh (set of vertex and textures) and you have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Deleting a branch with an invalid name in Git I've been using Dropbox to keep my source folder synced between two computers. This folder contains my source-code which I version handle with Git.
it seems that there was a file conflict and when I did a push, my Git client, pushed an invalid branch to the remote. The b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sqlite database problem android I have a problem in sqlite database.First i created database externally and then put it in the assets folder.The following code copy the database.
public class DbH extends SQLiteOpenHelper{
private Context mycontext;
private String DB_PATH = "/data/data/com.android.quotes/dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: phone gap in blackberry I am using the phonegap in my blackberry application.I need to get the button clicked and go to the next form.please tell me for that i need to use the phone.js or to create my own javascript file.
A: You need to use a javascript framework to make your life easy :)
Try http://jquerymobile.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Custom Tree Model updating problem Here is structure of the tree:
root
-branches
--leafs
I use for TreeModel DefaultTreeModel and my objects implement TreeNode interface
leaf is some Object:
public class Leaf implements TreeNode
{
// implementation
branch has List of leafs:
public class Branch implements Tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to inject a Provider using Guice I want to inject a Provider<T>, in something like this:
class Work {
Provider<Tool> provider;
@Inject
Work (Provider<Tool> provider) { this.provider = provider; }
}
My Module looks something like this:
protected void configure () {
bind (Tool.class).to(MyTool.class);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mac C++ GUI coding - comparison to Win32 I am struggling to find a good tutorial on how a Mac C++ GUI application is structured. Coming from Windows programming I'm used to message loops and window handles... is it comparable on Macs or totally different?
Any links or examples are welcome, particularly those aimed a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hibernate Criteria runtime class This is my hierarchy:
// Table a
class A {}
// Table(" b
class B extends A {}
// Table my_class
class MyClass {
A a;
}
I want to retrieve all MyClass objects from database with a relation to B but not to A.
B is a joined-subclass (extension of the table a by id).
My idea was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UI-Relative layout I am trying to create a UI using relative layout where in the UI should look as such:
*
*In the top of the screen i have a TextView
*followed by another TextView
*followed by scroll view where in i have to display the text in the
scrollable format
*in the end i have a imageview.
How can i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Couldn't access values of form after $.POST call? I'm having a form and using the $.POST for posting it to the some url..
From there i couldn't access the form values. I dont know what the error may be??
The form is like
<form id="registration-form" >
<input type="hidden" name="Profile[fb_uid]" value='1232323'></in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to store a huge list with hashes in Javascript I have a list with 10.000 entrys.
for example
myList = {};
myList[hashjh5j4h5j4h5j4]
myList[hashs54s5d4s5d4sd]
myList[hash5as465d45ad4d]
....
I dont use an array (0,1,2,3) because i can check
very fast -> if this hash exist or not.
if(typeof myObject[hashjh5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Extra BR tag appears between P tags on Facebook fan page notes We have a Facebook page that imports notes from our RSS feed. Content from our feed is like
<p>Foo bar.</p>
<p>Bar foo.</p>
At our Facebook page, when the note is imported, content is like
<p>Foo bar.</p><br /><p>Bar foo.</p>
Apparently the \n in the o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPad live view overlay I would like to draw a simple animation over the "live view" of my IPad camera. Simplest way to do so?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7525818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android - Thumb of fastscroll in expandablelistview doesnt scroll list correctly i am using an expandablelistview to show a list of groups containing different counts of children. sometimes the list is very long, so i wanted to enable fastscroll. i did this and everything is working fine when i scroll the list with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: cannot install django-filebrowser app I did exactly as it says here: http://readthedocs.org/docs/django-filebrowser/en/latest/quickstart.html#quickstart (only used easy_install instead of pip)
it seems that I get an import error when trying to connect to admin interface:
Request Method: GET
Request URL: http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing system properties to tomcat managed webapp when started by another process The startUp script of webapp is going to be executed by a standalone java management process. I understand that -D system properties can be set to CATALINA_OPTS in catalina.sh. So is the only way to pass system properties is for the j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check installed Excel version and launch it I am trying in my application to launch Microsoft Excel with specific arguments (ie. additional xla & xll).
For now it works fine because all of my users only have Office11 (=2003) installed.
My company is going to switch to Windows 7 & Office 2010 and I logically can't la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with CLLocationManager in iOS Simulator I try to show a location on the map, here is the code:
locationManager = [[CLLocationManager alloc] init];
locationManager.distanceFilter = kCLDistanceFilterNone;
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[locationManager.location initWithLatitude:lati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Vim, word frequency function and French accents I have recently discovered the Vim Tip n° 1531 (Word frequency statistics for a file).
As suggested I put the following code in my .vimrc
function! WordFrequency() range
let all = split(join(getline(a:firstline, a:lastline)), '\A\+')
let frequencies = {}
for word... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the LPTSTR equivalent of _strnicmp in windows? Is there a LPTSTR equivalent of _strnicmp which takes in 2 LPTSTR strings, and number of TCHARs to compare until?
using the c winapi btw
A: It is _tcsncicmp, see the documentation.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7525844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: problem with url when calling wcf service by httpWebRequest When I call manually wcf service what should I type in url place :
HttpWebRequest httpWebRequest = WebRequest.Create(url)as HttpWebRequest;
should be there url to my svc file
http://localhost/service/LMTService.svc
or wsdl
http://localhost/service/LMTSe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to add a line as a gesture while moving from one image to another? I am making my own Pattern Lock for android phone, i have Done the coding as when i click on an image it stores an integer in an array and when the user re-enters the same password it matches both the arrays and Open the lock accordingly, my code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows service rights to write in log file I have created a Windows service using C# that writes logs (with NLog) in C:\ProgramData.
When I debug the service (on my Windows 7) (using the code written above), the log file is correctly created and log records correctly written.
But when I install the service on my se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with using PHPMailer for SMTP I have used PHPMailer for SMTP and there is problem in sending mail with error "Mailer Error: The following From address failed: no-reply@mydomain.org.uk"
My code is as follows:
$mail = new PHPMailer();
$mail->IsSMTP(); // send ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Accordion - How To Add clickable item in the header title?
Possible Duplicate:
How to make only specific text clickable on accordion header - jquery?
I'm looking for a way to add clickable item in the jQuery Accordion Title (header). I'm using the default Accordion (http://jqueryui.com/demos/accordion/#def... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use the underlying Socket/ServerSocket in a SocketChannel/ServerSocketChannel? I'm trying the Java.nio-package for non-blocking communication. So I got my ServerSocketChannel and all my connected clients (SocketChannel) in a Selector and wait for data (OP_ACCEPT/OP_READ) using Selector.select().
My question is: Can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Noise in recording in mac app I am using QTKit for recording and playing, but when i am recording the resultant file having lot of noise(air pressure).
I am using
QTCaptureDevice *audioDevice = [QTCaptureDevice defaultInputDeviceWithMediaType:QTMediaTypeSound];
and capture session
captureSession = [[QTCaptureSessi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Submitting a Certificate Signing Request for Approval I've looked at the "How To" docs provided in the Provisioning portal and under the "Submitting a Certificate Signing Request for Approval" link. It says that by clicking on Certificates > Development I can upload the CSR for approval but when I click on Certifica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Noob seeking help with Database [Access] I'm fairly new at access and I have no clue how to handle this situation. I dont even know where to start so any help would be greatly appreciated.
So I have to design this data base that has items such as "audio board X.xx" When a customer orders lets say "audio board 2.4",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: loading traineddata for tesseract-android-tools (android) I am working on android app.
What I need is directly path to traineddata file (to init tesseract).
Look like best option is to set the resource in raw.
I am getting resource ID this way (file name is : deu.traineddata):
int rID = resources.getIdentifier("de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the right way of making of blinking text I have a textview and I have many buttons. One of the button should be able to start the 'animation' well it is not animation in anim, it just need to make the text go red for a 2 seconds than the text should go green for 2 seconds than again back to red....
-one of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP: including pages - html tags or not? I'm designing a template for a webpage and I'm building separate parts of the template in different pages that will all be included in one page (ie, leftdiv.php, maindiv.php, header.php, footer.php etc). The website will contain Greek characters and I'm using utf-8 encoding. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Polymorphic lift-json deserialization in a composed class I am trying to automatically deserialize json object to a scala class using Lift-Json with a coordinate class inside used to store GeoJson information.
case class Request(name:String, geometry:Geometry)
sealed abstract class Geometry
case class Point(coordi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Another LazyInitializationException (in combination with Spring+GSON) I guess I'm another newbie guy who fails to understand Hibernate sessions, may be Spring's TransactionTemplate, dunno. Here's my story.
I'm using Hibernate 3.5.5-Final, Spring 3.0.4.RELEASE, trying to live only with annotations (for Hibernate as w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How 'Input/Output' ports are mapped into memory? I have been trying to understand I/O ports and their mappings with the memory & I/O address space. I read about 'Memory Mapped I/O' and was wondering how this is accomplished by OS/Hardware. Does OS/Hardware uses some kind of table to map address specified in the inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android pre-market publish (legal) questions
*
*I live in a country outside the supported countries of google to sell applications on the android market. Despite this I want to sell my apps on the market (pls don't suggest other appstores, like amazon). I thought I obtain an american IP (is that legal? there are p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Adding next and previous button in Grid view I am showing a Grid view in Alert dialog. Grid view consists of images which are stored in an array.
I am showing 9 images at a time in grid view, now there are two buttons below grid view
"Next" & "Previous".
If click on "Next" it will show next 9 images from the array ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FxCop, compose list of callers from dependent assembly I'm building a couple of customs FxCop rules and one of the rules needs to enforce that a constructor is called in specific methods. For that, I need to create a list of callers, to that specific constructor, prior to performing the actual test. How is this poss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: simple jquery function doesn't work when included in wordpress? help? I'm replacing class name generated by one of the plugins with mine. I found this easier than fiddling with plugin on every upgrade. Anyways, in WP this simply doesn't do anything! When I test it on non wp (same template xhtml) it works!
what could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django 1.3 removing images Django 1.3 do not removes file which was deleted from database. I'm not found how to set Django remove deleted files. Is it possible? If so, how?
A: Simple:
Override the delete and save and method in your model. Remember that a file can both be dereferenced by the deletion of the object, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I display a string as a combination of password chars and original form in asp.net Textbox control ? I have a Textbox control in which user can add/edit/delete values through this control.It only allows 10 digit numeric value. The first 5 digits should be shown as password chars and last 5 digit should be sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to - Facebook Connect with existing user table I have a registration-login system on my own website yet I want to add Facebook Connect too. I have some required parts of my user table as:
Username
Password
Email
The first thing that came to my mind is, setting userId as username, userId@facebook.com as email an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementation of Reddit,StumbleUpon,del.icio.us and Digg in iPhone app I want to know, Is it possible to integrate Reddit, StumbleUpon, del.icio.us and Digg in iPhone app? I have to implement all this in my iPhone app. Please give me the some any example link about all these points.
A: For Delicious you can us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: objects in NSArray out of scope I have a function with populates the array and then returns it. But in the calling function, the array is not out of scope but all the objects inside it are out of scope.
(NSMutableArray *)createObjectWith:(NSString *)result
{
NSMutableArray *array =[NSMutableArray array];
for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: unified_thread fql table available to public or not? I see facebook removed the banner from the unified_thread documentation page (which previously stated it was for developers accounts only) but I still get the "must be a developer" error. Am I doing something wrong, or did FB just remove it by mistake?
A: My tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: paypal error code 15005 I'm using ubercart paypal module as a mean for credit card transaction and it's doing grate job for me. But in some of the order detail i found this type of message in admin comment box -
First : for same transaction
Authorize and capture immediately failed.
Error: 15005: This transaction c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple nature for a single project in eclipse is it possible to add multiple nature to a single project in eclipse ?
eg: i want to add Python and Ruby nature to a Java project.
the purpose.
I have solutions to projecteuler.net problems in Java,Ruby,Scala,Clojure and Python.
But the solutions are in different proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MPIEXEC wrapper I use MPIEXEC wrapper program to execute my programs in MPICH2. After my program performed its task Break button doesn't become passive, similarly Execute button doesn't become active. Though my program reaches to the end, I have to press Break button. If I run my program directly by mpiexec command ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Prevent comma-separated list of numbers being interpreted as single large value 33266500,332665100,332665200,332665300 was the original value, cell should look like this: 33266500,332665100,332665200,332665300 but what I see as the cell value in excel is 3.32665E+34
So the question is I want to convert it into the o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: List and Linq To Sql Performance Issue I Have One Table (My Sql) with 2 millions records and one List with 100 Records. I have List Except lamda expression for finding all those Urls that is in List but Not in Table.
Now Issue is that it's taking lot of time around 5 mins. I am working in powerful VPS and code and d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.