text
stringlengths
8
267k
meta
dict
Q: Is it possible to pull in all styles from external style sheets and put them on the same page? Is it possible with javascript or jQuery to pull in all CSS rules that are listed in external files, then do $('link').remove(), then put all the CSS rules in style blocks on the same page? To clarify: I want to move all e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jqgrid Export to Excel roadmap? Does anyone know when an export to Excel/CSV function is going to be built into JQGrid? There are a handful of workarounds but we're looking for some simple functionality. A: see Does jqgrid support exporting to excel " out of the box" or do i need to write some server side code? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript function not being called when submitting a form I am trying out this tutorial: http://www.9lessons.info/2009/04/submit-form-jquery-and-ajax.html and I am testing it on this sandbox here: http://www.problemio.com When I press the submit button of the form to add a problem, it doesn't do anything, and eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ajax not executed with Jasmine I have troubles executing ajax with the Jasmine BDD framework. I want to test the actual ajax calls, not make fake responses. I have read the documentation and tried everything but it seems that the ajax code is simply ignored. i have also tried using spies but it doesn't seem to help....
{ "language": "en", "url": "https://stackoverflow.com/questions/7531283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jQuery Accordion + Magento problems - Possible conflict? I'm using the jQuerytools accordion/tab within a Magento environment and for some reason the script doesn't seem to be working. If you look at the working page below you will see the content and script in a standalone environment working ok. But as soon as it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement a webkit animation: backgroundmove I've seen a certain webkit animation type: backgroundmove. It basically just scrolls your background across the page, etc. I've written a little css blurb for a basic -webkit-backgroundmove animation, but it doesn't work! I've tried everything on IE9/FF4/Chrome (la...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: nodejs mustache/handlebars example project I've been looking to use mustache or handlebars and nodejs but I have't been successful to finding a sample project online that is working. I just need a sample skeleton structure which uses mustache as a templating engine. My goal is to use nodejs, mustache/handlebars, le...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to do background-repeat in an HTML email that works in Outlook 2007? I am constructing a HTML email for clients and would like to have a content area that expands to fit the text. I would like the border of the container to have a shadow effect- which means repeating a 1px image vertically down each side. I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What method is called to evaluate Fixnum equality? I know that in Ruby, all numbers, including zero, evaluate to true when used in a conditional statement. However, what method is being called to perform this evaluation (see Ex. 2 below)? I thought it might be the == operator, but not so as they return opposite resu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the fastest way in .Net 3.5 to call a method by string name? So the obvious way to do this is.. var handler = GetType().GetMethod(methodName, BindingFlags.NonPublic | BindingFlags.Instance); handler.Invoke(this, new object[] {e}); And I can add caching to keep ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: CKEditor Cache problem, edit skin css I'm trying to edit the dialog.css for a skin on CKEditor, the problem is it seems to be caching the css and no matter what, it doesn't seem to clear. I've switched browsers, cleared all cache, I also have the CKEDITOR.timesampe line uncommented from ckeditor_source.js, but stil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does x86 eflags bit 18 (alignment check) work? (Related to check for 386 vs. 486 and later.) I've read that if eflags bit 18 (AC - alignment check) can be modified, you know the CPU is a 486 or newer. On the 386, the bit resists modification. I've lifted the following assembly code from this site and added exha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Parsing Django Queryset JSON I want to parse a query set to output json data. However I need to make it so that the new jquery ui autocomplete can use it too, and the autocomplete needs the keys label, id and value to be able to read it. Currently I use: emp_list = Employees.objects.filter(eng_name__icontains=q_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does Eclipse stay up to date with Java updates? Our team uses Eclipse Helios SR1. We develop for Tomcat 6 and Java 6 on Windows 7/2008. We stay fairly up to date with the latest release of both Java 6 and Tomcat 6. We update the JDK/JVM on the Tomcat host and all developer workstations about twice per year. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: T-SQL Count question I have the following table that I need to summarize ID A B C D E F G ---------------------------------- 1-100 1 2 1 1 1 1 1 1-201 1 2 1 2 2 2 2 1-322 1 1 1 1 2 2 1 2-155 1 1 2 1 1 2 2 2-167 2 1 2 1 2 1 2 2-389...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why does UploadedFile.content_type fail in FF only for me? I do a little validation in my form and everything works in Chrome and Safari, but in FF, for whatever reason I can't submit my form because of the following lines: if not song.content_type in ["audio/mp3", "audio/mp4"]: raise forms.ValidationErr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring nullable String Bean I have a filtered configuration like so (using Maven for filtering): <bean class="com.whatever.SomeClass"> <property name="someString" value="${filter.prop.value}"/> </bean> Sometimes that string property needs to be null (for reasons I wont go into here), so I need a way to specify ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change the definition of a 'Week'? I'm generating an overtime report, and while Crystal Reports can group an employee's shifts into weeks, it uses a standard Sunday-Saturday week; I need a Monday-Sunday week(ie, Sept 12-18th inclusive). Is there any way to change this setting, or am I stuck with writing a complex fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Handle the response from server after a form submission? I'm attempting to create ajax functionality to a form that uploads files. I created the isolated iframe and target the form submission to it. The server validates the files and sends back an XML doc in the response body. How would I handle and retrie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding the implementation of traditional and enhanced iterations on C# and Java I'm feeling quite confused about the way either C#'s foreach and Java's enhanced for works and even more frustrating is to realize why I haven't came across this detail before. But anyway the fact of the matter is, I'd really like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 3 Auto-Refreshing Divs on a page using JQuery but one of them doesn't work? I have three divs on my page and each one is auto-refreshed using JQuery, here's the HTML: <div id="photo"> <?php require("image.php"); ?> </div> <div id="right-bar"> <div id="facebook"> <?php require("graph.php"); ?></div> </div> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the purpose of a private key passphrase? Sometimes, I see users use a private key and passphrase to log in. So, does it mean the public key is stored on the log in server? What's the purpose of the pass phrase? A: Yes, the server stores the public key, and the client stores the private key. A security fea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android:CheckedTextView isChecked returns incorrect value Android version: 3.1 API version: Android 2.2 Device: Motorola MX604 I dynamically create a multi-select ListView of CheckedTextView items, and attach a OnItemClickListener to the ListView. In the onItemClick method of the listener, I invoke the isChecked ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: List in PropertyGrid C# I have an Employee class. There are many departments maintained in the database and an employee may only belong to a particular department. public class Employee { private string name; private int depID; public string Name { get { return name; } set { name = v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the difference between text field types I am new to android. I was stuck on a problem but I finally solved it. I was using a TextField instead of CompleteTextViewField so whats the difference between these two and when should I use each one of them? Thanks A: Neither of those classes you mention (TextField...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using lookup values in linq to entity queries I'm a total LINQ noob so I guess you'll probably have a good laugh reading this question. I'm learning LINQ to create queries in LightSwitch and what I don't seem to understand is to select an entity based on a value in a lookup table. Say I want to select all employees ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Div 100% width cross browser firefox issue If you look at http://www2.currensee.com in safari the page width is fine, but in firefox (3.6 at least) there is a horizontal scroll. Any ideas how I can fix this? A: It's fine in FF6. You could try the CSS3 style html { overflow-x:hidden; } but I'm not sure if it was imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to put a line over a div at a specific place? I am using a javascript based calendar. I am supposed to introduce a line in it marking today's date. I was able to achieve it for cells that are expanded. But I cannot introduce a line when the cells are collapsed. The reason is that, during the collapsed case, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery: bind load + change simultaneously In many cases, I need to bind a behaviour to an element after loading, and then after an event triggering (like "change"). I think the best way would be to make it in the same line: $('#element_id').bind('load, change', function () { ... }); But this works only for "change"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Add JInternalFrame to JDesktopPane in execution time I have a problem with a JDesktopPane, I add JInternalFrame on it and then show it on a JFrame. The problem is when I try to add another JInternalFrame in execution time. I use the same method to add the same JInternalFrame but its dosnt shows up. public class Des...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rails model validation in the database I have a table and have the validation for uniqueness setup in the table. eg. create table posts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY UNIQUE, title varchar(255) unique, content text ); Here title is unique. Do also need to inform the model class about this uniqueness?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Rails Marshal dumped data is not saving in its full length in mysql Marshal dump data is not saving in the database with its full length....why? I am using the Marshal to dump the objects and its length after dumping is around 145873 but after saving that data in the mysql its length is changed, means data is mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detect if a selector has been specified I am developing my first jQuery plugin but want it to work in a slightly different manner to usual. I'll start by explaining it's purpose: Very simple, <input> fields with a title attribute specified will fill the input box with the value in the attribute, focusing on the inpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I access web.config with an XBAP? I'm porting a Silverlight 4 app to WPF/XBAP. The app uses initParams initialized using asp from web.config app setting parameters. Unlike Silverlight, WPF lacks an InitParams property on StartupEventArgs. It sure seems like this would be something BrowserInteropHelper would h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Phonegap + Android - Error when linking to local HTML I have been trying to link to a local HTML file from my Phonegap app but it is not working. This is what I have in my index.html (which works perfectly) <!DOCTYPE HTML> <html> <head> <title>PhoneGap</title> <script type="text/javascript" charset="utf-8"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does PuTTY use its own private key format when log into SSH server? Just a little bit curious, why PuTTY use its own version of private key format to do SSH? A: The author of PuTTY gives two main reasons for having the custom key format on this page. In short: * *PuTTY's format stores the public half of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Algorithm Efficiency Improvement First I would like to apologize if this question has been asked. It is difficult to search for the answer w/o finding how to create arrays of hashes and hashes of arrays.... I am creating a log analyzer. Each error entry is in the form timestamp # # human_timestamp errno # i have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to set the default selection on the currently added item using jquery I have this code using this code I am inserting an item from one list box to other list box. I need to set the default selection for tagrget list box item when it is added. please can any body help me out how to set the deafult selection to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .net unit test project with CSV datasource not reading in values correctly I have a Unit Test project in .net 4.0. One of the test methods reads in a CSV file. Unfortunately, some of the values in the csv file are not being read. I think what is happening is that .net is choosing what type a column is and ignorin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flush a pipe associated to an NSFileHandle I am reading piped output from a console application via an NSFileHandle in Cocoa. How can I flush the stream associated to that file handle. If I could get a FILE* object from the NSFileHandle I could call fflush(). Is there a way around this? A: I believe the equivale...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which configuration do I need to use an external DLL in a WinForms application? I'm working with an external DLL to consume an OCR device using a wrapper written by me. I have made tests on the wrapper and it works perfectly. But, when I use a WinForms project to consume the client class of the wrapper (located an a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: javascript error in IE 8? IE 8, 7, and 6 are all complaining about the same character in the below snippet: else if (page == "/about") { $.address.title("About"); $('#main').load("about.php", function () { }); <= This character (the semi colon) } You'll see three javascript errros with IE 8 all poi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do I have to add execjs and therubyracer to my gemfile for rails3.1 to work? I don't like being in situations where I don't understand why something is working. I feel like I am using a trash bag and a rubber-band to fix a leaky pipe. Since upgrading to rails3.1 I have not been able to get it to work unless I ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: GridView Cell Color I have to fill the cells of a gridview with just color. No text is required in this case. I have a List of Object X 's that I will bind to gridview. Object X has properties that correspond to the grid view. Suppose there is a property called Y in Object X that is a boolean , if Y is false I need ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS - GCC failing to see a function that seems to be plainly visible This problem may be as a direct result of either me misunderstanding the limitations of Objective-C(++) and how it interacts with C++. Or it may be a case of me missing something thats right in front of me. I have a C++ class that does some Object...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Waiting for applications to finish loading Possible Duplicate: Start external app with ShellExecuteEx and wait until it become initialized Is there some way of getting a Delphi app to wait for an external application to finish loading before it proceeds processing? I have an app that launches other apps by using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Magento - Product details don't update When I try and update a product via admin, the update fails and there is no error message: Catalogue -> Manage Products -> Edit I change the name of a product for example I click save. A pop up states 'Please wait" after a couple of seconds it disappears and then the browser wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: drag and drop in phonegap-android I am trying to drag and drop images using phonegap-android. When i run the code in the mozilla firefox browser then the code runs great and i am able to drag any image but when i run that code in phonegap android 2.1update then i am not able to drag it and even not able to click on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should messaging classes be immutable? When I say messaging classes I mean classes that are used strictly to get sent and be consumed by a consumer (or handler). Often I see tutorials on service buses (e.g. NServiceBus) that simply make heavy use of automatic properties when creating new messages. In my eyes once a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Lucene-like searching through JSON objects in JavaScript I have a pretty big array of JSON objects (its a music library with properties like artist, album etc, feeding a jqgrid with loadonce=true) and I want to implement lucene-like (google-like) query through whole set - but locally, i.e. in the browser, without co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Can Eclipse CDT generate by-reference getter methods? Consider: struct A {}; struct B { A a; } If I let Eclipse automatically generate the getter method for `a' it has the following signature: A B::getA() const; Is it possible to automatically generate getters with other signatures, e.g. A& B::getA(); from wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3 - Update_attribues won't get changed parameters i have somes relations in my table like this Model : Floors has_many :photo Model : Photo belongs_to :floors belongs_to :file_type Model : file_type has_many :photo Photo are nested attributes with render inside floors form. The problem is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problem formatting php output I have a php website that I want to use to gather information from a unix server. A good example would be a script that would ssh into a server and run an ls command. I am having problems formatting the output so it is readable. Any help would be appreciated. The code would look somethi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to set src in iframe using Javascript I'm working on a MVC project right now and the current feature being developed is a DropDownList with each option tied to a URL. When the user selects an item and presses Submit, the expected behaviour is for the page to load an iframe on the same page with the particular UR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: strange syntax in javascript to access a specific id in the dom I am currently working on an old project with ton of legacy code. A syntax I have never met is used to access a specific id in the dom in javascript. Instead of using document.getElementById("btnsubmit"), $('btnsubmit') is used. I have never met this s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to increase height of cell for the UIImagePickerViewController Hi i have ImagePickerViewController i Need to increase the height of the cell its look's like the tableview and i need to increase that cell height of the imagePickerviewController. I hope every one can understand my question. i am attaching the pic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to interrupt an XSLT for-each loop for not contiguos elements? I have a structured XML with this structure: <root> <item/> <item/> <something/> <item/> </root> If I use something like this: <xsl:for-each select="/root/item"> it will pick all the item elements inside the list. I want to interrupt the lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does strace interpret syscall arguments? I know it uses ptrace for implementation, and it can get arguments in registers, but they're numbers only, how does strace convert them into literal information? Is it just hard code for every syscall? A: Basically, yes, its hardcoded. If you look at the sourcecode (det...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make different buttons show different data on a single screen on iPad I am making an app for iPad with different views. Till now I have added 2 views. First view is the home screen which has a single button and some images. Pressing button on first view navigates to the second view. Second view has 6 butto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use the Settings Bundle editor in XCode to specify UIs other than those for Settings? The Settings Bundle editor in XCode (New->File->iOS->Resource->Settings Bundle) seems like a convenient tool for rapidly specifying a large range of user interfaces other than just user preferences. Is there any way to use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to fill an external web form with c# application? There is some url (say url1) which is blocked till some unknown time. Currently, when you request for url1 you're redirected to url2 (Though in fiddler I get a 200 status - why ?) When url1 will be available - the few first people who will fill the a web-fom and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Omit object property during json serialization I'm using MVC Controller. Json method in order to send json result object to my javascript function. From time to time I want to omit one of my object's property from the json result object. How can I achive it? This is my .NET object: public class jsTreeModel {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CDI Injection into a FacesConverter From just a few searches, this seems like a problem that has been around for a while. I have written a FacesConverter that looks like the following. The object Category is a JPA entity and CategoryControl is the DAO that fetches it. @FacesConverter(value = "categoryConverter") p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Is there any way to get around name collisions in nested structures in my Mustache.js templates? I'm really having problems with name collisions in my Mustache templates (using Mustache.js). This example illustrates those two problems: I'm passing this data: {'recs': {'code': 'foo', 'id': 1 'childRecs': [...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: XML to excel error I've been importing various XML files to excel, which it does fine, but once i save and close the spread sheet and re-open it again to import other XML files an error occurs. The error is below. 'The operation cannot be completed because the XML map is corrupt. To fix this problem, remove the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Looking for CSS parser written in AS3 I need to load and apply CSS at runtime in my Flex app. I know that the adobe docs say that you need to compile the CSS before loading it but I would like to find a work around. I know that you can set individual styles like this: cssStyle = new CSSStyleDeclaration(); cssStyle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a difference between initializing a variable using new, followed by assignment and just assignment on initialization? I am trying to learn Java. I have a custom class, which has attributes: public class Person{ private String name; } I have another class, where I do: public class foo{ private Perso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE8: Object doesn't support this property or method I know that my issue is known, I just can't figure out a way to fix the problem. However the code works in chrome,ff and safari, but not in ie6-8. I tried to debug the code and following popped up: Line: 272 Error: Object doesn't support this property or method Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Symfony 2 - Doctrine : OnetoOne relationship unclear i've been losing my nerves over it and spent a couple of hours searching here and there, unfortunately to no avail. I've got 2 entities, we'll call them A and B for the sake of simplicity <?php namespace System\Main\SystemBundle\Entity; use Doctrine\ORM\Mapping ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Most efficient way to add missing alt tags for images in a large html document In order to comply with accessibility standards, I need to ensure that all images in some dynamically-generated html (which I don't control) have an empty alt tag if none is specified. Example input: <html> <body> <img src="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Company Intranet, PHP/MySQL hosted locally on serve I created an intranet for my company, but I’m having a problem. The files and MySQL tables are hosted on our local server, and is written in PHP. Basically it has a login system for employees and a bulletin board, calendar, etc. Anyways, I created accounts for the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby mod_passenger process timeout A few Ruby apps I've worked with hang for a long time on slow calls causing processes to backup on the machine eventually requiring a reboot. Is there a quick and easy way in Passenger to limit a execution time for a single Apache call. In PHP if a process exceeds the max executio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I animate elements stored in an array? except for the one I'm hovering over? This is what I have: jQuery.each(shapes, function(i) { this.hover(function(event) { this.animate({ fill: "#fff" }, 500); }, function(event) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue with obtaining the value of the checked radio button in a group? Please take a look at my test page, my issue is to do with finding the value of the selected radio button in the "Select picture" group. On loading I have used the following code: var currentImageFile = $("input:radio[name=selectedImage]:checke...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Controlling the ShareThis javascript window opens I have just started using ShareThis Widget to help handle social media integration with one of our sites. While the functionality is great, I feel I lose a lot of the capabilities I have if I were to code each item by hand, such as the ability to control the size of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Isolating monkey patches in a ruby gem? I've noticed that a few ruby gems that I use ship with a folder named ext or core_ext which contains a set of monkey patches to the core library that is used in their code. However, when I require those gems I get those monkey patches as well. Is it possible for gem authors or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Aligning divs center next to eachother with valign: top Take a look here http://www.basenharald.nl/3d. For the home part i put on some black borders so you can see what i mean. The problem: I need to position the 2 blocks (the "hey"block and the right part) next to each other in the center and position them individu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show specific part of ListView Android I need a little help with getting the specific part of list view based on current time.I have a list view with times as string like : "09:30" - "10:00" - "10:45".I'm using digital clock to show the current time in one activity and I want to show specific part of that listview b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Issue with Resource after upgrade. I have an app, and stupid me decided to change a resource in the file from being filename.bmp to being a png, and released an upgrade with this, I removed the .bmp from the APK and added the PNG, and placed it on the marketplace. Now, I have some users who are not able to r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sorting Gridview breaks ModalPopUp in GridView I have a gridview that has linkbuttons that call modalpopups and textboxes with values. I am trying to implement sorting for the gridview, but the if(!ispostback) statement I need for sorting prevents the modalpopup from appearing. It also does not sort the textboxes in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selenium WebDriver Multi-Threading & Browser Hiding using Java I'm using the Java API of the Selenium WebDriver: * *Is it possible to create multiple instances of the Selenium WebDriver from different threads simultaneously without conflict? *How do I change the path of the firefox installation directory that We...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to mark JTable cell input as invalid? If I take a JTable and specify a column's classtype on it's model as follows: DefaultTableModel model = new DefaultTableModel(columnNames, 100) { @Override public Class<?> getColumnClass(int columnIndex) { return Integer.class; }}; Then...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Need help using python 2.7.1 to select and run various batch files based on user input all. I am trying to use python 2.7.1 to run batch files based on what a user enters at the input prompt. The problem I'm having is the batch files do not run. I have been able to get a specific batch file to run from python if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to have more than one string resource file in Android? I have my primary string resource file for android, and it is quite full (with no end in sight). So, I was hoping to do some house cleaning and move some string into their own resource file. Is this possible? I know that one can have something li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Localized website, 1 bug: postback event doesn't work I've almost finished localizing a major website in ASP.NET. I'm using the CurrentUICulture to influence my localization. All goes well, except for the situation where I have a postback event. If I trigger this postback event, from the page that had it's culture ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to pull data from all files in a directory Possible Duplicate: Excel - VBA Question. Need to access data from all excel files in a directory without opening the files So I need to pull data from multiple files in a directory and paste it into one excel file without having to open the files. Someone was nice ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is older version of flex SDK really required? I am configuring one already done project on my system which uses old flex sdk. following is my POM <FLEX_HOME>${build.flex3sdk.path}</FLEX_HOME> <flash.player.version>10</flash.player.version> <flex.sdk.version>4.1.0.16248</flex.sdk.version> I have latest ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Writing draggable elements with jQuery? How can you write on this draggable element? Means if I double click the dragging widget it then text starts to get edit and write text in it. http://jqueryui.com/demos/draggable/ A: Maybe you are looking for the plugin jEditable which does what you need i think. You could a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to add page number option in footer with DynamicJasper API? I am creating report with help of code: FastReportBuilder fr = new FastReportBuilder(); I want to add page number in footer of each page like. page 1/3 page 2/3 A: As documented in the HOW-TO something like this: FastReportBuilder fr = new FastReport...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Conditional where clause T-SQL I have a stored procedure that returns data. I need to change the where clause based on parameters passed in. For example, the parameters are: @Region NVARHCAR(15) @CountryCode NVARCHAR(2) @ProductA BIT @ProductB BIT @ProductC BIT If @Region is passed in, then the where should select ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: php wiki parser for trac-style formatting I am creating a very simple cms for my site and rather than using html, I'd like to insert content in the same kind of wiki-format that's used by the Trac project. Do you know of any open-source php scripts/classes that I can grab and use for this? Note: I am not trying to c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using custom datatypes in Entity POCOs? I have a business object, say a User. A User has a PhoneNumber field, which is represented by a string. I, for reasons best left to me, have created a PhoneNumber class that has implicit to/from string operators. Do I have to do anything special to get the PhoneNumber writt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best practice for bringing together GWT source into a WAR using Maven I'm currently in the process of splitting our rather over grown project down into its consecutive parts. The intention is that each separation becomes its own Maven project. There will be a parent Maven project that's responsible for ensuring all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery - is there a way to re-use parameters to cut down on code duplication? Let's say I have some code like this: jQuery('#retouching-image-1').beforeAfter({ animateIntro: true, introDelay: 500 }); jQuery('#retouching-image-2').beforeAfter({ animateIntro: true, introDelay: 500 }); Rather than dupl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to cast a LONG to a CString? I want to cast a long to a cstring. I've been struggling with this for a while and I've seen so many variants of solving this problem, more or less riddled with hassle and angst. I know the question seems subjective, but it really shouldn't be in my opinion. There must be a way consi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Why does EventRecord.FormatDescription() return null? When using System.Diagnostics.Eventing.Reader.EventLogQuery to read events from the Windows Event Log, the EventRecord.FormatDescription() method sometimes returns null. Why is this? In the Event Viewer there are messages on the events which return null. A: This...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Get Gem vendor files in asset pipeline path I have created a gem with a vendor directory containing stylesheets and javascripts from bootstrap-sass and bootstrap itself. The directory structure is bootstrap-sass-gem/vendor/assets/javascripts and bootstrap-sass-gem/vendor/assets/stylesheets I've required the gem in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Ajax update for jQuery I've got some very large data tables and I'm trying to make an automatic updater with jQuery but it seems to make a lot of unnecessary databbase calls before it does the update. What I would like is to check just one variable "lastModified" and compare it to the column in the database that wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java With SQL Mapper Ok this is what I'm trying to do. Let's say I have several views each view can have aliases and such like that and each view goes back to either another or view or a table. What I want to do is trace a specific field from it's view all the way down to the source. For example if I have this sql s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple way to combine #define with key in [NSBundle mainBundle] In my iOS application I have two targets with their own .plist file: Production and Test. My app uses a bunch of different URLs which are either on the production or the test server. Hence, I have added a new key to my two plists like so: <!-- MyAppTest...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }