text stringlengths 8 267k | meta dict |
|---|---|
Q: VB.NET LINQ group join followed by another group I have two collections of objects in VB.NET that I want to link together using a join, and possibly group together. Basically my objects look like this:
Institution
*
*ID
*Name
Visit
*
*ID
*InstitutionID
*Date
*IsFollowUp
*IsSelfScheduled
A visit has t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Collision between two character controller Hello everyone I am new in unity. I create two character on my project. They can move easily. But the problem is I cannot make collision between them. Please help me. Give me some code.....
A: First, do you want to 'make' ridigbodies collide or detect the collision?
Assumi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF service attempting to read mdf file I have a Silverlight application, developed in VS2010 and deployed on Server 2008.
The application calls a WCF service within the project to read an mdf file, again within the application.
After getting through a number of what can only be called bugs within the VS deployement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Returning early from a function I'm having a mental block, can someone remind me what the correct term for returning early from a function is, i.e.
private MyObject DoSomeStuff(string myValue)
{
//What is this called?!?!?
if(myValue == string.Empty)
return null;
MyObject obj = new MyObject();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting a textbox into any other html element <form name="txt" method="post">
<input type="text" name="select" id="select" onclick="return selectbox();">
</form>
Now through js or html can I change my textbox into a select or a list box. Is it possible by any way.
//js code
function selectbox()
{
var select=doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Voice Input to Populate Edit Text in android? I am working on voice input in android. I used the sample from
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/VoiceRecognition.html
And while testing on Xperia X10, I got the "Speak now" dialog but before I input some voice it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Formatting float values This is probably a stupid question but anyway.
I wan the number I set on my label to be formated nicely like this 20,000,000 .
How do I do this ?
For now I've set the number of decimal points to 0 so I just get the whole number without any places.
[NSString stringWithFormat:@"%.0f", slider.v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Switching between forms (VB.NET) I always get an exception when I try to switch between different forms in my program. Maybe you will help me to solve this issue. Here is the exception message:
Control.Invoke must be used to interact with controls created on a separate thread
I have attached the forms to very nice v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: (ios + phone gap) - Profile final app with instruments Is it possible to test a phonegap application for IOS with the inbuilt performance monitoring tool Instruments?
When ever i run the APP in the instruments, it says "failed to get task for pid 123".
I am using xcode 3.2.x and ios 4.2
A: This is a problem becaus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Overlap image over two rows in a listview I need create a listview with pinned overlay image over upper row and next row, like image example below.
Thanks a lot.
A: set the Layout parameters of image, ie size not exceed to the parent view
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(30, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why are two AtomicIntegers never equal? I stumbled across the source of AtomicInteger and realized that
new AtomicInteger(0).equals(new AtomicInteger(0))
evaluates to false.
Why is this? Is it some "defensive" design choice related to concurrency issues? If so, what could go wrong if it was implemented differently?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How to see processed jobs in Resque? Resque has a great web interface on which we can see the pending and failed jobs.
But where are the 'proccessed jobs'? How can I know what I have done?
A: There is a nice plugin called resque-status that might be of use to you.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7567504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Javascript Relational Database Long story short : I'd like to treat several javascript associative arrays as a database (where the arrays are tables). The relations could be represented by special fields inside the arrays. I'm not interested in the persistence aspect of a database, I only want to be able to query th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating group in Xcode does not create folder in file system -- why? In Xcode IDE when I add a new group named 'Organizer' inside the default Classes group it is getting created. But when I physically see the folder in the Finder, that new group Organizer is not showing as a folder.
Actually I want to maintain the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Intercepting singleton instances I'm receiving "Potential Lifestyle Mismatches"
Component 'MyComponent' with lifestyle Singleton depends on
'Castle.TypedFactory.Interceptor' with lifestyle Transient
Is there any issue using an Interceptor against multiples singletone instances?
,Component.For<ApiInterceptor>()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add new row on top in Slickgrid? How to add new row on top instead of defaulted to bottom, in slickgrid dataview impelmentation also it is appreciated someone provide example of deleting a row.
A: Here is an example function that will work with the example 1-simple.html example..
To Add a Row at the top:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Decrypt in Python an encrypted message in Java I'm trying to decrypt in Python (with M2Crypto) an encrypted message generated in Java with this library
My code (which I actually found here) works decrypting messages encrypted by itself, but not from Java's library, I get the following error:
EVPError: 'wrong final b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Making a button look pressed in I'm using Eclipse to write the android application. I've added some standard buttons from the Form Widgets tab and successfully got them opening new windows which display additional buttons.
I would like the button that was pressed, to change appearance and continue to look pressed in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Painting in Swing, blinking issue I have the following problem in swing.
I'm implementing basic drawing operations (lines, shapes). When I'm moving mouse with pressed left button, I need to repaint current shape. So I clear the screen and repaint already drawn shapes and currently being drawn one.
Shapes are drawn i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use large database (Sqlite more than 100 MB) in android application? i develop one application in which require sqlite database. Database size is very large approx. 100 Mb.
so i have not any idea which way use these database in my application.
database is some private contents so not installed in sdcard...
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can 2 .net executables call functions on eachother? if I have 2 seperate .net executables how would one exe call functions on the other one?
A: .NET executables are still assemblies. From VS2008 onwards, it is trivial to add a reference to a .NET exe (in VS2005 you have to use command-line for this). So simply ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to script a stored procedure from TSQL I know there's a way to do this as I've seen it done - I just can't remember how.
I want to run a SQL command which will return the script to create the stored procedure as a result.
How can I do this?
A: SELECT OBJECT_DEFINITION(OBJECT_ID('your_schema.your_procname'))
or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to redirect to local html page in phonegap android app? I am trying to create a android app with phonegap, the first page is the login page, it queries to a server for user authentication, the server returns json string: true if the login is successful or false otherwise. I am getting the response but i am not a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Trouble with strings in C I'm newbie in C world and I have two probably stupid questions.
I'm reading about structures in C and here is where I stuck. Let say we have structure like this
typedef structs {
char model[50];
int yearOfManufacture;
int price;
} Car;
Car Ford;
Ford.yearOfManufacture = 1997;
Ford.pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Disable Zend Form Element validation if hidden I have a few elements in my zend form that are sometime hidden via javascript.
I would like to disable their validations if they are hidden, so the form will be valid.
Any way to do it in the server side? or in the element settings?
Thanks.
A: Depending on the situatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Benefit from generated getters and setters in Play! framework The Play! framework generates getters and setters for each public field of a model class at runtime.
public class Product {
public String name;
public Integer price;
}
will be transformed to
public class Product {
public String name;
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Solution needed for outputting status of processed files with MVC 3 I have to functions for handling processing of files in a directory.
One function reads and counts the files in the directory and foreach file it calls a function that does some action on that file.
What i need is how to update a DIV tag everytime a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keep the class state in C++ after Returning to C# I have a C++ as the backend and C# as the front end, I use pinvoke interop mechanism to communicate between the native and managed code.
The issue now is that there are really two parts of computation done by the C++ backend, the initialization part and the compute-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does my import file not work? I am trying to make my file ClickingButtons.java to work, but I am getting an error that it cant find the symbols playerHasItem & freeSlots. Now I tried importing my ItemAssistant.java file, which has the public ints playerHasItem & freeSlots, but after saving and compiling it is st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery to loop through table for text comparison Looping through the table is not a problem.
Looping through the table and do comparison at the same time assigning the other td in same row with different value is a problem. How can this be done ???
- going through #tblView tbody tr.class
- to find through a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSTableView Height resizing I am using NSTableView to display my data. I have to change table data by clicking some buttons. So number of rows are not fix. Sometime it use only 2 rows and sometimes 12.
When it takes only 2 rows then table looks not good.
What i want is my tableview height can be resize according t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PySide methods signature in Eclipse/WingIDE/PyCharm? Is there any way to have the signature of the methods of PySide classes in Eclipse, WingIDE, PyCharm or any Python IDE?
Currently, it auto-completes the classes and method names, but not the parameters of the methods.
All functions are detected as functions withou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone - Is there any way to cancel a request to the EventKit database? I am trying to figure out if it is possible to cancel a query to the EventKit database. I query the EventKit with a predicate that matches all events in a certain week. This query can take some time depending on how many events are returned.
Why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XULRunner Error: couldn't parse application.ini. I have downloaded XULRunner from http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/7.0/runtimes/xulrunner-7.0.en-US.win32.zip
Unpacked this zip into folder, but when I am issuing a command
xulrunner --register-global
I am getting a message couldn't parse ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Auto Branching in svn using teamcity I wonder whether it is possible to do auto branching using Teamcity. As currently I am automatically publishing web applications using web deploy and the only thing left is branching as we usually take a branch in svn and then publish the next version. Can any one please advise i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A call to PInvoke function 'Test!DllCall::initDll' has unbalanced the stack Bit of an unusual question.
I have worked out that the error is only thrown when running the program via visual studio. If I compile the application and run the compiled program it works fine. Any ideas what would cause this?
I have a C# cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Monitoring incoming requests on a web hosting server I have a web hosting account with GoDaddy (its a Linux based hosting). Can I install applications like netcat to monitor all incoming requests to my website on a certain port? If not, is there any other way I can do that?
I have a page that accepts POST data, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C#: Windows auto-mail service doesn't work I wanted to create simple service, which would periodically download a list of e-mail adresses and send them e-mails.
I started writing the service, and before that I tested, if the e-mail sending works - and yes, it does.
The problem is, that whereas I get no timeouts whil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I call a .exe file W/unknown Path? How can I call a .exe file W/unknown Path which installed on the machine in C#?
Process.Start(?);
A: Process.Start("myExeFileName.exe");
You'll need to hope that the system search path includes the path where the executable lives, or that it has registered an APPPATH.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7567594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to use json_encode to update data in a foreach? i have a foreach looping through messages for the logged in user and displayng them listSuccess.php:
$cursor = $pager->getFirstIndice();
foreach ($pager->getResults() as $msg)
{
$unique_code_from = $msg->getRcProfileTableRelatedByProfileIdFrom()->getUniqueCode();... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set the links in a text block clickable in wp7 I have a text box contain links .the contents in the text are generated during run time.My problem is that the links inside the text is not clickable,how can make all links inside the text block clickable so that when i tap a link it should open the web browser.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Javascript Error - Can't find variable : google The code I wrote runs absolutely fine on the browser. But when I connect to wifi on the iPhone I get an error in the debugger :
Javascript Error - Can't find variable : google
This occurs whenever I call any google maps/directions/geoLocation object.
The code is as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why the magic method '__get' has been called twice? I have seen some code like below, and it is strange that the __get method has been called twice, why?
class Foo {
private $bar;
function __get($name){
echo "__get is called!";
return $this->$name;
}
function __unset($name){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to load data to hive from HDFS without removing the source file? When load data from HDFS to Hive, using
LOAD DATA INPATH 'hdfs_file' INTO TABLE tablename;
command, it looks like it is moving the hdfs_file to hive/warehouse dir.
Is it possible (How?) to copy it instead of moving it, in order, for the file, to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: trace 10046 and OEM privileges It would be great if someone would share
trace 10046 privileges
and
Oracle enterprise manager (OEM) privileges
so I can ask my DBA to grant the privileges to my role, and by OEM privileges I mean is I can change the threshold on GUI environment. I have read somewhere you need operator'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Using ruby whois I need to retrieve whois informations for a given site. because the whois content varies with each whois server, i need to parse the whois content what i'm getting.
I'm using php to show the content from db and initially tried in php to parse it. now i came to know there is ruby whois package whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# using a timer inside a Backgroundworker I couldn't find a solution for this yet...hope someone can help me.
I have a backgroundworker that runs until it is cancelled by the user (it reads data from a socket and writes it into a file).
Now I want to split the output file after a certain period of time, e.g. every ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Git - Can't change branch I'm a git newbie, and just started using it the other day. The idea seems good, but I've already run into a problem that makes git seem like much more of a hassle than it's worth.
What I'm doing:
I started by adding it to one of my projects, and I created 3 branches:
*
*Master
*Stable
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iTunes Allow App Update I've just released a new version of our App. It:
*
*is live and shows in the App Store
*shows in "Updates" on the device
*successfully updates via the device
However, in iTunes, it says the new version is already downloaded and hence doesn't appear in the list of updates and cannot be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: inclusion of header files i have a file named functions.h....now i know that it is not wise to define functions in the header files but that is least of my concern as compared to the problem which cropped up...
i defined a function in a functions.h named
void sayhi()
{
cout<<"hi";
}
now i made a lines.h file wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Swing JComboBox not reloading while switching the Jtabbedpane I am trying to re initialize the JComboBox while tab switches from data updating page to page containing JComboBox
my function is like this and it is called as well but doesn't work....
private void jTabbedPane2StateChanged(javax.swing.event.ChangeEvent e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ZF & ckeditor. Icons are not loading. Got empty blocks instead of office-buttons My directory root is "Public" as default in ZF.
The default ZF htaccess also:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tab Apps - signed_request I have 2 FB profiles, one is a dev user that I develop apps with and the other my normal FB account.
I created a FB app with the dev user and linked it to a tab.
With my dev user when I view the tab and echo out the decoded signed_request i get the following output:
Array
(
[algorithm]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using the Hg Convert Extension, Branchmap Option I've got 2 Mercurial repositories RepoA and RepoB, 2 people have been working independenlty on each of their repos, RepoA only has one branch(Default) but 9 commits, RepoB has 2 branches, Default and Experiment1, each of these branches have approx 30 commits. Now it t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where to put a configuration file in Python? In development mode, I have the following directory tree :
| my_project/
| setup.py
| my_project/
| __init__.py
| main.py
| conf/
| myproject.conf
I use ConfigParser to parse the myproject.conf file.
In my code, it's easy to load the file with a good ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: how to sort a collection which has strings, integers and alphanumerics in java there are some values like AB, A012B, CD,1,10,01,9
I HAVE TO SORT THE THEM
the output shud be
01,1,9,10,A012B,AB,CD
can use any collection
im trying to use collection.sort function
but its considering everything as string
and printing lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to display error message in a jsp if(emailVal == '') {
$("#email").after('<span class="error"><font color="red">Please enter your email address.</span>');
hasError = true;
}
when i use above javascript, message displays besides email textbox
<form:input path="email" id="em... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Different row color in gridbag layout How do i set different color for different row in GridBagLayout?
P.S : I cannot use swing in my app as client requirement.
A: for AWT works setBackground(Color) too
A: A GridBagLayout has nothing to do with the color of any row or component added to a panel that uses a GridBad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Whats the difference between ContentControl.Template and ContentControl.ContentTemplate What's the difference between ContentControl.Template and ContentControl.ContentTemplate?
And when do I use which?
For example I could write in a xaml file for WPF:
<ContentControl>
<ContentControl.Template>
<ControlT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: update-database error - NuGet Package (EntityFramework.SqlMigrations) i installed EntityFramework.SqlMigrations NuGet Package
and i get this error .
it worked for me in the past and somehow, now it does not work.
PM> update-database
The term 'update-database' is not recognized as the name of a cmdlet, function, scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Inetgrating iReport(with large no of sub reports) with Spring MVC My current application includes a functionality of displaying a report designed in iReports 4.1.1 from Spring MVC at front and using PostgreSQL at back.
Now i am more of concerned about its performance issues.
The Main report which will display data h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" ... Putting this in .htaccess? I downloaded html5 boilerplate and it wouldnt validate with this in the header.
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
I was told I can add this to .htaccess for the same effect to avoid validation errors... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Set minimum data interval for y axes on Highcharts I need to plot a chart using Highcharts, and I have to sort of round down data not to plot very little variations around small values.
Eg. I have yAxis data that moves between 0 and 10, and the plot is ok.
Eg. I have yAxis data that moves between 0.0003 and 0.00031 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to force facebook password entry on adding application I want to ensure that the app I am working on is added to the correct FB account. More specifically, I want to ensure that it is not erroneously added to the account of a user who may have been previously using the browser.
A user first comes to m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Searching YouTube with the API for .NET I'm trying to use the YouTube API to search YouTube with a search text. The sample code is as follows.
using Google.YouTube;
using Google.GData.YouTube;
using Google.GData.Client;
using Google.GData.Extensions;
(..)
YouTubeQuery query = new YouTubeQuery(YouTubeQuery.DefaultV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Struts 1 How to set checkbox default checked I'm making some small changes to an existing project, which was built using Struts 1.2. I need to have a check box on the form checked by default. I'm a newbie on Struts.
I understand that I can't set a default value for check boxes on form reset method, in fact it is sug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Referencing functions from within functions inside a JavaScript object var Page = {
data: null,
Load: function () {
this.Populate;
},
Populate: function () {
}
};
$(document).ready(Page.Load);
*
*Why can't I reference Page.Load as a function in ready() eg .ready(Page.Load())
*Why ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: reading content from a cmd window via python I'm trying to connect to an existing cmd window and read its content.
It is an arbitrary cmd window and not a child process.
Any ideas how this can be done with python?
Thanks in advance,
Omer.
A: ** Note: the original version of the question asked how to read AND write ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: access sharepoint documents from J2EE system I have a J2EE online system and I am integrating office365 and sharepoint online to this system.
My Goal: access documents that are inside the sharepoint document library through my J2EE system.
What I only have now:
- My J2EE system
- Office 365 account (that includes "S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: YII CActiveRecord->find() Im now still learning YII on blog tutorial and curious with some code.
on this link
http://www.yiiframework.com/doc/blog/1.1/en/prototype.auth
there is code like this
<?php
class UserIdentity extends CUserIdentity
{
private $_id;
public function authenticate()
{
$username=strtolower(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery function (append some text to textarea) I'm trying to make a working JS function which ought to add some text from argument to textarea, without erasing it's content.
<textarea id="message" name="message" cols="48" rows="4" accesskey="m"></textarea>
So the code above is a code of my textarea. And the script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: does not work I tried to work with today. My starting point was here: https://developers.facebook.com/docs/internationalization. Unfortunately I am not able to register a string with the translation application.
I found two threads indicating that is still buggy and not worth working on - last entries on both a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to limit the description text to 100-150 words using Razor I want to display a shorter version of description on maine page , I tried something like
<div class="newsdetails">
@Html.Raw(item.Short)
</div>
Although it shorts the news description but i want to customise it to 10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need help in php associative array I have a associative array and i wanted to print out all the column values at once rather by each row
Example if i have a array of
1.1, 1.2, 1.3, 1.4
2.1, 2.2, 2.3, 2.4
3.1, 3.2, 3.3, 3.4
Currently is displaying 1.1 1.2 1.3 1.4 then 2.1 2.2 2.3 2.4 ...etc
but I wanted to displa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting an Error "ORA-06502: PL/SQL: numeric or value error: character string buffer too small" I have a below Package which is giving error
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Please let me know what is going wrong here.
CREATE OR REPLACE PACKAGE BODY PKG_H
IS
PROCED... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Storing string,int,string in an accessable variable I need to save a class with list of countries in statics for caching.
the data is built with
string shortName //Primary Key - (IL or UK for example)
int ID //Unique - has no meaning, but needs to be saved
string longName //(Israel or United Kingdom for example)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Oracle REGEXP_LIKE and word boundaries I am having a problem with matching word boundaries with REGEXP_LIKE. The following query returns a single row, as expected.
select 1 from dual
where regexp_like('DOES TEST WORK HERE','TEST');
But I want to match on word boundaries as well. So, adding the "\b" characters gives... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: System.UnauthorizedAccessException calling UserPrincipal.SetPassword when I run this code
PrincipalContext ctx = new PrincipalContext(ContextType.Domain,
adHost,
adRoot,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to do JNDI lookup with OracleAQ? Can anybody point me some guide/idea on how to implement JNDI lookup with OracleAQ?
( Creating connectionFacotry, parameters for "java.naming.factory.initial", java.naming.provider.url etc..)
A: Here is an example of how to setup a basic JMS (including the lookup of the connecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Binding a jquery autocomplete dynamic textbox to json I have done a heap of searching but can't seem to get anywhere.
I have some json that looks like
[{"IngredientId":1,"IngredientName":"Butter","CategoryID":1},{"IngredientId":2,"IngredientName":"Sugar","CategoryID":1},{"IngredientId":3,"IngredientName":"Water","Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble with imaplib fetch formats: RFC822 unequel utf8? I want to read an email messege which is in utf8 format. And this is not working with the following code: I guess i have to take a different format, but which and how? The output gives sth. like "=C3=96sterreich" for "Österreich". So far I have this...Thanx
im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Thread Pools using Thread Class and AsyncTask Class my Android app extends a number of Thread and AsyncTask Classes. I used either of these classes when loading an Activity. I am doing this to run an I/O task and show a dialog to the user if the load time is more then a second. It would be safe to say that there wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to quit a pygtk application after last window is closed/destroyed Is there a way I can tell gtk to automatically call gtk.main_quit() when the last open window of the application is closed/destroyed?
If there is no direct feature offering this functionality, I could think of the following:
In the window's destro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is ID in XML cause the resource file builder to declare the instance in Android? We mostly in android when working with layout file in XML declare the ID of those views/controls which we want to refer in the code or any else where in XML. I want to know what exactly Andriod performs at back-end
*
*does mentioned ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combining two video from ffmpeg I want to combine two mp4 videos to form a single mp4 video using ffmpeg.
what i tried so far is
ffmpeg -i input1.mp4 -i input2.mp4 output.mp4
But, every time i get the video with video codec of first input and not the other. How can i combine them? Any idea on this will be highly a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Retrieving Longitude and Latitude fron address passed to server I pose an interesting question. What I'm trying to achieve is I have a list of merchants and their address. I want their longitude and latitude so I can determine if the user (using location listener) is within a one kilometre radius of that merchant. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to run or setup rails3? Have 2 ruby installations 1.8 and 1.9.1, have 2 gems. From "gem1.9.1 install rails" installed rails3 to my system, but don't have "rails" in my "path".
How can i get rails to launch from entering rails in terminal?
EDIT
removed all ruby and ruby-gems from my system (Ubuntu 10.10) and in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fastest way to process php & mysql? I am looking for any kind of way to process php & mysql faster than my MacBook Pro running XAMPP is able to do.
I have written an application, that has to process a lot of data for some simulations. On my MB, this takes about half an hour each time I want run a simulation. Not so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Managing asp Session I have a code which allows session for my asp pages. However, when i try to use post form which takes me to another asp page, i will be automatically logout. Is there a solution to this? Thanks in advance.
<%session("cLoginId") = Request.QueryString("cLoginId")
session("Email") = Request.QueryS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: dequeueReusableCellWithIdentifier: always returns 'nil' for visible cells I create a custom table view cell.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITextField *editField=nil;
...
NSString *CellIdentifier = [NSString stringWithFormat:@"cell:%d",index... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: issue with java and environment variables on windows I've got a curious problem. After installing java jdk 6u25 I tested the installation by typing java in the command prompt. Everything worked fine , the console displayed the usage options as expected. This was about 3 weeks ago - I recently reinstalled windows 7 o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unicode strings with NHibernate and Oracle I am using the config below for NHibernate to connect to Oracle. In one of the classes, I am storing a unicode string such as 日本語 (日本). The data field for the column is NVARCHAR2() however, when retrieving the data, the value is corrupt showing ??? (??). Somewhere along ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show currency in gridview in European Format My gridview in asp.net has a column that shows currency in Euro format which is 89.483,00
I am aware how to format the strings but not sure how to get the currency data in row databound event and modify the same and send back to the gridview.
String format that goes for E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Run a VBA Macro against an Excel sheet with C# Is it possible to write a WPF C# application that can load and read a VBA Macro from a separate text file, open an existing Excel workbook, and process the VBA macro against it?
I am NOT trying to convert VBA to C# or generate VBA from C#. The application, VBA Macro tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creatinge a very, very, large Map in Java Using Java I would like to create a Map that can grow and grow and potentially be larger than the size of the memory available. Now obviously using a standard POJO HashMap we're going to run out of memory and the JVM will crash. So I was thinking along the lines of a Map tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Zend : Setting paths While building a project and linking the pages together within that project, It has come to my attention that to link things together, I have to set the path as follows :
/projectname/public/controllername
Now when I move this from my local machine across to a live site, I ideally dont need or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Symfony sfDoctrineGuard insert-sql error 1005 I've fresh isntall of Symfony 1.4 with Doctrine ORM.
I'm looking to install the plugin sfDoctrineGuard. I followed the instructions here:
http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin
all works fine until this step:
symfony doctrine:insert-sql
when I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NoSuchMethodError: String.isEmpty
Possible Duplicate:
Scala on Android: java.lang.NoSuchMethodError: java.lang.String.isEmpty
I've just released a new app on Android
I've optimized and obfuscated the code with proguard and tested extensively on my Android 2.3.3 phone. It works all right.
However, I keep getting r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Delete OneToOne relationship We have the following mapping:
@Entity
public class A {
private B b;
@OneToOne
public B getB() {
return b;
}
}
When we delete an object of class A it must not delete the referenced object B. At the moment we get an exception when we try to delete A because of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Saving multiple file types into one potobuf-net'ized file in VB.net I'm writing a program that saves 'map' files to the HD so that I can open them later and display the same data. My maps originally saved only one data type, a set of my own custom objects with the properties: id, layer, x, and y. You can see the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.