text
stringlengths
8
267k
meta
dict
Q: Why doesn't Facebook combine its CSS/JS files? I am curious as to why the Facebook developers have chosen to not combine their scripts and stylesheets into single files. Instead they are loaded on demand via their CDN. Facebook is obviously a very complex application and I can understand how such modularity might ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to setup iOS development environment? Possible Duplicate: How to use device instead of Simulator I like to know how to test my own iOS app on my ipad or iphone. I know that there's IOS emulator in Mac OS, but I like to test my apps with a real hardware. My research says that I have to jailbreak my ipad. Is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lucene Tokenizer with LookAhead can anyone point me in the right direction for implementing a Lucene Tokenizer with LookAhead? I'm using a snowball stemmer and I want to be able to get phrases of city names and prevent them from being stemmed, so that "Los Angeles" will be set as a single token, as opposed to two to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why does ffmpeg never finish when converting a video from my web app? I am trying to convert a video when the user submits a form. It seems to convert ok but the file "is being used by another proccess" when I try to do anything with it. It looks like ffmpeg.exe never exits. My code is below is there anything I s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to change title of a Tab in TabActivity I have TabActivity with tabs on bottom which is composed of several different activities like this: public class HomeScreen extends TabActivity { private TabHost mTabHost; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); try{ setContentV...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GWT LinkedHashMap.clone() issue Faced an interesting issue recently. I've catched ClassCastException while executing this code: LinkedHashMap<Tag, Boolean> tags = new LinkedHashMap<Tag, Boolean>(); ... LinkedHashMap<Tag, Boolean> tagsCopy = (LinkedHashMap<Tag, Boolean>)tags.clone();//exception on this line In devel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can Hadoop read arbitrary key binary file It looks like Hadoop MapReduce requires a key value pair structure in the text or binary text. In reality we might have files to be split into chunks to be processed. But the keys may be spread across the file. It may not be a clear cut that one key followed by one value. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Form with multiple email fields to multiple recipients This is my html form. The user will input the email addresses he/she would like to send the html email to. <form id="form1" name="form1" method="post" action=""> <table width="400"> <tr> <td>Please enter your email address:</td> <td<input type="text" n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ question regarding classes and default values for function arguments and recursion I need to use recursion to count the nodes in a linked list. unsigned CLL::CountNodes(CNode* val) { if(!val) return 0; else return 1 + CountNodes(val->next); } So when I want to count the nodes in the link...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ GetLine() Problem, Command Line Program I am writing this program for my programming class and it has a bunch of stupid constraints like I must use nested if else statements and I have to use the cin.getLine() to get a players name. It is supposed to grab the name of each player and calculate their batting avera...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: os.path.join returning Errno22 in Enthought/Python I'm working with a fairly complex Enthought/Python program that is returning this error: File "C:\Users\riddle\Desktop\FCI2\src\equation.py", line 41, in main fci_data = np.load(os.path.join(local_data_path, "fci_data.npy")) File "C:\Python27\lib\site-packages\numpy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How could I create a shortcut on desktop in iOS through an app What do I mean is that I want to use the app to create a shortcut with icon on the desktop which will allow user to speed access some functions of this app. How could I do that, any suggestions? Or anyone have experience with this. An example: FaceDial ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What's the fastest way to check for the existence of a mongodb doc? What's the fastest way to check for the existence of a mongodb doc? Should I just use find and if it returns nothing? EDIT: collection.findOne {#attribute}, (err, doc) -> if err then console.log err if interaction #exists else...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Efficient Algorithms for Computing a matrix times its transpose For a class, a question that was posed by my teacher was the algorithmic cost of multiplying a matrix times its transpose. With the standard 3 loop matrix multiplication algorithm, the efficiency is O(N^3), and I wonder if there was a way to manipulate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: SSL Server Cert Present One name for WCF? I have a self-hosted WCF service with TCP binding, now trying to layer on SSL. The cert I got from the CA has two values for "Subject Alternative Name": www.mysite.com mysite.com I only want to present "mysite.com" to WCF clients, somehow this www.mysite.com (which the CA a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Javascript page reload while maintaining current window position How do I refresh the page using Javascript without the page returning to the top. My page refreshes using a timer but the problem is it goes back to the top every time it reloads. It should be able to retain the current position of the page as it reloa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: I would like to delete the row with 0 (zeroes) I honestly thought this would be easy. Please see matrix below: **Project Resources Hours** TeamSite Web Developer 30 RFP Technical Writer 45 Db Conversion DBA 20 DB Conversion DB Develop...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript 1 second apart ajax requests? Resource usage? I have a long-term goal of eventually creating a chat sort by any means, but for now I'd like to just have a simple one with some Mysql and ajax calls. To make the chat seem instant, I'd like to have the ajax request interval as fast as possible. I get the fe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Assigning Delegates to ViewController Classes Following this pattern. // foo.m Bar* bar = [[Bar alloc] init]; [baz setDelegate:bar]; [bar release]; I'm able to call UIImagePicker Delegates in the Bar Class. Specifically, didFinishPickingImage. However, I'm not able to set my the IBOutlet UIImageView myImageView. l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In gdb sizeof(Apple::record_) is zero. But It runs well I encounterd a very strange g++ problem. The output of the flowing program is "24 8 3", All things seems ok. But when I use gdb, to print sizeof(Apple::record_), it turns out to be 0. My gcc version is 4.5.2 (GCC)(MinGw), gdb version is GNU gdb (GDB) 7.3 Can an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: inline tags not showing on ie using jQuery I am facing problem rendering the contents of inline tag span. If i use div instead of span the contents are shown. for (all objects in array) { var A = jQuery("<img src='xyz'>") if(some condition) { var b = jQuery("<span class='X'>"); b.append(A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Actionscript 3, Parsing JSON Data problem I am sending a request to a server, and in return I get a long block of JSON. { "response":"success", "assignments":{ "17733":{ "asnid":"17733", "asnname":"Yitzhak Rabin PPT", "asnclass":"11276", "asndue":"2011-10-03", "asnnotes":"5 Slides in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Merging arrays of different types i have two arrays: $a =array( 'standard' => (object) array( 'id' => 'standard', 'title' => 'AustPost Standard' ), 'registered' => (object) array( 'id' => 'registered', 'title' => 'AustPost Registered' ), 'insured' => (object) ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Read in Haskell It's possible to use the Scheme primitive read, which consumes a stream of characters and outputs an s-expression (sexpr). I'm trying to write a parser in Haskell. What is the equivalent of the above? How would I implement it so that, if passed "{+ {- 3 4} 7}" it returns (list '+ (list '- 3 4) 7) (or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does a HTTP Proxy utilize the HTTP protocol? a Proxy RFC? How does one go about implementing a HTTP proxy compared to implementing a HTTP webserver, what are the differences? Is there a definitive guide or RFC or a helpful book on this subject? A: A proxy is very similar to a server; the only difference is that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: empty ui:repeat, is the component created? I am trying to debug an issue with the following code: <h:panelGroup id="items"> <ui:repeat value="#{itemController.items}" var="item"> <h:form> <h:inputText id="title" value="#{item.fields['Title']}"/> <a4j:commandButton action="#{dao.storeItem(item)}" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redis: possible to expire an element in an array or sorted set? Is it currently only possible to expire an entire key/value pair? What if I want to add values to a List type structure and have them get auto removed 1 hour after insertion. Is that currently possible, or would it require running a cron job to do the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "150" }
Q: In Codeigniter: How to identify the model and controller of the views? Is there a way to identify the model name and controller name of the views like print_r($model) or print_r($controller)? For example: view.php <div class="data"> <?php echo "this is from".$controller; echo "this is from".$model; ?> </div> A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can a child process return two values to the parent when using pipe()? I have my child process counting the frequency of words from a text file. I am using pipe() for IPC. How can the child process return both the word name and the word frequency to the parent process? My source code is in C and I am executing i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I display a native iOS/Android UI control/element in an HTML5 app? LinkedIn does this LinkedIn says the following about their new high-performance mobile app: “There’s this battle between HTML5 web apps and native apps. But we’ve interspersed HTML5 in the native app, where web-based content excels. The thing...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Android, HTTP GET not returning I have an Android app that sends commands to a robot via HTTP. (The robot server is written in Python using the BaseHttpServer class.) I'm setting up my connection in the app correctly as far as I can tell, but most requests fail to return and if they do there is a very long delay. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails add value to instance variable I'm extremely new to RoR and am experiencing a roadblock in my learning. I created a scaffold against a performers db table that has a foreign key tie to a genres table as a lookup table for the performers genres. What I'm attempting to do is to use the the genre_id from the curr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to change the scale of UIWebView after loading an online web page? I would like users to pinch in my UIWebView and already set the ScaleToFitPages to YES. The page content does not contains anything like <meta name='viewport' content='width=device-width; initianl-scale=1; maximum-scale:4; ....'> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: request size problem in apache + weblogic with mod_wl.so We´re using apache (2.0, with ssl) to proxy the requests to a web service installed on weblogic. We have mod_wl.so installed, and all works fine with small requests. However, with larger requests (say, 300 KB), the apache stalls and display this error message:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Put current time date in hidden field I would like to put the current time/date into a hidden text field with the format 19:19:09 Sep 27, 2011 <input type="hidden" name="current_date" value="" readonly="readonly"> Thank you A: http://php.net/manual/en/function.date.php <?php // Assuming today is March 10th, 2001,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best Way To Store Tons of Data I'm working on an application that will need to pull from a list of data depending on where the user is located in the US. In a sense, I will have a database full of information based on their location, and a condition statement will determine while value from the list to use. Example ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Layout with 2 TextViews on left and CheckBox on right has text over checkbox I am trying to have a complex ListView that has a Title and Description on the Left side and a Checkbox on the right side. I am doing this, but the text on the left is going over the Checkbox on the right. How can I prevent that? My...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: observer-only jgroups cluster members? We are using jGroups to build two clusters: "server" and "app". They are independent clusters, running on different machines (communicating with each-other over JMS). Some of our code needs to run on only one node in a cluster, so we use the "coordinator" / master concept in jG...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How are heaps created in mixed language applications? We have a front end written in Visual Basic 6.0 that calls several back end DLLs written in mixed C/C++. The problem is that each DLL appears to have its own heap and one of them isn’t big enough. The heap collides with the program stack when we’ve allocated en...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating a constant time data structure for DOM element references Relevant discussion. I understand I can build an array of references to elements/nodes. I realize also that I could use the neat trick of treating an array like a heap (index 2n and 2n+1 for children) to build a (potentially wasteful) binary search ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I jump from while(getline(cin,tmp))? I am reading 'generic programming and the stl' in chapter1, this is a sample like this, int main() { vector<string> v; string tmp; while(getline(cin,tmp)) //problem is here, it keep asking me to input value v.push_back(tmp); sort(v.begin(), v.en...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: xcode import corresponding files I get an error when I try and import corresponding files. i.e. UIViewController "VC.h" Imports "CustomObject.h" CustomObject Imports "VC.h" Starts giving error expected specifier qualifier list before Any ideas? I want both objects to be able to call each other. Thanks A: You have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DATABASE: Mysql.com was hacked twice this year should we still use mysql for our database? Last March(2011) http://techie-buzz.com/tech-news/mysql-com-database-compromised-sql-injection.html This Month(2011) http://www.pcworld.com/businesscenter/article/240609/mysqlcom_hacked_to_serve_malware.html A: Actually, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: question about python GUI So I am taking a digital image processing class that requires implementing some image filters, reconstruction, enhancements. I plan to use python for it but my professor wants to have a simple GUI with two canvas for pre- and post-processing images, a drop down box for filter selection, som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Incompatible Pointer Type Error, sws_scale, ffmpeg My code is very straightforward; it consumes YUV420P data, resizes it, and produces a PNG or JPEG image (OS X Lion, Apple's gcc 4.2.1). It works fine; I'm using ffmpeg (HEAD, as of mumble days ago), but when running in -pedantic-errors mode (which I like to do fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: db2 SQLCODE -668 when inserting While I was inserting data into a table (db2), I got this error: Message: Operation not allowed for reason code "7" on table "ELSAG.ICGR1106".. SQLCODE=-668, SQLSTATE=57016, DRIVER=3.50.152,... when I googled it, I found that the previous ALTER TABLE statement attempted to add a col...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: How to prevent AJAX generated content to be indexed by search engines? i am injecting some text into my pages but i need to prevent search engines from indexing it. I read that some engines are able to read this content now. How can one prevent them from doing so? A: Search engines cannot read Ajax content yet. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what is the correct syntax of BLPOP on Predis? I do it like this: $r = new Predis\Client($single_server, $options); $retval = $r->blpop('queue:query'); But I get this error: ERR wrong number of arguments for 'blpop' command Whenever I do this $r = new Predis\Client($single_server, $options); $retval = $r->blpop('qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why doesn't the where query work in postgresql? I have a ruby on rails app in which I am querying for a boolean column, Flag. The code is: Merchant.where("Flag=?",false) However this does not work at all and the only result is that the Merchants table does not have a column name "flag". Is there any way to fix this?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Silverlight Grid does not fill I have Border control defined like so: <Border Background="Azure" Grid.Row="2"> <ContentControl Width="Auto" Height="Auto" Regions:RegionManager.RegionName="MainContent" /> </Border> I can see Azure background in whole area Now I inject my view into this ContentControl (it's PRISM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamically add addthis to certain part of the page with jQuery I am trying to dynamically add the Addthis widget to a certain area of the page with jQuery. The following code works fine except in IE where it does not show at all. jQuery(function(){ if (typeof global_Current_ProductCode != 'undefined'){ jQuery.g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to install multiple instances of the same application using msi Installer I am using visual studio set up project to create my msi Installer.My requirement is to create multiple instances of the application using this same installer without changing version number/product code. Is there is any way to do it with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Displaying a google map on iPhone simulator - Phonegap I am running Mac OSX Lion and Xcode 4.1.1. I created a new Phonegap project and in the index.html, I added the following code. <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-sca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating aggregate node via XSLT with kicker I don't think well in xsl, so I'm having trouble comprehending how to handle this. I need to make an aggregate of the quantity, but grouped by the id in the attribute in the parent node. I'm thinking this should be a horribly simple recursion template, but I'm having tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP problem with concept I am creating a form in php. ai have given address of other file in action. LIke I have created A.php, and in action of A.php I have given address of processing file, Like takeinput.php. But now I have issue is I am validating A.php in action file that is takeinput.php. Suppose if name field...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Map a set of values in python What would be the best approach to do the following: if lang=="en-US": chapter="chapter" if lang=="fr-FR": chapter="chapitre" # etc. Essentially I'm looking for a mapping that would do something like: lang = ['en-US', 'fr-FR', ...] --> chapter = ['chapter', 'chapitre', ...] Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to monitor open file descriptors in Ruby on Rails? Background: I had an issue with my Rails server recently where it would stop responding, requiring a bounce to get it back up and running. This issue was due to a controller that does some forking upon receiving a POST, to do some heavy-weight concurrent process...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to insert data to php numeric array I am trying to inset data to a numeric array php graph. I tried to do it this way: $query = "select id,sales from riders"; $results = mysql_query($query); while($row = mysql_fetch_array($results)) { //$rider[i]=$row['id']; $rider[$counter]=$row['...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show loading animation if browser supports JS I want to show loading animation if browser supports JS. if JavaScript is disabled then the image will show but never be hidden, in this case. For this purpose I wrote this code directly after the <body> tag: <?php $results = get_browser(); if ($results["javascrip...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically generate conf file during make I have a conf file that is of the format: name=value What I want to do is using a template, generate a result based on some values in another file. So for example, say I have a file called PATHS that contains CONF_DIR=/etc BIN_DIR=/usr/sbin LOG_DIR=/var/log CACHE_DIR=/hom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Determining angle of line In Silverlight, is there a way to determine the angle of a Line object? If I have a Line with coordinates of 0,0 - 30,80, is there a way to determine the angle, in degrees, that the line is running? A: You could try finding the arc tangent using the Math.Atan function. You just need to fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Heap memory problems There's a WCF self hosted service that must work 99% of time. Sometimes we got some memory troubles like this: But service is working as usual after that issues. How can we manage this? Any tips and points to make robust services that will survive in different except situations are very very we...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: css formatting in php I have a css question. I have the following php code which displays a name. while ($db_field = mysql_fetch_assoc($result)) { print $db_field['ship_name'] . "<BR>"; I'm trying to add some text style to it but I'm not that good in css and I'm somehow lost. I'm trying to do something lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any way to input a string in C++? Is there any alternative way to input a string (along with blank spaces) without using std::string in C++? I know, std::string is the standard way. But, I am just curious. A: std::istream::getline(char *, streamsize) Stolen shamelessly from http://www.cplusplus.com/referen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: How can I create custom SEO-friendly URLs in OpenCart? How can you customize system URLs in OpenCart? For example, I would like http://example.com/index.php?route=checkout/cart to be displayed as http://example.com/cart I know OpenCart provides SEO URLs for products, categories, manufacturers and information pages, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: URL rewriting variable name I am trying to rewrite an URL so that a passed variable is replaced with a new id, for example; wwww.domain.com/default.php?s=1&lang=en To be rewritten to: www.domain.com/default.php?id=1$lang=en The s variable being replaced with id I have tried: RewriteEngine on Options +FollowSymlinks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Besides AND/OR/NOT, what's the point of the other logical operators in programming? I've been programming nearly all of my life (around 20+ years), and I don't think I can remember a single time when I was looking at a if-statement and think "Hmmm, this would be a good time to use XOR." The entire logical programmi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Like Button: Make Facebook NOT take specific images I'd still like my users to have a choice of image to select when sharing links from my site but I would like to restrict certain images from showing in the Facebook sharer. I don't want to select a specific image using meta tags (this has been suggested often). Wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Cannot Install into iPhone Simulator I've got an Xcode project that I've been working on over the past few weeks. I just made some changes to an embedded framework that I'm working on (recompiled, to be specific) now, however, I am unable to launch the application in the simulator. The app hangs on "Attaching to [ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Slickgrid - How to update dataView with changed data I'm using grid.onBeforeEditCell event to make a one-click YesNoCheckboxCellEditor. Not sure if this is the best way to do this, but here is the code I created for this: Slickgrid - One-click checkboxes? This works fine, but setting the data[] array directly doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does there exist a Python IDE that allows one to emulate C#-like intellisense for autocompleting method calls on an object? For example, suppose I have the code: class Foo(object): def bar(self, x): '''blah blah blah''' return x+1 And suppose I am creating another class, that has a method that takes an in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to load these facebook plugins on Dom Ready They take so long to load, I want to do it after Dom loaded. <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what does "movl (%esi, %ecx, 4), eax" imply? What does it mean to have these 3 instructions as the source of a movl instruction? (%esi, %ecx, 4) A: It means: Calculate Address = (ESI + ECX * 4). Read the value into EAX from 32-bit value at that memory address. From the linked article: GAS instructions generall...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Need the settings of SQL developer "F5" I need the settings in SQL Developer while performing the action Run as Script -f5. Since, if I use sqlplus. it is not giving the exact result format what I want. But, in SQL Developer gives the needed format. I tried in all kind of settings, its not giving the same as SQL Dev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring and Jackson Json: serialising two different sets of fields I've a Classified interface, annotated with @JsonAutoDetect with Visibility.NONE, so I can pick individual getters to be serialized with the @JsonSerialize annotation @JsonAutoDetect(getterVisibility = Visibility.NONE) public interface Classified { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Video Will Not Work On IE8 Here is my code: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="322" height="266" align="Default*"> <param name="allowScriptAccess" value="sameDomain"> <param name="movie"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I'm in trouble with inheritance and polymorphism in C++ I'm new to C++, and I'm trying to use inheritance but I have an error. It says Error 6 error LNK1120: 2 unresolved externals L:\2011-08\C++\Assignment\Drug Management\Debug\Drug Management.exe 1 1 Drug Management There're three classes which are Anim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what does the term rep-invariant and rep ok means? I heard this a lot when talking about software engineering and abstract data types, what does this do? Can anyone give me a concrete example of this concept? A: A representation invariant is a condition concerning the state of an object. The condition can always be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Better Table Design Me and a few others are currently working on a game that will be using MySQL to save characters. We presently have a table that holds character information (username, password, id, inventory, and item storage chest). We are trying to think of the best way to handle the item storage chest data. As...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Object references in WinForms PropertyGrids Say I have a class called StaffMember and it has a member variable of type Position. If I have an enum which defines all possible positions, then when I load the StaffMember object into my PropertyGrid, I can see a drop-down box allowing me to select from the positions def...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to encode url parameter in Joomla I am working with Joomla component Problem is: I have an URL like this http://localhost/Joomla_16/index.php/component/mycomponent_name/?view=mycomponent_view&cre=15 I want to encode the value of &cre=15 How can I do that? Thanks in advance. A: Problem solved It is easy. Using...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Perform uneven stretch draw with Delphi OK, this is something that is best explained with an image... I am looking for a function similar to StretchBlt but where i can copy an image to a canvas defining the four corners of the destination, i.e. a Trapezoid/Quadrilateral stretch draw of an image onto a canvas. I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Facebook insights domain_widget_likes -> lifetime don't return results? I'm doing a query to get the total likes for a domain and I am using the following: https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=xxxxxxxxx AND metric='domain_widget_likes' AND end_time=end_ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In app purchase for auto-renewable content prompts user to share information I am adding the ability to purchase auto-renewable content through the iOS SDK's StoreKit API. When testing this in the sandbox on my iOS device, the following message appears in an alert after agreeing to purchase: Share your Informatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Nested presenters with GWTP I have content slots in my mainpresenter, how can i put, when app load, put the home presenter in one slot and the menu slot in the another ? or isn't possible? thanks in advance. A: Yes you can ! In the following example code, I assume that your HomePresenter is a place and extends Pres...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: JQuery Ajax call for PDF file download My question is similar to Download and open pdf file using Ajax But not exactly the same , the reason I want an JQuery ajax is that my file is being generated dynamically from the data which would be fetched from the same page. So basically I have a Json Object which needs to b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Need help to figure out why current code does not work with current latest (1.6.4) version of JQuery Below is the code, the program is split into two main segments. One that performs operation on each Select element and the other on all the option elements within this\each select and this one does not work as it sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data validations while transforming data in Pentaho How do I check for foreign key validations while using Pentaho for transformation? Like I would like to transfer one table named employee from a source MySQL database to another target MySQL, and if the employee table in target MySQL database is linked to a country...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deducing string transformation rules I have a set of pairs of character strings, e.g.: abba - aba, haha - aha, baa - ba, exb - esp, xa - za The second (right) string in the pair is somewhat similar to the first (left) string. That is, a character from the first string can be represented by nothing, itself or a chara...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problem in running .net framework 4.0 website on iis 7.0 Hey I got problem in running .NET framework 4.0 website on IIS7.0. the error I got is like: HTTP Error 404.2 - Not Found "The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server". Module : IsapiModu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "119" }
Q: How to change the text of an anchor when clicked with the mouse? This is my website. http://www.sarahjanetrading.com/js/j/index.html All the code+images+css is there with access to anyone When anyone clicks on the listen button its background changes into the stop listening and vice versa. This is the functionality ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to inline wrap layouts? How do we make inline layouts in Android? Something like this: I tried using margin right in Relative layouts but they are separated into 2 columns instead of wrapping each other: <RelativeLayout android:id="@+id/Container" android:layout_width="fill_parent" android:layout_h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tracking history of a branch How can I see the history of a particular branch? I have been creating and merging branches. However, on one particular branch say for example new_feature. I want to know the history of what has been merged into this branch, and what branch this was created from? The reason is I have thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: how to implement swf address navigation in struts 2 I want to implment swf address navigation in struts 2 like twitter and facebook navigation. I meant to say for each page user navigation header and footer and some common components across the websites will not be loaded for each user navigation. in some sites like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Meanings of dollar sign in Java method descriptor? For example, its part of the Jikes RVM stack. at [0x70cfba90, 0x708cfaa4] Lorg/apache/lucene/index/SegmentInfos; **access$000**(Ljava/lang/String;)V at [0x70cfbb04, 0x708b55c8] Lorg/apache/lucene/index/SegmentInfos$ FindSegmentsFile; run()Ljava/lang/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: JS error 'redeclaration' of var when it's first line in program? SCRPT5039: Redeclaration of const property line 1 character 1 line1: var editObj = null; This is the beginning of the file and I checked to make sure that variable is not in any other js files being called. Is it saying that I redeclare it later? (if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: PHP/GD Library Imagettftext save image on server and send to browser I am overlay some text on an image (that is already on my server) using GD. I am trying to save the new image on the server. Below is my code but all it does is show the new image to the browser it doesnt save it to the server. <? //PHP's G...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Quartz.NET job configurared to run once daily works the first day but fails to fire on subsequent days I've configured quartz.net within my asp.net application and I have a job set to run daily at 1am. If I change the job-config.xml file to have the job run in 2 minutes time, the change is automatically picked up wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What exactly am I supposed to do for OAuth 2.0 and https update? I am a php developer. I created an application using fbml(non iframe) and didn't check roadmap regularly. Today I received an email saying update to OAuth 2.0 and HTTPS by October 1st or the apps may be disabled. I went through the documentation but co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using GPS to two location (Position 1 to 2) , OnLocation Changed I am targeting of using Android 2.2 to find distance using GPS however there are some problem in regarding my on Location changed. Previously, I put my code at On click listener and it does not work well. I manage to get the distance only after pressin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }