text
stringlengths
8
267k
meta
dict
Q: What Time Is This Returning Deep in the sauce here. I haven't worked with time to much so I'm a little confused here. I know there is FILETIME and SYSTEMTIME. What I am trying to get at this point (because it might change) are file that are less than a 20 seconds old. This returning the files and their size and som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find anagram frequency in a string? Given a string value of arbitrary length, you're supposed to determine the frequency of words which are anagrams of each other. public static Map<String, Integer> generateAnagramFrequency(String str) { ... } For example: if the string is "find art in a rat for cart and dna...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Proper way to remove ads I have an app that displays an ad, and I have given the user the option to remove ads for $0.99 The in-app purchase system works great, but what is the proper protocol for removing an ad from an app? Right now I'm displaying my ad like so: ADBannerView *adView; adView = [[ADBannerView alloc]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET return response before async task completes I have a webapp, and users make requests to change large amounts of data. Maybe persisting 1000 or more objects. I validate these requests up front, and then begin persisting the data. It really doesn't take LONG to persist individually, but multiple by a few thousa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Searching the output of a program through Terminal Suppose my C++ program has outputted a lot of stuff to the terminal, say a 10000x3 matrix. Is there any Unix command-line utility for me to inspect the lines which contain a desired number/string? In other words if the output looks like 1.23 4.56 7.89 1.54 9.86 7...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FireFox not rendering font correctly Can someone tell me why FireFox is not rendering the Lucida Sans Unicode font type? It's a default websafe font according to w3schools. Chrome and IE both render it fine. html, body { height: 100%; font-size: 100%; min-width: 950px; color: #000; font: normal 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access of undefined property myItem I am new in as3 and flex and there is probably a dump question. The following code raises an error Access of undefined property myItem. But why? All variables are accessable and defined. Do i register this variable somewhere else? I can not just define a new variable? <?xml versi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Store check box value as bit in DB Hi i have a checkbox and in code behind i insert the value from checkbox into the DB. This is what i did: ClassRegInfo order1 = new ClassRegInfo { classID = classID.Text, ObtainedPermission = Convert.ToByte(obtainedPermission.Checked)} Obtained Permission in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Printing all the directories using c++ This program is printing the directories at the root level Directory_1 Directory_2 but I want to be able to print the directories within them too Directory_1 Directory_1_2 Directory_1_3 Directory_2 Directory 2_1 Directory_2_1_1 Directory_4 I am trying to do it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: allocate user-space memory from kernel I'm trying to call sys_readlink(const char __user *path, char __user *buf, int bufsiz) directly, but get EFAULT error code. This error appears because buf points to memory from kernel-space. So, is there possible way to allocate user-space memory from kernel ? kmalloc(size, G...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I dynamically add text onto an image with HTML/Javascript/CSS? I want to add text onto an image giving the text a transparent black background. Essentially, I want to achieve the effect described in the following link: http://www.google.com/url?sa=t&source=web&cd=4&ved=0CD8QFjAD&url=http%3A%2F%2Fcss-tricks.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python CGI queue I'm working on a fairly simple CGI with Python. I'm about to put it into Django, etc. The overall setup is pretty standard server side (i.e. computation is done on the server): * * User uploads data files and clicks "Run" button * Server forks jobs in parallel behind the scenes, using lots of RA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Actionmailer not recognised rails 3 app I am trying to send mail using actionmailer on a Rails 3.0.1 application. Here is my setup config/initializers/setup_mail.rb ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I change label text to contrast with toolbar background color in UISplitView? When using Apple's UISplitViewController, the master view has a black toolbar when in portrait mode and gray when in landscape. I have created a label inside a UIView on the toolbar, as described here: Adding a UILabel to a UITool...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the Height and Width of a jQuery UI Datepicker I'm using the jQuery UI Datepicker widget. When the user changes the month or year on the widget my code makes an ajax request to the server to get the highlighted dates for that month/year. In order to give the user an indication that the webpage is waiting for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cache gauss points for numerical integration in c++ This is a question on what people think the best way to lay out my class structure for my problem. I am doing some numerical analysis and require certain "elements" to be integrated. So I have created a class called "BoundaryElement" like so class BoundaryElement {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Query to find customers who registered and purchased on the 2nd day to within 7th day of their registration I would like to get all the customers who registered and purchased on the 2nd day to within 7th day of their registration given a startdate and enddate. Below is the schema : Users --CustId --PostedDate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Enumerate all network interfaces with IPs on FreeBSD My application needs to list all network interafaces on a machine and their IPs, IPv4 and IPv6. I can get all interfaces with IPv4 IPs using ioctl(SIOCGIFCONF), but I need the IPv6 IPs, too. On Linux, those can get gotten from /proc/net/if_inet6, but where would I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google map and divs interaction similar to Groupon.com/now Can someone help me understand how to get the tight interaction between the map, list views and div marker elements on the "Groupon Now" UI. You can check it out here: www.groupon.com/now How can I get the list items to highlight when I hover over/click an i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to insert created object into a div I created an iframe using jQuery that I want to insert into an existing div element. However, when I use innerHTML to insert it, it shows up as: "[object HTMLIFrameElement]" What could be the reason for this? Here is the example: http://jsfiddle.net/MarkKramer/PYX5s/2/ A: You...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating a collage from a collection of images in Ruby I have a collection of images that have been laid out in a rectangle to look like a collage. How can I take those images and create a single image out of them in Ruby? For example I have three images that I want placed in the image as follows: Image 1: (0,0) - (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AtomicInteger not reading value from main memory for non-volatile mutable refrence Below is a non-thread-safe implementation of popular Husband Wife bank account problem. (One thread first checks the account, and before the same thread performs withdraw, another thread performs withdraw operation, thus breaking the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: passing information from ASP.NET ashx to aspx I am using Jquery ajax to Upload files to my database to produce a progress bar.. The problem is, I have no way of passing the uploaded filename to my backend code. I can easily enough pass the filename that was sent via the user using Hiddenfields and jquery, however my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Including a PHAR file in a PHP Script (PHP5.3 / Debian) I'm trying to include a PHAR file (PHP Archive) in my PHP script, it works fine on WAMP, but not on my debian server ! My server has PHP5.3 (including PHAR extension natively !), but my script stops when including the PHAR (in fact Silex) My code (file_exists()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring.NET WebServiceExporter and MVC3 I'm trying to get a simple Spring.NET webservice working with MVC3 but although there are no errors, and I can see from the logs that Spring is deploying it, I can't htt the correct URL for my web service at all. I think I've followed the example (that comes with Spring.NET) c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to prevent my site form being parsed? Are there any tips or tricks to prevent my site (let's say it's pure HTML and CSS) from being parsed? How can I protect my site from things like f.ex? Maybe messing around with the DOM would help? Any ideas? A: You can't "prevent your site form from being parsed". If your H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you lay out your custom binary file format? Every application has its own custom binary file format (e.g. .mpq, .wad). On top of that, its commonly zipped. So, my question is, how do you artfully/skillfully layout the binary contents of your file. Do you have a "table of contents" like structure at the begi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Mobile: Embedding Images for Speed Would embedding images in mobile Air applications speed up the process of drawing the UI that uses images? How does one properly embed the images? Thanks! A: The advantage of embedding an images is that it is included in the SWF file, and can be accessed faster than it can if the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why must we assign a clone to a new variable? I am currently learning to use the Propel ORM, and I want to reuse a critera for two slightly different queries: $criteria = ArticleQuery::create() ->filterByIsPublished(true) ->orderByPublishFrom(Criteria::DESC) ->joinWith('Article.Author') ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is preventing tables from being correctly formatted with CSS when table is built by PHP functions? I have a table that is built dynamically on my web app. The number of the rows and contents within rows is determined by a series of PHP functions. Once this is determined, they call another set of PHP functions ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a cumulative sum column in MySQL Sample table ID: (num is a key so there wouldn't be any duplicates) num 1 5 6 8 2 3 Desired output: (Should be sorted and have a cumulative sum column) num cumulative 1 1 2 3 3 6 5 11 6 17 8 25 This is one solution I got: select a.num, sum(b.num) from ID ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is -z in if [ -z "${FILE_LIST}" ] Came across this, what is -z in the shell script if [ -z "${FILE_LIST}" ]? A: [ is the same as test. And man test gives: -z STRING the length of STRING is zero Note: On some platforms, [ is a symlink or hardlink to test A: From help test: -z STRING True i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Display UIImage Instead of TableView if Empty I have a NSFetchResultsController that loads up my tableview. When the app is first downloaded, there will be no data to show in the tableview so I want to have a static image with instructions on it. I have the following code and I call this method in viewWillAppear bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: substrings and garbage in java 1.6 Using a profiler, I seem to be seeing the following with Apple's 1.6 Java: I start with a moderately long Java string. I split it into tokens using String.split("\\W+"). The code then holds references to some of the split up pieces. It seems, if I believe my eyes in yourkit, that J...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: The name "comportnumber" does not exist in the current contex I decided to save all settings in SQL. In case I want to read for ex. comport from SQL DB and than I got an error: "c# the name "comportnumber" does not exist in the current contex" What should I change to solve it ? SqlCeConnection conn = new SqlCe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update server-processed DataTables source with additional parameters I'm trying to pass additional parameters (list of selected checkboxes) to a server-processed DataTables-table #my_table when a Submit input button has been clicked: Which probably means I must set the my_table.sAjaxSource to the backend script plu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Checkbox Checked Enables Textbox I have created a form that enables a text box when a certain checkbox is checked, however the text I enter in the form is not stored in my Classipress/wordpress install. What do I need to do to fix this code so it stores what the user enters in the text box? <li> <div cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple OpenCL CPU Devices on a single host? Will a host ever have more than one CPU-type device? Multi-core CPUs will come up as a single device, but what about dual-socket motherboards? Will there be two separate devices in OpenCL for each processor? I'm trying to plan ahead with an application I'm working on. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using std::vector with boost::bind While trying to get comfortable with boost, stumbled into problem with using boost::function along with std::vector. I'm trying to do a simple thing: have a list of functions with similair signatures and then use all that functions with std::for_each on sample data. Here is the cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: gcc sizeof(struct) giving unexpected value I am writing a program to unpack PE files. I have a struct, Pe_SymbolHeader. It looks like this: typedef struct _Pe_SymbolHeader { char Name[8]; // 8 uint32_t Value; // 12 uint16_t SectionNumber; // 14 uint16_t Type; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Library for converting PPTX presentations to HTML I'm looking for a .NET-library which allows me to convert PPTX-presentations (MS PowerPoint) to HTML. It should support animations and keep fidelity of original presentations. Which ones would you recommend? My goal is to stream pptx-presentations to several particip...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: "Shuffling" a Lucene Hits result set I have the following program: public class Hit { readonly Hits _hits; readonly int _index; public Hit(Hits hits, int index) { this._hits = hits; this._index = index; } public int id { get { return _...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIGraphicsBeginImageContext cutting off image this is my code I'm using to convert a UIView to UIImage and then emailing it out. When I go to send the new image its cutting off the sides but not the bottom. I do have a scroll view in place because the image is larger than the screen. UIGraphicsBeginImageContext(vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compile errors when including GameLayer.h in Cocos2D project with Box2D so i have the following code in a file called mainMenu: [[CCDirector sharedDirector] runWithScene:[GameLayer scene]]; and I have #import "GameLayer.h". GameLayer has cocos2d, box2d, GLES-Render included in the .h header file. so whenever I in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fullscreen video background html5 I've read through every post there is about html5 fullscreen video here at stackoverflow. And the best example that keeps on coming up is http://www.html5-fullscreen-video.com .. And it's a beautiful solution.. But it's missing the full description on how to implement it.. Look at t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Group data by frequency I am trying create a trending system that displays which keywords are trending by checking the occurrence of their usage. I have able to get the count of occurences of the keywords into an array like this $keyword_occurences = array("pheed"=>5, "php"=>7, "love" => 700); How do I display thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Organize model and collection in backbone I have a JSON response with the following structure: { id: 1, status: 0, created_at: "Y:m:d H:m:s", updated_at "Y:m:d H:m:s)", order_items: [items] } Could I make a collection with it? The ID, status etc. are just metadata. Or should I create new ItemsC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Problematic If-statement, unused variable error i am new to programming and i need your help... i have a label named "typeLabel" that has a default label text se to "NiMH". This text changes to NiCad through a pickerView. I want through an if-statement to change a multiplier value however "unused variable floatTime"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Gaps when rendering function after rotating it I'm rendering a sine function which renders fine with angle 0, but has gaps when rotating it. See pictures: 45º: 0º: The values are generated with PHP. Each square picks up its status from the matrix generated with PHP. for ($i = 4; $i < 125; $i++) { $angle = deg2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fontsize of Contextmenu I spend now some time in trying to change the textsize of the contextmenu. I searched the sdk's themes.xml and styles.xml and tried a lot but didn't succeed in actually resizing the text. Anyone knows how to do it? Cheers! Nob A: Short answer: No Long answer: Why don't you create your custom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Transpose 1 Dimensional Array So I have a ONE dimensional array with N values, where N is a perfect square. I visualize this one dimensional array as a two dimensional array (although it is not). For example, an array with values int Array = { 0,1,2,3,4,5,6,7,8 } That is int *Array = new int [9]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Multicasting in Java I've got a lot of questions regarding this e.g.. Hence enumerating them: * *Why do they use datagram sockets? Is there another alternative to them? *I'm trying to send objects over the datagram sockets in this example. It takes a long time for the server to receive the object from the client...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What passes through serialization? A dumb question, but still: In C#, when I pass an object from one machine to another - what is available at the destination side? Only public members? Properties? Methods? What else? A: Depends on the serialization method. The BinaryFormatter takes everything (that is ISerializabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does std::string allocate memory in GCC with -fwhole-program? Update: The following problem appears to depend on the -fwhole-program option. I've been playing around a bit with memory allocation, and I encountered a small mystery: In GCC (4.6), how does std::string allocate its memory [edit]when I compile with -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why do I get "ambiguous type variable" error here? import Data.Monoid times :: Monoid a => Int -> a -> a times i = mconcat . replicate i main = print $ times 5 5 This code gives the following error: Ambiguous type variable `a0' in the constraints: (Monoid a0) arising from a use of `times' at :7:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to generate fixed cells row in django? I am making Django app, where in page is a table with fixed number of cells (4 rows x 3 columns = 12 cells). It is ok, when there are 12 records on page - it fits nicely. But when there are less records on page, I have to fill rest of the table with some predefined values (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any successful Windows Azure based website and web services? I am evaluating Windows Azure and Google App Engine. Personally I prefer Windows Azure as I have been a C# developer for years. However, I do understand Azure will be too expensive for a start up company. Could anyone let me know any successful A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Annoying javascript timezone adjustment issue I have set up a JSON endpoint that returns the current time from server. For example: { "myservertime": "2011-10-02T23:00+02:00" } So this is the CET summer time right now. Now, I also have a jQuery code that parses that very well. $.sysTime = function(success) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Securely store Oauth token(s) in file I'm developing a small webapp in python that'll interact with a users dropbox account. What is the best way to store the Oauth tokens for that account in a flat file? Is hashing the tokens secure enough? Or should I encrypt them? If encrypting them is the way to go, how would y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: hide file extensions with mod_rewrite How can you hide all file extentions like .php to counter SEO /page => /page.php RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [L] This doesn't work... edit RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !\....
{ "language": "en", "url": "https://stackoverflow.com/questions/7629289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How do I test CSS over many form factors? I only have a single monitor with a 1920x1080 resolution. Is there some tool that helps me see the outcome of my CSS changes instantly over multiple resolutions? I'm only starting to learn CSS, but constantly resizing my browser into all directions after every tiny modificat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to count lines in a c++ project? Possible Duplicate: How do you count the lines of code in a Visual Studio solution? I am looking for software or means to count lines of code in a VC6.0: c++ project: 1500 files: cpp, h, My hunch is there are 2 to 5 million lines of code in this project. I need a means to ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .htaccess regex issue RewriteEngine on RewriteRule ^([a-zA-Z0-9]{1,3})\/([0-9])\.html$ thread.php?board=$1&thread=$2 Here is my .htaccess file. Let me explain you how it should work: website.com/vg/1337.html => website.com/thread.php?board=vg&thread=1337 in the other words: website.com/x/y.html => website.com/t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AsyncTask context SQLite I'm making an application that get data from webservice, insert it into a database and show the data into a tablelayout. So what I want to do is that in a X lapse of time, REFRESH the table with the content of webservice. I can do that with the onResume method, but it isn't what I want. I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mySQL - If statement giving syntax error So I have the following query: IF ( ( SELECT RevisionNumber FROM SchemaVersion ) > 1 ) THEN BEGIN CREATE TABLE Test ( ID INT ); CREATE TABLE Test2 ( ID INT ); END; END IF Basically I want to decide based on a value in my table (SchemaVersion - always has 1 row) wheth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Extracting Frequency Data from Sorted List of Phrases After plumbing the documentation/past questions on list operations, I've come up blank - many of the cases involve numbers, whereas I'm working with large quantities of text. I have a sorted list of common three-word phrases (trigrams) that appear in a large body...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: PHPUnit + Selenium : error I recently tried to install PHPUnit and Selenium, but I'm running into some errors: Fatal error: Call to undefined method PHPUnit_Framework_ExpectationFailedException::getCustomMessage() in /phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumTestCase.php on line 1041 Did I forget somethi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should I use Workflow or fsYacc? I have a very simple DSL I need to parse on a .Net platform. Not being very experienced with parsers, I have been looking at examples using F# (fsLex, fsYacc, FParsec). I am not that familiar with F#, but do have some experience with Workflow and LINQ. Given the simplicity of the DSL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Displaying a specific field in a django form I have the following field in a django form: position = forms.ModelChoiceField(Position.objects.order_by('-ordering'), empty_label='Select Position',) In my Position model, I am using the unicode field to display the field called "posi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: position relative in firefox Possible Duplicate: Does Firefox support position: relative on table elements? Here is an example: full-width menu as a table and ul-s as dropdown menus. http://cssdesk.com/dW7WS Works fine in ie and opera, but in firefox dropdown uls streched on whole screen! Any help? A: position:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ObjectContext is leaking memory for detached entities I already checked this using a memory profiler and there are no real entities which stay in memory but hash-sets, dictionaries and EntityKey objects -- but I found no way how to disconnect these references. So simple question: How do I stop the context (or its Ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: CSS background: want a diff. background for my other pages I'm using CSS background: url(stuffhere.jpeg) for my background, but when you click on other videos, "projects" not pages, the background won't change. I've tried <body id="home"> and <body id="projects">, and tried making two backgrounds for #home and #proj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to disable button over class of parent element? I have the following HTML: <label class="fileinput-button"> <span>add file...</span> <input type="file" name="file" disabled> </label> I want to disable the input element (button) using the label's class name (without the button's ID). $('label.fileinput-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble with reading Serial Port using VB.net 2008 let me first tell you about the problem I have been facing. I have microcontroller interfaced with serial port of my computer. In my microcontroller I have 2000 sample data and my primary target is to read those data. Now I can read those data in hyper terminal, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Netbeans 7 Swing not working I had a gui (swing) project developed using netbeans 7 and JDK 6. Then I've installed JDK 7 and project still worked fine. But then I've reinstalled netbeans and now when I open my project it says that "swing-app-framewok" library is missing. Also I'm unable to create new swing applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ActiveRecord 'no method found' exception on simple one-to-many relationship This is a very basic task, but I can't for the life of me find the cause of the issue. I am doing a basic to-do lists attached to user accounts. I am using Sorcery to help with the user authentication & creation, which seemingly works fine. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Use DNN Profile/User objects from ASP.NET web application Is there any way to leverage the DNN components for creating users and setting their profile properties from within a standard ASP.NET application? I am able to access this base ASP.NET Membership database without issue, but without being able to use DNN.Ent...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Sending commands to the client with Javascript For a site I'm planning, I need the server to be able to send commands to a logged-in user's browser. Simplic example: When a call center rep gets a call, I want to automatically pull up the lead who is calling in. I've got the rest of the technology sorted out and I n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rich Text Editor in Django Admin with image upload I'm looking for a good Rich Text Editor for the Django Admin Panel. I need an integrated with Django server which uploads the images. I also need a functionality of different configurations for two instances of RichText placed at one admin page. I've already tried f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting the source code . I am trying to get data from a web site.I looked online but haven't find any valuable information. when I do GetResponseStream() the code bellow is what I am getting from the reader. But when I go through browser I can see the source code with no problems. How should I go to bypass this pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prompt user during unit test in Perl I'm writing a module which has unit tests that require a certain external server program to be running, and, if it is, the hostname and port need to be known. I would like to prompt for this information when running the test suite, and skip those tests if the user declines to pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to set SelectListItem in SelectList/@Html.DropDownList? How do I set the value of a SelectList/@Html.DropDownList given the following code? --Controller: public ActionResult Edit(int id) { Order o = db.Orders.Find(id); ViewBag.OrderStatusTId = new SelectList(db.OrderStatusTIds, "Order...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to draw route on Google map inside a webview? I am displaying a map inside a webview not a mapview , how to draw a rout on the map where the points(lats,lngs) are coming from another activity ?
{ "language": "en", "url": "https://stackoverflow.com/questions/7629366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: when minimizing browser, has a white space when scrolling over I have a problem with my page when I minimize a browser, say horizontally, and theres overflow. When I scroll over to the hidden section from minimizing, my whole page section is blank. Does anyone know why this happen? I have set my div's to a certain h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Timer, or Handler for capturing data at regular intervals in Android mobile apps? I am writing an Android app that uses the accelerometer to record captured data at regular time intervals and store them into SQLite. Is is better to use Timer (and TimerTask), or Handler for this task? A: I would use a Handler in a T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sql select query for one row in one table and multiple row from another table I have tables like post,tag and post_tag .. Each post have some tags.. I want to get data like post 1 with tagA, tagB, tagC post 2 with tagB, tagD . .. post N with tagZ how is the right sql statement? post: id(int), title(varchar), text(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: xmlparser parse returns no always, how to fix? NSURL *url = [[NSURL alloc] initWithString:@"..."]; NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:url]; //Initialize the delegate. XMLParser *parser = [[XMLParser alloc] initXMLParser]; //Set delegate [xmlParser setDelegate:parser]; //Start ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is there any ready land-address regex matcher in c#? I have a list of strings. Does someone knows if there is a website that has some ready to use regex matches\validators in c# to popular land-address formats? like: <word_street>_<1-3digits>, <alphabetic_word_City>,<country> st <alphabetic_word_Street> and so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update image after row is updated in jqgrid Code from How to show image in jqgrid in edit mode is used to show images in jqgrid. If row is updated (edit action is controller is called), row image is changed in server: image url remains same but new image is returned from server after row save. jqgrid still sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC2 Browser caching with HTTP304 Status Code In the company I work for, we have a web application developed with ASP.NET MVC2 and hosted on IIS7. In a specific action, we return a JsonResult object holding an array. This array is updated daily; so any request coming in the same day will end up with the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: pyserial/python and real time data acquisition I have an infrared camera/tracker with which I am communicating via the serial port. I'm using the pyserial module to do this at the moment. The camera updates the position of a tracked object at the rate of 60 Hz. In order to get the position of the tracked object I ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: deleting tables on MySQL from jdbc Problem when deleting tables from jdbc I have a. jar that deletes records from multiple tables through a previously prepared statement i did it this way: -- SQL delete from tabla_a using tabla_a join tabla_c join tabla_b join tabla_d where tabla_a.tabla_c_id = tabla_c.id and tabla_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove unreachable rules from a grammar in OCaml I'm new to Ocaml and for a homework assignment I have to write a function filter_reachable that takes a grammar and returns a reduced grammar with the unreachable rules removed. The only modules I'm allowed to use are Pervasives and List modules and no other modules. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: If URL not equal to specified URL then apply this jQuery? if the current uURL is not same as specified then apply jQuery. BUT THIS WONT WORK <script type="text/javascript"> var myurl = http://example.com/document.html; var currenturl = window.location if(myurl == currenturl) { $("<span>url's match</span>").repla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Using ajax to load a jQuery DataTable I'm trying (and failing) to load a jQuery DataTable using the built-in ajax source argument. The datatable, however, shows the message "Loading..." where the row(s) should be appearing. Here's my datatable call : $('#my-table').dataTable( {bFilter: false, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: p:commandLink ajax events inside of a p:dataTable Let's say we have a simple table defined as: <p:dataTable value="#{testBean.dummyStringData}" var="data"> <p:column> <p:commandLink action="#{testBean.printData(data)}"> <h:outputLabel value="#{data}" /> </p:commandLink> </p:column...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: deadlock occuring in mutex code I have developed a user level thread library. In the code, deadlock occurs sometimes, but i am unable to figure out why it is happening. Here is the code for mutex lock and unlock functions: int gtthread_mutex_lock(gtthread_mutex_t *mutex) { if(!mutex) //checks if mutex is null ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: MODx Revolution backend browser doesn`t display thumb images After I`m trying to put an image to my TV or whatsoever I see only empty gif images instead of thumb images. Well let me describe my problem with this image! Where is the problem? A: You can try to delete all the "hidden" .image.jpg images that is insid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Receive data from Apply With LinkedIn I am using the Data-Url option in the Apply With LinkedIn button. I have the data-url pointing to an action in my controller. I can confirm that my action is being hit after I complete an application using the Apply with LinkedIn button, however I don't know how to receive the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conservative garbage collector I've seen garbage collectors labelled as a lot of things- generational, etc. But I've seen the Boehm GC labelled as "conservative". What exactly does that mean? A: A conservative garbage collector is one that does not know whether or not a given word is a pointer. If the word points i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7629446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }