text
stringlengths
8
267k
meta
dict
Q: Developing ui using Ext-js I m new to Ext-js .I m developing a form.but not able to allign it to center. This is my code Ext.onReady(function() { Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'side'; var reg_form = new Ext.FormPanel({ renderTo: document.body, title: 'Employee Registrat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get return value of php function into my jquery script I a writing a pic upload script. The script moves the picture to a directory and also puts it into a database. I want to return the directory of this script to my Jquery function, and So I can then add it to a <iframe> or whatever. I hope that I am run...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: filtering specific lines in C# I have searched but did not find a solid solution for my project that works. What I want to do is open up a text file and filter it for only lines that start with "description". This is only a small sample of whats in my text file: interface Ethernet1/5 description INFRA:TRUNK:myserv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails Devise User help In devise how would I, I am not sure how to phrase it, return a user. I am able to user_signed_in? but what about user. I want to check in show if @user is the same one as the user that is currently signed in. A: Devise has methods like current_user which returns the "user" that is logged in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Downloading and parsing JSON kit on iOS I am trying to parse this from a webserver to a tableview in iOS { "transactions": [ { "ID": "350", "description": "Macbook Pro 17 inch", "price": "2811.83" }, { "ID": "351", "description": "Macbook - white", "price": "1720.10" }, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: YUI Listener set on startup lost I'm trying to monitor the clicks on a web page that is written in YUI2. The events seem to be getting wiped away and the callback function isn't getting called. The links that I am trying to monitor are all of class 'action-link', but none have an id set on the page. I tried calling...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP How to I make my textinput accept single quote or Double quotes How do I make my textinput accept apostrophe or double quotes? Everytime a user type's in this one: John's Birthday, I store this one in the database using mysql_real_escape_string(). What I wanted to do in here is to retrieve it in my text input. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use properties from a property file within a Maven script? I want to use properties that are defined in a property file in a Maven script, in a plugin configuration section. How can I do that? Extract from my Maven script: ... <configuration> <url>${jdbc.url}</url> </configuration> ... And my property fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Devise - One Model and Multiple Different Registration Views I want to use Devise for authentication in rails 3.1. I've created a pricing table on a static "signup" page that has three options. Level A, B and C. I want to either pass the signup selection to devise as a parameter, or create separate views for the dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to move all comment replies under the ones replied to on my Blogspot blog? Here is the location of the comments I need help with on my scrap Blogger/blogspot blog. I'm trying to move the replies under the ones they reply to. * *I want to move the reply starting from the <li> node it is in, then *place it in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R solver optimization problem I have a data frame in r : buys ges dif bin 1 22.34 12 10.34 0 2 55.56 12 43.56 0 3 78.33 12 66.33 0 4 9.99 12 2.01 1 .. .. .. .. .. dif is just abs(buys-ges) and bin is an ifelse formula that is 1 if dif is <=10 and 0 otherwise. I'm trying to maximize th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySql: Find table2.name WHERE table1.lat = table2.lat AND table1.lng = table2.lng; I have spent the last few days bashing my head in trying to find the answer to this. I have a Table of Routes of GPS data. and a Table of Points. What I need is a MySql statement that for a given route, will tell me the Point.Name of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: vb .net shorten an if statement I'm trying to make this cleaner... I know there's lots of shortcuts for If statements, but I don't know what's best. If item.RecurrenceId > 0 Then xmlTextWriter.WriteElementString("recordtype", "2") ElseIf IsNothing(item.OngoingEndDate) = False Then xmlTextWriter.WriteElementS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do all Facebook Graph API calls require HTTPS starting October 1st? I have an app I host myself which makes use of the graph API. I have already update to OAuth 2.0 but do all of my API calls now require that I use HTTPS? Will Facebook auto redirect calls that are made without HTTPS? I've noticed that all of the AP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create a DLL from Exe I'm trying to find a solution for creating a DLL from an Exe in C++. I'm currently working on an IIS / Tomcat setup script and need to have a DLL hard coded in my code and have it written as a DLL file. I have found when dealing with binary files, I should write them one character at a time li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cron jobs creating blank file Cron jobs I created is automatically creating a blank file every time it's run. Is there a way to fix this issue so that it doesn't create this file? Below is the command for cron jobs: /usr/bin/wget http://nitelife.wmetools.com/backend/index.php/ratings/overall_ratings_history A: It'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Particle System converge single point Ok I have a particle system going in Android. Right now I use 500 or so particles and they randomly move around the screen. I set it so that on touch (actually motion right now). that all the particles would approach your finger. Problem being is that they're approachi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC3 Unobtrusive Validation and Hand Coded Element Question I understand with built in function to render UI controls like @Html.TextBoxFor(model => model.CustomerId) @Html.ValidationMessageFor(model => model.CustomerId) The rendered Html will look like <input data-val="true" data-val-number="The field Cust...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I break out of an each() in jQuery? I have the following HTML + JS. I want the toggleButton to only toggle the first io-section-header. Eventually I will have multiple toggleButton's that will toggle a unique ul. How can I achieve this? <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jque...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XNA resize window without increasing resolution I want to create a low resolution game on a larger window. (96x54 res on 960x540 size window for example). How would I go about this? Is there a way to resize a window independently of the preferred back buffer width and height? Or should I just keep a low resolution r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: viewDidLoad not being called when pushing UIViewController I'm pushing a UIViewController like so: UIViewController* individualsController = [[[UIViewController alloc] initWithNibName:@"IndividualsController" bundle:nil] autorelease]; [self.navigationController pushViewController:individualsController animated:YES]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RoutingError when using jQuery UI tabs with ajax I'm getting ActionController::RoutingError in Profiles#show when I click a link to render a layout as part of my implementation of jQuery UI tabs. Here's my link_to: <%= link_to "Messages", :controller => 'profiles', :action => 'profile_messages', :remote => true %> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Has anyone ever come up with a way to detect the email program a recipient is using? I know there are ways to detect browsers based on CSS rules but I don't know if the same tricks would work for Outlook. The way I think it could work is have CSS rules that show and hide urls so that when a recipient clicks on a lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot add a UIDatePicker to an xib without generating an Internal Error I am using xCode 4.0.2 and trying to create a view controller with an xib that contains a UIDatePicker. Whenever I try to drag a UIDatePicker object to the view in the xib I get an Internal Error alert. This is a universal app and I am using an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Objective-C RegexKitLite match one string or another I'm trying to use regexkitlite for string matching in objective-c and I'm having some problems with it. What I'm trying to do is search a large string for substrings matching: * *"http://[something].jpg" *"http://[something].png" Basically, I want to find a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to split text into separate UITextView pages? A subquestion is: How do I determine what the built-in internal margins of a UITextview are? I have a long master string of text that I am trying to split into separate UITextView pages that I can then scroll from page to page inside a UIScrollView. I use the follow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where to place the AsyncTask() so that i can call it to load image? Below is my coding where it would load the image when this Activity is called. But i wished to display the progressDialog when it was retrieving the images from the server instead of just a black screen presented to the user. I heard that AsyncTask ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to apply primary key on the text fields in android database I have created a simple table that contains the name and email id's of the persons. When i am giving the create query like this: "create table contacts (name text not null, email text primary key not null);" But this is not working. I'm not g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Adding style to Header when div is clicked using Javascript My intent is to add a class to the header when a div is clicked. I have included the website I'm working with, just to make thing's easier: URL - http://itsmontoya.com/work/iM/ I have added a class 'expanded' to the header. This is to show how the navigatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to manage ldap contexts in jboss? In the same way that JBoss can manage jdbc data sources can it manage LDAP contexts using JNDI? A: Yes, this is just a Tomcat custom <Resource>, see the Tomcat documentation. In brief, just define a and provide your own implementation of an LdapContextFactory. JBoss...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: One-liner is SASS In CSS I can do something like this: .apple { background-image: url('apple.png'); } .orange { background-image: url('orange.png'); } .pear { background-image: url('pear.png'); } but it seems in sass (not scss) the same would take up 6 lines? Is it possible to do a one-liner is sass for rules th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why isn't this C# code working? It should return the string between two other strings, but always returns an empty string The title explains it all. It seems simple enough, so I must be overlooking something stupid. Here's what I've got. private string getBetween(string strSource, string strStart, string strEn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery repeat text search and cut How jquery search a repeat text and get row id of other repeat row. <tr id='1'> <td>AA</td> </tr> <tr id='2'> <td>BB</td> </tr> <tr id='3'> <td>AA</td> </tr> <tr id='4'> <td>AA</td> </tr> <tr id='5'> <td>BB</td> </tr> <tr id='6'> <td>CC</td> </tr> <tr id='7'> <t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: shell_exec and exec on PHP didn't return string I got headache by this code: $data = shell_exec("wget -S --spider http://dkphp.com"); echo "Encoded:" .$data; $data is "NULL" I don't know why, its support to echo something like :( Spend like 5 hours today, and its still NULL :( HTTP request sent, awaiting response.....
{ "language": "en", "url": "https://stackoverflow.com/questions/7591516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why is Python more strict with circular imports when using from-imports? I know that Python discourages any situation which can get you into a circular import. But I wanted understand the Python internals of why from-imports are seemingly arbitrarily less forgiving than normal imports in circular import situations. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing a file with vim doesn't fire a file change event on OS X I am using watchdog to monitor .less file change events on OS X. If I change the contents of a .less file with TextMate or Sublime Text the modification event is captured. However, if I edit the content with vim no file modification event is fired (but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Can I combine Create and List class based generic views using mixins? I'm looking for the easiest way to combine List and Create functionally with generic class views. I want to have a page that has an item list and a form to add a new item on the bottom. I thought that mixin architecture would allow to combine nece...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Environment.getExternalStorageDirectory() on the emulator I want to read and write images to the external storage in my app. From what I read the following is the correct way to get a handle on the directory. File externalStorageDir = Environment.getExternalStorageDirectory(); File picturesDir = new File(externalS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: BeautifulSoup: AttributeError: 'NavigableString' object has no attribute 'name' Do you know why the first example in BeautifulSoup tutorial http://www.crummy.com/software/BeautifulSoup/documentation.html#QuickStart gives AttributeError: 'NavigableString' object has no attribute 'name'? According to this answer the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Tests are not started after db creation by liquibase I'm testing datasource layer using dbunit, junit, liquibase, hsqldb. I'm using in memory-state of hsqldb. Each time I start test, I create db structure using liquibase via command line: @BeforeClass public static void setupDatabase() throws Exception { ......
{ "language": "en", "url": "https://stackoverflow.com/questions/7591544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cannot display image in PHP here's my code for image display - $username = "xxxxxxxx"; $password = "xxxxxxxx"; $host = "000.001.000.000"; $database = "xxxxxxxx"; @mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error()); @mysql_select_db($database) or die("Can not sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP regular expression to replace values in a config file I need to use php to find and replace the database in a config file: $cfg['database'] = 'my_database_name'; Basically, I'm trying to figure out a regular expression that would find everything between $cfg['database'] = and ; then replace it with the actu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Persistence of custom headers within an email thread I this is probably a strange question, but I thought I'd go ahead and ask. Say, I send an email, using IMAP SMTP, through a special client. This client adds a few custom headers to the email message before sending it on its way. The recipient receives this email a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Php least number can any one help me about how to find the least number of five inputs like 1,2,3,4,5 where the least is 1... and find the 2nd least number where it is 2 then 3rd least number where it is 3 and 4th least numb where it is 4 and the largest number where it is 5.. <input type ="text" name ="num1"> <inpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android + ListView background sets background while scrolling? I have a ListView that's populated via an ArrayAdapter. Within the adapter, i set the view background color dependent on a conditional. It works, but while scrolling the remaining rows adopt this color. Here's some code: class DateAdapter extends Arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How is SkypeKit different from programming with the Skype API? I have a lot of experience writing Delphi 6 Pro apps using the Skype API. I don't use the COM object but instead I interface directly with the Skype client using the SendMessage() system. My current application acts as a full duplex audio proxy with vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: ORA-00942: Can select from "schema.table" but not "table"? I experienced an ORA-00942 ("table or view does not exist") when executing select * from brunch However, no such problem when executing select * from joe.brunch May i know what is the issue here? A: There are several possible causes 1) there is more tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Intellij IDEA code coverage incorrectly shows less than 100% I have a package with five classes. Each class has 100% code coverage, 100% line coverage bar one (which has 98% line coverage). As a result the package code coverage is 88% and line coverage is 171%. It doesn't really make sense to me (especially the 171%...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP read, stored php var in text file I'm trying to figure out how to stored php values in a string/file. I have a text file with "var1=foo&var2=foo2" etc in it, is there a way to read the values? A: You could use file_get_contents() to open the file and parse_url() to parse the contents into an associative array. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Returning a pointer to an object ( C++ Templates ) Error I've been asked to switch three classes for a university assignment over to templates to make them more generic but I'm having problems when trying to return a pointer to an object from a template function. Compiler: GCC Version - 3.4.4 ( Cygwin ) Here is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Pickup directories: How not to pickup files that are still being written? I have a Python script that checks on a pickup directory and processes any files that it finds, and then deletes them. How can I make sure not to pickup a file that is still being written by the process that drops files in that directory? My ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Extracting FOAF information from Jena I'm new here,and i have some problem about FOAF. I use jena create a FOAF like this : <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/> <foaf:phone>12312312312</foaf:phone> <foaf:nick>L</foaf:nick> <foaf:name>zhanglu</foaf:name> But i want to the FOAF show...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: asp.net form controls are unreadable when in a jQuery dialog, how do you fix it? I've got a prickly one. I have an asp.net web forms page. In the page I have a div tag that I've set to be used as a jQuery dialog. In the div is some jQuery controls. I get the dialog to open up and clicking on one of the buttons comme...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Parse a substring? I'm trying to convert the first two characters of a String using the parseInt method but I cannot. It's supposed to look like this: String firstChars = IntMessage.substring(0,2);// firstChars is a String that corresponds to the first two characters of the string. message=ASCII[(Integer.parseInt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Appcelerator Titanium Calendar Module Issue I have been having a bit of trouble getting this module to work: https://github.com/smontgomerie/Appcelerator-Calendar-Module. After playing around with my application's tiapp.xml file and the module's manifest file, I have managed to get Titanium to detect the module. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: this keyword inside a using block in C# What does this refer to inside of a using block in C#? A: 1 - this always refers to the object scope you are currently in for example void myFunc(int sameName) { this.sameName += sameName; } in this case this.sameName refers to the classes variable called sameName while...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rendering with glDrawRangeElements() not working properly This is a followup to my previous question. All of my questions were answered in my last thread but this is a new error that I am having. When rendering in intermediate mode, everything looks great. In fact: http://i.imgur.com/OFV6i.png Now, I am rendering wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: cmake - Link custom library from higher level directory I'm learning about cmake and am finding it very fast to learn. However, documentation is not up to scratch. The tutorials are helpful, but only go so far. What I have is an existing project that I want to convert to using cmake. The project structure currentl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does removing this index in MySQL speed up my query 100x? I have the following MySQL table (simplified): CREATE TABLE `track` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(256) NOT NULL, `is_active` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `is_active` (`is_active`, `id`) ) ENGINE=MyISAM A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ajax jquery settings So say I want to import (using ajax) a script which contains both some raw html and a java script: <p>To comment, please first prove that you are human being</p> <form method='post' action='../recapatcha_verify.php'> <script type="text/javascript" src="http://www.google.com/recaptcha/api/challe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to override a collection's mapped order-by clause when paging in NHibernate? I have an entity with a bag collection and I want to page through the entire data set. The collection has an order-by clause. When I try to eager-load the collection, NHibernate is generating SQL that is very very slow becaus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why this code does not compile using MS compiler? This code does compile using the GNU gcc compiler while doesn't if using the Visual Studio 2008 one. the error sas: "error C2143: syntax error: missing ';' before '*' Arbol::Nodo* is a pointer to the class inside Arbol that works ok if compiling using codeblocks + gn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Activity Indicator IOS usage question First I would like to thank everyone who attempts to help me with my problem, I am new to iOS development, specifically objective-c, so I apologize if my question is extremely obvious. I am making an app that loads some new data (parsed from a website but it is NOT a UIWebView) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linq2Sql query - Pivot data with Grouping I have the following dataset for a TimeTable that needs to be displayed in a gridview. Currently a snippet of the dataset looks like this: SessionNum TimeStart TimeStop Details ---------- --------- -------- ------- 1 08:00 09:00 Mat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why this behavior when coercing a list to character via as.character()? In the process of (mostly) answering this question, I stumbled across something that I feel like I really should already have seen before. Let's say you've got a list: l <- list(a = 1:3, b = letters[1:3], c = runif(3)) Attempting to coerce l to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Getting the text from a NSTextField and setting it to an already defined String Im brand new to Cocoa, and im struggling to find the answer and figure it out. if I have a NSTextField how can I get the value (stringvalue) of that and save it in a predefined string variable, there after display it in the debug using N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML5 Cache Manifest problem I am trying to use it to cache all the static files for my application (images, JS etc.) but I am running into a problem. My cache manifest file can looks like this: CACHE MANIFEST CACHE: templates/v2/css/somecss.css templates/v2/js/somejs.js templates/v2/images/someimages.jpg NETWORK:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I prevent someone from reading my .htaccess file? I added a .htaccess file to a folder to make it password protected. I would like to prevent all users from being able to read that .htaccess file, because it reveals the location of my .htpasswd (I don't have permissions on this server to put this file outside...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Javascript + Radio Button / CheckBox Validation In Plain Ole' Javascript, do I NEED to use a loop to loop through the radio buttons/checkboxes to see if they are checked or is there a simpler way of doing this? A: Yes. It may be most helpful to... * *...have them all contained in one element, so you can travers...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Application Request Limit Reach - How much data is too much? We're getting a lot of "Application request limit reached" exception in our app. Looking at the insights page, it looks like "posts" from the graph API for "Calls access too much data" is the problem (108% right now). I would like to know what "Too much da...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my Clojure import fail? I'm running Clojure 1.3 with contrib 1.1 in IntelliJ. My program consists of a single line (use 'clojure.contrib.prxml) I get the following error upon running Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodError: clojure.lang.RestFn.<init>(I)V A: I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How much programmer "assist" does Java normally need for a switch to JIT to a dispatch table? I understand that Java does optimizations across the board and can optimize switches depending on how many cases there are, whether the switch is sparse or dense, and if the code is even hot enough for the JIT to optimize s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I call a Python macro in a cell formula in OpenOffice.Org Calc? To extend OpenOffice's capabilities, I've defined some Python macros in a file in the user script directory (~/Library/Application Support/OpenOffice.org/3/user/Scripts/python/, in my case). The macros are visible in the Python macro organizer. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: MacOSX Socket Programming without run loop Currently there is a CSNetwork class and a stream class with a run loop to recieve. Due to some reason I do not wish to have callbacks in my socket class code. I am looking for the following - simple connect API - simple send API - simple recv API - simple getHostbyName equ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Async CTP call a wcf ria service method that returns a string value I'm trying to implement the following into my silverlight wcf ria services project. http://blogs.msdn.com/b/kylemc/archive/2010/11/02/using-the-visual-studio-async-ctp-with-ria-services.aspx It is working fine for entities. However I'm trying to wri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pop up dialog in Android home screen Is it possible to show pop up dialog (AlertDialog) in home screen on the android device via services? A: Does anyone needs option, "android:launchMode="singleInstance", when pop activity in the broadcast receiver or Service?? Without this option, my app started automatically and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Get last created ID with auto-increment in MySQL I have a primary index on column URL but at the same time I need to have records with URL left blank which won't be permitted by the index. I thought of a solution which is to add a new column called ID and make it auto-increment. So I need to get the ID created with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Implementing Request Response design I am trying to implement a request/response client. Here is the basic implementation for it. Class Request { prepareRequest1(); prepareRequest2(); } Class Response { processResponse1(); processResponse2(); } Class Client { connect(); sendRequest(); } my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF Broadcast through a proxy I am using WCF Broadcast, WCF client directly connects to WCF Server and server broadcasts data to client. I don't know WCF connection have a proxy support or not? WCF Client will connect to WCF Server through a proxy, and WCF Server will broadcast data to WCF Client through this proxy....
{ "language": "en", "url": "https://stackoverflow.com/questions/7591692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R how to convert the data.frame into time series one by one I have a series of data.frame like r t 1 x 2 2 y 3 3 z 4 but I want to convert these three into time series, like q = xts(as.matrix(data[1,]), order.by = "2011-09-28") qq = xts(as.matrix(data[2,]), order.by = "2011-09-28") qqq = xts(as.matrix(data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do arrays work, behind the scenes? I'm trying to use basic operators to create my own custom array in JavaScript, I guess. This book I'm reading, "Eloquent JavaScript", has an exercise in Chapter 1 that asks me to make a pyramid using the "print" function. There's no print function in any of my interpreters, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Youtube API: losing data via curl in PHP? I'm sure that this is likely a simple solution, but I can't see my error. I'm making an API call to youtube to get some basic information on a youtube video using the video's ID; specifically what I want is the (1) title, (2) description, (3) tags, and (4) thumbnail. When I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OpenCV find biggest contours? I have an image, on which I used cvFindContours () on- I stored the result in imageContours. I am then trying to find the two biggest contours and display ONLY them. But for some reason its showing way more than 2 contours. What's wrong with my algorithm? Thanks EDIT: Oh and also, in co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which Database should I use for small network application I have an application (currently in foxpro) that uses about 12 tables that can be networked. The tables are related in various ways, but not unduely complex - more like a customer ordering system I want to rewrite it in C# using MS Visual Studio. The Applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get ExtJS 4 to work in Rails 3.1? I copied the ExtJS4 directory in the assets folder. I then included it like: <%= stylesheet_link_tag "application", "ext-4.0.2a/resources/css/ext-all" %> <%= javascript_include_tag "application", "ext-4.0.2a/ext-all-debug" %> I get the following error: Sprockets::En...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I'm in trouble with creating new object in C++ I'm new to C++ and I'm having a trouble with it. I've tried to create new object without (*), so Animal a1; but it didn't work. So now I'm using Animal* a1;, and it works, but the problem is that it says it has to be initialised. I made a default constructor, so doesn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: web2py: cannot marshal class 'gluon.dal.Reference' objects I'm using web2py v1.98.2. with xml-rpc service. In the service.py controller I have: @service.xmlrpc def save_account(acct): id = db.account.insert(code=acct['code'], name=acct['name'], parent_id=acct['paren...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does computer going to sleep mess up my WPF program and what to do about it I have a WPF program that communicates with a specialized USB stick that is collecting data (in fact an ANT USB dongle). I noticed that the data collection simply stopped after a few hours. The reason was evident in the windows logs (s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it more efficient to have a map of maps, or a very large map? I am storing some objects in map (hashed by strings), but the objects are categoriseable by another string. I could therefore make a map of these categories, and for each category keep another map of the objects in that category. I will always know the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS styling for multiple divs and a media player I'm trying to style the following page: http://www.davedaranjo.com/media.html The problem I'm having is that I really need to center div left and div right on the page with the header. Can someone suggest an style or attribute that would just move the whole section un...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running plink in winpexpect I'm trying to use plink in winpexpect to connect to a remote Linux server. I'm using the following code: child = winpexpect.winspawn('plink root@hostname') child.logfile = sys.stdout i = child.expect(['Password:') child.expect('Password:') child.sendline('password') The output I get on s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL SELECT rows with numbers on column? Possible Duplicate: How to only select numeric data from mysql? I have a column which actually houses strings (type varchar) is there a way to select rows that only hold numbers in them? E.G: COLUMN1 COLUMN2 COLUMN3 1234 dassa dasasfa aaaa fdsa dsfa 4dsf4 dfssa ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL - Date Between (xxxx-06-21 and xxxx-09-21) How is it possible to use the BETWEEN function in MySQL, to search for dates in any year but between a specific day/month to a specific day/month? Or if it's not possible using BETWEEN, how else could I accomplish it? To be more descriptive, I am trying to add a seasona...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to publish code to local phusion passenger install from development folder? On my local dev machine I am coding on (ubuntu), I am using the built in rails server (webrick): rails s I want to sometimes test things out on a local copy of phusion passenger that I am going to install. How can I automate pushing the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Designing a secure auto login cookie system in PHP I want to have an auto login option check for a user. Basically that means a cookie will be stored on the client side. Now the question is, how do I make it secure so the cookie will can not be spoofed/modified. One of my friends suggest having a db table that store...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Javascript regex urls that are not image extensions I've got the following JavaScript which matches and replaces URLS with html links, however I need this to exclude urls which end in .png|.jpg|.jpeg|.gif text = text.replace( /(\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|])/gim, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Satchmo: Specify delivery date/shipping date for an order I working on e-commerce website using Satchmo. However, there are few customization required for my store. * *While ordering a product I should be able to specify a delivery date (shipping date). *There can be only 20 (max_num_delievries) deliveries possi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: $this->class->function(): how does it work? I've been programming in PHP for several years and I've only just recently begun to look at object oriented code. Now I understand classes and such: class Myclass { public function __construct() { } } and all that good stuff... I also understand creating fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making Twitter, Tastypie, Django, XAuth and iOS work to Build Django-based Access Permissions I will build an iOS application whose functionality will be based on access permissions provided by a Django REST application. Django manages the permissions for the activities in the iOS app. User A can do Work A if he/she...
{ "language": "en", "url": "https://stackoverflow.com/questions/7591753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Returned hashmap values are null I am restricting myself to just to the part of the question where I am going wrong. I have an array of double values; I put all the values of the array which are non zero into the hash map but when I am trying to display the values in my hashmap I get null values. Help needed....
{ "language": "en", "url": "https://stackoverflow.com/questions/7591754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }