text
stringlengths
8
267k
meta
dict
Q: Jquery: increase the current form input value with 1 I'm just trying to get a number from a hidden form input and plus 1 to that number and then put that value to the incremented number. Here is my code jQuery('#add_slider_image').live('click', function() { var slideId = jQuery('#count-level').attr('value'); jQ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I am not able to compare two object in my asp.net mvc application I have this code to compare two objects, these two out put results are same. but my equal condition is allways getting false. I am not understanding is that something I am doign wrong here? var t1 = repo.Model_Test_ViewAllBenefitCodes(2).OrderBy(p => ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why PUSH a variable via a register, rather than PUSH the variable directly in assembly language? I came across a key logger program in asm in a forum. I though that I might create a key logger myself. When I was reading the code to see what was actually going on in that program, I came across some interesting things...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting pixels to minutes I have an application where I convert pixels to minutes and hours. Basically using minutes as a unit of measure as such: 120 minutes = 240 px I run that through this function: convertToTime: function (min) { var hours = Math.floor( min / 60); var minutes = Math.round(mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I put this into a for loop? Possible Duplicate: android: how to elegantly set many button IDs This is an android program made with eclipse. I've tried using string concatenation in the place of imageButton1 to no avail. R is the generated class so I cannot go into it and edit it so that the imageButtons are p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VIM: How to autocomplete in a CSS file with tag ids and class names declared in HTML file I'm trying VIM for HTML, CSS and JavaScript editting. I've installed a number of plugins and configured VIM so that it allows me to autocoplete standart HTML/CSS code. And now I want to autocomplete my CSS code with tag ids and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Invalid 'client_id' when using fb:registration XFBML tag (FB.getSession incompatible with OAuth2) I am trying to use the fb:registration XFBML tag. For the most part it seems to work; however, when I click the 'X' in the name field and then click 'Log Out' I get the error message Invalid 'client_id'. Although thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to select fields from one table and order them by fields from another table I have two tables. Structure of first table: id secondtableid value Structure of second table: id title How can I select fields 'id' from first table know value of 'value' column and order result by value of 'title' column of second t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the 'context' that is being passed into the onUpdate, onEnabled, onDeleted, and onDisabled methods of the AppWidgetProvider? Is it the ApplicationContext or the ActivityContext of my app? Does it make a difference which one it is? A: Is it the ApplicationContext or the ActivityContext of my app? You shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need help designing table of rules to be used for SQL selections I'm refining a script that I have so that it could be automated & maintained by end users. Previously, I mentioned a portion of this script in this SO post. As Randy describes in his answer, the logic of the SQL statement should be replaced with a comb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: show subview when UITextField touched I'm pretty new to iPhone development, so please excuse my ignorance. I've googled this a bit and so far come up with nothing useful. Here is what I would like to do: I would like a subview to popup(with the rest of the screen showing in the background) when a UITextField is tou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pattern for writing a wrapper script which calls several other scripts? I have several (bash) scripts that are run both individually and in sequence. Let's call them one, two, and three. They take awhile to run, so since we frequently run them in order, I'm writing a wrapper script to simply call them in order. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to send kind of persistent "Authorization" headers with PHP I don't know if it's possible, but if I don't ask I'll never know :) I have the exact problem discuted in this topic. That's: I have some static files in some folders and I want only some users to see that content. That users are coming from a previous ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jquery use image alt text as link anchor text i'm trying to use an image's alt text and use it as the text for its corresponding anchor tag. this would be used at some point in a slide show. this is what i have so far, but it's inserting the all text for anything other than the first image in the div. what am i mis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS: Element behind all sibling elements within a parent element I want to have a inside of another that will serve as a background to the container and sit behind all of the other elements inside of the container. The HTML would be something like so: <div id='container'> <div>Blah</div> <input type='text...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dimensional Level Security / Per User Data Security in SSAS Cube? I'm part of a team looking to move from our relational data warehouse to a SSAS cube. With our current setup we have an "EmployeeCache" table (basically a fact) which is a mapping from each of our employee ids to their viewable employee ids. This ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3.1 Asset Pipeline Woes I am using JW Player to play streaming audio files. I have built a custom skin but can't get the player to show up. When you build your custom skin, you zip up the skin along with the skin.xml file (where the flash reads for its image files and other settings) and then you point the jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I determine why JPA/eclipselink/J2EE is issuing a ROLLBACK to the DB? I am chasing a problem where I see SQL statements run in my database log in a transaction, then see that transaction rolledback. This happens on both Oracle and Postgres, but only on some installations. The application itself is a pretty s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get an exit code from WMI spun remote process I'm executing a process remotely via WMI (Win32_Process Create) but am unable to figure out how I can determine when the process has completed executing. When I first issue the command, there is an exit code (0 for success) but that just tells me the process ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: REGEX Str Replace- finding link text and making them links I've written this functionality in Flash before without issue; however, I'm now attempting to do it with JavaScript and I'm running into some difficulty. Using Regex, I'm trying to scour a string looking for anything that resembles a link... for example htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to detect if user previously authorized rights to a tabbed application without showing the authorization dialog? How can you detect if a user previously authorized a tab application, without showing the user an authorization dialog? This is a user experience concern. We don't want to throw the user at an authori...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can Excel charts be interactively zoomed and panned? I've always wanted this feature in excel I'm wondering if it's possible to develop a plugin or if one exists already? A: This might be irrelevant by now (seeing as it's been half a year), but: One improvement for Stephen Bullen's approach I would suggest is to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IP falls in CIDR range I have an IP like this: 12.12.12.12 I'm looping through different IP ranges (in 12.12.12.0/24 (example)) format, and trying to see if the IP is in the range. I have tried various methods such as inet_addr and comparing but I can't seem to get it. Is there an easy way to do this? I'm using Wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Match results in multiple tables MYSQL Hi I have a query that is giving me a few problems and it was suggested I ask a separate question about the end result rather than the problem. So I have three tables and some user input. the tables are: * *users, *usersLanguages and *usersSkills each table has a rela...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Slow jQuery animation on iPad2 I'm currently building iPad-optimised website. I have some chunks of text that I should show/hide when user touches appropriate button. The text is inside of < p> tag. I use jQuery for toggling the visibility of the text: $("my selector").toggle("fast"); But it is really choppy ... Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: xslt transform prints out entire xml file or none of it, rather than transforming it? I am trying to transform an xml file with xsl stylesheet into html. this is the java TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(new StreamSource(cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: exit function when interrupted I have an interrupt function called, interrupt_Foo() {...} which turns on a flag when 1 second has elapsed, and a user-defined function foo_calling() {...} which calls another function foo_called() {...}. I want to stop the process in foo_called() when 1 second has elapsed. The code sn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I download code for game levels in iOS? guys! I want to build a game for iOS, and I need to download levels for it. Levels should allow me to organize conditional statements, simple object discription. I know that downloading any code in iOS is prohibited, so I can't use Lua or smth. But how do other applica...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Communication between two data grids I am trying to make connection between two datagrid in two separate windows. Until now, I am able to create a datagrid in one FLEX browser window but got stuck furthur. On some click event in one of 1st datagrid row-column field value, (i.e itemRenderer in form of button), I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript regex to parse urls without protocol String.prototype.linkify = function() { this.replace(/((ht|f)tp:\/\/)?([^:\/\s]+)\w+.(com|net|org)/gi, '<a href="$&">$&</a>') } with http://www.google.com http://yahoo.com www.facebook.com it matches them all, however I want facebook to be prepended with the protocol ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A short as possible unique ID I'm making a tool for optimizing script and now I want to compress all names in it to the minimum. I got the function started for it, but it somehow bugs and stops after length 2 is exceeded. Is there an easier way to do this? I just need a pattern that generates a String starting from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Chances of memory leak when valgrind says no memory leak My C code does not show any memory leak while checking with valgrind. But when i integrate that code with another system, which has its own memory management but of course calls malloc for allocating memory, shows memory leak. Valgrind check used to be corr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: jqGrid Resizing Problem I have a jqGrid at my web page. I have a resizing problem. When I restore down my web page, all the elements at my page resizes automatically however my jqGrid table doesn't. Actually I have edited my table's width as follows: ... width:1000, ... I want it has a minimum width but have a auto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML syntax for selector with multiple subclasses I am trying to define a css rule for multiple sublcasses of a selector. Here is an example of the html. <div id="row1"> <div class="col1"> <div class="col2"> <div class="col3"> </div> <div id="row2"> <div class="col1"> <div class="col2"> <div...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Resources from a jar: classloader vs class resourceasstream I am trying to implement a method that when called, get a string from a particular resource in the jar that the class is loaded from. For example: import mypath.myclass; //from a jar String result = gitid.getGitId(myclass.class); On the backed I am...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: is it a good idea to handle deadlock retry from stored procedure catch block From what i undertand it is impossible to completely prevent a transaction from deadlocking. I would like to have transaction that neverfail from the perpective of application code. So i have seen this pattern in use for Microsoft SQL and I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How can i overwrite the parent Style to an element <div class="jqueryslidemenu"> <ul> <li class="menuitem">TEST1</li> <li class="navOFFTDDisabled" id="TEST2">TEST2</li> <li class="navOFFTDDisabled" id="TEST3">TEST3</li> <li class="navOFFTDDisabled" id="TEST4">TEST4</li> </ul> </div> CSS FILE .jqueryslidemenu ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP Solr Client - Request Entity Too Large I am using SOLR PHP client to query data from a solr service. My code looks similar to the below in that I'm passing in a query to search on multiple IDs (in my case, a lot). The problem arises for me when I'm searching for too many IDs at once. I get a 'Request Entity T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using fixed type constraints inside an interface in Java? interface I1 { ... } interface I2 { ... } interface I3 { ... } interface I4 { ... } interface MyFactory { Object<? extends I1 & I2 & I3> createI1I2I3(); // doesn't work Object<? extends I2 & I3 & I4> createI2I3I4(); // doesn't work } Is there a trick to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: No response using express proxy route I've written a small proxy with nodejs, express and htt-proxy. It works well for serving local files but fails when it comes to proxy to external api: var express = require('express'), app = express.createServer(), httpProxy = require('http-proxy'); app.use(express.bod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Dangerous file types to avoid in file-sharing website I am making a small file-sharing website where users can upload content. Recently somebody uploaded a PHP script that was presumably intended to harm the site. It got me thinking: what file types should I block users from uploading? I have already blocked .exe fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Open remote shared folder with credentials I need to open a folder on a remote server with different credentials in a window (explorer.exe). I managed to do it with no credentials (my credentials), but when I do it with another username and another password than mine, it opens a prompt to enter a username and a pass...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AudioQueue capture and returning different buffer sizes I have an AudioQueue based application working almost perfectly. I'm suffering an issue, however. When I call AudioQueueAllocateBuffer I specifically request a buffer size of 512 (as I'm performing an FFT on the data). However when the callback fires I find ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the correct way to initialize a pointer in c? What is the difference between the following initialization of a pointer? char array_thing[10]; char *char_pointer; what is the difference of the following initialization? 1.) char_pointer = array_thing; 2.) char_pointer = &array_thing Is the second initializ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Inconsistent behavior when calling same method from different event handlers I've built a little camera capture daemon which captures a sequence of images from an attached DSLR using Canon's EDSDK and Wayne Hartman's C# wrapper. Capturing works great and very reliably when I call takePhotograph() from a test button ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: page_fan query not returning results I have authorized my app and made sure it gets 'user_likes' permissions. When I execute this query: select uid from page_fan where uid='&lt;uid here>' This is the result: <fql_query_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LeaseExpiredException: No lease error on HDFS I am trying to load large data to HDFS and I sometimes get the error below. any idea why? The error: org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException: No lease on /data/work/20110926-134514/_temporary/_attempt_2011091104...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: DataSet table adapter manager help i have a plain and simple console app where i'm trying to update customers and orders tables and i'm getting an error message: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Orders_Customers". The conflict occurred in database "CustomerOrder", table "dbo.Custom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select all of a unique attribute I would like to find all the Records that have unique email addresses. I am trying to perform this : @uniq_referrals = [] CardReferral.all.select{|a| @uniq_referrals << a.email} @referral_count = @uniq_referrals.uniq.each{|a|CardReferral.find_by_email(a)} But I would like to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems with user features with Jtwitter My code is : List<Status> list = new ArrayList<Status>(); User user; Twitter twitter = new Twitter(); list = twitter.search(string); for(int i=0; i<list.size();i++){ user=list.get(i).getUser(); System.out.print(i+1); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can you use assert to test type defintions in C++? Can I use assert to enforce type definitions. Suppose there is a variable, double d, how can you use assert to assert that d is a double? If assert is not applicable (which I am betting isn't), is there another option? I am specifically looking to test for implicit ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: In web application, how does DateTime.Now know the local time for user? According to this DateTime.Now vs. DateTime.UtcNow you store date time information in UTC and show it to user as DateTime.Now. If it is on web application, how does DateTime.Now know about user's location and adjusts UTC time accordingly? Is lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Single characters are not printed on the terminal I have 3 different processes that all print out single characters using printf. But I can't see them in the terminal. When I add a newline, printf("\n H") so each character is on a new line, I can see them. Why doesn't it work without the newline character? A: Its a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to determine if mousepointer is over an element that should trigger onMouseOver? I am attempting to mimic the bing video search preview feature. I have a single flash video player element which loads on page load. I also have multiple images contained in overlay divs that should trigger playback (onMouseOver eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: STL Sort on nested Classes I have a graph class that has a vector of nodes. In each node, there is a vertex and a STL list of edges. Essentially it's an adjacency list. For my assignment, I am trying to display the vertices with the most edges. I figured I would sort the graph's vector of nodes by edge size and prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to optimize this IP to Location lookup query? UPDATE tracker SET t_loc_id=(SELECT cb_loc_id FROM city_blocks WHERE INET_ATON(t_ip) BETWEEN cb_start_ip_num AND cb_end_ip_num LIMIT 1); There are about 300K records in tracker and about 3.6M records in city_blocks. It's been running for over 30min now. I've got uni...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing displayed data from a static method in ASP.NET I have two user controls that sit on a page which determines which should be displayed. The user controls generate some html that is passed into an asp:literal and subsequently manipulated via javascript. It is done this way due to the lack of a suitable contro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I add multiple form fields (at once) with an 'add new fields' button See http://jsfiddle.net/jFzhC/ for the button I'm looking for. Although, this only allows for one input field to be added at a time. How can I display 3 fields, horizontally aligned, where the 'add new fields' button creates 3 additional...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Red arrow icon in subclipse My computer set-up: -eclipse with aptana studio 3 plugin, plugin development tools and subclipse and i have 2 projects under version control. i managed to copy the files from one project to the second since i don't know how to merge two projects yet. when i tried to copy the js folder fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Hide a Column in datagrid, without setting column.visble=false <asp:BoundField DataField="TimeRead" ItemStyle-Width="25%" HeaderText="TimeRead" SortExpression="TimeRead" /> <asp:BoundField DataField="Name" ItemStyle-Width="45%" HeaderText="Name" SortExpression="Name" /> <asp:BoundField DataField="Email" ReadOnly...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to load a partial view on button click in mvc3 I have a DDL, on its change I load a partial view _GetX. Right now I am using it like this @Html.DropDownListFor(model => model.XId, Model.XList, "Select", new { GetUrl = Url.Action("GetX", "Route") }) I need to load this partial view on clicking a button. How d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Load swf without instantiating Is there a way I can load a swf file but not automatically instantiate it's DocumentClass? Instead I want to do something like the following: protected function mainLoaded(e:Event = null):void { trace('mainLoaded'); var main:* = this.mainLoad.createClassByName('Main'); trace(main...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Customize Django Admin Change Form Foreignkey to Include View Record When selecting a foreignkey in the django admin change form I am trying to add an href that can view the record next to the plus that adds the record. What I've tried just to get the href to render is I've copied out the admins def render into my o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visual Studio 2010 randomly says the command line changed, and rebuilds Visual Studio sometimes decides to rebuild my entire huge project because of one small change. I turned build logging up to Diagnostic to see what was the problem, and here's what I'm seeing: < Bunch of spam > Outputs for C:\<snip>\PRECOMPILEDH...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Jenkins with the Measurement Plots plugin does not plot measurements Is there anyone who was successful in getting a plot using Jenkins with the Measurement Plots plugin and a xUnit test results file with the tags? If yes, I'd like to see a sample of a working xUnit file and get from you any tips you may have about...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to retrieve similar named tags in the xml using linq I have the code like this: Here if I give same named tags inside the parent tags then 'Object reference not set to instance of object' error comes.(the DataList is object of type List) IEnumerable<XElement> elements = xmlDoc.Descendants(); foreach (DataSource...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery - $.each link in object I have the following API example: "urls": [ { "value": "http://twitter.com" }, { "value": "http://gplus.to" }, { "value": "http://plus.ly" }, { "value": "http://glpl.us" }, { "value": "http://microsoft.ms/+" }, { "value": "https://plus.google.com", "type": "profile" }, { "value": "http...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ConcurrentHashMap foreach loop problem I have a concurrenthashmap called users. I have user objects in it with some integer keys that is not id. I want to find the user with a given id. Therefore, I check all elements of hashmap and return the user object if it is present. Here is my code : for(User u : users.va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: WinRT Data Virtualization implementation in C# I have asked this question on the MSDN forum (with no success), maybe StackOverflow will prove its strength one more time... I was attending Hamid Mahmood's session on collection and list apps and was excited to see control-level support for data virtualization. Unfortu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Git: How do I remove files listed in git status -s with "??", these are files I added to local repo? I have a few files in my git status -s listed as, ?? file1 ?? filepath/file2 ?? file3 ?? filepath/file4 I have been ignoring these and going along committing, pushing, pulling, and I am at the point where there are...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: FedEx "Service INTERNATIONAL_GROUND is invalid" message i made integration with FedEx web services. All things works like a charm, but when i try to use international ground service type it raised me this error "Service INTERNATIONAL_GROUND is invalid" error N782. What could be the problem? FedEx support told me tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TortoiseHg: Overlay icon issues (Windows)? My TortoiseHg Windows explorer overlay icons are often in the wrong state for unknown reasons. In order to fix this I need to update icons on the folder, which I cant seem to do for multiple folders at once. This is annoying as I am often working on a large number of proje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: POST vs GET method for a search form in CMS I'm a bit stuck with one thing. Just can't make up my mind on whether to use POST or GET method at my search form. Normally I would use GET method for such a form, so users could bookmark their results they got. But this time, the search form is present in administration a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7559996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: php pagination querying multiple tables I am trying to display data from 6 different tables and use pagination so the user can scroll through the items similar to a shopping site. I am using the following code to display a field called request id from a table call request (as a test) in pages of 10 which works fine....
{ "language": "en", "url": "https://stackoverflow.com/questions/7559997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I override locale values with custom values in Rails? In my en.yml locale file (config/locales/en.yml), I have en: settings: updated: 'Your settings have been updated.' Sometimes, I want to override settings.updated with other text but still use the en locale. I've tried the following, but settings.up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring themes with hibernate by implementing Spring's ThemeSource class Does anyone know how to use a custom ThemeSource in spring? I have seen many examples on how to use themes with property files using ResourceBundleThemeSource. Yet I have seen nothing on how to use hibernate to store vairous properties (such a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to register a Controller into ASP.NET MVC when the controller class is in a different assembly? My goal is to modify asp.net mvc's controller registery so that I can create controllers and views in a separate (child) assembly, and just copy the View files and the DLLs to the host MVC application and the new cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Stopping a c# system tray application in .net 3.5 I have a .net 3.5 C# windows tray application that is installed using inno. In the uninstall script I need to stop the application if it is running. I've tried several methods - all unsucessfully. Is there a standard way of doing this that I am ignorant of? Simon ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Manipulating Strings in x86 assembly code , NASM, Linux I have been trying to manipulate a string in my .s file i want that the variable "pa" that contains "/bin/bash" be transformed into "/bin/sh" and then i want to make a call to the system that executes "/bin/sh" I have written a print mechanism to make sure tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fscanf in C for storing data from file Here's my code. #include<stdio.h> struct element { int value; char activity; }; typedef struct element element; int main(int argc,char** argv) { FILE* fp; fp = fopen(argv[1], "r"); element a; while(feof(fp) == 0) { fscanf(fp, "%c %d", &a.act...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programmatic performance of a Java method Two way of doing things and I'm curious which is faster: First way: if (!map.containsKey(key)) { map.put(key, new ArrayList<String>()); } map.get(key).addAll(someList); Second way: List<String> existingList = map.get(key); if (existingList == null){ existingList = n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to escape a period (.) in WCF Data Services QueryString I have a WCF Data Services service that exposes a set of ICD codes. The primary key for the underlying table and the data set that WCF provides access to is a varchar or string in C#. The service works properly if I have a query like this: http://somehost/s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Selected Index changed doesnt fire I have a drop down list that is populated on page load and by default the selected index is 0 and its set to an emty string. On page load if we change the selected value the selected index method doesnt fire. if(!page.isPostback) { this.ddl.DataSource = list; this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is void a type? I can't answer completely "why should we call "void" is 'return type'?" How do I prove that "void" is a type? A: Quote: TYPE public static final Class TYPE The Class object representing the primitive Java type void. Taken from : http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Void.html...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: superscript altering the line height I have a superscript that is messing up the line spacing. How do i make it even? I tried sup{vertical-align:0; position: relative;} but that doesn't help. Any suggestions? A: We can achieve it by ignoring the <sup></sup> tags and directly using something like <span style="pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MVC JSONP TreeStore I'm starting coding with Sencha Touch and I would like to do the same thing as below, but at distance: MyApp.search = new Ext.data.TreeStore({ model: 'ListItemSearch', proxy: { type: 'ajax', url: 'search.json', reader: { type: 'tree', root: 'items' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: setTimeout is not staying true to the delay I give it inside a $.each Given this code: counter = 0; $('div').each(function () { counter++; console.log(counter + ': Timeout is: ' + $(this).index() * 150); setTimeout(testTime(), $(this).index() * 150); }); function testTime() { var currentDate = new D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET Repeater loading image In my application i used repeater control.For that i have loaded item at a time.But my client wants to display first 6 items then if the user come to end of the page it will display a image named loading image and after a short time display another 6 items and again the user came to en...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Images showing in wrong places I am trying to make a very simple tiled rpg. In the first tests, tiles where in the correct places, but when I refactored the program and created classes called map and tile.map for storing and displaying maps and tile for storing tile's pos and img and for collision detection, it was ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why do I get a SIGSEGV with glib? When I run the following function I get a SIGSEGV. I can't figure out why... Can anybody help? Point me in the right direction? I is ment as a part of a larger program which scans the directory hierarchy for duplicate files. #include <stdio.h> #include <stdlib.h> #include <glib.h> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue loading content with jQuery UI Tabs with Ajax I have my jQuery UI Tabs working right now but need help implementing the Ajax side. What I need help with is getting #tab-2 to show information (@user.messages) from the MessagesController in a layout that exists as a partial in the MessagesController. My applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add comment box to page? I am trying to model my "add comment" interface with what you see in the diagram below. However, I was unable to find such a UI element in the XCode library. Is this a customized UI element? Or can I find a UI with the same look and feel as what you see in the diagram? A: You can ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Bits vs Char - What's the best way to store 3 mutually exclusive flags? I've got a table which is set to keep track of various items. Among other properties, items can be either A, B, or C, each mutually exclusive of the rest. Is it best practice to store this information as a character, or as 3 sets of bits (isA ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to Plugin Web Pages dynamically in ASP .NET (and update the plugin)? For regular assemblies one can use MEF to load assemblies dynamically. If a live update is required of those assemblies, the recommendation is to use AppDomains to host the dynamic assemblies (potentially one can use Managed Add-in Framework (M...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Ajax contact form with Mootools I'm currently using the following tutorial for my website: http://www.roscripts.com/AJAX_contact_form-144.html I've changed a couple variables in the code, namely my form and the corresponding variables in the PHP file. This is what my form looks like: <form id="contactus" action="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing NALU h.264/avc, for RTP encupsulation What I can and cant change in NALU in terms of syntex and size, if the nal is meant for RTP encupsulation? A: You can change whatever you want, provided that resulting bit stream is still compliant to: * *MPEG-4 Part 10 Specification (H.264) *RTP RFCs 3550 (RTP), 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Guard with Haml, Livereload, not compiling changes I've successfully installed guard with haml and livereload plugins. In a running guard shell, when both are running, if I press enter, haml successfully gets compiled to html, then served up to a listening browser. However, when only editing the haml file, and I sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: How to know where the app is running There is some way to know if my Android app is running on debugger or on a phone?. I want to check some variable, property, or something like that to know where the app is running to prevent some crash when I call some 3rd applications (not available on debugging time) T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mssql_connect for sql server in windows authentication mode I am trying to connect to sql server 2008 in windows authentication mode (w/o username and password) by using $connect=mssql_connect('username\SQLEXPRESS') But it is giving me a fatal error Fatal error: Call to undefined function mssql_connect() What should...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing XML in PHP returns SimpleXMLElement Object. What next? Below is the response I get when I try to parse the XML code returned from Library of Congress SRU Service for a book search. How do I look into [recordData] => SimpleXMLElement Object to get the title, creator, publisher information? This is the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7560082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }