text
stringlengths
8
267k
meta
dict
Q: Why doesn't the bitwise Not ever work on copied/pasted strings? Simple enough to test: echo(~~"Hello World"); //Echos Hello World echo(~"Hello World"); //Echos �����ߨ���� echo(~"�����ߨ����"); //Echos @B@B@B@B@B W@B@B@B@B Why does it work properly for the two Nots directly on top of each other, but not for the copie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to install svn post-commit hook I am running SVN on Linux. I was hoping to run auto deployment once committed. Based on my searching, it looks like svn post-commit might do the trick. But I couldn't find SVN post-commit from my SVN installation. So I wonder if it's a separate install? Is there any SVN post-com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: ActionView::Template::Error (960.css isn't precompiled) I have an iframe which renders a partial and is not part of the main application layout or asset pipeline. I'd like to include some style sheets, however I am getting this error: ActionView::Template::Error (960sm.css isn't precompiled): Rails 3.1 Heroku ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How can I apply css3 scale to an element's first-letter pseudo-element? I have a paragraph tag with a first-letter pseudo rule. I would like to apply the scale rule to that first letter but it doesn't seem to work. Does the first-letter pseudo element support css3 scale? <p>This is some Text</p> <p>This is some more...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I get Qt4 running with ruby 1.9.2 on Windows 7? Summary I'm writing a Ruby 1.9.2 app using Qt4 for its GUI which I want to distribute on Linux, OS X and Windows. I have the app running fine on everything except my Windows 7 64-bit box. There are working examples of Win7 + Qt4 + 1.8.7, but apparently not W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Hibernate Search Filter not working with Tokenized field I am using Hibernate search 3.3 to search a Lucene index. I have a filter I need to use on a certain field, but also make it TOKENIZED for full text search. What I have found is that when I have the field set to UN_TOKENIZED, the filter works and full text sea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: hiding the cursor in a full screen java application on the Mac using webstart I have a fullscreen Java application in which I need to hide the cursor on a Mac. I've created the transparent cursor as instructed here and elsewhere, which works fine on Windows. It does not work on the Mac. I've tried a both a system co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detecting a movieclip has been Flipped horizontally on the stage in as3 If two movie clips instances of the same movieclip are placed on the stage and one is flipped horizontally in Flash.. Is there a way I can detect which one has been flipped horizontally in code? ScaleX seems to remain unchanged. The MovieClip ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Algorithm to determine size of a room from video feed Does anybody know of a image analysis algorithm with which I can determine how large(approximately, in real-life measurements, let's say width in meters or something) a room is out of one(or multiple) video recordings of this room? I'm currently using OpenCV as m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: validating dates in PHP can anyone taught me a function or a script or some related example where in it would only allow number of days to be inputted? I have a datepicker for choosing the date start and date end... I only want the user to input within a specified range of time/date and if the user overlaps, it will...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongoose failing to validate array properties I'm having some issues with validating an array property in Mongoose. When I use the following definition, my shouldFail method never gets called, and the record always saves. shouldFail = (val) -> console.log "Fail method called with value:" console.log val return...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Ajax requests are getting cancelled without being sent I am trying to hook up a script to Microsoft's World-Wide Telescope app. The latter listens on port 5050 for commands. It is running on the same machine as the browser (Chrome right now, but as far as I can tell the behavior is the same with Firefox 7 and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: Can I customize a BarChart for this purpose? I'm kind of new to using charts in Flex, so you'll have to forgive me if I'm asking something for which there's an obvious answer. I have a need to create a BarChart which acts more like a List component, albeit it should still be a chart. I need items to look somewhat l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting Up SVN for Atomic Commits and Restricted Access We're having a discussion at work currently and I was looking for some advice on SVN setup. Our pattern is that we have a variety of projects checked into SVN, some of these projects depend on others. For example FooWebServices depends on FooCommons. In the ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i implement "doc" function in clisp? In clojure, i can use doc as below: Clojure> (doc juxt) ------------------------- clojure.core/juxt ([f] [f g] [f g h] [f g h & fs]) Alpha - name subject to change. Takes a set of functions and returns a fn that is the juxtaposition of those fns. The returned...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java - events within events? I have a textfield and a button. They have identical actionPerformed event listener. (e.g. when user clicks a button and when user hits ENTER). Is there a way to avoid this kind of duplication of code? It just becomes a pain in the __ modifying the code in 2 places for each such case. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PySide Signal "duplicating" behavior from PySide.QtCore import * class Eggs(QObject): evt_spam = Signal() print "Loaded" a = Eggs() b = Eggs() print a.evt_spam print b.evt_spam print a.evt_spam is b.evt_spam outputs: Loaded <PySide.QtCore.Signal object at 0xa2ff1a0> <PySide.QtCore.Signal object at 0xa2ff1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems with Android CSS spritesheet webkit transforms and animations I'm relatively new to HTML5 and to Android, so any advice is useful. I'm trying to write a simple game in HTML5, mainly targetting mobile devices. I'm using spritesheets for the graphics, and "3d" webkit translation transforms to force hardware a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jenkins - Using the results of one job, in another job I have a job that runs a makefile and generates some files. I then want another job that publishes these files to ivy. I am aware of the clone workspace plugin, but is there any other options? A: My personal preference is to do these sort of things without rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: JQuery and showing / hiding content Why does this not work? I have looked for tutorials online but they only show how to show/hide with a button. I want to toggle the height of an element. $('.oldestinititives').mousedown(function() { $(this).animate({"height": 450}, "slow"); $(this).addClass("pop"); }); $('...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do we use eval to pop a new window? Here is the code that came across with: function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "','....;"); } I don't understand why we are using eval in this case, seems like a lot of website are offering this a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS3 transitions + display none + prevent overscroll So if you're not already familiar, CSS3 transitions do not animate display: none since it removes the targeted element from the DOM altogether. So here's my issue. I have a sidebar with larger popup divs that appear on hover. Unfortunately Since I can only tran...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Strange segfault in C Ok, so I'm not really sure what is going on here. I have a simple function, int foo(char *filename), that takes filename and counts the words in a file. int foo(char *filename){ FILE *inFile; int wordCount = 0; printf("foo\n"); // test printf() statement (currently prints) char ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I fix this Rails AR query to get records that are at least 5 minutes old? What is the best way to write a Rails query that returns records that are at least 5 minutes old? I am using Rails 3.0.1, Ruby 1.9.2 and PostgreSQL. At the moment I have this: Note.order('date DESC').where('private_note = ? AND (?-crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Write stderr on iPhone to both file and console I'm following the suggestion in the answer here for redirecting NSLog output on an iOS device to a file, which works great. The problem is that it no longer shows up in the console on the device. What I'd really like is a way to tee the stderr stream to both the cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Combining Images in java Here's my code: Image partNumberImage = Toolkit.getDefaultToolkit().getImage("D:/partNumber.png"); Image lotNumberImage = Toolkit.getDefaultToolkit().getImage("D:/lotNumber.png"); Image dteImage = Toolkit.getDefaultToolkit().getImage("D:/dte.png"); Image quantityImage = Toolk...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: sql db mail problem while sending in bulk I am using db mail(sql server 2005) to send bulk email(>2000). The code tat i use is, exec msdb..sp_send_dbmail @profile_name = 'My Profile', @recipients = 'raghav.cinch@gmail.com', @subject = 'test', @body = 'test', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Iphone: Does application freeze when run into background? I have an application that upload file to server using NSUrlConnection. It was placed on ViewDidLoad method. It did upload to server while the application is in foreground. Before I call the NSUrlConnection asynchronously, I create temporary file in applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nested INotifyPropertyChanged class won't work got some code what is getting unexpected results: If i replace the nested class with the Myclass, then there is no problem. What do I miss? It doesn't matter if I bind text (to an other control) or bind the image. xaml code: <Window x:Class="WpfApplication1.MainWindow" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Printing a struct using description I would like to know if it is possible to use the description function in the Cocoa framework to log the contents of a struct. For example: typedef struct {float a,b,c;}list; list testlist = {1.0,2.5,3.9}; NSLog(@"%@",testlist); //--> 1.0,2.5,3.9 A: No. The descript...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Set Up Route for Accessing Private S3 Content I've been following https://github.com/thoughtbot/paperclip/wiki/Restricting-Access-to-Objects-Stored-on-Amazon-S3 and Rails 3, paperclip + S3 - Howto Store for an Instance and Protect Access to try and get Paperclip's expiring links to work. I believe most of what I'm r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I collect input from an external window using SDL? I'm currently trying to re-write my binder between Ogre and SDL in my game engine. Originally I used the method outlined in the Ogre Wiki here. I recently updated my version of SDL to 1.3 and noticed the "SDL_CreateWindowFrom()" function call and re-impleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: If pre loader fails to load content We fetch some image data from Picasa, using yoxview and whilst the data is being fetched, which are image thumbnails. We display a preloader image. Now, the data is fetched dynamically, and at times the fetch url we are requesting parses no results. So the Image preloader for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Finding Connected Components and reading an adjacency matrix This is actually my first post here. I wasn't aware of this website, and I lurked around the questions and its certainly a place I want to keep coming to. I'm in my Senior year for Computer Science but my programming skills are not that good, which makes m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Translating a lambda expression into an expression tree The real world problem I'm trying to solve: I have a database with a bunch of phone numbers stored as strings in an absolutely terrible format (eg "(02) 9971 1209"). The user of my program is going to start typing a phone number and as he types, what he is typi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GridView Sort - Is there a better way to perform a gridview sort in asp.net (for sharepoint)? Is there a better way to sort this datagrid? This does work, however it seems a bit non-reusable. If you have any ideas, or better ways to handle this, please let me know. Below is the code. Please let me know if you have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML Canvas Vs Stacked Div Performance basically i have a div set up like so: <div class="pane"> <div class="banner"> <img class="original" src="images/picture.jpg" width="100%" height="100%" /> <div class="blurred"></div> <div class="blurred_colour"></div> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help with debugging Error in android custom component EditText UPDATE making the inner class 'static' fixed it Please help me find out what the error is in the case below. I have a custom EditText inside an activity which implements the OnKeyListener. It is implemented as an inner class of the Activity The reason i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: in_array function fails I'm using this line: '.((isset($imgRight) && in_array(1, $imgRight)) ? 'checked="checked"' : '').' and, in some cases, $imgRight can be false. That's why there's isset(), but it still fails. What do I need to do to avoid this warning? A: Just because something is false doesn't mean it's not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Qt: Using QTransform object for rotate differs from setting setRotation() in QGraphicsItem While setting a QGraphicsItem rotation, I get different results upon the transformation origin point while using setRotation() and using: transform = QTransform() transform.rotate(myAngle) myItem.setTransform(transform) In bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: VB.NET Function - Return vs Assignment What is the difference between this two ways of returning value in a function in VB.NET? Using Return Statement: Public Function Foo() As String Return "Hello World" End Function Using Assignment: Public Function Foo() As String Foo = "Hello World" End Function I'm us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting Selected values from Jquery multiselct in asp.net Looked and found solutions with broken links or that did not work for me, that said I am using the multiselect found here http://abeautifulsite.net/blog/2008/04/jquery-multiselect/ I need to get the selected checkboxes when I hit a button to use them in c#, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: programatically install headers and dependent headers using scons I'm using scons as my build system and I'd like to install my project's development headers using scons as well. I'd like to avoid maintaining a list of all the needed headers and their include dependencies and instead use the built-in dependency pars...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC View and the System.Speech.Synthesis namespace This is very strange. An MVC View refuses to recognize the System.Speech namespace. What's the deal? And is there a work around for this? I have a ViewModel that has the VoiceAge and VoiceGender enum properties from this namespace, but the MVC view isn't playing bal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: oneToMany bidirectional does not work when datasource has transactions set as serializable i have a app that uses Spring,Struts, Hibernate and JPA. So i have two entities, Company and Location. Company is in oneToMany relation with Location, and location in ManyToOne to Company. Location Entity: @Entity<br> @Table(n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to elegantly deal with timezones I have a website that is hosted in a different timezone than the users using the application. In addition to this, users can have a specific timezone. I was wondering how other SO users and applications approach this? The most obvious part is that inside the DB, date/times are st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "153" }
Q: Solr not matching. Threshold setting, or something weird? I'm using solr to search for articles. I created 2 test "body" sentences which have the common word "tall", but there is no match. The Query---> Body:"There are tall people outside" AND !UserId:2 Does not match a post with: Body: the KU tower is really tall ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP walking and print multi dimensional array anyone can help me with some coding here? I got the following array config: $array[1]['areaname'] = 'Area 1'; $array[1][1]['areaname'] = 'Sub Area 1'; $array[1][2]['areaname'] = 'Sub Area 2'; $array[1][3]['areaname'] = 'Sub Area 3'; $array[2]['areaname'] = 'Area 2'; $arr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: maximum and minimum allowed memory Can you point me to an API or method used to retrieve the maximum and allowed minimum video graphics memory of my local system ? I have looked into WMI and found none to help me with this. For my laptop it is reported a range of 8-256 MB, I can only get 256. Where is that 8 coming ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flash Builder 4.5 list issue I have list populated with different data from PHP and when pressed it opens a URL, but when I return to the list from the browser, it has the selection I made to go to browser still selected. So how do I reset the selection? By the way, its a flex mobile app. A: When you want to reset ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't get $.proxy to work, what am I doing wrong? I'm trying to use proxy inside the jQuery UI Dialog for a $.post AJAX call, but I can't seem to get it to work, it's not running the alert box, but the post is working successfully. Here's were I'm at, this is the create button on the dialog. 'Create Category' : func...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: List Activity Null Pointer Exception. Force Close on Emulator Start Up Here is the code for my ListActivity: public class CornellRSS extends ListActivity { private final static String rssUrl = "http://news.cornellcollege.edu/rss"; RSSParser parser; ArrayList<Message> messages; private ProgressDia...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Preloaded database corruption issue in Android application I have an android application that begins by downloading a large database to the sdcard (a little over 50mb) in an asynctask. The download code is as follows. HttpURLConnection conexion = (HttpURLConnection) url.openConnection(); if(filePath.exists() && fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use the same datasource twice in JasperReports/iReport I'm trying to work out how best to do reports with a chart then a table representing the same dataset. I need to overcome the positioning of the summary is at the bottom, so intend to use subreports and table-subreports. I am experimenting with two table...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: boost-python select between overloaded methods Assume exist some class Foo with two overloaded methods: class Foo { ... void m1(A& a); void m1(B& b); I need expose one of these methods over boost-python: boost::python::class_<Foo>("Foo") .def("m1", &Foo::m1) How should I specify that signature of m1(A&...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: colorbox and preventdefault not working together? I'm calling a colorbox using jquery and trying to prevent the address from changing but it seems to trigger an address change every time. Here is my current code: <div style='display:none'> <div id='send_alert_div' class="wysiwyg_container"> <h2>Contact ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hiding page loading My HTML markup looks like that <html> <body> <div id="loading"><img src="core/design/img/load/load.gif" /></div> <div id="wrap"></div> <div id="footer"></div> </body> </html> I'm trying to hide whole page loading process with following solution. CSS Rules: #loading { position:fixed; lef...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how can I create DLL without having class can anyone give me some steps to create DLL without using class which means it will just have methods in the header file and source file would be only DLLmain() plus other methods. I'm using Visual Studio 2005 to create MFC DLL, but it always generates class. I never creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Controlling number of lines to be written to the output file I am new to Hadoop programming. I have a situation in which I want to stop writing <k3,v3> to my output file after n-lines. In my program, I am sure that the output file will be sorted according to k3, but I don't want the entire list. I only want the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the technology behind Skype's anit-shake video recording? Skype added an anti-shake feature in it's video conference app on iPhone. How can that be done? A: This is quite a complicated thing to pull off, but it's probably a combination of some powerful blur detection/removal algorithms, and the gyroscope. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: GLES2 Is glBindAttribLocation() Necessary? This might be a noob question. As I understand it, glBindAttribLocation(..., AAA, ...) will bind an attribute within the program to the location ID of AAA, as long as AAA is unique. If I have the following code: glBindAttribLocation(..., 0, "XXX"); glBindAttribLocation(...,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: dynamically adding a select box with options populated by php to a form I have a send message form, with a list of recipients populated by a PHP query to the database. I want to be able to include multiple recipients by dynamically adding select boxes to the form, depending on how many people they wish to send the m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to stop the event bubble In have two div in the page,the outer and the inner. I bind the mousemove event to the outer div,when user mousemove in the outer div,it will show the clientX and clientY of the mouse. Also I make the inner div dragable,here is the live example. 1) I do not want the outer's mousemove eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find if a JavaScript code is running on it's own domain? I work on an analytics website and I want to put an analyzer code specific for each website. Is it possible to check if a user uses his own JavaScript code? Is it necessary and enough to put a customer code in each JavaScript and check it with domain na...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Explicitly specifying parameter types in F# I'm writing an F# function that factorises a number into prime factors. let factors primes i = let mutable j = i for p in primes do while (j>1) && (j%p=0) do j <- j/p printfn "prime: %i" p It works for int values of i, but not int...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Anywhere to download Repo script http://source.android.com/source/downloading.html directs users to download the repo script from kernel.org, but, the 'android.git.kernel.org is currently down. Are there any other mirrors? Code: $ curl https://android.git.kernel.org/repo > ~/bin/repo Error: curl: (6) Couldn't reso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I need some tutorials about CFNetwork in iphone I am developing a stock software,the client will receive the data from the server,so I want to use the CFNetwork. and where can I find the tutorial "getting Started with networking",thank you A: try these link i hope u get what u want. http://mobileorchard.com/tutoria...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using Enumeration in C# I'm writing my first ever C# application, for Windows Phone Mango. It's designed to be an extremely simple flashlight app. Previously, it wasn't possible to access the camera's flash on Windows Phone, but in this latest version, it is. Here's the documentation about it: http://msdn.microsof...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How slice Numpy array by column value I have an array like this numpy array dd =[[0.567 2 0.611] [0.469 1 0.479] [0.220 2 0.269] [0.480 1 0.508] [0.324 1 0.324]] I need 2 seperate array dd[:,1] ==1 and dd[:,1] ==2 These array are what I am after: na =[[0.469 1 0.479] [0.480 1 0.508] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL query to find latest acivity across tables We have timestamps for various things across the site. I'm looking for a way to get users who are "online" or have been active in the past 20 minutes. Im also trying to sort them by an intersection of the latest timestamp in multiple columns across multiple tables. SEL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Amazon EC2: Jetty Unaccessible I'm trying to install jetty in an Amazon EC2 instance running Ubuntu. The installation seems OK $ sudo apt-get install jetty After that I made the parameter NO_START=0 in /etc/default/jetty Finally $ sudo service jetty start Starting Jetty servlet engine. jetty Jetty servle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ERROR getting 'android:label' attribute: attribute is not a string value I have this error "ERROR getting 'android:label' attribute: attribute is not a string value" when trying to publish my application to android market. Some time ago this app was already published successfully on market, but when I apply minor ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is it possible to get an object by its primary key in django-nonrel / Google App Engine? I'm trying to retrieve a model object like the code below: (r'^album/(?P<album_id>\w+)/$', 'core.views.album'), def album(request, album_id): album = Album.objects.get(pk=album_id) The problem is that the PK is not an inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Random time delay I'm trying to send signals between processes and I need to allow a random time delay of between 0.01 and 0.1 seconds in my signal generation loop. So this is what I'm doing and it is most certainly not between 0.01 and 0.1, but comes out as 1 second. Not sure what I'm missing here. sleepTime = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Acceptable ways to release a property Assume there is a class with the following interface: #import <Foundation/Foundation.h> @interface MyClass : NSObject { } @property (nonatomic, retain) NSDate* myDate; -(void)foo; @end and the following implementation: #import "MyClass.h" @implementation MyClass @synthesi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android - ImageView margins not appearing in LinearLayout Right now, I'm struggling to accomplish something as simple as adding margin space between my child ImageViews within a custom LinearLayout (modified RadioGroup that is designed to take in a custom ImageView that implements Checkable, didn't override onMesaru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP: How do I prevent include/require to add numbers in a loop? Every time I try to assign an include/require to a variable, it adds a number at the end. I would like to do it without that stupid number. I tried file_get_contents but it does not work the same way. If it's not possible to do it with require, is ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery Auto-complete List Css So, I'm NOT using the jQuery UI AutoComplete as I have a simple application. However, in my final touches on the input box, I'm stuck on a simple CSS issue. I want the list-item(s) (created by the jQuery .post) to highlight on hover. HTML: <div id="wrapper"> <div id="input"><input ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get Selenium server working with htmlunit? I downloaded selenium-server-standalone-2.7.0.jar and ran it like this to get a list of supported browsers: java -jar selenium-server-standalone-2.7.0.jar -interactive cmd=getNewBrowserSession Unfortunately, htmlunit isn't in that list, but when I look at the docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Exclude category on query_post custom taxonomy I need to exclude a category from showing up posts. I registered the taxonomy: portfolio-category and added a category: accessories (cat ID 19) under portfolio-category How do I exclude posts from accessories category from showing up? I tried: 'category' => -19, but it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Nhibernate with 2 front end servers, any issues with this out of the box? If I have 2 front end servers accessing a single db server, how will nhibernate operate in this scenerio? Are there any things to watch out for? Will running things using stateless sessions help? A: If you make use of the second level cache, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replacing all occurences of a specific word which are not enclosed with the words OPEN and CLOSE? I have the following string: OPEN someone said hello CLOSE im saying hello people OPEN some said hello OPEN they said hello again CLOSE i have to go now though CLOSE hello again! I'm trying to match all occurences o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Could some one explain what does these IComparer, IEnumerable etc stand for I am pretty new to .Net. In classes I have seen objects as IComparer, IEnumerable etc. Could some one explain what does these stand for? Thanks for your help. A: They are interfaces. An interface ensures that an object has certain methods...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: zend url rewrite problem with .htaccess on windows 2003 I am having a problem setting up my Zend framework project. I have xampp/htdocs/quickstart my server name is mydomain.com. I want to access my project at https://mydomain.com/quickstart(note that i am using https, dont think if this could be a problem) i used ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: correct way to model in Rails 3 / ActiveRecord - compound foreign key I have a set of locations which have a relationship to a global_identificiation table which has id, arc_id (the object_id) and arc_type (the object_type) (ie a compound foreign key). How would I set up the association so that this global informati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Phonegap not scaling properly between iPad and iPhone I developed an app for iPad using Phonegap 0.9.6. Seems to be working fine. The main element in the app is 768 px wide, so scaling has not been a problem one way or the other. Now I am experimenting with running the same thing on an iPhone. I have this meta tag a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: reading objects from plist to NSArray I wanted to have an NSMutableArray of patients, however I don't want to hard code the patients info (name, dob, etc). I want to store that in a plist and then be able to have an NSArray of Patients object. How can I do this? I know how to do if it's just an NSString array, but w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL ORACLE ORA-00969: missing ON keyword? I have two different tables : Table_a and Table_b, both have same columns PartNo and Material_Desc. I want the Material_Desc in Table_b to update the Material_Desc in Table_a when PartNo are equals. This is my query MERGE INTO Table_b USING ( SELECT t1.rowid AS rid ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Using the Timer2 of a PIC32 to Set a Delay I'm pretty much brand new to the PIC32 and its programming in C, so I'm a bit stumped on how to go about the following problem. I've been asked to toggle an LED of the PIC32 on and off, which I can do fine; however, I now wish to add a 0.25s delay between toggling. I've bee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple User IDs from multiple Request IDs Like said on the facebook developer reference here: http://developers.facebook.com/docs/reference/dialogs/requests/ i can retrieve multiple User IDs from multiple Request IDs with this javascript code: function getMultipleRequests(requestIds) { FB.api('', {"ids": request...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PhpMyAdmin "Wrong permissions on configuration file, should not be world writable!" I get this error when I try to access localhost/phpmyadmin: Wrong permissions on configuration file, should not be world writable! I have already chmoded every file to 555 from 777. What should I do next? I run Ubuntu 11.04. A: Try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: Single step a process by one assembly instruction When you execute a single step operation using ptrace does the process do one "line" of code or does it do one line of assembly instead. If it's the former case is there a way to step a process in linux by one processor instruction only? I mean to do this within the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC3 - File upload controller / handler not receiving the image I am using http://valums.com/ajax-upload/ File uploader plugin to do ajax image upload and i see the request in fiddler go through, with the image in it when i pick a local image. The fiddler request has the PNG file in it. From fiddler - POST http://l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: Is it possible to detect if user hanged up call or callee? I know there are similar questions like mine, but they are pretty old. I hope there is some solution to this problem. One of my clients wants the application to be able to detect if the call was hanged up by the caller or the callee? Can someone tel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When using areas, does it make sense to have controllers in a non-area? If I decide to use areas in mvc3, in a new application, does it make sense to have controllers in a non-area? Or will that make things inconstant? This is a new project, and i havent' worked with areas so not sure of how things will end up so lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pausing an Application in Android I am having a buttong in my Android App and I want that pressing that button should stop the application at the same point. While clicking again on the same button should resume the App. How to do this? A: You are asking the wrong question. You should never pause and resume your a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The default document (default.aspx) in IIS is not working after adding MVC and routing to a WebForms project I have an existing ASP.NET 3.5 WebForms project and have added ASP.NET MVC to the project. The existing pages work fine and so do the new controllers & views. However, when I deploy to IIS 7 the default docum...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I chain devise_for calls in my route file? - Rails 3.1 I am trying to use OmniAuth, and according to Ryan Bates, I should override the Devise Registration controller by specifying the following devise_for scope in my routes.rb file: devise_for :users, :controllers => {:registrations => 'registrations'} Howev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you save nested objects in redis? Can you save nested objects in redis? I'm using the node.js driver. One of my key-values is an array of objects. If I dont stringify it results in the string "[object Object]" if i stringify it I get this error: { stack: [Getter/Setter], arguments: undefined, type: undefined, m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: error with inserting data into sqlite database table in android I have a db table : create table recentMovies5 (_id integer primary key autoincrement, line1 text, line2 text, title text , Tags text , ImageLink text , XMLLink text, entryTime numeric); and am inserting values like this: Insert into recentMovies5 (li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }