text
stringlengths
8
267k
meta
dict
Q: Kind of an ajax slider Imagine you click on Categories and go to a page like "news.php?category=2". In that page it'll show the news of the category and it has two buttons, "Previous category" and "Next category", the href for these buttons are "news.php?category=1" and "news.php?category=3", respectively. I've used...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploying an N-Layered ASP.NET Webforms Application In A Shared Hosting I Have a solution that containts 4 layers (3 Class Libraries and 1 Web Application). I Need to deploy this solution to my shared hosting account. I've read a little about deployment and I hope I could perform a 'Precompiled Deployment' because a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: django one-to-one relationship defaulting to existing object - is this what is supposed to happen? I have three models, related with one-to-one relationships. So far as relevant, the code for them is: class Member(models.Model): deferred_on = models.OneToOneField('PendingAuthorisation', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache benchmark: what does the total mean milliseconds represent? I am benchmarking php application with apache benchmark. I have the server on my local machine. I run the following: ab -n 100 -c 10 http://my-domain.local/ And get this: Connection Times (ms) min mean[+/-sd] median max Connect: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: With sendmailR, how can I specify a recipient/sender name along with the address? I am using sendmailR to send emails but I cannot get it to work with a name associated with the email addresses, like "Sender name" <sender@domain.com> With Postfix as the SMTP server, it throws SMTP Error: 5.5.4 Unsupported option: <s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How Do ncurses et. al. Work? There are several libraries like ncurses that assist in making command-line GUIs. Simply put, how do they work? My first thought was that ncurses intercepts all keyboard input, and draws each "frame" by outputting it line-by-line normally. Closer inspection, however, reveals that each n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Socket with timeout set sometimes stalls on reading I have a Java client (1.6b17 on windows XP, launched via Java webstart) that uses a TCP socket to query a Java based server over an ADSL connetion. The client socket has a timeout set (3000ms). Occasionally (and so far, not reproducibly), the client stalls while r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding the phone company of a cell phone number? I have an application where people can give a phone number and it will send SMS texts to the phone number through EMail-SMS gateways. For this to work however, I need the phone company of the given number so that I send the email to the proper SMS gateway. I've seen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to set spam email using EWS api? I am developing an email client using EWS api. I know for each item(email), I can use Move function to move the item into a specific folder. I noticed that in WellKnkownFolderName there is a JunkEmail. I wonder after is use Move function move that item into junkemail folder, does...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Search API - HTTP Query Argument Format I've created a search API for a site that I work on. For example, some of the queries it supports are: * */api/search - returns popular search results */api/search?q=car - returns results matching the term "car" */api/search?start=50&limit=50 - returns 50 results starting...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to keep processed data with to_python when form is not valid? I have a django form which can be not valid, but I would like to keep the data processed with to_python() method on some fields to propose it to the user, so that he can changes wrong fields, but having already processed values for some 'good' fields....
{ "language": "en", "url": "https://stackoverflow.com/questions/7558357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A recursion algorithm Ok, this may seem trivial to some, but I'm stuck. Here's the algorithm I'm supposed to use: Here’s a recursive algorithm. Suppose we have n integers in a non-increasing sequence, of which the first is the number k. Subtract one from each of the first k numbers after the first. (If there are fe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I muddle around in subversion transactions from a hook script? I've read all the warnings. I want to see for myself what will blow up if in a pre-commit hook script, I change the files that are being committed. It would be a good thing if the client is ignorant of this for my particular purposes. People are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Grep for specific sentence that contains [] I have a python script that reports how many times an error shows up in catalina.out within a 17 minute time period. Some errors contain more information, displayed in the next three lines beneath the error. Unfortunately the sentence I'm grepping for contains []. I don't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to load data to make them visible in an ActivityList? I'm relatively new to Android and have the following question. I have a local DB on the device from which I want to display the content in an ActivityList. Let's say there is a table "person" on the DB containing general information like "name, surname etc." ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 10g Package Construction - Restricting References I am constructing a rather large Oracle 10g package full of functions etc. The problem is some of these functions are pulling information from materilized view's or tables that other functions are creating. Is there a way to successfully compile a package even thoug...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create an instance of any type (id) in Objective-c I've an NSArray instance containing some objects of some type (NSDictionary).. I need to copy this Array into an NSArray of some runtime-known type. So I need to create instances of the runtime-known type and copy the contents of the NSDictionary into. I've a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I force my application to launch the default Camera rather than offering the 'Complete action using' list? I'm using the intent new Intent(MediaStore.ACTION_IMAGE_CAPTURE); to capture an image for use in my application. I have two applications installed on my device that can perform this function but would like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Deforming an image so that curved lines become straight lines I have an image with free-form curved lines (actually lists of small line-segments) overlayed onto it, and I want to generate some kind of image-warp that will deform the image in such a way that these curves are deformed into horizontal straight lines. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CUFFT output not aligned the same as FFTW output I am doing a 1D FFT. I have the same input data as would go in FFTW, however, the return from CUFFT does not seem to be "aligned" the same was FFTW is. That is, In my FFTW code, I could calculate the center of the zero padding, then do some shifting to "left-align" al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I serialize a Java object such that it can be deserialized by pickle (Python)? I'm using a Python service that uses pickled messages as part of its protocol. I'd like to query this service from Java, but to do so, I need to pickle my message on the client (Java). Are there any implementations of pickle that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How would I best construct a recursive tree visual with unknown child nodes in PHP? I'm having trouble getting started with the following: * *I have a database of questions and multiple answers per question. *Each answer belongs to one question. *Each answer points to one (different) question. I'm trying to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cron job in Ubuntu This should be pretty straight forward but I can't seem to get getting it working despite reading several tutorials via Google, Stackoverflow and the man page. I created a cron to run every 1 min (for testing) and all it basically does is spit out the date. crontab -l * * * * * /var/test/cron-test...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change windows default playback device How can I change the default playback device in windows 7, .net 4/4.5. I change the default device frequently and I want to make a little C# application to switch faster. Is it even possible? Please help me. A: Yes it is. However microsoft somehow did not want us to tamper wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: NuGet and nUnit automation I have a VS project and in the project properties under the Debug tab I set: Start External Program: D:\SolutionName\packages\NUnit.2.5.10.11092\tools\nunit.exe Command Arguments: projectname.dll This lets me start nUnit and run the nunits tests dll and when I start debugging the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: EF Table per Hierarchy (TPH) not saving because can't insert value null in Discriminator column I have a table used for multiply type of category and it contains a Discriminator column named 'ClassName' to specify the type of object to load. The ClassName column is non nullable with a default value of 'Category' My ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting values from XML type field using in SQL server I have MS SQL table which contains a XML type field. This field has data in the format below: <doc> <quote> <code>AA</code> </quote> <quote> <code>BB</code> </quote> <quote> <code>CC</code> </quote> </doc> The quotes can be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to represent a binary tree with tables (html)? Here is a brain-teaser for the brave. I've been at it for days and just can't come with the solution. I wanted to come out with something like this: Using html, CSS and PHP only. I got near, but not quite what I expected. Here is the code in PHP and here is the out...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: JPL for java\prolog I'm interested in using JPL with java, but an error message is prompting like 'package jpl does not exist' while trying to compile the java program. How do i import jpl to java? A: You need to do sudo apt-get install swi-prolog and then sudo apt-get install swi-prolog-java A: You need to downlo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SoftPhone and linux We are thinking about writing a softphone app. It would basically be a component of a system that has calls queued up from a database. It would interface with a LINUX server which has Asterisk installed. My first question is Whether we should write the softphone at all or just buy one? Secondly...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass a parameter in my method to return using a stateless session? minimize code duplication I want to pass a parameter in my method call, if set (its a boolean), then return a Stateless session. I don't want to duplicate the QueryOver code, is there a way to have it like: public virtual IList<User> GetAllUse...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I have a cache of dropdown data instead of getting it from DB on every request? I am populating three dropdown menus using database stored procs. Each time the page is called it executes the store procedure and populates the dropdowns. Doing so it takes much amount of time. Is there any other way that I can have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Site dies after so long? I have a website doing some things that I've never seen before. My server is Win 2003 w/ IIS6 I'm using C# and .Net 4.0. The site is a real-estate website that stores the data directly in my db. The site will run great for a little while and then just die. What I mean is you'll try to view a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to read all child nodes of an XML file I've got this file: <?xml version='1.0' encoding='UTF-8'?> <feed xmlns='http://www.w3.org/2005/Atom' xmlns:app='http://purl.org/atom/app#' xmlns:media='http://search.yahoo.com/mrss/' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gd='http://schemas.google....
{ "language": "en", "url": "https://stackoverflow.com/questions/7558433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cannot Access Applet Containing JFileChooser From JSP I have written the following simple Applet that presents a File Uploader: import java.io.*; import java.applet.Applet; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class FileChooserDemo extends Applet implements ActionListener { stati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UIToolbar custom background image in loadView method I set self.navigationController.toolbarHidden = NO; That will display a toolbar at the bottom of every view. Now I want to have a custom background for every toolbar. So in app delegate I have following code: @implementation UIToolbar(CustomImage) -(void)dra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Refresh Databinding when Using Entity Model I have a list box that is databound to a collection from the entity frame work. I need to find a way to update this listbox in the main window when a new object is added using another window. I see in the entity model, there is protected override sealed void ReportProper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linux app sends UDP without socket fellow coders. I'm monitoring my outgoing traffic using libnetfilter_queue module and an iptables rule ipatbles -I OUTPUT 1 -p all -j NFQUEUE --queue-num 11220 A certain app, called Jitsi (which runs on Java) is exhibiting such a strange behaviour a haven't encountered before: My ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show something when an image displays? I want to check if an application is running on another server and the only way I can do this is by displaying an image that it provides. If it doesn't provide the image, I use the alt attribute to inform that the app is down. I cannot modify what's in the image, so I ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Less stylesheet file 406 on IIS7/discountaspnet I have a site, http://www.allampersandall.com that i'm trying to post up to discountasp.net. It runs great locally in VS2010 debug, but when i post it up all my .less files HTTP 406. When i looked up HTTP 406, it says its the browser not accepting it-- but why would it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the standard for testing in Java? What apps would you use? Are there auto testing suites like autotest for ruby? What do you use and why? To be honest, I don't even know how to write tests, when, or why. I'd like to learn though, I know that it will make me a better developer. Our team uses Netbeans, not ec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Info Window With Marker Manager Google Maps V3 I have many map markers with the exact same lat/long cords so no matter how far in I zoom my map still shows the marker cluster and the number of results. Is there a way to have some onclick or onhover event so that it shows an info box with all of the markers in that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sqlite with multiple NHibernate Session Factories I have a problem in that I have switched my (working) multiple-database nhibernate solution to DI its session factory so that I can use SqlLite from within my integration test suite. Whereas using a physical file where i can use multiple file names, one for each db w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MyISAM or InnoDB to use for my Large project, to do multiple work at a time As I have no more knowledge then usual about MyISAM, InnoDB engines, So I'm in confusion what engine to use for my large project, where 1) minimum 3000 users will log their account at a time (within hour) 2) and do some work like Update, d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle - break dates into quarters Given 2 dates (StartDate and EndDate), how to do i generate quarterly periods in Pl/SQL. Example: Start Date: 01-JAN-2009 End Date: 31-DEC-2009 Expected Output: StartDate EndDate 01-JAN-2009 31-MAR-2009 01-APR-2009 30-JUN-2009 01-JUL-2009 30-SEP-2009 01-OCT-2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: java to matlab conversion I am a newbie at matlab . As a part of a larger problem, I need to find maximum number of occurrences of a string in an array of Strings. Since I have some experience in java I have written the partial code in java ( only until the number of occurences of the string within the string array ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IntelliJ - Delete list of previously opened projects? Is there a way in IntelliJ IDEA to delete previously used projects? I am referring to a list on the main page when the application starts. Please look at the image. A: In IntelliJ15, you can remove them from welcome screen, works ctrl+a and then remove all of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: JSF convertNumber throws java.lang.IllegalArgumentException: argument type mismatch Error I'm using JSF 1.2. My IDE is RAD. In my xhtml page Iam using a convertNumber tag to format an Integer variable. Integers need to be left padded with 0's if they are not 4 digits long (If the Integer value is 21, it should be di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to divide a string into multiple parts and reconstruct it backwards? I have important data in a string and I want to randomly divide it into multiple parts(x) and then store it into multiple location(y). If (locations > parts) how should I go about collecting data pseudo-randomly from x location (may be pred...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Updating several records for same object Ok I'm really feeling I'm missing the rails way on this one. Following my last question rails parameters in form_for, I can correctly update the message contents but am struggling with updating the recipients My Draft model class Draft < ActiveRecord::Base belongs_to :messag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set up a button to invert two textFields I'm an absolute beginner, and I need to have a button to invert two text fields: text1 <—> text2 - (IBAction)swapText { name.text = surname.text; surname.text = name.text; } I know that I have to retain the values and then release them, but I'm not sure how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will setuptools work with python 3.2.x Will the setuptools for windows python 2.7 http://pypi.python.org/pypi/setuptools#files be compatible with a python 3.2.x runtime. The installer fails to detect the python settings during an install. Should I wait for a new release? A: NOTE: Answer obsolete, Setuptools now wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why doesn't this user script work in Opera? This is my userscript: // ==UserScript== // @name wykopSpamBlock // @namespace wykopSpamBlock // @description Skrypt ukrywający sponsorowane i polecane wykopy w serwisie wykop.pl 3.0 // @include http://www.*wykop.pl/ // @include http://www....
{ "language": "en", "url": "https://stackoverflow.com/questions/7558521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I run a command in a list of directories using bash? I need to run some commands in OS X User directories, apart from "Shared" and our local admin account. So far, I have: #!/bin/bash userFolders=$(find /Users/ -type d -depth 1 | sed -e 's/\/\//\//g' | egrep -v "support|Shared") for PERSON in "$userFolders"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are there any essential reasons to use isset() over @ in php So I'm working on cleanup of a horrible codebase, and I'm slowly moving to full error reporting. It's an arduous process, with hundreds of notices along the lines of: Notice: Undefined index: incoming in /path/to/code/somescript.php on line 18 due to uses...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a Feedburner plugin for Wordpress that will change the RSS tags on the pages I'm looking for a Feedburner plugin for Wordpress that redirects feeds to Feedburner, but also changes the RSS links that are embedded on the Wordpress pages to point to Feedburner. The plugins I've tried will redirect the RSS fe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Routes in Rails 3 I'm new to Rails 3 and I need some help regarding the routes. This is my old route map.connect '/admin/login/:language/:brand', :controller => 'adm/auth', :action => 'login', :defaults => {:brand => 'brand', :language => 'en'} as I change it to match '/admin/login/:language/:brand', :to => 'ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF webBrowser: how to display to an image after rendering has finished I have a webBrowser on my UI. I ask if it is possible that it is not displayed directly but instead through an image, and I want that the image is updated only when the LoadCompleted event is received. How to do? A: I'm not sure if I understood...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to simulate SQL Server under an unworkable load? Our company are currently beta testing an application which uses our SQL Server 2008 box as a backend.. One day our server was under some serious strain to the point where the only way to recover it was to reboot. During this time of heavy load the we found an int...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Access an object in an NSArray using a key path I've read through the KVC docs on Apple and it talks in depth about making your indexed collections accessible through key value coding, but I can't find any examples of a key path being used to access an arbitrary element within the array. If my Blob class has an NSAr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Finding X the lowest cost trees in graph I have Graph with N nodes and edges with cost. (graph may be Complete but also can contain zero edges). I want to find K trees in the graph (K < N) to ensure every node is visited and cost is the lowest possible. Any recommendations what the best approach could be? I tried to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Show tooltips with delay Is it possible to create a style that applies to all my controls in the application for the tooltip service that sets a delay for showing tooltips? And how? Thanks.
{ "language": "en", "url": "https://stackoverflow.com/questions/7558539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android HTTP Library to handle sessions, cookies, post/get, keep-alive and async What HTTP library should I use as a core of my application ? Need to handle these: * *Cookies *POST / GET *Keep-Alive capability *HTTP Sessions *Asynchronous requests *Stream compression (Gzip) in API from Level 7 (So Android...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: django - how can I clean variable data passed by an url? When I'm using a form I clean field data using Django forms but how do you clean variable data that's passed by an URL? For example I have an URL like this: http://mywebsite.com/tags/my-tag/ where my-tag is the variable that I'm passing to a function on my vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Strange shader corruption I'm working with shaders just now and I'm observing some very strange behavior. I've loaded this vertex shader: #version 150 uniform float r; uniform float g; uniform float b; varying float retVal; attribute float dummyAttrib; void main(){ retVal = dummyAttrib+r+g+b; //deleting dummyA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TEXT values in sqlite databases Do sqlite databases use anything like a flyweight pattern for TEXT values. If I'm repeatedly using only a few different, short TEXT values in a column, would it be better to replace them with integers? A: SQLite stores each copy of the text column individually: $ sqlite3 pancakes.sql...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove tabs from blank lines using sed? I'd like to use sed to remove tabs from otherwise blank lines. For example a line containing only \t\n should change to \n. What's the syntax for this? A: sed does not know about escape sequences like \t. So you will have to literally type a tab on your console: sed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to add another app (option 1, 2, 3 etc) from current app (main app)? Is it possible to have multiple options of the app (separate FB app instances) and be able to add them from the main app? If yes where I can find some info how to do that? I'm trying to install an app to the page multiple times, but what I know...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Execute html at a certain time I am wondering how you execute html on a certain time. I have a small marquee html code that I want to be executed at the time I want, instead of just immediately once the page loads. A: Html does not execute, but it renders. For execution, you need a script or program. For client sid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jstl invalid prefix error I am using similar piece of code in a jspx file <html xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:uikit="http://www.abc.net/ld/uikit" > <head> <link type="text/css" rel="stylesheet" href="${uikit:cpp('abc')}"/> but its throws the error jsp.error.attribute.invalidPrefix uikit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: javascript function date I have this form in Drupal that contains two datepickers and two textfields. I need to write a function that updates the values in the two textfields. So in the textfield first_result I need to add 35 days and in the textfield second_result i need to add 3 months and to set these values in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Warning: passing incompatible type to setRootViewController: I am doing a calculator for the iPhone, where on rotation of the device, a new view is displayed, and I am getting the following three errors: CalculatorAppDelegate.m:21: warning: incompatible Objective-C types 'struct CalculatorViewController *', expecte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTP Request does not set Content Length I'm trying to use Google Data API to upload a CSV file with some places. I've this piece of code: NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:direccion]]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which CMS is right for me? I am looking to help out a non-profit get a website up and running. Only, they don't just want a website with content, they also want to maintain a database of members, and allow those members to register and pay for classes/events/seminars held by the club. It seems to me, that if all the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to set pixel on mouse click in C++ using WinApi (GDI) in GUI window? I'm trying to set pixel by mouse click, but nothing happens when I click. Here is part of my code. First, I control window size changing in WM_SIZE. Than, at first time when I want to set pixel by mouse I get window's width and height, then cop...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rails 3 link or button that executes action in controller In RoR 3, I just want to have a link/button that activates some action/method in the controller. Specifically, if I click on a 'update_specs' link on a page, it should go to 'update_specs' method in my products controller. I've found suggestions to do this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I get mongoid's eager loading to work? I get the following error: NoMethodError (undefined method `eager_load' for nil:NilClass) when I run the following command in Mongoid 2.2.1 Person.includes(:game).all.each do user.game.dosomething end a Person has_one Game A: Just turn on Identity Map: http://mong...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IE9 - acceptable frameset replacement I have a site that I'm working on that has a lot of framesets in it. However, since IE9 (HTML5), framesets have been deprecated and it throws me into quirks mode which slows down the loading of my page. Basically, I'm looking for an acceptable alternative to framesets that is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Quick while stopping i have this code: private STOP = false; public void Start() { while(!STOP) { //do some work Thread.Sleep(15000); } } public void Stop() { STOP = true; } But using this code sometimes need to wait a 15 secs, how to quickly stop this cycle or maybe need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to write a GROUP BY SQL query I have a "Revenue" table which stores the revenue for a Company State combination. Company int State char(2) IsBiggestState bit TotalRevenue numeric (10,2) I need to set the IsBiggestState bit to 1 if the TotalRevenue Amount is the largest amount of all the States within a Compan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an R package that will handle POSIX objects and return the nth N-day of the week? I have written a function which, when provided a range of dates, the name of a particular day of the week and the occurrence of that day in a given month (for instance, the second Friday of each month) will return the correspo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Apply a pattern against a calendar Say I have a pattern of letters that simply repeats itself forever - is there an easy way to apply this pattern to a calendar? For example, the actual pattern itself is E1, E, E, E, O, O, N1, N1, N, O, O, O, L, L1, L1, L, O, O, E, E, E1, O, O, N, N, N, N, O, O, O, L, L, L, O, O, E1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Publish into facebook wall from flex mobile I'm building a mobile app using flex 4.5 that should be able to post/share a message to the facebook wall. I've find examples for desktop app, but I am not getting any examples for mobile app. Can someone help me? A: You can use the new FacebookMobile class for posting to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS Help: floating an image inside a list item hides icon I have an image in a list item I need floated. Everything looks fine in FF/6+. Webkit and IE, however, show the list icon on top of the image. When I try floating the list item itself, the icon simply vanishes. Is there a CSS way around this issue? I tried wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Doctrine 2 - Access level problems when using Class Table Inheritance I'm trying to implent the Class Table Inheritance Doctrine 2 offers in my Symfony 2 project. Let's say a have a Pizza class, Burito class and a MacAndCheese class which all inherit from a Food class. The Food class has the following settings: <?ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What's the effect on a second request of calling Thread.currentThread().sleep(2000) in a Spring MVC request handler? I need to wait for a condition in a Spring MVC request handler while I call a third party service to update some entities for a user. The wait averages about 2 seconds. I'm calling Thread.sleep to all...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What exactly does Delegate.EndInvoke do? Is it necessary to call? Possible Duplicate: Why does asynchronous delegate method require calling EndInvoke? Is Delegate.EndInvoke() really necessary? Working on a multi-threaded application at the moment and when raising an event instead of doing the normal handler.Invok...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iOS: is Core Graphics implemented on top of OpenGL? I have found one diagram that shows Core Graphics implemented above OpenGL, and another that puts it alongside OpenGL. I would think that Apple would be smart to give each equal access to the graphics hardware but then again, I don't know much about the graphics ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: left:50% element not appearing in middle of page I have an absolute positioned popup (hover over "ice white" image to see popup) which has css left:50%. Now this should appear in the middle of page but doesn't. Any suggestions please? Thanks in advance. A: position: absolute; left: 50%; transform: translate(-50%...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Wicket application throws exception on start up when starting with jetty:run-exploded I'm currently developing a Wicket Spring Hibernate application. For development I'm using Jetty as web server. When starting the application with mvn jetty:run everything works as expected. But when I try to start the application ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: adblock and jquery It seems like adblock for Chrome is preventing jquery's $.load() command from being executed. I looked around the web a little and couldn't find anything about this. It doesn't seem to block other jquery, such as $.ajax. I threw a little message on the main page of my site to warn users, but I'd r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How To Check If A User's iOS Device Supports Bluetooth Peer-To-Peer Connections What is the best way of programatically checking if the current device supports Bluetooth peer-to-peer GameKit connectivity? I am aware of how to check for Game Center support, but want to support devices on iOS 3 that have Bluetooth (I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript, add string if true I need to modify this function: function checkPermissions(fid, obj) { $("#permissions_"+fid+"_canview").attr("checked", obj.checked); } if the param "n" is "true" then instead of #permissions it'll output #permissionsSet. is that possible? A: OP clarified the question to be change ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redirecting a page using Javascript, like PHP's Header->Location I have some code like so: $('.entry a:first').click(function() { <?php header("Location:" . "http://www.google.com"); ?> }); I would like to know how I can achieve this using Javascript. A: You cannot mix JS and PHP that way, PHP is rendered be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to set volume for text-to-speech "speak" method? I'm at a lost. I want to be able to adjust the speak volume. Whatever I do, I can't increase its volume. How do I make it as loud as that found in the Android settings (as below)? System Settings -> Voice input and output -> Text-to-Speech settings -> Listen to an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: logout the main form and show the login form i know this problem may sound stupid, but sad case, i've been searched online to get solution but still cannot get it correct. My problem now is = Logout button so to exit the main form, then show up the login form again. The code below will NOT show the login form after...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Faster Parameter Passing in Delphi/C i have 2 parts application, Delphi and C, and i have 2 questions 1. what is the fastest way to pass parameters to Delphi? procedure name(Data: string); // Data is Copied to another location before passing so its slow procedure name(var Data: string); // Data is Passed by pointer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Memory exhaustion while running NDSolve I run into the "No more memory available" error message in Mathematica. I understand that "Parallelize[]" isn't (obviously) going to help me. Neither has "ClearSystemCache[]". What gives? Do I just need more RAM? My Code Needs["VectorAnalysis`"] Needs["DifferentialEquations`In...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Java timing accuracy on Windows XP vs. Windows 7 I have a bizarre problem - I'm hoping someone can explain to me what is happening and a possible workaround. I am implementing a Z80 core in Java, and attempting to slow it down, by using a java.util.Timer object in a separate thread. The basic setup is that I have on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Ignore file with CSS manifest? I was wondering if there was a way to ignore a css file from being added to the manifest application.css file. The reason why I want to do this is that I have two versions of the site, a mobile version, an an web version. The mobile version's css is currently being added to the manifes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }