text stringlengths 8 267k | meta dict |
|---|---|
Q: JPA persists already persisted Objects from a ManyToMany relationship I have a @ManyToMany relationship between class A and class B : class A references a collection of class B instances, and this relationship is configured as CascadeType.ALL. So when a A is persisted with the entity manager, the B instances referen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLce 4.0 from enterprise library 5.0 ASP.NET 4.0 I have an MVC3 project in which I have to select/update data from SQLCE database using enterprise library 5.0. For this I have to add reference to SQLCE dll.
If I reference the dll from SQLCE 4.0 , I get the error
Could not load file or assembly 'System.Data.SqlSer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python: sequential calls to subprocess (in this case, espeak) I was wondering if there was a way to access espeak as you might in the command line:
laptop:~$espeak
say this line first
say this line second
...
Right now, the only ways I can do it in python is process = subprocess.Popen(['espeak'], stdin=subprocess.P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: bit vector implementation of sets while reading the chapter on basic operations on sets from the book of data structures by aho i came across the following line in the topic bit vector implementation of sets...
if the universal set is sufficiently small so that a bit vector fits in one computer word,
then union, int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to download upstream branches? I forked a repo on GitHub with many branches. All the branches show up on GitHub. I do this to download the repo:
git clone git-repo-url
cd git-repo
git remote add upstream git-upstream-url
git fetch upstream
This all works fine, but when I try to checkout a branch, it doesn't wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is serialized form string secure I use full of ajax requests in my mini networking site . whenever i want to supply some input like the user inputted text along with some important ids , i put them in a form and use '.serialize' to make it as a string and send it through '.getJSON' or '.post' . in the receiving php ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are RandomAccessFile writes asynchronous? Looking at the constructor of RandomAccessFile for the mode it says 'rws' The file is opened for reading and writing. Every change of the file's content or metadata must be written synchronously to the target device.
Does this imply that the mode 'rw' is asynchronous? Do I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add checkboxes dynamically in android I need to create edittext fields dynamically in android. I have gone through the link and had written the button click action for it. That is when I click on the button the check boxes has to display. But when I am creating the checkbox object in the onclick action it is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: In J2ME, How to set Header information with HttpConnection? I have used HttpConnection in J2ME for communication between server. I want to send some data to server with http header. Can anybody tel me how to set header information with HttpConnection. Any example.
Thanks
A: From http://www.j2mesalsa.com/elearning/n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding an item in list in flex Hi guys i have a list control in a component mxml file. I have created a function in main mxml file, i want to input a text string and add it to this list. How can i do that. Currently using this code
public function add(event:MouseEvent):void
{
var name:String = m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement NIO with SSL in java? I want to implement SSL over my Java application using NIO. Have searched internet for same but not able to proceed. Sample implementation code would be a great help.
A: With the SSLEngine, but be warned it's no joke. There is some sample code in the JDK but it makes some rath... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to drop database due to illegal character How can i drop a database containing the "-" symbol?
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| vms01 |
| vms-0.1.0 |
+--------------------+
4 rows i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: onclick replace php included file I am not sure if what I am trying to do is possible but here it is.
I have a header, inside that header is a php include for "login.php"
On "login.php" is a link that takes the user to "forgot.php".
What I would like to do is, instead of the user being taken to "forgot.php" is to ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set volume for chromeless youtube API? I have used chromeless youtube API for playing youtube videos through youtube ID and I have used to set volume
player.setVolume = 50;
and
player.getVolume();
but its not updating.
A: According to the API documentation, it is player.setVolume(50), not player.setVolu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue on sprintf in Matlab How to print in Matlab Like following....
0.01000E+02
I have tried
sprintf('%12.5e',[0.01000E+02])
it is giving me
1.00000e+000
A: You format is a bit specific. You should consider writing your own output function.
But a few pointers:
*
*Make e large with upper
*only 2 digits in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upgrade Cassandra Version Brisk How can I upgrade the cassandra version and thrift version in Brisk?
Is there any tutorials kind of stuffs avalailble? I changed the build.properties file but on build, the version I mentioned couldn't be located at any repository.
Im trying to upgrade because of Cassandra Insertion E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Order of evaluation of expression I've just read that order of evaluation and precedence of operators are different but related concepts in C++. But I'm still unclear how those are different but related?.
int x = c + a * b; // 31
int y = (c + a) * b; // 36
What does the above statements has to with order of eva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: is there a javascript/jquery selector for text selected by mouse cursor? is there a jquery selector for text that is highlighted after its dragged over by the mouse cursor? For example, I want to select text that I've typed into my textarea field, click a button, which puts <p> tags around the text I've highlighted ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Singleform with different database I want to make a form in php where there will be two categories. One for the Student profile details and another for the student's
marks details. Now the main problem is all this will be in one single form means in one page and the categories like student details will be save in st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML Spreadsheet fixed headers and leftmost column I'm trying to create a spreadsheet similar to Google Docs Spreadsheet or Excel where you have a table full of data. How do I make it so when I scroll vertically, the first row stays fixed and when the user scrolls horizontally, the first column stays fixed? I'm no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Web page rendering in IE7 I am working on a site which is displayed properly in IE8 (when browser mode is IE8 and document mode is IE8 standards) and rest of the other browsers like chrome, firefox, etc. Except it is not diaplyed properly in IE7. I have heard of meta tags which allow users to force document mode to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: unpack base64-encoded 32bit integer representing IP address I have a base64-encoded, 32-bit integer, that's an IP address: DMmN60
I cannot for the life of me figure out how to both unpack it and turn it into a quad-dotted representation I can actually use.
Unpacking it with unpack('m') actually only gives me three b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Running Scilab from pexpect I am trying to run scilab using the pexpect module with the following code:
import pexpect
c=pexpect.spawn('scilab-adv-cli -nb')
c.expect('-->')
When I do
c.sendline('plot[1,2]')
the plot shows up. But when I do
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I set up a deploy to server / sync with server goal in Maven? I'd running maven locally, and it's fantastic! The only issue that I have now is that I have a heavy stack and I have these Massive WAR files. Is there a good approach or best practice with regards to using Maven as a tool to sync your local depend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Custom VerticalSeekBar onSeekBarChangeListener implementation I have implemented the VerticalSeekBar using this unbelievably simple solution here: How can I get a working vertical SeekBar in Android?
The problem is, I can't seem to set an onseekbarchangelistener in my UI Activity that uses this class. I can't for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to enable Facebook apps for secure URL[https] users using same folder in server I have created a facebook application which can server both http and https users. As of now, I'm using two different folders on the server on each for https and https respectively.
e.g.
http://example.com/folder
and
https://exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return data from AsyncTask class How do I get the data from my AsyncTask? My MainActivity is calling the DataCall.getJSON function that triggers the AsyncTask but I am not sure how to get the data back to the original Activity.
MainActivity with call to DataCall that should return a string and save it in state_dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: no postback on specific page I am using asp.net Routes in the Global.asax:
routes.MapPageRoute("Home", "home", "~/index.aspx");
routes.MapPageRoute("Profiles", "profile/{nick}/{profid}", "~/Profile.aspx");
I have in my master page a top menu, in which there is a LinkButton with OnClick event.
Problem is, the postbac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: flex 4.5.1:Access file from server I am working on flex mobile project using flex 4.5.1. I want to get data from file (which is placed on server) only if the file is modified. I think I can use blazeds for this purpose, But I dont know how to do this. I am searching it in internet. please guide me
A: http://help.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I implement client side http caching like a browser? I use a RESTFul service as a backend to my frontend. The service sets expires/etag/lastmodified headers on it's responses.
What I'm looking for is a client-side(favorably java) library which can fetch data from the service and cache it in a pluggable cachin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to push the uinavigationcontroller into another uinavigationcontroller Currently i have an application that uses uinavigationcontroller but hides the navigationbar only in root view and i want to use this application as external library in some application and push this entire application as one menu item.
But w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error trying to access a struct type using a pointer to a vector of structs #include <iostream>
#include <vector>
using namespace std;
struct a_struct { int an_int; };
int main ()
{
vector <vector <a_struct> > the_vec;
vector <a_struct> * p_vs;
p_vs = & the_vec[0];
*(p_vs)[0].an_int=0; //error: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passenger installation error with Ruby under Debian squeeze I'm trying to install passenger:
gem1.8 install passenger
But i'm getting the error:
Building native extensions. This could take a while... ERROR: Error
installing passenger: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Routes in Codeigniter - Automatically I have a problem with Codeigniter routes. I would like to all registered users on my site gets its own "directory", for example: www.example.com/username1, www.example.com/username2. This "directory" should map to the controller "polica", method "ogled", parameter "username1".
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best python solution to play ALL kinds of audio on Windows (and Linux)? I'm trying to write some scripts to play some of my music collection with python. Finding python modules that will play ogg and mp3 is not a problem. However, I'm having repeated failures with aac-encoded m4a files from iTunes (not DRM). pygame'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is causing a SIGSEGV on _updateNumSections in UITableView? We get the following every once in a while. We cannot recreate this error.
Does anyone know what specifically causes this? It seems like the UITableView is in some odd state. I have ran Instruments to look for over-releasing memory, etc. but am not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is my Image too far left-aligned in Firefox vs Chrome I have this code, which is behaving differently in firefox vs chrome.
<h2>Presenting
<span style="font-weight:bold">Analytics by </span>
<div class="fi_logo"><img src="IMAGEURL" /></div>
</h2>
the class fi_logo referenced above is :
.fi_logo {
min-widt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Moq for c# training not working on first test in suite I'm new to c# as well and the Moq framework. I'm using VS 2010 express and NUnit
In my [Setup] function, I have:
this.mockAllianceController = new Mock<AllianceController>();
this.mockAllianceController.Setup(ac => ac.getAllies(this.currentRealm)).Return... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check whether NFC is enabled or not in android? How can i check whether NFC is enabled or not programmatically? Is there any way to enable the NFC on the device from my program? Please help me
A: I might be a little late here, but I've implemented a 'complete' example with detection of
*
*NFC capability ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: create edit text only accept or able to enter only alphabetical character from a-z only android i want to make a edit text in which can only be able to enter only alphabatical character means from a-z no other numeric or special charaacter are not allowed so how to do it?
i had tried
<EditText
**android:inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Regex with +(plus) and space pattern I have following sentence
"my hooorrrr sssee strongggg"
my regex is :
"(h+o+r+s+e+) s+t+r+o+n+g+"
it's only valid/match when the sentence is :
"my hooorrrrsssee strongggg"
any body can help ?
i want to match no matter the space between word.
example : "my h ooo rrr rss se e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: aptana crashes on Mac OSX Lion Does anyone can tell me why aptana 3.0.4 crashes on Mac OSX Lion?
Is this only my issue? I can't work with it at all. It freezes when I try to modify or open a file.
A: 3.0.5 seems to be working for me, but the "Problems" view never reports any warnings or errors. I suspect it has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Finishing an AsyncTask when requested I am creating a game where the user interacts with the GUI while the computer finds solutions to the puzzle in a background task. The user can choose to end the game any time, at which point I want to stop my background task and retrieve the solutions it found.
This is all worki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handlebars inside of Markdown, inside of HAML I know that this is a very non-standard use case, but I'm chaining HAML, Markdown, and Handlebars (in SproutCore 2.0), and I'm 1 step away from 'beautiful' code. Intermingling HAML, Markdown, and Javascript is less ideal than it could be. If I wanted to add a post-filt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: php send email via gmail (php.ini) with php internal mail function (win7) Is there anyway to send email via gmail (or other free provider) in php.
But I want to use php built in mail() function.
This solution is only for dev and staging.
Thanks
A: You can, using PHPMailer. And also check here to know details you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to decrypt a PHP script in Objective C / iOS I've checked all the related Stack Overflow questions. Also checked the links in that answers but didn't got any usable solution.
Here is my php script and I've nothing to do with this script (as I can't change the script).
function encrypt($message,$secretKey) {
retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Shiny GUI in Java Is there any library I can use to create shiny user interfaces in Java?
e.g. The Intel Graphics & Media Control Panel is written in .Net.
Intel Graphics & Media Control Panel
I want to know how to create such UI in Java.
A: Well you can use and customize your UI with Swing.
Nowdays there is also ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL injection even when the variable is escaped The sql injection will work only when my query looks like below sample
SELECT * FROM login WHERE id = $my_id_va;
Assume if my query is
SELECT * FROM login WHERE id = $my_id_va ORDER BY id DESC
Than I will get following error
#1064 - You have an error in your SQL syn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Third Party Live chat module for .NET (same as like Facebook) I need to integrate private chat module in Asp.NET site.So, internal user can chat with other users.
I would be appreciate, if anyone can suggest that type of modules
Thanks in Advance.
A: See here about rolling your own it shouldnt be too hard with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Activity lifecycle - onCreate called on every re-orientation I have a simple activity that loads a bitmap in onCreate. I find that if I rotate the device I can see from the logs that onCreate called again. In fact, because all instance variables are set to default values again I know that the entire Activity has bee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Extract a .tgz into specific subfolder only if there are files in the tar that would extract to my CWD Most tar files extract into their own subfolder (because the people that write open source utilities are amazing people).
Some extract into my cwd, which clutters everything up. I know there's a way to see what's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Facing session issue in MVC application I am using Asp.Net Membership and when user enters correct username and password I sign him in using:
FormsAuthentication.SetAuthCookie(String, Boolean)
If I create a persistent cookie then I think my membership will still be able to work but my session data will be null.
Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I install PEAR::Mail for TYPO3 without pear or phar? In order to use the TYPO3 extension 'Direct Mail' with an external SMTP server, I need to install PEAR::Mail (http://pear.php.net/package/Mail/download/1.2.0).
At least, that is what the text in the Direct Mail configuration tells me:
Enable Sending throu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I detect if the page is at the top? I want to make an event occur when the page scroll is at the top of the page.
Also I need an if statement for it.
I am a beginner with javascript so any help is appreciated.
I am looking for something like this:
if (at_the_top_of_the_page) {
do_the_event_here
}
I think th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: detect no disk space iPhone SDK Suppose I need to write many images to iPhone file system. And I need to find I have enough space to write image to disk. Is it possible using iPhone SDK?
A: Yes, it is possible. See the following tutorial (found using the powerful "google" search engine) ;)
http://iphoneincubator.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: jQuery Checkbox tree selected I have a checkbox tree using jQuery. Here's the code for tree_data.json :
[{
"id":1,
"text":"Administrator",
"children":[{
"id":2,
"text":"Cpanel",
"state":"open",
"children":[{
"id":3,
"text":"Activator",
"state":"closed",
"children"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Represent one to many relationship on one report and get the many-table in a row instead of col My user wants a report which rows and columns of many-table repeats in a single row until all rows of many-table are finished.
what is the best way to write query for that?
i hope could get what i want
___________________... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Asp.net MVC3 validation I have asp.net MVC3 app where validations are done by adding validation attribute in model.
e.g.
[Required(ErrorMessage = "Required field")]
[Display(Name = "SurveyName")]
[DataType(DataType.Text)]
public string SurveyName {get;set;}
Then I create text box in view
@... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: troubling with find and replace function in files I know that it is not a programming question ?
But i need a another help relating to find and replace function in php code editor. I am using eclipse and Dreamweaver and i have about 650 php files and would like to replace a string in all files without opening indiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: redirecting cycle based on user session I have a problem with redirecting to a page. It seems like it is redirecting itself multiple times. I have
if(!isset($_SESSION)){
header("location:index.php");
exit();
}
in my header. and my header is included in my index page and everywhere else. I know that since it is in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NetBeans: How to enable/disable specific tab in JTabedPane I am developing a small desktop application in Netbeans. on my UI i have a JTabbedPane having 3 tabs in it now i come across a situation where i need to temporarily disable 2nd and 3rd tab. How could i do that programatically. Rightnow i am using the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: wp7 insert XAML inside other XAML? How can i insert XMAL inside other XMAL?
is this possible in wp7?
If anyone know concept help me.
thanks.
A: Kind of like reusable components? A'la iframes in HTML? You might be interested in UserControls. Here's an excellent tutorial about.
So first you create a new usercontrol e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove state maintenance of screens Android? I am very new developer for Android application so please ignore if there is some technical mistakes in my question.
I have five screen (Home, SR-1, SR-2,SR-3,SR-4 ) in my Android application and I can switch any screen at give time.
When we are pressing device back butt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not worked true tooltip box in jQuery Don't know why the tooltip box(class .show_tooltip) shows up on the left when mouse enters on li a. I want to display each tooltip box on top of the same link that mouse is, i.e. just above/left of the link. Links have to be on the right just as they are now, so please do not ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Integrate MVC 3 Razor with Asp.Net 4.0 in C# I have developed one ASP.NET (C#) web application in Framework 4. I want to integrate an external module which is developed in MVC 3 Razor.
How can I integrate this MVC module with my existing ASP.NET web application?
And also how to perform nevigation between them.
Both... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xcode: UIScrollView with Paging Tweak I found a great tutorial online that shows you how to page through different pages, well kind of. Here is the link to the tutorial here: http://www.iosdevnotes.com/2011/03/uiscrollview-paging/
The question I have is, how can I tweak his code so that instead of loading "colors" i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does a MySQL index on columns (A,B,C) optimize for queries than just select/order by (A,B) only? Given a table with columns A,B,D,E,F.
I have two queries:
*
*one that orders by A then B.
*one that orders by A, then B, then C
I want to add an index on (A,B,C) to speed up the second query.
I'm thinking this w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to show jquery form validation plugin errors below the form fields I am using jQuery form validation plugin to verify the form.. It is working perfectly.. But problem is that it is showing error message next to form field in the same row.. I want to show this error message below the text field like first form in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I put together numbers in java? For some reason when I run the following code the program prints out "JDN4" or "JDN16" when at all times I want it to be printing "JDN" followed by three numbers ranging from 0-9; for example, "JDN123" or "JDN045" or "JDN206". What is wrong with the code?
import java.util.*;
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get specific cell in Crystal Report I have a Crystal Report linked to table Customer in SQL Server database. My report generator will execute SELECT SQL and pass the result table into the report as data source.
In the report, I have a field and I want this field to display the cell data at the specific row index and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: grab image using mouse cordinates from screen I have searched a lot but i could not find any proper solution for my requirement.
I want a functionalty in my website where user can select any area on browser or anywhere in desktop and convert the selected area into image.
I know this can be done in windows form,there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF WebInvoke with query string parameters AND a post body I'm fairly new to web services and especially WCF so bear with me.
I'm writing an API that takes a couple of parameters like username, apikey and some options, but I also need to send it a string which can be a few thousands words, which gets manipulated and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Counting a root's children in SQL Let's say I have a table with 3 columns:
*
*item ID 'ID'
*parent ID 'ParentID'
*item name 'Title'
Now, how should I count how many children a Root has?
A: SELECT COUNT(*)
FROM T
WHERE ParentID = @ParentID
If you want descendants not just immediate children you would need a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: make a friendly multi-language website Just to make things clear.
I'm trying to figure out how to build a website with a language chooser.
The language chooser is just refreshing the current page but altering the session variable "language" (if the user comes in for the first time I set it up to 'eng').
Now let's fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Date formatting in tr Locale, Windows 7 and Linux gives 2 results When the following code runs in Windows 7 it gives the month in Turkish but in Linux it gives the month in English:
new SimpleDateFormat("dd MMMMMM", new Locale("tr")).format(date);
*
*Windows 7 - 23 Ağustos
*Linux - 23 August
I want the month... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Groovy - Strings with "$" Is there any way to by pass "$" keyword at runtime
eg
println $anish
output will be
$anish
A: Either use single quoted strings:
println '$anish'
Or escape the dollar as Tom suggests
println "\$anish"
A: with a backslash println \$anish
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7618811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bigdecimal for financial calculations and non-terminating computations I'm sure this would be a simple question to answer but I can't for the life of me decide what has to be done. So here's it: assuming we follow the "best practice" of using BigDecimal for financial calculations, how can one handle stuff (computati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How I could to forbid show of hidden/system files in TOpenDialog? I tried to write a program for safe deleting files. However, I have a problem with deleting system files (recycle bin etc.). Now my question is. Which way to hidden files (from users) at this dialog. Other files I add to listview and then rewrite them... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Rotate Arrow 180 degree android how can i rotate image with 180 degree like ::
Thanks
Nik
A: Use this
int w = oldBitmap.getWidth();
int h = oldBitmap.getHeight();
String filePath = null;
Matrix mtx = new Matrix();
mtx.postRotate(180);
oldBitmap = Bitmap.createBitmap(oldBitmap, 0,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Clone a dojo floating pane I am trying to clone the floating pane object as follows.
var pFloatingPane = new dojox.layout.FloatingPane({
title: "A floating pane",
resizable: true,
dockable: true,
style: "position:absolute;top:0;left:0;w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cursor code gives the error? When i use the cursor.moveToNext(); in my code then the application Force finishing activity when i am scrolling down the bottom but when i am remove cursor.moveToNext(); it works normally ?
class NoteHolder {
private Button b1 = null;
private Button b2 = null;
private Button b3 = null;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating wifi scanning as a android service Currently writing a wifi positioning program and i need to scan the surrounding for active APs so as to calculate the current position of the user. However, user can set the time (0-10 secs) at which the app initiate WiFi scanning (for example, 5 sec, the program would in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: store id and transfer to another php page I have a little question.
On my site i use for few jquery functions , they get some data and transfer by GET method to php helper. This is not work when i want to use the data in another php page. For example i have jquery that store id of the anchor:
$("#rightContent .users... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data size and disk access Is there a benefit to aligning data to a certain size on storage? For example, if I have the option to use one byte to store information or 4 bytes, which is preferred (assuming that storage size doesn't matter, only optimization)?
I ask this question mostly because I know that it "matters... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't invoke a closure wrapped in a closure? If I wrap a closure in another closure, I can't invoke the nested closure. Why not? I think an example illustrates the problem best.
This PHP code:
function FInvoke($func) {
$func();
}
FInvoke(function () { echo "Direct Invoke Worked\n"; });
Works as expected and pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: alert another page I have an index.php.
It has a log in function.
Let's say I have 2 users A and B.
Page1(index.php of user A)
-with function(checks whether there are changes in the database, if yes: alert('message'))
Page2(index.php of user B)
-with button which when clicked should update the database
I can already... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reorder an array based on values I need to reorder an array so that all slugs get loaded before parents, but only if a parent has a value that matches a slug value exactly.
For example, take this array:
Array (
[0] => Array (
[parent] => information_desk_3
[slug] => about_dream_portal_1
)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how can App Run on Full Screen Mode in android I have created an app when I run It into tab then it is not taken full screen,I have also done its property"Full Screen With No title bar"So it is coming without title.
thanks
A: you can add android:theme="@android:style/Theme.NoTitleBar.Fullscreen" to the AndroidMani... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: onchange event for element when I have no control over when it is changed I have a div element on a page that has other divs added to it when certain events happen. I do not know when these events happen, how they are triggered and how the other divs are added to the main div (its external so I have no idea whats h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to to read a matrix from a given file? I have a text file which contains matrix of N * M dimensions.
For example the input.txt file contains the following:
0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0
0,0,2,1,0,2,0,0,0,0
0,0,2,1,1,2,2,0,0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Is it possible to use jquery to resize an image? Can I use JQuery to resize an image that is not on my local server?
Lets say I have an image on www.example.com/dir/images/myImage.jpg
And I want to resize the image on my server www.localhost.com
Will it still work?
A: You can load that image from example.com, and y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove leading 0's for str(date) If I have a datetime object, how would I get the date as a string in the following format:
1/27/1982 # it cannot be 01/27/1982 as there can't be leading 0's
The current way I'm doing it is doing a .replace for all the digits (01, 02, 03, etc...) but this seems very inefficient and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set 3d flip animation for child of gridview i am working on animation, i want to give animation to the child view of costume grid view. and that animation like 3d Transition for chile(image view) of android.
I am using the concept is as per http://www.inter-fuser.com/2009/08/android-animations-3d-flip.html.
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there any difference between __typeof and typeof? There are more operators that work when we add __ to them too.
what does __ mean?
A: An identifier with double underscores is reserved for the implementation. typeof is a compiler specific extension to the language, so naming it __typeof ensures no user code has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to make an installer for Android? [To avoid large download] I think the question is clear from the title,
*
*I have an Android program
*It needs to read some data from a given path, say SDCARD/myAppData/data which is a large file
*I think, I should allow users to download this large file while installing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replaced third party code with git submodules, now I can't switch branches Here's the story:
I have 2 git branches master and develop
I'm currently on develop.
I've long since had the source files of a third party library included in my repo in the directory Vendor/MGTwitterEngine. This code was already merged into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Phonegap Filetransfer API Not Work in SGS SII i'm newbie on phonegap, I am just trying transfer a file to my server via phonegap 1.0 Filetransfer API and work on android emulator Android 2.3.3 (API level 10) but don't work with real device ( samsung galaxy sII) bellow my code :
document.addEventListener("deviceready... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP slugify method without using preg_replace() I am using following slugify method,in my local dev its working fine,but in my production server(CentOs) and the PCRE UTF8 supported but "No Unicode properties support".
function slugify($text)
{
// replace non letter or digits by -
$text = preg_replace('~[^\\p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XPATH selecting node with attribute and text Given (no comments about the XML naming necessary):
<config>
<unit>
<var name='model'>3100</var>
<var name='type'>production</var>
</unit>
<unit>
<var name='model'>0100</var>
<var name='type'>test</var>
</unit>
</config>
How can I construct an XPATH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to display offline OpenStreetMap using MapView on Android? How to display OpenStreetMap offline using MapView on Android? What should I do to load a map?
A: Since OpenStreetMap contain a large amout of data, you need to select a subset of it and probably transform the OSM XML to your own vector format that req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.