text
stringlengths
8
267k
meta
dict
Q: Rails association help Hey I made a scaffold called pictures, but now I need to it to have many tags. I want it to be so that you can do something like click add tag then fill in a tag, then click add tag ..., this would be in pictures/new and edit, and maybe show. I don't have a clue how to do this and I am not tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conventional c++ program header file structure? I know the mechanics of how header files work in c++ but i'm just starting to write bigger opengl programs with lots of classes and i was wondering if there is a "standard" or conventional way of organizing larger programs around header files or if it is just personal ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: HttpURLConnection reading input streams fails I have a file of size 5MB & want to download through a HttpURLConnection ( target is like "http://...../songs/Beatles_And I Love Her.mp3"). I'm trying to do it as follows URL url = new URL("http://........../songs/Beatles_And I Love Her.mp3"); URLConnection urlConnectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simplifying logical expressions NOTE: This is NOT homework. I want to come up with the right approach to designing the right algorithm to deal with this simple problem. I have a state (representable with a positive integer) which changes over time. I have another value which is a constant specific state (representa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: why does sendRedirect not work? I really need help in this situation, you can watch my full html page for fully understanding. Full html page : http://pastebin.com/zKTmaRxx I will focus to a part of it to explain my problem : <% if(request.getParameter("type")!=null) { UserDTO user = new UserDTO(); user.setUs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are these queries valid? EDIT: figured out how to query an array. What about querying for a field in an object with dot notion? attributes: colors: 'red' collection.findOne {attributes.colors:'red'}, (doc) -> #returns that doc A: You need to quote an attribute with a dot in it: collection.findOne 'att...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to open up .sh extension in ubuntu I am a window user,and never tried Linux before. Because of project, I installed the Ubuntu and I downloaded one file in .sh extension. That file is the python from Enthough Distribution. I tried to double clicked the .sh file and there is error. I really have no idea how Linux...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XCode resources on network drive. Safe to use? I was wondering, if it is a recommended way to have graphic resources on a network drive. Here is my thoughts. I use my windows machine to generate graphics for IOS apps. These graphics are stored on a shared drive I then copy those graphics into my xcode project and ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does the photos api require an access token for public photos? The photos api requires an access token to be provided when making a request for publicly visible photos. However, any access token will do. So on this discussion board and others, developers have been advised to simply use their own developer access...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to find instrumentation target package: com.android.cts.stub Running the Android CTS encountering lot of failures due to following error : Unable to find instrumentation target package: com.android.cts.stub What might cause this error and how could i fix it? Note that there do have same test packages pass. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to take a value at a pointer and copy into another pointer I've got a method signature: void word_not(lc3_word_t *R, lc3_word_t *A) I need to take the contents of *A and copy them into *R. How do I do this? I've tried assignment *R = *A; but my compiler complains. Any ideas? A: memcpy(R, A, sizeof(lc3_word...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NetBeans Javascript? I just downloaded Netbeans because I read another question saying it's a good IDE to develop Javascript with. I tried making a new project, but there is no option to set it to Javascript. If anyone knows how to set it up to develop with Javascript, please leave a reply. I will be much appreciati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Event listener and event dispatching process For onTouch listener, the function is public boolean onTouch( View v, MotionEvent event ) based on the tutorial I'm following, it stated that return true - we have already processed the event ; return false - View itself will process the event I can't really understand th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: most local size useable locally using GCC (windows 32, C only, default build options ). what is the largest size of my local stack.. ? for example: void myfunc (void) { char is_this_too_big_for_a_local_var[64*1024*1024]; somefunc(is_this_too_big_for_a_local_var); } possibly from some traumatic experience during my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery help needed for function to run first Hello i have a script <script> $(document).ready(function() { test(); jQuery('#bf_dishes > li > a').live('click', function(e) { alert('HI'); i=1; var kitchenname=$(th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this a good idea for an extension method? Often I see code like this scattered and duplicated around source code: var handler = MyEvent; if (handler != null) { handler.Invoke(null, e); } Is there any reason not to just encapsulate it within an extension method like this? public static void SafeInvoke<T>(thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are attacks to execute code or modify webpages? A friend of mine suffered an attack where all his index files (php or html) had an iframe injected. It got me thinking I heard of sql injections and exploits on a site to do something it didnt intend you to do. But how might someone execute code or write/modify pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript CSS single selection toggle (vertical list) I would like to create the following but am not sure what would be the best way to go about it. I want a vertical list of items on a web page. Each item is click-able. When the user click once one list item, I want to show that it has been selected (by showing a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: creating a new instance of a class object box() I there, my aim is to create a new instance box at the push of a button, the box has strings name and Id to be filled concatenating the auto generated ID i.e. 0 to 210 plus a string "Box" added by the user. I had problems earlier creating a structure within the class b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where should I start investigating SocketTimeoutException: Read timed out Every now and then I see following stacktrace in the log in which, HttpClient socket times out trying to access text/script content from another server. My question is what config settings should I check for my J2EE app running on Weblogic, on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: adding mysql rows in views.py I am creating a powerlifting database, or trying too. I have a users Squat, deadlift and Bench Press amounts. Lets say i want to add just there deadlift and benchpress amounts, for example, but not store it, in mysql shell i do this: mysql> SELECT sq, dl, bp, sq+dl AS sq_+_dlweight FROM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Packaging Error: semicolon expected When I package my app, it's gets to 35% complete, then the following error message shows up and it stops. Any idea what it could be? Thanks I appreciate it! [ERROR] /Users/emes/Folder/Apps/MyApp/build/android/gen/com/*gameplay*/*mole*/ApplicationStylesheet.java:5: ';' exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ostream equivalent of %.2f or %.2lf double d = 1/2.; printf("%.2lf\n", d); This prints out 0.50. This is what I want to replicate using ostream manipulators. However, none of the obvious iomanip manipulators let me set the minimum required decimal places (if I understood correctly, setprecision sets the maximum w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Sql Server XML tag manipulation I have an XML something like this. <person> <dwelling> <street>S</street> <city>C</city> </dwelling> <ssn>123-232-232</ssn> </person> I need to transform all the node names, let's say to upper case all the tag names. What is the fastest way to achieve thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using a simple map-reduce to list all keys in a bucket vs. bucket.get_keys()? According to Riak's docs (using Python bindings), get_keys() is extremely expensive and not suitable for production. My question is whether a very simple map query is suitable. For instance, using a map stage only with the function: func...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how merge changes in a feature branch which already has changes from trunk I see very similar questions asked previously, but can't seem to find one that is the exact answer to mine. Sorry if this is a duplicate. I am working on a feature branch, committed 10s of revisions, and every now and then I have been mergin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to sort an java.util.ArrayList based on ChildType? public interface Human<T> extends Comparable<T>{ } public class Men implements Human<Men>{ public Men(String firstName) { this.firstName = firstName; } ..... } public class Women implements Human<Women>{ public Women(String firstName) { this.first...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Trouble deploying Django app to Heroku: name 'install' is not defined EDIT: I narrowed down the problem to the presence of the "distribute==0.6.10" line in the requirements.txt file. Removing that line fixes the problem, and haven't run into any errors from that line not being there... yet. I'm following the tutoria...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does JPA @ElementCollection annotation always produce an one-to-many relationship? For this question, consider the following sample: @Entity public class File { public static enum Permission { READABLE, WRITEABLE, EXECUTABLE } @ElementCollection @Enumerated(EnumType.ORDINAL) Set<Permission> permissi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: stages for developing NFC applications i am new to the NFC technology. i have experience in developing Android appllicaions. i need to get some basic concepts regarding the development of NFC applications. to start with, what are steps for developing NFC applications in a mobile phone? i came across to these stages....
{ "language": "en", "url": "https://stackoverflow.com/questions/7592247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rhino E4X does not allow xml literal in {expression} I am using rhino1_7R2. I have found that the following program causes syntax error(illegally formed XML syntax): function b(node) { return <span>{node}{node}</span>; } a=<span>foo {b(<div>bar</div>)} baz</span>; alert(a); but it works: function b(node) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What type parameter will be used if I call a generic method with a raw type as argument? I'm just curious what's the generated inferred T type when passing a raw to a T type. It does compile but with a warning. public class GenericMethodInference { static <T> void test5(List<T t>){} // clause (5) public st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to retrieve two IMAP4.select() I'd like to retrieve two folders using the select method. I'd like to get the "Inbox" as well as the "Sent". Is there a way to do this? Currently, the only way I know of, I can only get one folder at a time using: IMAP4.select('INBOX') A: Selecting an IMAP folder does not retriev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Designing a table to store EXIF data I'm looking to get the best performance out of querying a table containing EXIF data. The queries in question will only search the EXIF data for the specified strings and return the row index on a match. With that said, would it better to store the EXIF data in a table with separ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: tools similar to yourkit? I've been using yourkit, it's a great tool. I normally use the CPU consumption level curve, and thread drill-down against time. but recently I am suspecting that yourkit is causing the random 20-seconds freeze in my application, since no excessive IO or GC is happening, and in such freeze p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Retrieving emails and storing them in MySQL How would one retrieve emails from an email server and put them into a mysql database? Idealistically sticking with php. But could incorporate another language if needed. A: Yes, there's. If you're using a hosting solution with cPanel. You should take a look at http://ww...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XML Schema (Attributes) and (Multiple Elements) In An XML Schema. Say I already have a root element and this is a child element <car type="firebird">1970 Red Firebird</car> In an XML Schema how do I declare that attribute? Also if I have more than one element and declare "minOccours" do I need to declare "maxOccour...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I reference a google map in another script? How can I reference a google map in another script? On my WordPress page, I load javascript (a) that builds my map, and jQuery script (b). I need to figure out some way passing a reference to the map to script (b). The problem is that the map is created inside a fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ExtJs Drag drop tree, get drop Position I have drag drop tree and this is the viewConfig property viewConfig: { plugins: { ptype: 'treeviewdragdrop', appendOnly: true }, listeners: { beforedrop: function (node,data,overModel,dropPosition,dropFunction,options){console.log(overModel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any photo gallery library for Android? Since the built-in photo gallery widget in Android is not good enough (easily crashes), I am looking for a 3rd party photo gallery library ? Please recommend if you have some good choices. Thank you. A: There are a few libraries available such as: * *https://github.com/pake...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Put HTML in View of Server-side MVC or just echo back response I'm implementing Codeigniter on the server, should I use the view to generate the view or should i just echo back the response back to the browser when it's at the model phase. Is the 'view' of CI's MVC just for 'displaying' content? Can you still apply ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VB - How to obtain category color for Outlook AppointmentItem First time here... I'm editing OlCalndr.dot macros (import Outlook Calendar info into Word) and trying to grab the category color for each appointment. I have the AppointmentItem object, and appt.Categories will return a String of the categories this appo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best route to create an interactive map-based website? An example of what I would want to do is allow a user to set a start and end point on a map, get directions, show various routes between the two points, and store this route in a MySQL database using PHP. Does anyone have advice on the best way to go...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bugs with jquery.live()? Can anyone explain to me what's going on? http://jsfiddle.net/K5yvp/2/ So the way to "achieve" the bugs is : * *Click Show Parent or Show Parent 2 *Click Next to alert *Click Hide to hide (I even remove the contents with html('')) *Click Show Parent or Show Parent 2 again *Click Next ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problem setting up multidimensional array and using .push() I'm trying to setup a multidimensional array where I can push value into it where it needs to. For example, I have a cacheArray = new Array(col0Array, col1Array, col2Array); which would accessible using cacheArray[0] etc... Now, in a loop I would check cach...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Database not published with vb I put database in bin->debug and i also call from that folder using DataDirectory Business_Card_Database.accdb when i publish the project database not found error is occur I cannot find solution plz help me note I also tried 1. System.IO.Path.GetFullPath 2. Application.StartupPath 3. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rails associations for 2 tables with same columns I'm wondering... (1) what should be the correct associations for 2 different tables both with 2 same columns (2) how do i display the user list in views with for loop So one table is called Attending and has 2 columns: Events & Users Another table is called NotAttend...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Managing threads in a ThreadPool I would like to know once the thread is done processing something, is it better to put the thread back or to discard the thread? Does ThreadPool uses a Queue internally to store Threads and give it to process which requests a thread? I looked at C# impl of thread, source code, hard t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom Change Tracking implementation for Entity Framework 4.0/4.1 + WCF I try to create a custom change tracking mechanism for Entity Framework 4.1 in my project due to use of DTOs and WCF services. I have 2 options when it comes to update situation * *I can simply send object's all fields to database as update,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert pseudo code to Python Just to be fully up front, this is regarding a homework, but this in itself is not the assignment. The assignment is using noise to create cool graphics. I have a bit of experience in Python but not enough to figure this simple thing out. I'm having trouble generating a seeded-random [-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java Bytes for AES Decryption I am trying to do brute force AES decryption using Java. The cypher text is 160 hex characters. I know the last half of the 128 bit AES encryption key (all 0s). How can I make a loop to test all the permutations of the first half in Java using byte arrays? I hope that makes sense. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Grails: custom constraint error messages I have class like this class Account{ AccType type ; static constraints ={ type(nullable:false); } } and in grails/i18n/message.properties I wrote: account.type.null = Please filled in with account type but it seems the error still : Property [type] of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to concatenate a field in linq to sql I would like to achieve the following sql query in Linq to SQL. SELECT TOP dbo.SiteDept.SiteDeptId, dbo.Site.SiteName + ' / ' + dbo.Dept.DeptName AS SiteDeptName, dbo.SiteDept.SiteId, dbo.SiteDept.DeptId, dbo.Dept.DeptName FROM dbo.SiteDep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert a block of white spaces starting at the cursor position in vi? Suppose I have the piece of text below with the cursor staying at the first A currently, AAAA BBB CC D How can I add spaces in front of each line to make it like, and it would be great if the number of columns of spaces can be specified on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: How do I check if a value currently exist in a while loop? Let's say I have this table in my database... id | name | beginventory | sold | datesold 101 | rock | 100 | 5 | 2011-9-12 201 | paper | 50 | 10 | 2011-9-13 301 | pen | 30 | 20 | 2011-10-1 101 | rock ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP error with :, I am trying to run this php code as a command line in applescript. here is the code "/usr/bin/php -r '($mac = 'gg:a2:gg:gg:gg:e6'; $porttemp = '9'; $ip ='255.255.255.255'; $mac_bytes = explode(\":\", $mac); $mac_addr = \"\"; for ($i=0; $i<6; $i++) $mac_addr .= chr(hexdec($mac_bytes[$i])); $pac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get value of group of checkboxes or radios So I am generating a form that is different depending on what the user has chosen. Because of this, I have no idea what is on the page (i.e. select, checkboxes, radio, textarea, text input). I need a way to just see if a group of radios has been checked or not, essentially...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Jammit append query string to end of file on production Jammit does not append a query string to files in production environments after compiling all the assets. This presents caching problems for me since my web server uses query strings to bust the cache. How can I use jammit (or another tool) to properly uglify,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating animated progress bar in iOS I am trying to make a custom animated bar graph for an iPad application (i.e., bar height increases to set level when activated). I am quite new to iOS development and I just want to get feedback on how to approach this task. I am trying to play around with the answer in this en...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error while trying to send an email in asp.net I was trying to impliment an email option in my program.. The follwing exception was thrown +$exception {"The server rejected one or more recipient addresses. The server response was: 550 5.7.1 <"mail-id">... Relaying denied. IP name lookup failed [172.25.9.23]\r\n"} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to keep track of fields on a web-app Take Facebook's reply-to-status as an example. When you replies to someone's status, does the script looks into the DOM of that status for the ID of that status, and send an Ajax to update the entry with that ID? If that's the case, couldn't you just modify the ID and pollute...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making the git repo smaller I've added some large binary files quite awhile ago I probably shouldn't have, committed & pushed to Github. Now when myself & others clone, it takes ages - is there a way to fix this, perhaps by deleting those files permanently or deleting those old commits? A: A quick google search gav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Design problem: Running sequence numbr across multi-threaded processes I have 3 multithreaded processes. I want to implement a sequence number generator (every call to it shall return next number in sequence). All the three processes or their threads can request generation of next sequence number. I am looking for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to trigger scrollsToTop when UITableView is nested inside UIScrollView I was wondering if anyone had had any luck triggering scrollsToTop (or by any other means) for a UITableView from the user tapping on the status bar when the UITableView is nested inside a UIScrollView that also observes this function? I know...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What Javascript event fires when async resources are finished loading? If I load a script asynchronously like this <script type="text/javascript"> (function () { var js = document.createElement('script'); js.type = 'text/javascript'; js.async = true; js.src = '<%=BundleTable.Resol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++ Access violation? Why am I getting an access violation reading location 0xC0000005 here if the same code works like a charm when I coding in linux? if(nodo->izq!=NULL) //nodo is a class or struct and "sig" is a pointer of the same kind VaciarAux(nodo->izq); Is there any way of getting this done without that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Memory management, addSubview for a subclass of UIViewController I have a view that shows a map. I have a custom subclass of UIViewController (DetailViewController) that gets shown when the detailDisclosureButton of the callout above the pin is pressed. While in my map class, I create my detailview and add it to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populate a JSON file with Rails fields in Profile.all I'm using jQuery Tokeninput for tags in my Rails app. I have never dealt with JSON before (I'm new to programming) but I was wondering if there was a way to create then populate a json file with string values from Profile.all. Here is the index in my TagsControl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript encoded? someone is using a weird script to bug my forum, I tracked it and found the javascript, but it's "encoded", can someone help me ? here it is: <script language="javascript"> var enkripsi="'1A`mf{'02mlNmcf'1F'00qw`okv]dmpo'0:'0;'1@'00'1G'2C'1Admpo'02lcog'1F'00o{dmpo'00'02cavkml'1F'00jvvr'1C--dmpwo,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Datefield Ranges - Flex I have two Datefields .Is there a way that i can set the date of second Datefield to a specified range(say three days ...?. I tried to do it but not worked .. dont know to convert date back to string and format it .. here is the code <mx:DateField disabledRanges="{[{rangeEnd: new Date(2011,05...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Iterative appending of array with arrays from sql results am new here, but have enjoyed reading others' questions and answers. I'm fairly new to PHP and am working on a project - basic table look-ups in MySQL, etc. What I want to end up with is an array of arrays, the form of which is shown below with condiments (n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dynamic properties in objective c I found out Objective-C object properties can be marked as @dynamic to let compiler know that implementation will be available at runtime. I'd like to know if there is a way to tell the compiler that all properties on an object are dynamic without explicitly specifying them one-by-o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to use Nested Enums with Java Type Erasure public enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY; public enum WeekDays{ MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, } public enum WeekEnds{ SATU...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Post directly to twitter and youtube I am thinking of adding a feature to my website that allows me to write a post or add a video on my site and also post it to my twitter and/or youtube accounts with the click of a button. Does anyone know if there is a way to do this? I am not looking for code, just some links ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I need to implement synchronized on writing data to a same file by using BufferedWriter and FileWriter? I am working on Webmethods Integration Server. Inside there is a java service which is in form of a static java method for writing data to a log file (server.log) by using BufferedWriter and FileWriter. The sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Bind Values To a comboBox Dynamically I am Working On a C# Windows Form. I have A Combobox In My Windows Form Where I need to Bind Values Dynamically Form Database Accordingly. With An Example Can Anyone explain Me How To Do It. A: Get the Values of the database store them to an array or a DataSet, and by using Com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent deletion for specific id For ex I have a table1 with id and name field. I use bindingsource to bind data to datagridview. Now I expect that user can not delete row which table1.id = 1 or table1.id = 2. How to do that either use C# code or trigger in MYSQL. ps : I use save button on the bindingnavigator to up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to score only one field when using multi-field query? The scenerio is like this: I have to use multi-field query, which indexed several field. When scoring, I want to only consider one field. Say the query is "name='Chris' and age='25'", the final score is calculated according to age only. How can I do this? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting DllImportAttribute and its data in an assembly I am trying to find (at runtime) the the the p/invokes along with their information: 1) Dll name 2) EntryPoint. I tried something like this: Assembly.GetExecutingAssembly().GetCustomAttributesData(); but for some reason I dont see the type DllImportAttribute ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Normalizing MySQL table with records of another table i have 2 tables. The city tables is not normalized because the country information is in plain text. I have added the id_country to the 'city' table (that column is empty). I need to check for matches between city>country and country>country and then update the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can we show route on map based on less traffic? My requirement is I have to draw the route between two points on map based on the traffic condition. That is, the route with less traffic is to be drawn. Is that possible through google maps? Please help me out. Thanks in advance.
{ "language": "en", "url": "https://stackoverflow.com/questions/7592433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tabbed Google Maps V3 Info-Window with mini-map AND content I'm wondering how I can load an InfoWindow with two tabs: one displaying a minimap more zoomed in on wherever the infowindow is, like the marker.showMapBlowup(); of V2. The other tab would be regular text content I've created. Anyone know how to do this in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to do shake the iPhone using Cocos 2d I can detect shake in iPhone using Cocos 2D when I use: -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration Now, I want to do shake the iPhone using Cocos 2D. Who can help me? A: In the iOS Simulator, click "Hardware" and in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: seg fault during printf on variable I just set So I'm seg faulting when I call printf in the following situation. I just can't see what I'm doing wrong. Any ideas? Thanks a million. I've marked the spot in the code where i get the seg fault with a comment (in the first chunk of code). ... char* command_to_run...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best practice for serving static files in Django currently I've found plenty of advice for how to tackle static files in Django 1.x. Is there a best practices way to go about doing so? A: There are may approaches to serving static files in Django, but Django 1.3 introduced a new option to handle them. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to invoke OCaml from .NET? Is it possible to use OCaml with .NET code? I would like to invoke it like C++. Or maybe there a bridge for it. A: Have you considered CSML? You would need to write a bit in its interface description language, and then should be able to call from .NET to OCaml and vice ver...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: On click effect on the image button I have created image buttons instead of normal buttons.On click on the image button I want a click effect as in the normal icon click effect(On click of menu the background of the icon will be yellow color) of android phones.Using the following code I code show an image on click o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the difference between asynchronous I/O and asynchronous function? Node.js, is an asynchronous I/O. what does this actually mean? Is there different between I create an async function by spawning another thread to do the process? e.g. void asyncfuntion(){ Thread apple = new Thread(){ public void r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Java null char in string I'm trying to build a string in Java which will be at maximum 3 long and at minimum 1 long. I'm building the string depending on the contents of a integer array and want to output a null character in the string if the contents of the array is -1. Otherwise the string will contain a character...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to update other components on transfering contents of primefaces picklist? I am using PrimeFaces-3.0.RC1-SNAPSHOT pickList. I want to invoke some function on transfering any item from source to target and vice versa so as to update the contents of another picklist. I tried by adding valueChangeListener="#{myBea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What visualization libraries are available for Fortran? What visualization open sources or free software libraries are available for the Fortran programming language? Are there any similar to MatPlotLib for Python, for Fortran? If not, most scientists require visualization not only to generate some outputs but also ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Display only the individual error message using validation Engine Iam using jQuery Validation engine in my Asp.net MVC application. I would like to show individual error messages.Now it showing both the individual error message and also summary at the bottom. So it would be really helpful to know how can I display ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Haskell http response result unreadable import Network.URI import Network.HTTP import Network.Browser get :: URI -> IO String get uri = do let req = Request uri GET [] "" resp <- browse $ do setAllowRedirects True -- handle HTTP redirects request req return $ rspBody $ snd resp main = do case parse...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I do different things per macro value? #define TYPE char * if TYPE is char * do A if TYPE is int do B Is there an example how to do such things? A: C preprocessor MACROS manipulate text, so are essentially typeless, so NO you can't do that. A: You could associate another symbol with it: #define TYPE c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Use separate DB for delayed_job I have a situation where I need to have delayed_job use a custom backend on a separate DB/table. So essentially force it to use a separate schema vs. the one my app primarily uses. Any ideas on how to do this? Thanks in advance. A: you could make some of your models connect to a d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Yii Best way to serve dummy RSS in Test I have a PHP Yii application that uses an RSS feed reader. I wanted to develop some good tests, and I wanted to attempt to read an RSS feed under my own control as part of my test suite. The idea is I request this feed from "my.localhost/testfeed/{name}" and my application is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement cookies less form authentication when we create our own cookie I am implementing the forms authentication like (I need to create the ticket based some some conditions not from active directory or from database) FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, "userName", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android submenu header icon I'm new to Android. I'm learning to make menu and submenu now but stumbled upon a problem. I want to change the submenu header icon in the xml but don't know how to. I tried to change the header icon programatically but there's no method to get the submenu(only add submenu). Is it possibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can you represent the same example using Procedural, Functional, Logic and OO programming Languages? Can anyone please provide me with an example that can help me to understand Procedural, functional, Logic and Object Oriented programming models side by side by using nearly same example-problem. Please give me examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to create image gallery in ASP.NET MVC3 with jquerymobile? i have develop a Jquerymobile applicataion in MVC3(Razor) it is working fine in mobile devices and desctop.Now i want create image gallery in this app that is when i open the app in Iphone then i get the images from Iphone gallery for uploading..Please h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7592506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }