text
stringlengths
8
267k
meta
dict
Q: CCAnimate with sprite file names? CCAnimate requires CCSpriteFrames, while they require a texture2d. Is it not possible to simply use CCAnimate by providing my file names? Like anim1.png, anim2.png, anim3.png... A: Not directly. If you are on versions 0.99.*, you can load the files into UIImages, then create CCText...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery datatables editable plugin - Delete Confirmation Dialog I using editable plugin for my jquery datatable to do inline delete. Currently once the delete button is clicked, the controller delete action is called and the row will be deleted. However, i wish to show a confirmation dialog prior to deletion, and onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How would I add a slider transition to my website with jQuery? I am using the jQuery library so that is available. I need to know how to add a sliding effect to this page: http://qasim.x10.mx/iqbal/ Notice when you click it, it fades in and out, but I would much rather love it to slide, I have a small idea on how th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .gitignore won't ignore the directory I'm trying to ignore the xcuserdata folders that xcode 4 modifies and they keep come back despite being in my .gitignore file. My .gitignore file as one line: xcuserdata Yet as soon as I change anything UI in xcode, I get this: # modified: XXXXXXXX.xcodeproj/project.xcworks...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What does the jg instruction do on classic Intel processors? For the code: cmp $5, %eax jg 804940f This compares by doing %eax - $5 and then sets a flag(s) if it's greater, equal, or negative, correct? Then jg will proceed to that address if the flags dictate that %eax is greater than $5? A: It does do a subtrac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Resolve PowerShell Function Parameter Values Among Parameters I'm trying to figure out how to force the PowerShell runtime to parse a string in expression mode when passing a parameter that includes another parameter's value to a function. For example, I want to pass two parameters to a function with the second para...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i get the string after an element with jquery? I have several forms on my page. Each form is named according to the ID in the database. <form id="spam-X" method="post"> So on my page, if there are 3 comments, there are 3 forms. <form id="spam-1" method="post">...</form> <form id="spam-2" method="post">.....
{ "language": "en", "url": "https://stackoverflow.com/questions/7549474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: objectdatasource search help i have my ObjectDataSource1 setup to use with my GridView. If I want to setup a Search text box for the GridView will I need to create a new ObjectDataSource2 to tie it to the Search textbox? <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="ShelterExpress.Shelte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mouseover & hoverIntent I'm using mouseover to change the slide number on the jQuery Supersized plugin depending on which button you rollover. However, if the fade animation to the next slide hasn't completed before rolling over another button, it doesn't change the slide. Is there a way to re-check every few millis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tutorial for iPhone calculator with decimal point Possible Duplicate: How do I change the number of decimal places iOS? If using Xcode to make an iOS calculator, how would I add a decimal button? I am looking for an iOS tutorial on how to make a (simple) iPhone calculator that can do at least the following:add, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to backpress pass an activity? I have an activity that loads some content using an AsyncTask. If the content is null then i launch an activty that contains a WebView to load the data. The only problem is when i launch the activity using regular intents. When the back button is pressed to return out of the WebVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Slow insertion speed on MYISAM table I need to create a table containing two attributes: id and author. These two attributes form the composite key. Moreover I need to perform an index search on the author field. Therefore I create the table using the following statement: CREATE TABLE IF NOT EXISTS authors (author V...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel Data Connection to Active Directory I want to create a data connection in excel-2007 that pulls the result of an active-directory query into a sheet in my workbook. I see that I can do this with VBA but I agree with Rob here that it should be easier than that, just using "OLE DB Provider for Microsoft Director...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Excel parse produces 40802 for date 16-Sep-11 I found a PHP script that parses excel files, but there seems to be some kind of numbering system or encoding that is associated with dates. For example, the original .xls spreadseets contains this date in this format: 16-Sep-11 However, the information that is parsed...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PostgreSQL 8.3 - issues with autovacuum I'm trying to encourage the use and monitoring of autovacuum in some PostgreSQL 8.3 databases. One objection I hit often is that people don't "trust" autovacuum or there are bugs in autovacuum in 8.3 which mean that it's ignored in preference to scheduling vacuuming. Mostly...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Whats wrong with my C++ syntax here while input != 0 { if input == "r"; cout << "Please input a floating point value for the height, and then a floating point value for the width, seperated by a comma." << endl; cin >> height >> width; } I am trying to write a basic program that ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Drupal 7 mod_rewrite enabled, still no clean urls I have mode_rewrite enabled, but when I go to turn on clean url's, the page still simply refreshes to the 'test' screen. Is there a better way to test to be sure my mod-rewrite is enabled such taht drupal can use it? I'm managing the server now on a cloud, so i'm new...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP : create variable dynamically I have one of my class method like this shown below : public function something() { $this->create_varible('test'); return $test; } I wanna create some variable(not class variable) by passing it's name as argument to create variable method(as shown above), then return it's v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: HTML Self Sorting Table This is going to be a two part question. I have a feeling this first part is going to be pretty simple, but I can't seem to find a direct answer anywhere. I'm using a blog created on Blogger and I have a bunch of events that I was to list on separate pages. I need the lists to auto arrange ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Format date to show Day (e.g. Friday) using fmt tag in JSTL I have a date object passed on to the JSP page as ${date}. I want to print the date in following format: Last logged in on Friday, September 23, 2011 on 11:32 PM EDT. I cant get the Friday part and the EDT part. All I am able to successfully print is: Last...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Have I Implemented Mutal Exchange Correctly? I'm trying to implement mutual exchange on a multi-threaded program. I'm not sure if I'm doing it right, and it's difficult to test. In main.cpp, I have something like this: //mutex handle HANDLE hIOMutex = CreateMutex (NULL,FALSE,NULL); //main while (1) { Sleep(STEP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Slide div's off/on page using jQuery I'm trying to create a function that slides div's off/on a page depending on which button/link is clicked. The basic structure: <div class="button"><a href="#">Click Box #1</a> </div> <div class="button"><a href="#">Click Box #2</a> </div> <div class="button"><a href="#">C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Use lambda expression to count the elements that I'm interested in Python Can I use lambda expression to count the elements that I'm interested? For example, when I need to count the elements in a list that is more than two, I tried this code which returns 0. x = [1,2,3] x.count(lambda x: x > 2) A: Note: "more tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Anyone successfully installed openfire OR any xmpp server on mac os x lion? I'm trying to install openfire. It's just a package and should be brain dead simple. The setup wizard invariably fails after you assign an admin username and password. The failure is that the login username and/or password is incorrect. Ej...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to delete a folder with other files and folders inside with PHP Possible Duplicate: A recursive remove directory function for PHP? With PHP I want to know the easiest way for delete a folder with files and folders inside. A: This trick from the PHP docs is pretty cool: function rrmdir($path) { return is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: netsh http add urlacl via Group Policy (GPO) I have self-hosted WCF application that needs to listen on a URL on port 80. In order to do this, I need to add an entry to the HTTP.sys url list for a given user. I can do this with netsh http add urlacl or calling a Win32 API directly (http://stackoverflow.com/question...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: A Clojure binding question just looking to re factor some simple code I have a function (defn foo ([x y] (let [line [x y]] (...)) ([x y z] (let [plane [x y z]] (...)))) I know I can write (let [[x y :as point] [1 0]]) Is there a similar destructuring for functions su...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use Github with the shared repository model and Aptana? We have a small development team, all working in the same room. We're setting up Github to manage a number of medium/ large projects. We are all new to Github but want to use it as our projects are based on open source software hosted on Github. With our...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is STR Available Inconsistently? When I create a OLE DB source, I can use the following expression: STR(1234.545, 8, 2) But when I use a Derived-Column flow task, that expression is illegal. The design-time error states: The function "SET" was not recognized. Either the function name is incorrect or does n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using two backquotes and commas, Common Lisp I'm learning common lisp and I have a problem with understanding the usage of two backquotes combined with two commas: ``(a ,,(+ 1 2)) I mean, I don't have a clue why it's evaluated to: `(A ,3) rather than something like that: `(A 3) I'm explaining myself that both com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: EF4 how can I convert anonymous type to strong type in LINQ The LINQ code returns a anonymous type how can I return a strong type of "Customers"? I am returning a anonymous type as I only want to select certain fields from the entity. var customer = from c in _entities.Customers join con ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Multi Accordion with mootools problem I created a mootools accordion with nested sections like this: html: <div class="accordion"> <h2 class="accordion_toggler_1 open">Section 1</h2> <div class="sub_accordion accordion_content_1 open"> <h2 class="accordion_toggler_2 open">Section 1.1</h2> <d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: copy_from_user not working for char* I'm a bit new to kernel programming so please excuse the question. Essentially, I want to send a string (char*) to the kernel module to print out. Pretty simple. I have the following in a user level code: char *text = "some text."; ioctl(fd,OUTPUT_TEST,text); And there's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Referencing argument in with statement Is there a way to reference the argument in a with statement? It's like when you have class variables and a constructor and you do this var blah; public function foo(blah) { this.blah = blah; } Is there a way to do the same like public function foo(blah) { with(cat){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Section vs Article HTML5 I have a page made up of various "sections" like videos, a newsfeed etc.. I am a bit confused how to represent these with HTML5. Currently I have them as HTML5 <section>s, but on further inspection it looks they the more correct tag would be <article>. Could anyone shed some light on this fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "271" }
Q: Rails 3/Ruby 1.9.2 Date.tomorrow not correct Using Ruby 1.9.2 and Rail 3 on Mac Snow leopard ruby-1.9.2-p290 :001 > Date.today => Sun, 25 Sep 2011 ruby-1.9.2-p290 :002 > Date.tomorrow => Tue, 27 Sep 2011 Is there maybe something wrong with the ruby date class or is this something to do with the way i installed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: CouchDB - trigger code when creating or updating document I have a page which store data in CouchDB. The page accesses the database directly via javascript, so not much of the logic is hidden from the browser. When creating a new document there is some logic which extracts elements of the data into separate fields s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Sorting an Excel Table that contains Merged Cells I have a fairly simple Excel file, mostly layout (it's a report I've written), but midway down the document (row 28), I have a table that contains merged cells. i.e. A | B | D | E | F is as follows: A | BCD | E | F the same is done on the three rows below it, which c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how can I make jquery mobile "pagebeforeshow" event fire every time, not just on refresh I have a jquery mobile page that uses the following code to hide a button when the page is accessed. $('div:jqmData(role="page")').live('pagebeforeshow',function(){ $("#apply_btn").hide() }); My problem is that the event only...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to speed up/optimize file write in my program Ok. I am supposed to write a program to take a 20 GB file as input with 1,000,000,000 records and create some kind of an index for faster access. I have basically decided to split the 1 bil records into 10 buckets and 10 sub-buckets within those. I am calculating two...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Merge JS objects without overwriting Suppose you have two objects: var foo = { a : 1, b : 2 }; var bar = { a : 3, b : 4 } What's the best way to merge them (and allow deep merging) to create this: var foobar = { a : [1, 3], b : [2, 4] } Edit for question clarification: Ideally, in the cas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Are sql triggers run in a separate thread? If I want to return the user a web page and write to a log or word by word processing, should I use a stored procedure call from CLR in a new thread or just use sql triggers? A: You can't make a SQL Server trigger run asyncronously. The best you could do is utilize SQL Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symbolic manipulation over non-numeric types I'm interested in a python library that permits symbolic manipulation where the symbols and can be unknowns of an arbitrary type. This is the code that I want to write: >>> myexpression = symbol("foo") == "bar" >>> print myexpression foo == "bar" >>> print myexpression(fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: how to load specific attributes from one table to another? I am trying to load data from one table to another. But I only need specific attributes from the table. For example, I have two tables, Source(the table I am loading from) and Dest(the table I am putting the loaded data) Source has ID, Birthyday, HometownAd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where is the ideal place for django's template? According to Brian's response, he recomends put template dir on the top level django project. In other responses find that every app should have its own template folder. I wonder if there is an official recommendation or criteria as the peps in python, for the location...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data Binding Error in cascading Drop downs in asp.net I have 2 drop down list within the edit item Template of a form view. The first drop down contains a lit of vehicle Makes and the second a list of Vehicle Models. The list of models needs to be filtered by the selection from the Makes drop down. Here are the 2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - Checking for session in HTML page I have an HTML page that I do not want to be available unless the login is successful. My login starts a session, however I don't know how to check for the session in the HTML and if the session exists I want to display the page, if not I want to display a unauthorised message...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: OpenGL + GLEW + MinGW application linking issue I'm getting some undefined references when building my project. Here's the build log: **** Build of configuration Debug for project test **** **** Internal Builder is used for build **** g++ -O0 -g3 -Wall -c -fmessage-length=0 -o src\main.o ..\src\main.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Django Match ForeignKey from ModelChoiceField to MySQL I have a ModelChoiceField called outage_name. I also have a simple form that allows you to select the item from the list. The ModelChoiceField is pulled from a MySQL DB. This queryset is located in forms.py outage_name = forms.ModelChoiceField(queryset = Outage....
{ "language": "en", "url": "https://stackoverflow.com/questions/7549597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: c# datatypes and arrays I am creating an array for some monetary values. I created the array as an integer and realized it needs to be decimal values. When I change the variables to decimals and try and run it, I get "Cannot be implicitly converted from decimal to int." I hover over the variables and they all app...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting MSB of a 32bit integer in MIPS, and merging it into the LSB of another value Is there any way to find the MSB of a 32bit integer in MIPS and then replace that to the LSB of another integer? To elaborate, suppose A = 1000 and B = 1001 (4-bit examples to keep it short.) I need to get the MSB of B ie 1 and swa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Visual studio 2010 Code definition window with Resharper 6 I installed Resharper 6 with VS 2010. But whenever I press F12 for a type, it goes to metadataviewer, which Resharper provides. I want to use Code Definition Window instead. Is there a way to set it up.
{ "language": "en", "url": "https://stackoverflow.com/questions/7549600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server Pagination w/o row_number() or nested subqueries? I have been fighting with this all weekend and am out of ideas. In order to have pages in my search results on my website, I need to return a subset of rows from a SQL Server 2005 Express database (i.e. start at row 20 and give me the next 20 records). In ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GIS: How to read METAR & TAF values to get the pressure at sea level? I have this link on how to get the altitude in Android -> SensorManager.getAltitude(pressure at sea level, atmospheric pressure) But... need to know the value for PRESSURE AT SEA LEVEL. I have read the below statement from Android documentation on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the performance implications of using require_dependency in Rails 3 applications? I feel like I understand the difference between require and require_dependency (from How are require, require_dependency and constants reloading related in Rails?). However, I'm wondering what should happen if I use some of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Grouping and sorting Folders and Files in a ListView I'd like to display folders and files in a ListView the same way they are in the windows explorer i.e. folders first, then the files, and both groups sorted alphabetically. I thought at first about using 2 ListViewGroup (one for Folders and one for files), but not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Version control system help for a single developer I'm currently a single developer working with the following. * *Mac for all computing / code requirements *Eclipse / Dreamweaver for code editing *Windows Server 2008, CF8 IIS for my dev server Currently when I develop all my apps, I'm starting to find that I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to get form values from referrer in asp.net web forms in asp.net webforms is there a way to get the posted values of the previous page without having to send through query strings? I want to pickup TxtSearch on the next page and I though I remember someway of doing without session or querystring (i thought you c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ManagementScope.Connect failing with error E_ACCESSDENIED error while being run from Windows Service I am trying to connect to Windows WMI through service by filling the ManagementScope variables and trying to connect to remote machine. The Connect is succeeding if I am running as windows console, but failing when I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Determine file type from ImageFormat.MemoryBMP After resizing an image, my resize function returns a newly drawn Image. I'm running into an issue where I need to determine what the file extension of the returned Image should be. I was using the Image.RawFormat property previously but everytime an Image is returned f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Jsoup URL.get()/post() out of memory error I'm executing this code: //doc = Jsoup.connect(data[0].getURL()).get(); Document doc = Jsoup.connect(url).post(); and am getting an out of memory exception. Obviously the web page's HTML is too much too download. All I want from the webpage are al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ruby classes, include, and scope How does including a module affect scope? Specifically, in this example: module ModuleA class ClassA def initialize puts "test passed" end end end module ModuleB include ModuleA # test 1 C = ClassA.new class ClassB def initialize c = ClassA.new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing raw Markdown text to Jade I'm playing around with my first Node.js Express application, and as every programmer knows, the first thing you should build when testing out a new framework is a blog! Anyway, I'd like to write the articles in Markdown and then render it in the view. I saw that Jade allows for thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Whats wrong with the following unbind script? (dolist (abcc '("C-a" "C-b")) (global-unset-key (kbd abcc))) It keeps on giving the error : Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p abcc) read-kbd-macro(abcc) #[(keys) "\301!\207" [keys read-kbd-macro] 2 2180088](abcc) (kbd abcc) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Jquery "Delay is Not A Function" with Jquery 1.6.4 I looked at some of the other questions on here pertaining to this problem but they were all using an older version of Jquery. I am having a problem with the latest version of jquery which I am grabbing from the goolge link: http://ajax.googleapis.com/ajax/libs/jque...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compilation error when calling function with default arguments I'm getting errors when I call a function which uses a default argument. The two files are cache.cpp and cache.h Command I use to compile is g++ -c cache.cpp and the error is: cache.cpp: In member function ‘bool mem::read(long unsigned int)’: cache.cpp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: set delimiter when calling stored procedure The quotes in strings being passed to sql for insertion into a table, are causing the stored proc to fail. This seems to be common, and PHP users are told to escape the quotes. If i understand this correctly, I'll have to escape the whole text, for sql storage, then unes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stream redirection and pipes when making a Linux shell I have an assignment to create a Linux shell in C. Currently, I am stuck on implementing redirections and pipes. The code that I have so far is below. The main() parses user's input. If the command is built in, then that command is executed. Otherwise, the token...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reversing a HashMap from Map to Map> Is there a more elegant/built-in way to reverse the keys and values of a Hashmap? I currently have the following. private Map<Boolean, List<String>> reverseMap(Map<String, Boolean> permissions) { List<String> allow = new ArrayList<String>(); List<String> deny = new ArrayL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: XmlWriterSettings, XmlTextWriter, XmlWriter not formatting output?! No new lines, no indentation Using .Net 3.5 SP1 in VS2008 I have a XmlDocument and have tried writing it to file: using (XmlTextWriter tw = new XmlTextWriter(outXmlFileName, System.Text.Encoding.UTF8)) { tw.Formatting = Formatting.Indented; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery - delete last object by key Hi i have this object : object { key1:[.....], key2:[....], key3:[.... ] } how does i can delete the last object key (key3)? i would like to be free to delete last object key without knowing anything about that key. A: Thsi is the ES5-compatible way of doing it: obj = {a : 1,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Yahoo! Finance API DOW Until now, I've been using the INDU ticker to follow the DOW with the Yahoo! API. For whatever reason you were unable to directly follow ^dji ^djia or any other reasonable combination. Up until yesterday, INDU was working fine. However now I receive no data when requesting indu. What other tic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Best R data structure to return table value counts The following function returns a data.frame with two columns: fetch_count_by_day=function(con){ q="SELECT t,count(*) AS count FROM data GROUP BY t" dbGetQuery(con,q) #Returns a data frame } t is a DATE column, so output looks like: t count(*) 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Objective-C Testing values in a range I have an objective-c question. I have an app that detects the rotation of the iOS device. I want to be able to have a timer started when the value is between two ranges. Basically if the rotation is between 0.1 and -0.1 then the timer will trigger. I have tried while loops, fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the tie up ID3D11DeviceContext::PSSetShaderResource() PSSetShaderResource()'s first parameter: void PSSetShaderResources( [in] UINT StartSlot, [in] UINT NumViews, [in] ID3D11ShaderResourceView *const *ppShaderResourceViews ); StartSlot: "Index into the device's zero-based array to begin setting shad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MVC3/LINQ/EF4.1 selecting distinct col values from a result set? How can I select a list of column values from a result set (as distinct) and put into a list? class T {int id; string name;} -- Controller... var query = @"exec someStoredProc"; IEnumerable<T> bb = db2.Database.SqlQuery<T>(query); // Something l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to save added google maps overlays in an android app? I created an app in which users can add various markers on google maps using overlays. I want the app to save the overlay when the user creates it so that when they re-open the app later the markers will still be present. Currently anytime the app is re-open...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: When do background images from a style sheet get downloaded? When a user downloads a style sheet, do all background images specified in that style sheet get downloaded as well? Or, are background images only downloaded as needed based on the CSS rules that apply to the current page? A: They only get downloaded as t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: for loop iterates into a NoneType only during a __str__ statement? So I'm working in Python trying to create a ShapeSet instance that contains a list of Shape instances and I need it to print out the list of Shape instances. I can use the for loop in other parts of the code without running into an error. However, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where to input my website URL In my website settings of Facebook developers I'm looking for a field to input my website URL. Program I'm using says this is a must. Can you show me where to make the input? A: In your application summary page, at the bottom https://developers.facebook.com/apps/
{ "language": "en", "url": "https://stackoverflow.com/questions/7549666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change Applescript into single line NSApplescript source Im building an app for learning purposes of using applescript to send multiple commands during an action. Below is the code I'm messing with but I have stripped out the actions in between the "" and replaced them with numbers. Everything works fine in applescr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: php Validate latitude/longitude strings in decimal format Alright I have what I would call a massive list of longitude and latitude coordinates. That said I also have a handful of sources I pull these coordinates in from. Some of them come from get/post methods which can cause potential security holes in my site/ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How do i create a simple expandable list in android i want to make an expandable list in android ( with only one group ) that has item1, sub-item1, seperator, item2, sub-item2, sperator and so on..., where item1 and item2's values are taken from an array of numbers and sub-item1 and sub-item2's values are taken from...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I import Landslide CRM data into Salesforce? I'm importing some customer information from Landslide CRM into Salesforce. Anyone have advice on the best methodology for doing the import? It seems like the Apex Data Loader is the best way to go, but I don't know if there are any issues with handling the object...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Populating foreign key on create action I have a Evaluation similar to this: Evaluation.rb has_one :cardio has_one :neuro Cardio.rb belongs_to :evaluation Neuro.rb belongs_to :evaluation My evaluation controller is similar to this: def create @patient = Patient.find(params[:id]) @evaluator = Evaluator.f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: obtaining UINavigationController in an UIView a custom tab bar controller I am using applies the ViewController or UINavigationController like this: UIViewController* viewController = [data objectForKey:@"viewController"]; I dont knw exactly how it works but "viewController" comes out as a UINavigationController. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Shell script help I need help with two scripts I'm trying to make as one. There are two different ways to detect if there are issues with a bad NFS mount. One is if there is an issue, doing a df will hang and the other is the df works but there is are other issues with the mount which a find (mount name) -type -d wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ListBox Binding with Global Index My application has a couple of ObservableCollections, one which is nested within an element of the other. Each contain a number of fields e.g. ObservableCollectionA (called Listings) * *Title *Description *Address *Images As MediaItems ObservableCollectionB (called MediaItem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Implementing Observers and Subjects using IObserver/IObservable I want to create a class that can be used to represent a dynamically computed value, and another class that represents a value can be the source (subject) for these dynamically computed values. The goal is that when the subject changes, the computed val...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding an Item to QGraphicsItemGroup Makes It Invisible The code below QGraphicsEllipseItem *ellipse = addEllipse(x, y, 6, 6, series_pen); ellipse->translate(-ellipse->boundingRect().width() / 2, -ellipse->boundingRect().height() / 2); ellipse->setToolTip(label); draws the QGraphicsEllipseItem on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: flex2gateway problem I have a test server which has been working up until recently. Its running ColdFusion 8 But now when I browse from the server or externally http://localhost/flex2gateway I get the following error 500 No configured channel has an endpoint path '/flex2gateway/eurl.axd/f902379d5cc8514ba3feca5933ae...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add regression line equation and R^2 on graph I wonder how to add regression line equation and R^2 on the ggplot. My code is: library(ggplot2) df <- data.frame(x = c(1:100)) df$y <- 2 + 3 * df$x + rnorm(100, sd = 40) p <- ggplot(data = df, aes(x = x, y = y)) + geom_smooth(method = "lm", se=FALSE, color=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "305" }
Q: Automatically take a Picture I have tried to take a picture and save it to the photo library automatically with UIImagePicker and AVFoundation, but I couldn't make it work. I would like to take the photo when the view appears, not showing the camera view to the user, and then use it as a simple image in the app. Tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Boost spirit grammar based string splitting I am using Boost 1.44, The Spirit parser works well for numeric parsing but really is tricky for string parsing. I am trying to parse a string to be split using multiple delimiters: ',' ,';' or ' '. It works well for numbers when I do this (where vect = vector < double >):...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ActiveAdmin, Formtastic, and Paperclip: Not Rendering File Dialog I'm implementing a generic media gallery using Ruby on Rails. I've chosen ActiveAdmin to handle the administration portion of my task and it's worked well so far, except for one thing: It's not displaying the "Choose file" dialog as intended. This is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unexpected behavior for python set.__contains__ Borrowing the documentation from the __contains__ documentation print set.__contains__.__doc__ x.__contains__(y) <==> y in x. This seems to work fine for primitive objects such as int, basestring, etc. But for user-defined objects that define the __ne__ and __eq__ met...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: C++ environment with intellisense * *does any one know of a good development environment for C++ that as working intellisense? VS seems not to have that ability on a very good scale Plus I couldn't figure out how to enable intellisense in Visual Studios 2010. * *How to enable intellisense in Visual Stud...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Power Mock - Assertion error when mocking final class I was trying to mock certain scenarios using Power Mock. I am getting assertion error on below test method - returnSevenTest(). Class to be Tested package tutorial.one; public class TutorialOne { //fields private int number; private String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set the the timeout for an asychronous Connection with a TcpClient? I've been looking at numerous examples such as this, this, and this but none of them seem to work. I'm not sure what's wrong but for each example I've tried the wait is just ignored and I just get the standard unhandled socket exception in ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: php checking if form was submitting with null field As the title says, I'm trying to figure out how to check if there were any null entries in a form after the submit button has been clicked. if(isset($_POST['submit']) && ($selected == ''|| $text == '' || $email == '')) { // *do things* } else{ //*more things* }...
{ "language": "en", "url": "https://stackoverflow.com/questions/7549719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }