text
stringlengths
8
267k
meta
dict
Q: Subtraction of 2 negative integer (two's complement) never overflowing I came across this in a computer architecture textbook: Subtracting a strictly negative integer from another strictly negative integer (in two's complement) will never overflow. The textbook doesn't go on to explain this assertion. It piqued my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Keymando 'Reload' Command I have never gotten this 'reload' command to work ... regardless of the mapping ... currently using ... map "<Ctrl-Cmd-r>" { reload } # not reloading either Could you provide another example? A: This is what I'm using, using a mnemonic with the growl plugin: def reload_configuration lam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File decompression memory footprint I want to process audio offline on iOS, but have a query regarding memory usage. If I use AVAssetReader to decompress an MP3 to raw PCM data, the memory footprint would be huge. So how would I go about processing (offline FFT) an mp3 file if decompression would lead to the app usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best practice when creating reusable corporate namespace Alright, this has been on my mind for a while now. I'm in the process of creating a reusable corporate namespace(class library) for all common middle-tier objects. This assembly can then be referenced by any of our developers during the development phase of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Trying to display output of Stored Procedure in console Hello I'm having trouble displaying the output of a SP in a console window using C#. Here is the SP code first then the C# after that. (SP code (Updated with SP code)) - GetDepartmentName stored procedure. IF NOT EXISTS (SELECT * FROM sys.objects WHER...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to download data asynchrnouslly Please see my code package com.morris.eventHandling; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.StringReader; import java.net.URI; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.apach...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does using NoSQL make sense for a non-distributed system? (trying to understand eventual consistency) I have been reading and learning about NoSQL and MongoDB, CouchDB, etc, for the last two days, but I still can't tell if this is the right kind of storage for me. What worries me is the eventual consistency thing. D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Uncompress GZIP http-response (using jersey client api, java) Could someone tell me what I need to do in order to uncompress a GZIP content when getting the response from some Http-call. To make the call I use the Jersey Client API, see code below: String baseURI = "http://api.stackoverflow.com/1.1/answers/7539863?b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: DTMF Tones take a while to play I am working on a phone app. I have a dial pad grid view with buttons. I have a tone generator object created in onResume method. I also use a lock object. On click of any digit, i use the tone generator object to play a DTMF tone corresponding to the digit dialed using .startTone me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: R with CGI Web Interface - Most flexible option I have been exploring some options for implementing an R Web interface where users will have the option of selecting certain criteria, for eg., date ranges, plot type, etc. The issue is that a number of the R web interfaces that are listed in CRAN seem to have been las...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Standard approach to determine success or failure of fork/exec (while parent is running simultaneously)? I made a program using fork() and exec*(). The problem is I can't determine success or failure of exec() from parent process because it's on separated child process. I think kind of signaling can be used to check...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: inheritance problem in php i am learning php for a few weeks now and wanted to know what programming technique should one use while writing web applications such as a user management system.. i googled about it but still didnt get a clear view whether it should be strictly object oriented like java or may use proce...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript prototype confusion Possible Duplicate: Javascript - this Vs. prototype This article says that prototype object can also help you quickly add a custom method to an object that is reflected on all instances of it. But this code (without using prototype object) also adds method for all instances: functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: heroku run console returns 'Error connecting to process' I have deployed a rails 3.1 app to Heroku Cedar stack, and am trying to perform a: heroku run rake db:migrate it returns: Running console attached to terminal... Error connecting to process I also try to simply launch the console: heroku run console Any r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Multiple Audio Player can someone please tell me how I could program a small app with page turning effects (sound). I want I someone click on the Next button the sound plays for 1sec and takes me to the second page, and from the second page, if you click on the Back button, another sound plays for 1sec and takes you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django inherited template causing malformed html I'm using django 1.3 and Python 2.6. I'm running into a problem with inherited templates not being rendered correctly in a browser. I've tested with Win32 Chrome, Firefox and IE8. The output looks perfectly fine when I use curl, and it certainly is well-formed in my t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eclipse 3.7 cannot install any plugins I just installed eclipse 3.7 and cannot install any plugins. In the dropins folder, from the market place or the software install option. Find-bugs, sub-eclipse, google plug in etc..., none will install. I keep getting a message like this: Unable to read repository at http://su...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display an image in GAE datastore? I read the tutorial and all the sources I could find about displaying an image saved in datastore and still I could not make it work. I appreciate any help. This is my previous question. The code below, for /displayimage shows broken link for the image; and for /image it giv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sharing Registry Space across Multiple Clusters in WSO2 By using this guide, I have accomplished to establish a cluster of Carbon products, and change configuration of individual nodes by changing deployment in _system/xxxConfig which is under resources in G-Reg(Governance Registry). On the other hand, I want to tak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why doesn't child process continue running after receiving signal? The following is my code. Parent forks a child. Child pause until parent sends a signal to it, then it continues running. My question is why doesn't child process continue running after parent sending signal to him. Did I miss or misunderstand some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Help with jQuery Multiple File Upload Plugin please I am having some trouble with a jQuery plugin for multiple uploads. I am using this plug in http://www.fyneworks.com/jquery/multiple-file-upload I have followed all his instructions and got it to work locally however for some reason it does not show the multiple at...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the benefits of Interface in PHP5? As you know, we can use Interface and Implements in PHP5. I used Interface in Java SE but It's useful there only for listener or ... but I can't find any benefit of Interface in PHP5. Please help me understand benefits of Interface in PHP5. Thanks for your advice. A: In a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Refresh draggable/droppable I have draggable/dropable tree where user can add new elements. After user click add button new element adds to tree. How can i refresh tree, draggable and dropabble works on new added element : $("li.tree_item a").droppable({ tolerance : "pointer", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ant Fileset to Comma Separated List I'm trying to pass a fileset to a macrodef, and have the macro generate a comma separated list of the classes. More over, I also need to change the list to contain java package & class names instead of "/" delimmited names. We're using Ant, OSGi, and bnd and what I'm ultimately t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add UIView to Application at runtime I should add a UIView to an application, I use: UIWindow *window = [[UIApplication sharedApplication] keyWindow]; [window addSubview:view]; But it only work on SpringBoard. Have anyone an idea? A: There is nothing wrong with your code and it will work. If it doesn't, view might...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CakePHP - How do I link these models together (that requires use of a relation table)? I'm currently using CakePHP 2.0-RC1. Being pretty nifty and all, I've only come across one challenge that I can't wrap my mind around. I've read the documentation on linking models together (http://www.cakedocs.com/models/associat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you find out if a user has installed my app? I need to work out if a user has my app installed so I can display a slighlty different page. How do you do this? A: Ideally you'd want to capture their Facebook user ID in your own database when they originally install your app. When they come back, you can comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MongoDb how to find previous and next item in a list suppose I have a collection with a following structure { '_id': 'some id', 'items': [item1, item2, ..., itemN] } .... can you help me, how I can find previous and next item if I know 'some id' and itemK Of course I can just return all items and later parse them o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: httpclient redirect for newbies Possible Duplicate: Httpclient 4, error 302. How to redirect? I want to retrieve some information from my comcast account. Using examples on this site, I think I got pretty close. I am using firebug to see what to post, and I see that when I login I am being redirected. I don't u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FBML App - Important Questions for October 1 changes I have Some Questions for October 1 changes - * *For old FBML based Facebook Canvas Apps, do we need to enable secure canvas url? *Will the old FBML apps stop working if https is not enabled on the server? *What code change do we make to convert he old fbml ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to Export wordpress database from web matrix I have WebMatrix version 1. I made a WordPress site and now it's time to publish it. From what I've read, the best option is to publish the site from web matrix using the web deploy option. But my hosting (godaddy) doesn't support this feature. So I have to upload my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When does code belong in the model in ruby on rails? Currently putting in a lot of rails 3 practice and I was working on an authentication system and was following a tutorial on railscasts. Ryan from railscasts done a sort of update to that tutorial with some minor changes to take advantage of rails 3.1 e.g. has_sec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NSMutableArray adding/removing objects + NSUserDefaults I want to make a "Favorites" in my RSS reader. My RSS parser is parsing a RSS feed to NSMutableArray, and then object "item" is created from part of my rss (selected post). My code: //Creating mutable array and adding items: - (void)viewDidLoad { i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jquery confusing code I am learning Jquery and Javascript from web examples. I have a good working knowledge but some code still trips me up. The following code is used for a shopping cart to hide the check out button and replace with a div displaying a message about minimum cart requirements. There is a part of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is PDO::lastInsertId reliable with very rapid inserts? I'm using the Yii PHP framework which has a function PDO::lastInsertId that's apparently just an implementation of PDO::lastInsertId. If my application has very rapid inserts from possibly thousands of simultaneous users, will this function be reliable to get th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MPMoviePlayerController notification question Good Evening Fellas! Is it possible for me to get a notification from an MPMoviePlayerController while it is playing a video. I mean, if i am able to get it every second, millisecond etc. I have an indicator for the video current playback time that i want it updated con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Save to file open by openfiledialog (C# 2008) What I am trying to do is most likely very simple but afters spending hours I still cant figure out how to do it correctly. I am able to open a text file using the openfiledialog but cannot figure out to save back to that same file. I would like to also be able to check ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run "rails s" I have a problem running rails s in Ubuntu. When I type rails s it doesn't start the server, but instead it outputs: kyala@ubuntu:~/depot$ rails s Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: XML: Back tracing parent element I am looking for solution to my problem related to XML in python. Though spectrum is not a root element let's suppose it's for this example. <spectrum index="2" id="controller=0 scan=3" defaultArrayLength="485"> <cvParam cvRef="MS" accession="MS:1000511" name="ms level" va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Printing first field and (and only) matching fields in record, using awk I really don't know if awk would be the appropriate tool for that task... Maybe something in python would be better. Anyway, I thought asking here first for the feasibility of the task. Here we go : Datas : ### offspr84 175177 200172 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: Help with basic outputting basic value arithmetic. Getting 0 for output, don't know why? I am having some issues doing basic math with Java. I don't know why I am getting 0 as a result of multiplying n*n*n only in one case. (see below) I need this not to be zero because I have to divide timing/n*n*n to get tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to read a file from a lift webapp I want to read xml file in my lift app: val data = XML.load(new java.io.InputStreamReader(new java.io.FileInputStream(filename), encoding)); However, I am getting java.io.FileNotFoundException. where should I put the file, and what is the correct path from my scala code? BTW -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android two sliding drawer in a single view I have to insert 2 sliding drawer in my view. The slidings have to be at the same height( one at the right of the other) and when they open, they have to occupy the entire width of the screen. If I put them in a Relative layout and I use android:layout_toRightOf, at the op...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a simple dynamic slideshow/timelapse I have a folder where are saved images from a webcam each X time. I want to use these image to create a slideshow without transitions effects or music => i want to make a timelaps! These slideshow must be dynamic (i can use php to build the list of image, each time a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android and muting music when i want to play a custom voice message here's the requirement. While in the Gym working out, they play this training program in the loudspeakers, and every 30 min it say "Change Station". I cannot here this since i have my headphone music. I i create a small Timer controlled Servi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: About UTF-8(Uyghur) language support on Android 3.2 OS I found there are no RTF-8 and RTL language support on Android OS 3.2. I use Sony tablet S, current system is Android 3.2 There are 10 million Uyghur people are living in this world. but I fount Uyghur language and some Arabic fonts become very strange mark on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iOS - Disable or editing animations of CATextLayer I working with a CATextLayer var and when try to increase the font or type something in this string there is an animation effect with these actions , How can I edit or disable the animation of CATextLayer ? A: You can do this by setting the actions dictionary on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HMAC-SHA1 Example not returning desired hash? I am using this example: http://msdn.microsoft.com/en-us/library/aa382379%28VS.85%29.aspx Directly copied and pasted, and using the following link as a reference for checking the digest: http://buchananweb.co.uk/security01.aspx I am confused on what I am doing wrong. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I load a dll in such a way that it can be deleted while it's loaded? The title pretty much says it all.. What I'm trying to do is write a tool that will monitor a dll file containing a plugin and when I overwrite it, by recompiling, it should automatically reload it. I know I can make a copy, load the copy and m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Page refresh (F5) always causing form to submit a bit new to CI, googled and overflowed alot and still got no answer * *User enters site. *After succesful auth got redirected to main page *Link on the url stays the same with class/method *If u refresh page on a main - u always got question about repopulate for...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i convert this Js function to Anonymous function in jquery this function is called on Load how do i convert this to jquery Anonymous function . I tried but it is giving me Object Expected Error . Moreover I have made call to the below setTab() in 20 files so i cannot Change the Signature of the calling it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Web app using API for everything? I'm about to start planning an internal project management tool for my company. One thing that has always led me wondering is APIs. Would it be seen as bad practice / too inefficient to create a API first and build the actual site using those API calls rather than implement it twice...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to process huge XML file fast? I need to develop a program, for posix systems, for parsing an xml file, on average 300Mb, and inserting the data in a relational database. The time factor is very important, both in developing and running the programm. I have a certain generic background in C, Ruby, Python and Ja...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: determine if array of bytes contains bytes in a specific order Possible Duplicate: byte[] array pattern search Let's say I have an array of bytes: byte[] myArray = new byte[]{1,2,3,4,5,6,7,1,9,3,4,3,4,7,6,5,6,7,8}; how can I determine if myArray contains bytes 9,3,4,3 in that order? do I have to iterate through ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Flash Player AS -> webcam get buffer bytes I am working on a flash video chat system. I need to get the video buffer bytes from the webcam to be able to transfer the video content over a socket server. I am not sure how to do this, does anyone have any ideas? Thanks. I know how to use the webcam basics, the code: va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Question about aggregate functions with GROUP BY SQL Server I have for example 10-15 fields in table different types (varchar, nvarchar, int, float, datetime e.t.c.) and i need to make GROUP BY, so. What function of aggregate i have to use on all of this fields? MAX or something else? Is it important? SELECT int...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get execution time in milliseconds in R I have read a solution to this using tic(), toc() functions tic <- function(gcFirst = TRUE, type=c("elapsed", "user.self", "sys.self")) { type <- match.arg(type) assign(".type", type, envir=baseenv()) if(gcFirst) gc(FALSE) tic <- proc.time()[type] assi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How to remove a header in PHP below 5.3? How do we remove a header (e.g. Last-Modified) that has already been set but not yet sent over the wire? (It may have been set by Apache, "pre"-PHP, and whatnot.) I'm currently using PHP 5.2.17 and header_remove is an undefined function. To be clear, I do not want to send a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the smoothest way to update haskell platform to latest? I'm on OSX 10.6 and I have platform 2010.2.0.0 currently. Should I just install 2011.2.0.1 on top or is there an update mechanism that will be smoother? A: I've definitely had bumpy upgrade experiences with the Haskell Platform. If you have enough troub...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: SVN Ignore situation I have a setup like this. * *SVN Repository *Live Site *Dev Site *Local Copy SVN Repository is identical to Live site. Every different sites have different config file, local.xml. Some clients are windows/toitoise and some clients are linux servers which I have SSH access to. My requirem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue with memcpy I am developing in Cocoa / Xcode and have an int * array containing values. When I want to use memcpy to shift values in the array, it transfers only 0s. e.g. * *Array contains values as 1 2 3 4 *memcpy(array,array+2*sizeof(int),2*sizeof(int)); result: 0,0,3,4 Is there a better alternative to m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with apache mod_rewrite and 404 pages I have a custom 404 error page, and a mod_rewrite rule. If I access a page that does not exist, I get my 404 error page. My problem is that if I issue a 404 header from my php page, it does not open my 404 page, instead, I get this: Not Found The requested URL /index....
{ "language": "en", "url": "https://stackoverflow.com/questions/7546969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CMakelists.txt is ridiculously complex to get windows and mac to work, is there a better way? I have been getting a CMakeLists.txt together to compile what right now is an SFML sample in preparation to do my own source code. It feels like a hack, even though it works (Mac Makefile, VS nmake, VS solution) right now. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Random resize problems Android tablets I have app on the Android Market called Speed Anatomy. It has been working and stable for months. Now before Android 3.2 came out with its pixel-scaling feature, my (canvas based) app appeared un-scaled on some tablets with a large black border. I ended up implementing pixel sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How would I run jquery code once a value is selected from a dropdown list? The HTML involved is similar to this: http://i.stack.imgur.com/a88XG.png I cannot change the html, it is auto generated. I need to perform an event once a specific "option" is picked from the dropdown list, however at the moment I can't refe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android ListView shows only last item I'm working on project with listview,but I have a little problem. I'm using SimpleAdapter so I can change the view of my listview,but it shows only the last element.Here is the code : private ArrayList <HashMap<String, Object>> items; private final String TIME = ""; @Ov...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Editing a BIG XML via DOM parser If there is a very big XML and DOM parser is used to parse it. Now there is a requirement to add/delete elements from the XML i.e edit the XML How to edit the XML as the entire XML will not be loaded due to memory constraints ? What could be the strategy to solve this ? A: You may c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rackspace CloudFiles .NET library: delimiter query parameter? Is the 'delimiter' query parameter implemented in the c# (.NET) library? I could not find it. Ref.: http://docs.rackspace.com/files/api/v1/cf-devguide/content/List_Objects-d1e1284.html A: Changes implemented and closed issue #52 on Github Download here
{ "language": "en", "url": "https://stackoverflow.com/questions/7546983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error when using OleDB or ODBC in C# application I have a windows application and I have this code: private void saveToDatabase_Click(object sender, EventArgs e) { // Save the DataSet Appointments table to the database. KaznetiTableAdapter ta = new KaznetiTableAdapter(); ta.Adapter.RowUpdated += new Ole...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using ++counter instead of counter++ in for loops Possible Duplicate: Is there a performance difference between i++ and ++i in C++? I saw many places where they use for loops like this: for(i = 0; i < size; ++i){ do_stuff(); } instead of (which I -& most of people- use) for(i = 0; i < size; i++){ do_stuff(); } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Achartengine legend location Does anyone know how to change the location of the legend? I am trying to expand the graph to make use of all the space. So far I have mRenderer.setMargins(new int[] { 20, 30, -50, 0 }); This expands the graph lower but the legend stays in the same location so it is now above the x a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I get jQuery to pull xml from webservice I've been trying to get data from http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=USD&ToCurrency=GBP I want to be able to use jQuery to extract the data, I've tried $.ajax and even : $.get('http://www.webservicex.net/CurrencyConvertor.asmx...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to embed my facebook fanpage wall in my iframe tab? I'm quite new to facebook. I'd like to have an i-frame tab on my facebook fanpage with the wall embedded on the same tab as the example: http://www.facebook.com/avrillavigne?sk=app_178091127385 I have searched for it but haven't found how exactly I can do this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sending developed dom through chrome extension to a webservice I am trying to create an extension to send the developed dom of the current tab to a web service at the push of a button, any one knows how I would go about it? methodology,code or simple advice will be appreciated. I am noob :( A: You need innerHTML: v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: php object array properties if they don't exist First of I think I have tried all the solutions I have come across and still have an issue none the less.. facebookResponse Object ( [__construct:facebookResponse:private] => [__resp] => stdClass Object ( [data] => stdClass Object ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use .show() and .hide() with opener? I have a page with few photos, when a photo is clicked, a div opens using the whole avaliable screen's space to show an album ... like the facebook's photo viewer. Now, I want to press the ESC key and back to the first page ... PS: inside the div showAlbumDiv I call an Ifr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to echo date parts separately I have found place online where they answer different things, but I still don't get how I can apply it to my code. Basically I want the month in one echo-line, and the day-number in another echo. Is there away to do that in my code? <?php // Connects to your Database $data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problem with foreach for an array in PHP while($row = mysql_fetch_object($all)) { $name = $row->name; $email = $row->email; $id = $row->id; $finished_text = ''; $news_content = ''; $buffer = ''; [...] foreach($text_in_array as $word) { if($word == '[NAME]'){ $buffer = $name; }else if($word == '[NA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQLite: Optimize table scans In my table I have some columns that have no index on them, searching for a value in those columns can take very long because SQLite does a full table scan. In my specific case the row I'm looking for (the values are unique) is almost always among the most recently inserted. I suspect th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does IE8 remove the Uri fragment (#myvar=1234) from window.open? I have an issue opening a popup window using Javascript that only seems to occur in IE 8 (8.0.7600) I'm trying to window.open a uri with a fragment, eg: http://davidlaing.com#UserName=CC735158 If I past this into the address bar; it works correct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Separate an Access db into distinct data and interface files? I've seen it done once, but didn't understand why the builder did this. What's the advantage, and if there is one, why is there no example of such an architecture in the literature? I'm just looking for a best-practice approach for a small office of arou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone - sorting "10, 20, 30" the correct order with core data I have a string field on an entity. Every time I want to retrieve a sort list of entries and the entries contain numbers, the list comes like this: car 1 car 10 car 11 car 2 car 21 etc. instead of car 1 car 2 car 10 car 11 car 21 How do I force the req...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: FragmentActivity and Fragments: popBackStack My FragmentActivity manages 4 listfragments (for every listfragment I keep trace of its backstack ) within tabhost. The ListFragment shares a FrameLayout in which they attach their content. Every ListFragment when onListItemClick is fired let's the FragmentActivity start ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: trying to setup a basic join :has_many :through I have a basic Users / Memberships / Groups I want a user to navigate to the Groups#show if the user is logged in they are shown a "Join" button, if the user is not logged they are offered a link to the login/registration. I can handle the if logged in stuff using devi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing endianness in PHP So i'm making a class in PHP to parse the VPK file format. However i've hit a problem: object(VPKHeader)#2 (3) { ["Signature"]=> string(8) "3412aa55" ["Version"]=> string(4) "1000" ["DirectoryLength"]=> int(832512) } The signature is supposed to be 0x55aa1234, however th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SQL Server - DateTime Conversion field Issue Got following fields in table: Run Date : 2011-09-25 00:00:00.000 Run Time : 05:00:00 Run Duration : 03:22:51 What I need is in Dateformat Run Date + Run Time = Start Time of Job (DateTime Format) Run Date + (Run Time + Run Dura...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Store and display image file in Apache Cassandra I have read jpg/png file through string buffer using cassandra Hector APIs. Now i want to show that file on html page. Is there any way to show that file on html page without creating temporary file on local file system. Because I have set up Cassandra in Cluster mode...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to safely replace all whitespaces with underscores with ruby? This works for any strings that have whitespaces in them str.downcase.tr!(" ", "_") but strings that dont have whitespaces just get deleted So "New School" would change into "new_school" but "color" would be "", nothing! A: Old question, but... For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: Best way to store large amounts of different types of data? I want to store a buffer data. I will have to append data to data in the form of BYTEs, WORDs, and DWORDs. What is the best way to implement data? Is there something in the STL for this? A: From the little you've said, it sounds like you want to have diffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can not use template argument in function declaration I'm struggling to find a good reason why the following code does not compile. It gives me the following error. Error 2 error C2923: 'std::pair' : 'std::set::iterator' is not a valid template type argument for parameter '_Ty1' I need a little insight, as to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: updating user profile fields django Should be a simple answer but I can't figure out what's wrong here... I have a user profile with a couple of simple fields. I'm trying to update them like so: if data['dob'] != None: request.user.profile.dob = data['dob'] request.user.profile.save() This doesn't seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bookmarklet that adds a JavaScript function I am currently trying to make a bookmarklet that adds, among other things, a DIV element to the page. I'm doing this by adding the HTML code to body.innerHTML and that works fine. On this DIV element is a button that should allow to hide the added DIV. I therefore tried to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create nested set model without top level item I'm creating a nested set model for a taxonomy database. Basically, I've re-created the same type of setup that wordpress uses for taxonomy, however instead of using parent_id for the term_taxonomy, I'd like to implement a nested set model for taxonomies that are hiera...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Matlab Generating a Matrix I am trying to generate a matrix in matlab which I will use to solve a polynomial regression formula. Here is how I am trying to generate the matrix: I have an input vector X containing N elements and an integer d. d is the integer to know how many times we will add a new column to the mat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I declare a C++ prototype with a void * pointer so that it can take any pointer type? I want to create a function prototype in C++ so that there is a void * argument that can take pointers of any type. I know that this is possible in C. Is it possible in C++? [EDIT] Here is a simplified version of the code t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cytoscape equivalent of graphviz URL/href node attribute when exporting SVG? In the past I've using graphviz's node "label", "URL" (or "href") and "tooltip" attributes to generate SVG graphics where the nodes have the text label, mouse-over displays the tooltip, and clicking the node (assuming your browser is displa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting the status of the phone I have a remote service wich my phone is talking to. When Application_Deactivated gets called it doesn't have enough time to notify the service that is has gone into 'tombstoned' state. How can my service know wether the device is active or tombstoned? Edit: I could imagine polling th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use LocationListener without "implements LocationListener"? i finally reached an app that get's the GPS position of the user, but i reached it implementing LocationListener. it works fine, but i need to do it without implementing it, because i have to do a class that doesn't implement methods. I searched for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does Amazon EC2 Auto Scaling work? I am trying to understand how Amazon implements the auto scaling feature. I can understand how it is triggered but I don't know what exactly happens during the auto scaling. How does it expand. For instance, If I set the triggering condition as cpu>90. Once the vm's cpu usage ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Flash AS3: How to prevent MouseEvent.MOUSE_OUT when you mouse_over a child sprite All, Here's my situation... The UI of my Flash application is a grid. Each row of the grid is a sprite that contains a number of child sprites (UI controls) that respond to mouse events Each row of the grid should have a hover effect -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7547098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }