text stringlengths 8 267k | meta dict |
|---|---|
Q: How to run a custom command when run the 'rails server' command? I am using Ruby on Rails 3.1.0 and the DelayedJob gem. In order to automate processes in development mode I would like to "auto"-run the following command
rake jobs:work
when in my console\terminal I run this other command
rails server
# and/or
#
# r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reloading GXT grid on pagination events I am having Ext-GWT Grid which is using PagingModelMemoryProxy, BasePagingLoader and PagingToolbar. All is working well until one requirement.
I want my grid to reload the data from server when i click on Next, Previous, Last, First or Refresh. What i did is overridden the pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementing the PSPDFKit I'm working on a project that views PDFs pulled from the internet. I was working with a UIWebView, but then I switched to PSPDFKit because it looks a whole lot better, with additional features. When I use the code below, the view loads, but the PDF does not.
[self setSelectedObject:(CateRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add animated GIF to email/sms/whatsapp I was wondering how to get to add some custom designed animated GIF emoticons to native applications in android like SMS/EMAIL and to other applications like Whatsapp?
I know how to display an animated Gif in Android using AnimationDrawable object. I just want to know if it's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why do Python's datetime.strftime('%w') and datetime.weekday() use different indexes for the days of the week? In Python, showing the day of the week as an integer using datetime.strftime() shows a different result than using datetime.weekday().
>>> import datetime
>>> now = datetime.datetime.now()
>>> now.strftime(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: multiple recursion I have a doubt that ,inside a block if the same function is called two or more than two times recursively,then what is the order of execution?
e.g.:in case of mergesort ,for partition if i do like this
mergesort(int a[], int low, int high)
{
int mid;
if(low<high)
{
mid=(low+high)/2;
mergesort(a,l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django Context Processor and Form variables I have a form in my site_base.html which extends to all of my templates.
In my site_base.html, there is a dropdown form which allows a user to change his role. Based on the selected role, the templates changes.
I've thought to persist this information via a context proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to restore the data from DDMS & Ftp Server? I've Backup Contacts, Settings, Browser bookmarks & Media files successfully using this code. These data are stored in DDMS & FTP as files. How can i restore these backedup files by programmatically. Anyone knows mean tell me the way? This is my cursorToCSV method for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to decode GUID in AlbumData.xml (iPhoto) I tried to parse AlbumData.xml and found strange GUID string value, how to convert it to integer value ?
eg : f7hWRm%xSMiYVfEynRpo7g = 4.29497e+09
Thanks in advance
A: You simply don't. It's an NSString.
A suggestion is to change the extension to .plist and open in Xcode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mysql Syntax Error with = any or in I keep getting this error with this delete. Mysql version is 5.0.77. I can't think of anything else that is the issue. I even created a temp table to avoid the issue of modifying tables in the select. :(
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MVC 3 URL dynamic routing Can you show me how to do that in MVC
I have 2 sites use the whole same Producing process, but some are different
Struct like:
domain.com
----Site1
----Site2
How can I setup the url like this
http://domain.com/Site1/controller1/action1
it will go to controller: site1_controller1 - action: a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting out of URL.Authority? I am new to asp.net and c#. I have set a query string to pass the value to one page to another along with the url path. But once go to this page I will not be able to redirect to any other page.
Here is my code:
Uri url = System.Web.HttpContext.Current.Request.Url;
string urlString = "h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: problem with # and get i'm trying to send data via GET and one of the fields has the sign # in it (sometimes more than once). Is there a way to encode or escape the # in the GET so i can be able to send all my fields with GET ? (i can only send my data via GET, i'm not allowed to use POST)
thanks
A: If you have to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: what's the purpose of *.vsmdi? Do I need to source control it? What's the purose of .vsmdi file? Do I need to check into the source control system?
A: The VSMDI file is created by Visual Studio when you create a test project for the first time. It contains a list of all tests that Visual Studio can find in your sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Web app SQLite insert ran great in Chrome 11, fails ever since version 12. I have a javascript/jquery function in an offline-capable web app that works great in Chrome 11, but since Chrome 12 has ceased to work. Don't care about other browsers, but getting this working in more recent versions of Chrome is getting mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: jquery: find the index of an element that contains a given string In an HTML I created a "div" with an unique id. Within this "div" I have more "div"s, in which each contains a string. For example:
<div id="name">
<div>A</div>
<div>B</div>
</div>
What I want to do is to find the index of a "div" that contains... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to copy a directory structure but only include certain files I found a solution for my question in Windows but I'm using Ubuntu: How to copy a directory structure but only include certain files using Windows batch files?
As the title says, how can I recursively copy a directory structure but only include some fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: WCF : How to detect a session is timeout? I write this Interface to create and terminating a session.
[ServiceContract(SessionMode = SessionMode.Required)]
public interface IOrdersService
{
[OperationContract(IsInitiating = true, IsTerminating = false)]
void EmptyCart();
[OperationContract(IsInitia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: annotation on current location I'm working on the project in which i added a button on pressing it should take me to my current location on map and should show the blue indicator to indicate the location,here is the code:
-(IBAction)gotoLocation
{
if(curntloc)
{
MKCoordinateRegion mapRegion;
mapRegion.ce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: rails dynamic nested form data select Rails gurus, do you know of a standard solution to this problem I've been struggling with?
In my app, the user can define properties for his objects. So before generating his list of objects (let's say they are books), he can specify which properties he cares about and their po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pull specific control out of a silverlight listbox given a random index into the list? I have a listbox which uses the following template to bind a list of clips. I would like to pull one of those clips at random and have it play. That is the easy part and is pretty straight forward. I would then like to make an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Context.isPointInPath usage I googled for this but didn't find any example that uses Context.isPointInPath in HTML 5.
I know it's supposed to return me true if the point is on the current path, but how exactly do you use it? Should you use it in between context.beginPath() and cotext.closePath() (or fill* for that m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why can't I find SQL Server Management Studio after installation? So I downloaded Microsoft SQL Server 2008 R2 on a new computer I have to be using and when I go to Start -> Programs -> Microsoft SQL Server 2008 R2 I don't see SQL Server Management Studio. I followed the step by step installation and configuration. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Category url goes to 404 page in magento I'm new to magento when i list categories in sidebar. when i click the category name means it will go to 404 error page. If you have any idea Please tell me as soon as possible..
and my code is
<?php
$_categories = Mage::getModel('catalog/category')->load(3)->getChildrenCate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where is best place to post a Ruby on Rails Installer? I've figured out a really simple way to install Ruby on Rails with all the latest modules on Windows & created two installers for it. One with WAMP and one without that.
With that it takes only about 5 minutes to install Ruby and Rails + WAMP. As opposed to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does a REST API differ from URI? The MSDN Documentation on BLOB Service REST API leads to the understanding that REST API and URI are same.Can anybody explain the difference between REST API and URI?
A: A URI is used to identify a resource on the web (and other places).
A RESTful API uses URIs and HTTP GET/POST... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Custom view and main activity i want to use a point array in custom view which is in different class . but that point array is actually declared in main activity . and custom view only extends view so when i use the point array in ondraw() it is undeclared .
Actually i want coordinates in an array in ondraw() funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jsonp result not working on my asp.net-mvc site i am trying to get jsonp call working with jquery and my asp.net-mvc site. I found this article which i tried to copy but i am not getting a breakpoint in my callback:
Here is my jquery code:
$.ajax({
url: "http://www.mySite.com/MyController/T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can IP change during session? Can IP change during session?
What about different engines (PHP, Django, Ruby, etc) ?
PS: I don't quite understand what is 'dynamic ip' and how they are held by internet providers... And how sessions are broken...
Update:
Should I track IP change for security? I'm currently working with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: NSThread Timing Problem with GUI I have a simple thread that runs an infinite loop. Eventually, the loop will check for serial data at a USB port a few thousand times per second, but at the moment, it just writes something to a custom class of NSTextView once every second.
int i;
for (i=1; i>0; i++)
{
[lock lock... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: program hangs before goToSleep(); Hi i have this program where it uses voice command to unlock the phone.
In this VoiceRecog activity, when i detected command is wrong, it will call goToSleep(1000); which locks the device.
However, the program will hang before it goes to sleep. What could be the problem? What shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check valid IPv4 Address in Java I am using the sun.net.util.IPAddressUtil package to check whether the string contains a valid IPv4 and IPv6 address or not.
Code Snippet is:-
String ipv4addr="200";
if(IPAddressUtil.isIPv4LiteralAddress(ipv4addr))
{
System.out.println("valid ipv4 address");
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How To Select multiple cells in DataGridView I have a DataGridView in my Form. The Functionality is as below.
*
*Clicking on header selects the whole column.
*Clicking on any cell other than the column header selects the entire row
I have set multiselect to true. I am able to select multiple cells by using the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Database add item to list view? I download this database script and i was wondering how can i convert it to instead add a item to a list view.. its a really easy understandable database code..
http://www.anotherandroidblog.com/wp-content/uploads/2010/08/AABDatabase.zip
Thats the source for it..
also im guessing it c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get the "children" or contents of a function? For example, if my script is...
function cool() {
function yes() { alert('yes'); }
function wow() { alert('wow'); }
}
And I use cool.toString(); then I get the entire function as a string.
But what do I have to do to just get the inner-contents as a str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Managing website image assets I've got a bunch of images on my site, ranging from icons, to pictures, to html email images, to sprites, etc..
Rather than coming up with more and more complex image names and descriptive folder paths, does anyone have experience with any software that helps manage these images with ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to disable/enable asp.net timer control using Javascript? How to disabled/enabled asp.net timer control using Javascript?
My code is: (but not working)
function timeroff()
{
var b = document.getElementById('Timer1');
if (b) {
b.disabled = true;
}
}
function timeron() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to retrieve html elements value via .click jQuery function with data retrieved from MySQL? I have a question to ask.
I have a search result that is based on data retrieved from MySQL database. And based on the data retrieved, I have embedded and echo a div and <a> tag to know which <a> is been clicked so that I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: reaching particular co-ordinate in projectile motion? As I wanted to animate an image in projectile motion,
My code is as follows, but it did not reach the target and give projectile animation, any help please?
-(void)timeLine
{
dTime += 0.1;
.................
double s_x = inVel * cos(angle1) ; // the X spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C#, ASP.net application which calls executable to create output file We are developing a web application in ASP.Net and C#. The requirement here is to interact with a third party exe which is developed in Fortran77. This third party exe produces an output file after being provided with some inputs and shuts down.In ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.Net MVC 3 CheckBoxList from database i have a table called
tb_role
id role
1 admin
2 user
3 viewer
and for the View is like this :
<div style="width:50%; float:right;">
<legend>User Role</legend>
<table>
<tr>
<th>Role</th>
</tr>
<tr>
<td align="center... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I used the following method to get iphone mac address, but sometimes result is null. This problem can occur in what circumstances? I used the following method to get iphone mac address, but sometimes result is null. This problem can occur in what circumstances?
+(NSString *) macAddress{
int mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lazy range iteration in javascript using underscore I've caught myself using this in place of a traditional for loop:
_.each(_.range(count), function(i){
...
});
The disadvantage being creating an unnecessary array of size count.
Still, i prefer the semantics of, for example, .each(.range(10,0,-1), ...); when ite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to remove duplicate keys in array I have an array called $myarray -
id position status name
4 23 4 john
3 45 3 mike
4 23 0 john
7 25 2 sam
etc.
i need to filter array by "id" and when similar records found i need to evaluate by "status"key to remove number th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: rails action_controller Processing by Controller ( #show as */* ) I am sending an ajax request to one of my controller#action but my development log shows
Processing by FormsController#show as */*
while this should have been FormsController#show as JS as its an ajax request
Due to this the its rendering the format... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VBA for opening and editing multiple Powerpoint files I have a folder with over 200 Powerpoint files and I have been have been struggling with a Macro that opens each of these files, edits them, saves them and closes them in a loop.
I have managed to create code for the editing part, however I can't manage to creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: grep error on installing rvm I'm on OS Lion 10.7.1, installed latest XCode from App Store. I have installed git 1.7.4 from dmg
I'm trying to install rvm. I used this command from their homepage
bash < <(curl -sk https://rvm.beginrescueend.com/install/rvm)
I get some grep errors as shown below. What went wrong?
shel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: identify if java cannot be executed in windows batch script I wrote the below batch script which asks for a JAVA_HOME path if its not present in environment, and then it verifies the java version. but before identifying java version it should also check whether java is present in the path (can be executed) or not. P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Hide the up or down arrow key when scrolling at the end of the Jscrollpane I used the JScrollPane from http://jscrollpane.kelvinluck.com/ and modified it to hide the arrow key when scrolling at the end (top or bottom). When scrollbar is at the top, the arrowUp should disappear, showing only arrowDown at the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I/O hangs after recursive pipe() calls This is a followup to my previous question. I am writing a linux shell, and so I need to deal with the possibility of users inputting multiple pipe commands. It is almost working correctly, except for after calling execvp() on the last command the I/O hangs. My prompt never rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Heroku - New Relic Agent not running error on rake db:migrate First time I've seen this error when running a migration on Heroku.
heroku rake db:migrate --app myapp
(in /app)
New Relic Agent not running.
I have the New Relic addon in my app addons so would this be an issue with the heroku platform or my app?
edit: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sending mail using Gmail public static bool SendMail(string toList, string from, string ccList, string subject, string body)
{
MailMessage message = new MailMessage();
SmtpClient smtpClient = new SmtpClient();
try
{
MailAddress fromAddress = new MailAddress(from);
message.From = from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Uploading files and keeping them safe I'm using php and MYSQL. I've created a members area where people can upload important images (basically for financial record). I was hoping to get some advice as to the best way to store these files. What kind of folder structure would be best? Ex domain.com/Files/UserName/Rand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Loging out issue in iphone sdk I have created an tabbar based iphone app, for the login page i used the following method:
@protocol LoginViewControllerDelegate;
@interface TradeBarcodeViewController: UIViewController{
id<LoginViewControllerDelegate> delegate;
}
@protocol LoginViewControllerDelegate
-(void)loginViewC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reverse Engineer Java code using BOUML I've followed all the instructions here here but I can't seem to find the option to Class diagram but can only find reverse engineer to class view. Can someone pls help me? I'm trying to reverse engineer my java code from Eclipse.
A: Ok. I tried out the reverse engineering v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add composite widgets: This widget's parent does not implement HasWidgets I keep getting thrown an error: "This widget's parent does not implement HasWidgets. Of combed the web (including stackoverflow), but can't figure out what's the problem. I know its a problem with the way I add the Download object to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Declaring variables before use in old C Recently I had to modify a legacy code that was compiled with a very old version of GCC (somewhere around version 2.3). Within a function, variable had to be declared before being used. I believe this is done C89 standard. This limitation is later removed.
My question is: Back... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with stringByEvaluatingJavaScriptFromString I wanna to know abt "stringByEvaluatingJavaScriptFromString".
According to the apple doc.
"The result of running script or nil if it fails."
I have a method in which inside a for loop i'm passing a string value to stringByEvaluatingJavaScriptFromString. what will i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Variable Value Changes By Itself I've been pretty confused while programming before, but this one takes the cake. Basically I set the value in one for loop, and in the following iteration it changes to the value of the next one.
for (int i = 0; i < 2; ++i)
{
for (int j = 0; j < numWords[i]; ++j) //numWords [0] =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Vertically align contained in I have something like this:
<tr>
<td>
<div class="blue">...</div>
<div class="yellow">...</div>
</td>
<td>
<div class="blue">...</div>
<div class="yellow">...</div>
</td>
</tr>
Here's a example of my current HTML: http://jsfiddle.net/DcRmu/2/
Inside a <tr>, al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is meant by singleton object?and what is it usage? Can anyone explain to me what a singleton object is? In many tutorials I found something like "create a sigleton object". Now I am working in iphone game development using cocos2d. I read "Create a singleton object to keep all the Game Center code in one spot" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Drag & Drop a pictureBox onto Form I am writing a game. Player can choose items (such as weapon) and drag them to the form. Items are on the side, in PictureBox controls. I have set Form.AllowDrop to True. When I drag one of the items pictureBoxes, the pictureBox doesn't drop, neither even drag.
I want to drag a pic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android: Deleting characters in EditText with TextWatcher still shows characters in suggestions In my activity I have an EditText to capture a file name. I am using a TextWatcher to prevent users from entering certain characters that I don't want them to use in their filename. Essentially I only want users to enter ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Algorithm: Find all common substrings between two strings where order is preserved Would like to discuss algorithms, no code.
Problem: Let S and T be two sequences of elements. Find the common subsequences between them where the order of the elements is preserved.
It should have O(n + m) running time where n is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: finding the section of a PE's entrypoint I'm trying to find what section the PE entrypoint points to.
I have two questions:
*
*Is it correct to say that this section is the one such that section.PointerToRawData < AddressOfEntryPoint < section.PointerToRawData + section.SizeOfRawData ?
*I see some PE's that have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python binding to ImageMagick I am looking for a good Python binding to ImageMagick, but there seem a lot of bindings already. I am not sure that which of these is the right tool for my job. Can you guys recommend me one?
Here is the list of my requirements and preferences (in order of importance):
*
*Must be ava... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: backbone.js router doesn't work on IE6 When I use the Router in Backbone.js, IE6 throw a Permission Denied on the following line:
if (this.iframe && (frag != this.getFragment(this.iframe.location.hash)))
the Backbone.js version is 0.5.3 , I also try some other version, but it is not work also.
A: As far as I know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to display an alert box on a non clickable link button I am having HyperLink on my webfrom in such a way that if proper user login and clicks on the link will navigate him to corresponding page. If not i make that as a non clickable field by using this code
if(isAdmin)
{ // check for admin user
Link1.Navigat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: user process memory mapping — is the bss section always the same size? This may be an older query but I could not find any satisfactory answer so far.
To check the memory map of a file I wrote a small hello program.
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("Hello\n");
return ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Change background colour on table cell and check checkbox I have have a table with the class "pretty".
Each row has a checkbox next to it that selects the data using a form.
I want to be able to click the cell and have the checkbox ticked/unticked.
I have this working using
$(document).ready(function () {
$('.pret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Application crashes on second run using splash screen In My application, I am using thread to show the splash screen. . .
But i have also given the Android Licensing to My Application. Which also uses the thread. . .
But While i am installing the Application it runs once..
if i again open it then it got crash. wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ cannot create new key in registry I really need your help. I tried everything but the result is always the same, nothing. Please advise.
And this is my code
#include <windows.h>
#include <iostream>
#include <windef.h>
using namespace std;
int main (void)
{
HKEY hKey;
LONG regOpenResult;
const char... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 'No database channel is available' I have an app which connects to the internet and stores data in an SQL database. I tested with iOS4, it works completely as it should. When I upgrade to the new version though, I get an NSInternalInconsistencyException, with this as the reason:
'_obtainOpenChannel -- NSSQLCore 0x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: how to add layouts in android livewallpaper i have created live wallpaper using canvas now i want to add the layout like(relative layout)
if its possible?
in live wallpaper we can able to use layout?
please guide me how to add layout here if its possible?
if possible means how can i called that layout in my canvas ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a database in the blackberry device when the app is installed I want to create a database on my blackberry device when my app is installed. I did not find any event (e.g. onInstalled) so that i can create my databse on this event when the app is installed.
Apparently there is a method DatabaseFactory.exists... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sencha touch:dynamically add/remove components to panels i extended a panel containing
-Panel
-Toolbar with button
and i registered it as a xtype using Ext.reg().There is one more panel in which i want to add the registered xtype and did it. How can i add/remove a component/html content dynamically to the outer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating view ,SQL Query performance I am trying to create view, But select statement from this view is taking more than 15 secs.How can i make it faster. My query for the view is below.
create view Summary as
select distinct A.Process_date,A.SN,A.New,A.Processing,
COUNT(case when B.type='Sold' and A.status='Proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to import web service reference in Android by using Eclipse Indigo? I'm developing an android app and I have to import some web service references; currently I'm using Eclipse Indigo and I didn't find any import web reference option, so can anyone help me how to do it?
A: As far as I am aware there isn't any me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Building PJSIP for iOS 4 I am attempting to build the latest stable PJSIP (1.10) for the iPhone and I am running into some errors during my make. I've followed the instructions here, but I am not having any luck. I searched around SO and google and haven't run into anyone else with the same error, so I am a bit stuc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Static pages (.html) vs ASP.NET pages (.aspx) we are going to develop a media website where we will show current news.
For that we have 2 strategies:
*
*Create window service in C# which will generate static (.html) pages for website (with updated news) as there will be only images and text (no postback or server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to reference ruby classes defined in a different project project1: contains app\models\foo.rb (ActiveRecord facade for foo object)
project2: I would like to fetch all foo's in project2.
How do I reference foo from project1 over here, so that I can avoid code duplication corresponding to fetching information fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to display this chinese character? I already set mySQL Collation as utf8_unicode_ci, if I manual insert chinese character in my database, it's successful work to displaying chinese character, but once i use my code, it was display this
ã€å¼µç‘žæŒ¯ã€æ±Ÿç¥¥ç¶�..
I had add this <meta http-equiv="Content-Type" cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Songs are not playing due to Special character in url of the song I am working in android. I am designing a music player which is playing songs from the server.
When the URL does not has any special character, the song plays well. But when there
are some special characters in the URL then the song does not play. Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set UITableViewCell data from remote JSON file I have UITableView representing list of cities (100 cities).
For each city I want to call specific remote(URL) JSON to get city's weather information and populate response data for each city cell in the UITableView.
When I run application, I want to see my table as fas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: save pdf problem with Silverlight from Windows Azure Hi I am using http://silverlightpdf.codeplex.com/ code to print pdf from my silverlight application hosted in Windows Azure.
I am able to save the pdf from local/development pc, but when I try save the pdf from Azure Server, it is giving following error.
Webpage e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento file upload enhancement using jQuery - getting upload to add to cart I’ve (very roughly) integrated jQuery to enhance Magento’s file upload feature, however, I’ve yet to get the uploaded image to save across to the cart, ie, the filename doesn’t appear in the cart and consequently the user receives a validat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Some (fundamental) questions and clarifications about Git I'm looking into and learning the basics of distributed version control systems, specifically Git. After watching Linus' Tech Talk about Git, I have a few questions that I don't fully understand. It's important to note that I am coming from an SVN, Windows-ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: display form on mouse click on table elements using jquery I am using jquery to do the following stuff-
I need to display the form right next to the table cell i click on, with some animation.
The problem with my code is that the form displays only once, and after that on any more mouse clicks it doesn't.
The code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Full Screen Browser window (Like F11) I am creating a web application.
How do I change the browser from normal mode to fullscreen mode (like F11), but I don't want to open a popup for this.
I want to convert the same window to fullscreen mode.
The requirement is: there is a button on the page, and it's a toggle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to turn on multiselect checkbox mode on a grid in ext js I am experimenting with this:
http://dev.sencha.com/deploy/ext-4.0.0/examples/grid/infinite-scroll.html
I'm trying to make it possible for the grid to have checkboxes beside each row, so that a user can select multiple rows.
I tried:
SelModel: 'CheckboxSel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Gmail Style Always Visible Menu I am looking to implement something similar to Gmail's always visible menu. I'm not sure what the effect is called.
Is this something I can do in JavaScript? If so, can someone point me in the direction of how I can achieve this?
A: Yes you can. there are some plugins that do it l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamic image generation in java? I am developing an android app which would use Facebook API to post picture on to the profile. One problem is that I don't know how to generate image dynamically using some image (from the phone) and text (generated automatically) and combine both to form one dynamic image.
Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I scrape the text from a certain DIV using PHP and exlude html tags inside the DIV I have a project I'm working on where I need to scrape the text out of a specific div tag but only the text no html tags.
Here is example of the html:
<div id="divid1" class="divclass1">
<h1>
TEXT INSIDE DIV
</h1>
</div>
I ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I send logout request to radius server with radius client? There is one pptp server and I use radius server for authentication. Sometimes the vpn client is off line with unknow reason , so the radius can not clear the session for client.
I want to run one process with radius client to monitor the client, if the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: asp.net required field validator A required field validator should fire only after clicking a submit button
<asp:RequiredFieldValidator id="req" controltovalidate="txtphone" errormessage="please enter the details">
</asp:RequiredFieldValidator>
A: If you are using a button field try by applying Validation Group Pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to extract content from a DOM node I have something like this:
$objDom = new DOMDocument();
@$objDom->loadHTML($strHeader);
echo $objDom->getElementsByTagName('head')->item(0)->c14n();
The code is fine but the tags appear as well. I know I can replace them after but is there a domElement or another method t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AS3 Fastest way to merge multiple arrays I'm trying to write a function where I can specify any amount of array, and the return value will be an array containing the contents of all of the specified arrays.
I've done this, but it seems like a really slow and ugly way of doing it:
var ar1:Array = [1,2,3,4,5,6,7,8,9];... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: iOS Using HTML links to fetch data I'm creating an interactive book for learning languages. It has reading, quiz and some simple game. The content of each chapter is an HTML file. The book allows the user to learn about 300 words that exist in the text. Earch word was enclosed in a link like this: < a href="word">wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the meaning of tmax of the control parameter in optim of R? I'm new to R and data mining/ machine learning.
I'm trying to understand the use of optim with SANN method.
I found the documentation of the parameter tmax as follows:
tmax
is the number of function evaluations at each temperature for the "SANN" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to call spring form:checkboxes component in javascript? I am using spring form tags, want to call component in a javascript.
A: This is how I solved my problem,
var formElements = document.getElementById('form_id');
for (var i = 0; i , formElements .length; i++)
{
if (formElements [i].type ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551016",
"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.