text stringlengths 8 267k | meta dict |
|---|---|
Q: Whenever ruby scheduler doesn't work, what am I missing? Cannot make it works ...
In my config/schedule.rb I have :
set :output, '../log/development.log'
every 5.minutes do
runner "UserWatchedRepo.update"
end
Note the log setted, but nothing happen. In my Rails 3.0.10 model file app/models/user_watched_repo.rb I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NAudio - How to send sine wave only to one audio channel on jack I took an existing mono (non-stereo) NAudio example for Visual Studio 2010 from:
http://mark-dot-net.blogspot.com/2009/10/playback-of-sine-wave-in-naudio.html
and changed it to have two channel stereo audio as shown below:
public abstract class WavePro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Add a method to a list instance in python I want to add a method to a single instance of the 'list' class. Example:
a = [1,2]
a.first = lambda self: return self[0]
I know this don't work, but I want something like that works like that. I know its not a good practice, and I know I should do a whole new class, but I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Android widget providers & main application question Alright, i seem to be asking a lot today but i'm pretty much stumped at this part after reading the documentation. Or maybe i'm just doing it wrong.
I'm doing an app where the user is able to create a widget from the application itself, which means :
1) I click on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble with updates on a TreeView with data bound XML data via XElement I have a TreeView implemented in WPF that is bound to some XML data via the XElement class. When loading the XML file the first time the binding works fine. All the data populates the tree as expected. The problem occurs when I add and remov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does make track timestamps How does make keep timestamps for files? I am trying to put in place my git repo. I am adding precompiled binaries for files which are mostly not gonna change. Now, when I checkout repo from git then I dont want to compile these c files. I want to use these prebuilt binaries. So, to se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to disable the loading message in the header of a jQuery Mobile page I want to disable the loading message in the header only when transitioning between jQuery Mobile pages.
Alternatively, if I can change the default "loading" text, that would also suffice.
I have tried
$(document).bind("mobileinit", function(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rubymine install or problems with sqlite3 install? Can anyone help me here - I am pretty sure there's something up with my sqlite3 install and I can't find clear step by step instructions on fixing it? It has manifested itself this time as a Rubymine startup error...
Process: rubymine [1351]
Path: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Opening a file in Java inside a directory specified by wildcard characters In Java, is it possible to specifiy a directory using a wildcard character, when trying to create a file object as below?
File newFile = new File("\temp\*\path");
In this case, the directory is created by some other part of code which I don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to make a button call a JavaScript function in XHTML Strict 1.0? In plain old HTML the following code will work:
<input type="button" value="click" onClick="function()" />
However; in XHTML Strict 1.0 this code will not validate, saying that "there is no function onClick". I know that this code here w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use AES-256 encryption on Google App Engine? It looks like I'm limited to 128-bit AES encryption on GAE. The following code throws InvalidKeyException (Illegal key size), looks like this happens when unlimited security policy is not installed.
Cipher cipher = Cipher.getInstance("AES");
SecretKey key = new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: event listeners vs. event handlers
Possible Duplicate:
JavaScript Event Listeners vs Event Handlers
element.onload vs element.addEventListener(“load”,callbak,false)
I've read this question but it's still unclear to what's the difference between
<input type="button" onclick="call_function();" />
And
$(function() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: filter dates fields from paradox db using microsoft.jet.oledb.4.0 Hi I'm trying to filter data fields from a paradox database table (from information system on programmed on delphi)...
I successfully made the connection with the connection string:
Provider =Microsoft.Jet.OLEDB.4.0; Data Source =c:\bddir; Extended P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can an element inside an iframe capture a key event? I have a canvas element in a simple html document with an attached keydown and keyup listener. This works correctly when I load the document in the browser and start pressing the keys. However, if I load the document in an iframe, nothing happens when I press ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cronjob in every 5 minutes until 17.00 pm Cpanel Minute Hour Day Month Weekday
*/5 * * * *
This code triggers page in every 5 minutes for 24 hours. But i want it until 17.00 pm (or any hour). how can i change it in Cpanel?
A: Use the range specification:
*/5 0-17 * * *
You didn't give a starting time,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Like Button og: image and og:title not being recognised When using the like button, the defined og:image and og:title do not show on facebook page.
Link to example .. It's the like button at bottom of the article and not the one at the top of the page: http://www.nflfc.co.uk/main.php?articleId=221&pageId=3&teamId=3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IIS delays a lot between each response with async requests I have a ASP.NET MVC project running on my developer machine with windows 7 ultimate and iis 7.5.
I do the following:
var requests = ["http://myserver.com/news/details/113834",
"http://myserver.com/tag/details?ids=113834&entityType=23",
"http://myserver.com/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Error with Access Stored Query that uses VBA Modules from excel I am trying to run a Stored MS-access Query from excel using VBA. I have created a generic function to preform this task (using ADODB). I can get results with or without parameters.
However when I try to run a stored Query that references an Access vba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java/Android: Incorrect number of arguments for type AsyncTask I think there's something wrong with this code. Can someone please check if there are any mistakes in the code?
ImageView userPicture = (ImageView) findViewById(R.id.userPicture);
private synchronized void downloadAvatar(){
AsyncTask... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-9"
} |
Q: Android: leaving an app with home button and returning to a different activity when going through a long press on the home button I have an app which has uses bluetooth, and should not be accessible if the bluetooth is turned off on the device.
the way I chose to implement this is as follows:
*
*created a dispatch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: WCF Service Method Name in IIS Log Can the IIS logs be configured to output the name of the method called for a WCF service?
Right now the logs show only the name of the svc file.
Current log:
/myservice.svc
I would like it to show:
/myservice.svc/mymethod
A: Unfortunately, there is no way to have the IIS stand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Message Systems and parameters in OOP? In the WinAPI, WndProc has lParam and wParam which are longs. This means you generally have to typecast them into the correct type.
I've read that message systems in OOP should not need to cast things and that this is a bad practice. Therefore, in a language like C++, how would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom line UITextView I have one UITextView.
I can have a UITextView with only one line and with horizontal scrolling only?
Thanks
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7507398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript noob: why can't new objects be created from initializers? OK, I really have read everything I can find trying to get a comprehensive understanding of Javascript. I know this can be done using a constructor function, but I'm trying to understand the language enough to know why this happens...
PeepClass = {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I reference an image that I have created in an table array in Corona (Lua)? Apologies for the incredibly noob question, but I'm new to Lua, very very rusty at any code, stuck and can't find the solution!
I'm creating a series of random images on screen using:
for count = 1, 6 do
r = math.random ( 1, 5 )
mpa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What kind of Map does a Scala Iterable's "toMap" method return? A Scala Iterable has a toMap method, which returns a Map. What is this map backed by? What are its performance characteristics?
Is there any way to specify that toMap should return a HashMap?
A: It returns an immutable.HashMap, which is actually an imm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: In ObjC, how do I hide implementation a superclass's methods in a subclass? In ObjC, how do I hide implementation a superclass's methods in a subclass?
I'm not sure if @private would do the trick, as it appears to only apply to ivars.
A: You're right, the @private directive is for instance variables, not methods. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sanitizing paste event using jQuery in contentEditable div I am trying to sanitize a paste in a contentEditable div. That is, the code should look something like the following:
$('#content').bind('paste',function(e)
{
// Ensure pasted markup is valid
});
Ideally, I would be able to parse through the pasted tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Recovering an APK's code I recently erased my hard drive and lost few weeks of work. Despite committing frequently, I hadn't pushed my changes upstream for a while.
I've extracted my app's APK from my phone and I've been trying to recover its code. I'm assuming it's possible since it was a test build (and, consequen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Android LocationManager not throttling as expected I am experiencing difficulties reliably throttling the gps update rate on the fly. The following approach seems consistent with everything I read, and it will occasionally change the update rate once or twice (to, say, taking one GPS reading every four seconds) but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mstest - /resultsfile doesnt work when /testsettings switch is used I need to specify the location of the MSTest log file. I was doing this just fine with /resultfile:path but we needed the global timout, etc from the .settings file so i added the /testsettings:testfile.testsettings switch. Now that ive done that,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to deal with nested XML structure in JavaScript? I have the following nested XML structure
<forum>
<title>Title1</title>
<id>123</id>
<forum>
<title>Title1b</title>
<id>123b</id>
</forum>
</forum>
<forum>
<title>Title2</title>
<id>321</id>
</forum>
<forum>
<title>Title3</title>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: static ConfigurationManager Access Class Operation I'm considering creating a static class to handle all of my Web.config appSettings access. For example, it would look like this:
public static class ConfigManager
{
public static string Timeout = ConfigurationManager.AppSettings["Timeout"];
public static string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: handling back button I have of menu list, on click of list item it goes to an activity containing list of category buttons and on button click it shows different list depending upon which category those group of listview item belong to.
menu->buttons->list view
The problem is from list view when I pressed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL Index on first part of string I'm querying a very large table (over 3M records) in MySQL that has a category_id, subcategory_id and zipcode. The zip may or may not be 10 characters in the db.
The purpose is to get all the cat/subcat items w/in a certain radius of the specified zip. I have a function that retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JQuery AJAX returns OK 200 , but no response I have a website where I am using JQuery to make an AJAX call to a PHP page. The PHP page takes the parameters passed from the AJAX call and inserts the data into a MySQL database.
When I call the API directly by inserting the URL string into my URL bar, everything works... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Serialize List (where the objects are supported primitives) in Protobuf.NET? How to I serialize an object like this with protobuf-net:
public class MyObject{
public string Key {get; set;}
public List<Object> Values {get; set;}
}
When I try to serialize this with a TypeModel protobuf-net throws an error statin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: overriding SWIG casting It seems that SWIG pointer-casting is broken:
*(int **)&jresult = result; // shenanigans
return jresult;
It really should just be
jresult= (jlong)result;
How can I hook into SWIG to tell it how to cast?
A: You could use a typemap. See doc here for more info. Probably look something l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sort Array of Dictionaries by NSDate I have an array of dictionaries. Within each dictionary, there is a a key dateOfInfo (an NSDate) and several other things. I want to sort the array by each dictionaries dateOfInfo with the most recent being the first result.
How can I do this?
A: You can sort using NSSortDescri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Android NDK problem pthread_mutex_unlock issue I'm having an issue with pthread_mutex_unlock and my native activity NDK app. I've added logging messages to each mutex initialization, lock, lock success and unlock. My program is getting deadlocked because the mutex unlock is telling me that the thread trying to unl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: One to many rel in GAE using G data Store Entity I want to create one to many relation using Google DataStore entities Something like:
Entity proj=new Entity("Project");
proj.setProperty("name","Project 1");
Now I want to associated multiple user entities with this project
Entity user1= new Entity("User");
user1.set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: searching for a word in all triggers in a schema - oracle I'm having problems running my application - Oracle is raising an
ORA-04092: cannot COMMIT in a trigger issue.
Now I am trying to find the trigger which contains commit statement. Is it possible to find the trigger which has the commit statement in all `dba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook like button on Wordpress I added a like button to my index.php and single.php on yssencial.com (using wordpress)
but on the main page (index.php) it is not sharing the article but the site url (www.yssencial.com) instead.
A: You need to set the data-href property of the individual posts to your posts url. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine if the last_seen_at Time field is great than 1 minute ago In my Room model I have a field last_activity_at
I want to do something like
if last_activity_at is greater than 1 minute ago?
What's the right way in rails to do that? Thanks
A: How about this:
record.last_activity_at > 1.minute.ago
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7507486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Substituting classes that adopt a particular protocol (Objective-c) In Objective-c if two classes adopt a particular protocol can instances of the classes be used interchangeably?
Say I have the following code:
@protocol MyProtocol
@required
@property (nonatomic, retain) SomeObject *object;
@end
@interface ClassA <... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamically disabling form fields in MVC 3 with Razor I have a large form in a Razor view and want to make certain form elements disabled depending on the state of the model object I'm passing in. So some logic has to be defined to determine whether to show this element, make it read-only or make it editable.
My cur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is "backporting" Python 3's `range` to Python 2 a bad idea? One of my classes requires assignments to be completed in Python, and as an exercise, I've been making sure my programs work in both Python 2 and Python 3, using a script like this:
#!/bin/bash
# Run some PyUnit tests
python2 test.py
python3 test.py
One th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to enable multitouch cocos2d I want to be able to enable multitouch for cocos2d. How can I do this? I want to test each touch event like my code below. Please help.
-(void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *myTouch = [touches anyObject];
CGPoint location = [myTouch locationIn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Confusion about CFNetwork, CFReadStreamOpen, and CFRunLoopRun That sinking feeling when you realize you have no idea what's going on...
I've been using this code in my network code for almost two years without problems.
if (!CFReadStreamOpen(myReadStream)) {
CFStreamError myErr = CFReadStreamGetError(myReadStre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: the objects inside a NSMutableDictionary are lost during runtime. the pointers are lost somehow I have a NSMutableDictionary in a class
@interface ClassName : UITableViewController {
NSMutableArray *doctors_set;
}
@property (nonatomic, retain) NSMutableArray *doctors_set;
@implementation ClassName
@synt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ideal way to pass filtered relationship of a model to a template? This is more of what feels like a lot of work / hackish code...
Say I have some models like this:
class Semester(models.Model):
year = models.IntegerField()
month = models.IntegerField()
# ... some fields
class Course(models.Model):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django-registration not recognizing urls.py accounts page? I am trying to setup django-registration and it is not recognizing the URLs. I get Error 404 when I visit http://localhost:8000/accounts/
Page not found (404)
Request Method: GET
Request URL: http://localhost:8000/accounts/
Using the URLconf defi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add manually Google API library to a project in Eclipse? I'm doing small GPS project. Before I work on 32-bit laptop and I had option Target device:
2 x per every API. one was from Google and second from device. my laptop went down. I've bought new one 64-bit. I've installed every thing from beginning and now... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to efficiently execute JavaScript functions when elements are inserted? Initially, when the page loads, I search with jQuery for stuff like this:
<label for="first_name">name</label>
<input type="text" name="first_name" />
And change html to be fancier.
The problem becomes when I try to dynamically insert eleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Iterator.each: why is this working I was refactoring a bit of code in a project for work when I came across an odd bit of syntax. I confirmed it has been in the file since it was first created and the bit of code is being called.
worksheet.each 1 do |row|
Dashboard::LocalizedMessagingField.create({blah blah blah}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python and Regex - extracting a number from a string I'm new to regex, and I'm starting to sort of get the hang of things. I have a string that looks like this:
This is a generated number #123 which is an integer.
The text that I've shown here around the 123 will always stay exactly the same, but it may have furt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Initializing a member class of an object using a non-default constructor in C++ I have a specific situation where I've got an object that I want to use the boost random number generators on, and it has lead to a greater question which I cannot seem to answer. Here is the example code of what I'm trying to produce.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing value from child window to parent window using WPF and MVVM pattern I have parent window which has textBox called "SchoolName", and a button called "Lookup school Name".
That Button opens a child window with list of school names. Now when user selects school Name from child window, and clicks on "Use selecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows installer: How to supress Installation Incomplete window when search condition is not met VS2010, Setup Project
I add a Search64bitOffice property in Search Target Machine,
Name Search64bitOffice
Property: OFFICEIS64BIT
RegKey: Software\Microsoft\Office\14.0\Outlook\Bitness
Root vsdrrHKLM
Value: x64
Then I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I show the values of deeply nested fields? I have a tables of Users, Carts, Orders and OrderTransactions.
My schema looks like:
*
*User has one cart
*Cart has one order
*Order has many transactions
I would like to display the user_id in the order transaction partial.
I can display the cart_id with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting up svn repository I recently setup svn on a Windows 2003 server over ssh. I'm familiar with the developer end of svn, but I've never had to be the admin. The point of it is to allow remote development through visual studio. I have an existing directory with all files for my site that was not previously under... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Forward and backward navigation buttons for Android I am porting an iPhone app to Android, and I can't find the Android equivalent of the UINavigationItem. These are buttons with a triangular side indicating movement between different screens. For an example of what I'm trying to accomplish, this is from the Beyon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSON ARRAY Return I have a Array that is pulling back X amount of Data from a JSON file, Lets say 40
I wanted some help where If i want X amount of data from that file, lets say just 20, What't the best approach to do so?
Is there any example out there.
I tried using jQuery.grep function but i was not getting it to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why would OnShow not be called for a TForm? I'm working in a project in Delphi 7 and I'm not extremely intimate with the language or runtime. I'm attempting to debug an issue where a form is made visible and painted and such but for some reason the OnShow event is not called. In what case can this happen? Where exac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to replace garbled characters in a string? I have this text...
“I’m not trying to be credible,†David admits with a smile broadening"
...and I would like to delete those funny characters, I've tried str_replace() but it does not work.
Any ideas?
A: You probably have handled text in a different encoding ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Expanding Panel on click to view hidden controls I am currently working on a C# wpf project. What I was looking for is a GUI control that can have other GUI controls inside but are hidden and when the user clicks on the GUI control it then expands the panel to reveal the hidden GUI components. I have seen other prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: exe created using install4j eats up all CPU after 30-40 seconds from launching I have created an installer for my Java application using install4j. it is running on JDK1.6 and uses Jetty as a web server and struts2 as an MVC. The application installs just fine and an exe file is created correctly. When I launch the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mathematica doesn't solve wave equation when given boundary conditions Still new to Mathematica syntax. When I do:
DSolve[{
D[u[x, t], {x, 2}] == (1/(v*v))*D[u[x, t], {t, 2}],
u[0, t] == 0,
u[l, 0] == 0
}, u, {x, t}]
it just returns what I entered
DSolve[{(u^(2,0))[x,t]==(u^(0,2))[x,t]/v^2,u[0,t]==0,u[l,0]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problem with .htaccess file and exclude command I have a simple .htaccess which redirect non www to www domain
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.example.com$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
What I need to do is to exclude the IP calling from this redirect.
In other words I need th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby on Rails build query in pieces There was a very similar question before but i still struggle.
Is it possible to build a query up in stages?
Let's say I have a search form with many text and select fields that may be chained with and/or or which could be blank.
So the sql statement should consist of several par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to simulate touch events in Windows 8 Is there a way to simulate touch events in Windows 8 (and preferably in windows 7).
I know there is a project called Multi touch vista but I feel its a bit overkill and I never got it working correctly with multiple screens.
What I want to do is very simple, I wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: ordering/sorting a pulldown box/dropdown list I am trying to order/sort a pulldown/dropdown list.
What do I have to add to the following code?
public void financeInit()
{
financeEntities db = new financeEntities();
ViewData["currencyList"] = db.exchrates.ToList();
}
A: There are many things that you shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java get query expansion terms Does anyone know if its possible to easily get query expansion terms programmatically using Java?
For example when you do a google search, at the bottom of the results page there is a "Searches Related to [term]" section, is there a way to harvest those terms? I feel like this would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where should I start in making industry standard audio in my iPhone applications? I am trying to get started in advanced audio with the iPhone SDK. I really want to make professional level audio components. I know the basics (e.g. how to use NSAVAudioPlayers), but I don't know what to do for the more complicated sor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Galleria Fullscreen theme captions between image and thumbnails I'm using the Galleria jQuery slideshow framework.
My question is, how can I bottom-align the caption in the Fullscreen theme, so it's between the thumbnails and the main image, without cropping the images, with white (i.e. blank) space behind it?
In ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: org-timer module load error in emacs I want to use the pomodoro technique in org-mode as explained in
http://orgmode.org/worg/org-gtd-etc.html
I have added the following lines in .emacs file
(add-to-list 'org-modules 'org-timer)
(setq org-timer-default-timer 25)
(add-hook 'org-clock-in-hook '(lambda ()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: NSMutableArray works in ViewDidLoad, but not in DidSelectRowAtIndexPath Menu.h
@interface Menu : UITableViewController {
NSMutableArray *arrayCellCollectionOrder;
NSMutableDictionary *dictCellCollection;
NSMutableDictionary *dictCellIndividual;
}
@property (nonatomic, retain) NSMutableArray *arrayCe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: pygettext: Seen unexpected token "%" I am currently trying to implement internationalization in an application (Python 2.6) and have run into an error involving string formatting.
A string marked translatable looks like this:
foo = _("I would like to have %d pounds of cheese" % amount)
Running pygettext on my source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Im trying to use backgroundworker i want to see the upload progress but it dosent work why? In the designer i put backgroundworker and i have two events: Do Work and Progress Changed.
I used breakpoint and its getting inside the Do Work event but it never get into the Progress Changed event. Its never stop there lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best practice for OnPaint, Invalidate, Clipping and Regions I have a User Control with completely custom drawn graphics of many objects which draw themselves (called from OnPaint), with the background being a large bitmap. I have zoom and pan functionality built in, and all the coordinates for the objects which are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I search for a string of text in the native Google Maps app from PhoneGap on iOS AND Android? I'm developing a cross-platform PhoneGap app, and I'd like a string of text in a 'Location' field, when tapped, to open up the native Google Maps app in PhoneGap or Android.
Everyone seems to be embedding their maps... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: set text in textview with text from an edittext in another class Im completely new to Android so apologies if this is a silly question. But my problem is this:
I have created a number of classes for each of the pages in my app and I would like to update the text in a textview of a particular class from the text in a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert string to wstring, encoding issues I've read Stroustrup's Appendix D (particular attention to Locales and Codecvt). Stroustrup does not give a good codecvt and widen example (IMHO). I've been trying to knob turn stuff from the internet with no joy. I've also tried imbue'ing stringstreams without success.
Wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to tell if an object has implemented ToString explicitly in c# I am trying to log information about the state of some objects and classes in my code. Not all the classes or libraries were implemented with Serialization. So I am using Reflection on the Properties to write out an XML document of the sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET Equivalent to this cURL command I'm working with the Twilio API and it provides examples in PHP and Ruby. I'm working on a site to send text messages through the API that's coded in ASP.NET MVC 3, and using my limited knowledge of the WebRequest object, I was able to translate this:
curl -X POST 'https://api... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How To Get A Server Control Property Name With A Dash In It I'm creating a custom server control in ASP.NET WebForms and want to have a hyphen in my property name the same way the ASP.NET server controls do in the markup. For example, a Label control has a "Font-Size" property in the markup like so:
<asp:Label ID="L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Post message referencing users As a facebook app I want to post a message that references a set of users (e.g. @John Doe, @Tom Cruise) so that the message will show up on their wall (and their friends can see).
How can I do this programmatically? Through what API calls?
A: As stated by aFacebook employee, tagging u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Socket closing not throwing IOException I'm writing a basic Server-client program in Java and I'm trying to handle the case where the client terminates unexpectedly.
public void run() {
while(alive) {
try {
// socketIn is a BufferedReader wrapped around the socket's InputStream.
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Updating Facebook from Android I have the below script running and it works perfectly. What I am wondering is. Why does facebook give me a secret key if I dont have to implement it as I have not below.
Facebook facebook = new Facebook("APP_ID"); // Application ID of your app at facebook
boolean isLoggedIn ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to define action with simple form for? I am trying to define the action "savenew" in admin/photographers controller.
I have tried this:
<%= simple_form_for(:photographer_savenew, :action => 'savenew', :id => params[:id], :multipart => true ) do |f| %>
But the action in the form is still: /admin/photographers
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: javax.naming.NameNotFoundException: Name 'Manager1Factory' not found in context '' I get the error
javax.naming.NameNotFoundException: Name 'Manager1Factory' not found in context ''
when I try to deploy my hibernate app in JBoss 7. The line of code that is throwing this exception looks like
entityManagerFactor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle - Problem creating trigger that updates another table I've read the Oracle docs on creating triggers and am doing things exactly how it shows, however this just isn't working. My goal is to update the TPM_PROJECT table with the minimum STARTDATE appearing in the TPM_TRAININGPLAN table. Thus, every time some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any standard mechanism for detecting if a JavaScript is executing as a WebWorker? A WebWorker executes with a scope completely separate from the 'window' context of traditional JavaScript. Is there a standard way for a script to determine if it is, itself, being executed as a WebWorker?
The first 'hack' I can thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Translate website into different language How can I convert my website into different language, for ex I want to translate it into Russian. It is a commercial website, i cant use google translate. How can I do it please guide me. Thanks
A: I Don't think for such a scenario you can use any automatic translator tools... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Place a custom template in VS 2010 New File dialog I'm trying to create a Visual Studio template that should appear in the New File dialog of Visual Studio 2010. No solution or project needs to be opened in order for my template to appear.
So far I know how to place my template in the Add New Item dialog, but can't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AdMob AdView does not show up in TableLayout I have successfully gotten AdMob test ads to show up in a LinearLayout, but if I change to a TableLayout, they do not show up. No errors show in logcat.
This is what works:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AdRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Will every line in a program(except variable declarations) ultimately use atleast one system call? I was thinking about system calls and code that we write! Lets say I have a program like below
#include<stdio.h>
int main()
{
int a=0,b=2,c;
c=a+b;
printf("The value of c is %d", c);
return 0;
}
Lets take ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WifiManager.startScan() - doesn't wake wifi if off, right? The following will not turn wifi on, if the user has it turned off, right?:
WifiManager manager = (WifiManager)context.getSystemService(
Context.WIFI_SERVICE);
manager.startScan(); <-- !
I want to make sure the wifi isn't being turned on (if off) when t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL: Indexes on GROUP BY I have a reasonably big table (>10.000 rows) which is going to grow much bigger fast. On this table I run the following query:
SELECT *, MAX(a) FROM table GROUP BY b, c, d
Currently EXPLAIN tells me that there are no keys, no possible keys and it's "Using temporary; Using filesort". What ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Deserialize an anonymous type into a dynamic I have an application that contains a business entity called a 'Task'. This entity has a fixed set of properties, but also the ability to behave as an expando.
So, its schema looks like this:
namespace RavenResearch
{
public class Task
{
public Guid TaskId... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.