text
stringlengths
8
267k
meta
dict
Q: Export from Query to Excel, while defining Row to export to I have seen a bunch of ways to export data into excel worksheets form queries, yet I cannot find one that I can define the starting row I would like the insertion of the query data to begin. For example, I would like the first 5 columns of my query to go in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery: how do I trigger an event after a click-hold-release action? I want to show a menu after a click, drag, and release action. How do I trigger that with jQuery? A: * *Listen for a mousedown event on whatever should be clicked on. *Add a mousemove and mouseup event handler to the window *In the mouseup even...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC: Putting application logic in models This may sound like a stupid or unconstructive question but I'm a fan of not creating so many layers to reduce the amount of code that has to be written and maintained. In a classic scenario, the application logic would be in one class which calls the business layer. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: chrome won't load swf files I was asked by a family member to fix their site, but since I don't work in Flash I'm not certain how to target the problem. The site is in Wordpress 3.2.1 and uses two small .swf files created in CS5 - neither of which will load in Chrome 11 or 13. They test ok in Firefox/Safari/IE for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenSSL: unable to verify the first certificate for Experian URL I am trying to verify an SSL connection to Experian in Ubuntu 10.10 with OpenSSL client. openssl s_client -CApath /etc/ssl/certs/ -connect dm1.experian.com:443 The problem is that the connection closes with a Verify return code: 21 (unable to verify t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: Run java from FTP How can I run a .jar (Java) file on a server using FTP? I use the ftp command to enter the server, provide the IP address, username, password. Is it possible to run the java file? A: You cannot invoke non-ftp commands using ftp. Use ssh to access remote shell and invoke your commands. A: FTP is F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a list of screen resolutions for all Android based phones and tablets? If not, is there a list of screen resolutions for the most popular Android phones and tablets. A: You can see a lot of screen sizes on this site. Parsed list of screens: From http://www.emirweb.com/ScreenDeviceStatistics.php ##########...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "105" }
Q: Jquery disabling submit button I have a form with a text box and a submit button. I disable the submit button once it is clicked for 5 seconds. If nothing is typed in the text field and the user tries submitting, the button is disabled for 1 second and nothing is posted. The problem I am having is that on a friends...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query database in weekly interval I have a database with a created_at column containing the datetime in Y-m-d H:i:s format. The latest datetime entry is 2011-09-28 00:10:02. I need the query to be relative to the latest datetime entry. * *The first value in the query should be the latest datetime entry. *The sec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django. Cancel button for form in admin site Is there any functionality in admin site that allow to implement for every add/change form cancel button, that redirects me to list of that form objects. I mean some general solution for any form. A: Add admin/submit_line.html in your project's templates directory. Use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Nested html dl dt dd I want to check my thinking. I need to create HTML code for the UI design below and I have used nested dls in my markup. Is this semantically valid? If not, how else should I implement this design in HTML? UI design <dl> <dt>Section one</dt> <dd> <dl> <dt>Sub-Section ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Not sure what this line does (or (parse-integer (prompt-read "Rating") :junk-allowed t) 0) This line confuses me quite a bit. the full program is here if you need it to follow: http://paste.lisp.org/display/124929 'Parse-integer' will turn a string into and integer right? if possible. And ':junk-allowed t' makes it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bash eval inside quotes I have a bash script which takes one parameter and does something like this: ssh -t someserver "setenv DISPLAY $1; /usr/bin/someprogram" How can I force bash to substitute in the $1 instead of passing the literal characters "$1" as the display variable? A: Edit Are you aware of ssh -X ... ss...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Maven Error : Could not resolve dependencies for project I am new to Maven . I am running Maven POM.xml file From Eclipse IDE , There was a error occurred in console , i even tried with mvn install -X , but of no use . Please see the stack trace Failed to execute goal on project bayer-ws: Could not resolve dependen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: list google apps accounts How can I determine if a specific google account is a Google Apps account? I have 2 accounts on my phone. a normal Google acc and a Google Apps account accountManager = AccountManager.get(getApplicationContext()); Account[] accounts = accountManager.getAccounts(); for ( int i = 0; i < accou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Enum property mapped to a varchar column on EF June 2011 CTP I'm trying to create a model with Code First approach. I wanted to know if it's possible to map an Enum property to a varchar column in the database. I know you can do it with byte, small, int, long. This is a project for an old database and it has many co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set a timer but don't run repeatly In my case I created a object and planned to release it after 20 minutes(accuracy is not necessary). I know by using java.util.Timer I can create a timer.But I just want it run once. After that,the timer should stop and been released too. Is there any way just like setTimeOu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do I get a "The result of a query cannot be enumerated more than once" when I get the Count() before enumerating the result? This my code. Simplified for readability var query = from p in people select p; // here is the point that probably causes the issue ObjectResult<int> idsThatMatch = getIdsThatMatchFullTex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you check whether a Window is Maximised in Gtk? I want to give a window a specific property only when it is maximised and change it back when the maximised state ends. I am using Gtk# , but all GTK binding answers are welcome. What I am looking for is something like this (pseudocode): OnMaximise += new Mhand...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Datagrid, first column to be left-justified, the rest be centered I have a DataGrid, that references another style that sets the property for the ColumnHeaderStyle to be centered. <Style x:Key="CenterDataGridStyle" TargetType="{x:Type DataGrid}"> <Style.Setters> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I diff streams in ClearCase? Can I perform a diff between the latest versions of the files/directories (or perhaps the latest baselines) in two different streams that may reside in two different projects? The two projects are basically branches of the same software and I need to diff the source tree between th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ruby : if i declare a variable in a method does another method in the same class know it exists? If i have a method called roll (as in a dice) and it has a variable called number. can another method in the same class called stats use that variable in it ?? A: You mean like this? class Die def roll @number = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Should you hold a HTTP request while the server performs a time consuming operation? Or let the request go? Lets say an operation could take 2 to 10 minutes on the server to perform, for example to update an index which is time consuming. Would you perform the operation while holding the request? ie not sending a H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sub-Domain Masking via htaccess EDITED I set-up a wildcard subdomain dns zone on my server and would like to have each subdomain load the contents of the /users/ direcotry using .htaccess and mod-rewrite. I would like the URL to remain unaltered in the browser bar so that it shows: http://username.domian.com/../../ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is faster jQuery.load or jQuery.ajax() when loading HTML from PHP file? I have PHP file named "content.php" prepared for both kind of requests, just as an example: <?php // Id params passed via GET method $get = $_GET['param']; switch ($get) { case "param_value": ?> <div data-param="<?php echo $get;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: call to undefined method php error I have a class called CHCID which has the two functions inside it: public function UpdateDeliveryAddress($orderNumber, $deliveryaddress) { $sql = "UPDATE `CIDOrders` SET `DeliveryAddress` = '" . mysql_real_escape_string($deliveryaddress) . "' WHERE `CIDOrderNumber` ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting "Error Code 207" only after deploying WCF services I have created a set of WCF services that use StructureMap by following this tutorial. Everything has been working as expected, but it appears that now that I have deployed it to the server, it fails with "Error Code 207: Internal exception while creating In...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I store data for payment processing on a confirmation page? I am adding a "confirm your payment" page to my new ASP.NET MVC 3 project. After validating the input, I then display a confirm page to allow the user to make sure they entered everything correctly. My next problem is how do I "store" the data entere...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is instantiating XmlDocument expensive? I have the following function: public static XmlNode GetXMLNodeFromString(string strXML) { XmlDocument doc = new XmlDocument(); doc.LoadXml(strXML); return doc.DocumentElement; } which can be called a million times in a line of code that gets returned from a datab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: emacs parenthethes matching wrong I wrote a small major-mode for a C++-like language(so I am using the C++ syntax table): (setq tacc-mode-syntax-table c++-mode-syntax-table) however, it seems that the character "'" in comments before baces can mess up the brace matching: Foo { Bar { //This doesn't work ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android: add prebuild object files I'm building static library with ndk-4 and assembler coredumps on some of my assembly files. I used codesourcery assembler to create objects for these files. Now, I have no clue how to add these prebuild object files to the project. I tried to check inside their makefiles, but I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery find element by specific class when element has multiple classes So I am working on something that wasn't well thought out in the build from the backend team. That leaves me with a document full of divs. What I am doing is rolling back from the element I need to click on, get the parent container then find a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Detect mouse over bezier or quadratic curve Possible Duplicate: Detect mouseover of certain points within an HTML canvas? I have some Bezier and/or quadratic curves drawn on an HTML5 canvas. How can I detect when the mouse is over a curve and select it when the mouse is clicked? Is there a quick way of checking i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I move to the next song using a MVVM mediaelement I'm learning C#/WPF/MVVM by building a simple media player. I am using ICollectionView in the MainViewModel for the playlist. I built a separate usercontrol for the mediaelement with some code-behind to handle the volume, position, timeline (http://www.codepro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing NULL for array parameter in C/C++ void DoSomeThing(CHAR parm[]) { } int main() { DoSomeThing(NULL); } Is the passing NULL for array parameter allowed in C/C++? A: What you cannot do is pass an array by value. The signature of the function void f( char array[] ); is transformed into: void f( char *a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MouseEnter and MouseLeave I have a user control in WPF. I have a button control within the control. I want the control to fade in and out when the mouse enters and leaves the control. The problem is when the mouse enters the button and leaves the control, it fades. Below is the code. <UserControl x:Class="WpfPre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Frameworks in the Cloud So I'm trying to finally grasp how cloud-based, enterprise applications work, and what their architectures typically look like. Say I use a cloud provider like Amazon. I assume (please correct me if I'm wrong) that I would be paying for 1+ virtual machines that would house a stack of sof...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to fix PHP Warning: file_get_contents? I'm getting following warning: Warning: file_get_contents(C:\xampp\htdocs\test/wp-content/themes/test\images) [function.file-get-contents]: failed to open stream: Permission denied in ..\plugins\theme-check\main.php on line 29 The line 29 of main.php reads as: $other[$file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Replace radio buttons with images using JQuery I have group of radio buttons which I want to replace with images when checked and unchecked. <div id="answerOptions"> <input type="radio" name="answeroption" id="r1" value="radio1" checked=''checked'/>radio1<br/> <input type="radio" name="answeroption" id="r2" value="r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to handle incoming control characters in a custom terminal? For my project I needed to create a custom terminal-like window and connect to a Cisco router through console port. So I inherited a TextBox and created a custom control in WPF. And I thought it would be enough; just to add some code to implement extra ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding Keys to Heroku with Rails 3 and RVM When attempting the command: heroku keys:add I get the following error (I put just the first line of the error): /home/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- readline (LoadError) Any idea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Php syntax error t_variable error? Im trying to post to the users wall i have there id and offline token stored in the database $result22 = mysql_query("SELECT token FROM usersoffline", $link2); $num_rows2 = mysql_num_rows($result22); // Get all the data from the "example" table $result = mysql_query("SELECT * FROM ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: styling tabs using styles.xml I have a row of 5 tabs at the bottom of my app. The problem is the text is cut off on some of them. I want to be able to have the text in each tab stack on top of each other instead of following along horizontally aswell as move the text into the center of the tab instead of sitting at...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSF - Scrollable DataTable Is there any way to implement a scrollable datatable without using Rich Faces ? If there is can anyone point me to some code samples or example pages ? Thanks. A: Use div component for scrollable datatable in jsf and mention properties height: 200px; overflow: auto; in style attribute. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I smooth texture objects in OpenGL ES 1.1 (iPhone) I'm currently experimenting with OpenGL ES 1.1 on the iPhone and trying to get my head around some of the basics. So far I've managed to draw a grid of objects which are lit with one GL_LIGHT. Here is a screenshot of the current output (question to follow)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to make an overlapped image clickable in android? I have a image of a map and i want to plot some points/markers on the map. These markers must be clickable. I have used a custom view class to plot the markers at my required points.The markers are getting plotted but the problem is that either the marker is not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to write labels in barplot on x-axis with duplicated names? I am trying to make a simple barplot but i have a problem that I have duplicated names on x-axis. So when ever I am trying to write names on x-axis it does not show complete string. I have following data x <- c(1.8405917,0.3265986,1.5723623,464.7370299,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Using Custom PropertyTab in System.Windows.Forms.PropertyGrid Control I am trying to use the customisable property tab feature of the WinForms PropertyGrid control but it has me beaten. I am specifically trying to use in runtime a PropertyGrid to display object properties, as opposed to trying to create design-time ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XML and C# - WriteEndElement I'm using System.Xml to create an XML document in C# My question is hopefully a simple one, do I need to use the WriteEndElement to close an XML tag? For example, I have found that the following code will compile with or without 'writer.WriteEndElement();' and produce the same XML either...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Hiphop for php "can not execute binary file" The old question is below. The problem was ftp transfer mode wasn't binary. But now i have another issue. Running hiphop compiled file gives following error (The one compiled on another computer). "error while loading shared libraries: libmemcached.so.7:cannot open share...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharing types in a modular application architecture I have an application under development that is following a modular application design. There is a 'core' vertical stack that provides common, central services such as authentication/authorization, logging, data access, etc. Context-specific areas are implemented...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Encrypting a string in PHP Okay, so I've got a php script something like the following: <?php $name = "Steve Jobs"; header('Location: http://www.apple.com/custom.php&name=' . $name); ?> Now, I happen to find it kind of embarrasing having the URL of this custom "Hi there, Steve Jobs" page have a URL of http://www.ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Posting from one RequestHandler to another in App Engine Goal: Using app engine's basic webapp framework I want to create a new request, with post data, to send to another RequestHandler. Something like pageGenerator.post({'message':'the message','datum1':datum1,...})... Problem Description: One request handler, c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: EdgeRenderingFunction and VertexRenderingFunction help I'm trying to construct a LayeredGraphPlot where some nodes connect to other nodes, like a tree. I would like to have the freedom to choose the thickness, color, presence or absence of labeling of each edge. I would also like to have the freedom to display som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: XSLT - How to evaluate a single node in multiple places I am building an image rotator in XSLT that requires the following markup: <div class="wrapper"> <div class="overlay"></div> <div id="slider" class="slider"> [IMAGE FROM NODE A GOES HERE] [IMAGE FROM NODE B GOES HERE] ... </div> <div id="htm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: warning - @return tag has no arguments I have 2 Warnings : --The First is : HELPDESKGESTION2\src\java\glpi\action\LoginAction.java:37: warning - @return tag has no arguments. --The second is : HELPDESKGESTION2\src\java\glpi\actionform\UtilisateurActionForm.java:67: warning - @return tag has no arguments. The Code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: auto generate custom id with sql I am relatively new to sql and databases and would like some help in the following topic. I have the following table: (junior male -> jm, junior female -> jf, adult male -> am, adult female-> af) id code name 1 jm john 2 am patrick 3 af ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (jQuery plugin: backstretch) Margin on the sides I am using this great jQuery plugin to have the fullscreen backgound for my website. This plugin currently fills the entire background on the screen, I was wondering if it is possible to give it a margin. For instance I want to have a gap in the right side of the scre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to debug Android project I'm new to the Android framework (using Eclipse) and I have a question about debugging. Recently I did this error in an activity: // The installation button Button button = (Button) findViewById(R.id.preparationInstallButtonID); button.setOnClickListener(this); setContentView(R.layout.p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot use class in jsp I'm trying to use a class I defined in a package in my Java Web Project, however I keep getting errors when I use the class I defined in the package. The error is saying that the class cannot be resolved to a type. I am importing the package that I made that contains the class that I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading custom UIView from nib, all subviews contained in nib are nil? I have a custom UIView object with a nib that defines the view/subview layout. My outlets are connected, and when I init the object from initWithFrame: everything is in order. The problem I'm having is when I'm using IB to embed the UIView into ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: OpenCV: Save video in IYUV I'm trying to save a video that have been captured by a camera. It works well when I try with DIVX fourcc but what I'm trying to do is to save with IYUV fourcc but it gives awful results: colors seem to be merged, openCV seen to not do the conversion. I've tried cv::cvtColor (src, dst, CV_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does Java takes Input in String format only? In java when we take input from console we get a String, even if we want an integer as input we get a input in String format, then we covert it in integer format using several methods, like Integer.parseInt(). Where as C/C++ also take input from console but there we g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filtering ListView which is part of a ViewPager Fragment I recently converted my application from using Activites and TabHost to using Fragments and ViewPager from the Android Compat Library for API v4 I was able to fix/resolve most problems but am unable to retain the previous behavior with filtering text in ListVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Error logging in via FTP script in KornShell I am trying to FTP a file using a script in KornShell (ksh) and I am getting a login failed message. I can login manually just fine but when I try the automated script, it does not like the password portion of the login information. Here's my script: ftp -n ftp.stmp.com <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to correctly setup Akka.Actors compared to Scala.Actors How do I run 2 Akka actors with the caller sending the consumer a message every n seconds? As there are no loop-react methods as in the Scala.Actors library I am stuck somehow, the following will not compile and produces: overriding method receive in trait...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do Unix capabilities work? it seems that starting kernel 2.2, they introduced the concept of Capabilities. According to the unix man page on capabilities, it says if you're not a root user, you can grant yourself of capabilities by calling cap_set_proc per thread basis. So does this mean that if you're writing a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to (computed) goto and longjmp in C++? I don't usually code C++, but a strange comp sci friend of mine got sick of looking at my wonderful FORTRAN programs and challenged me to rewrite one of them in C++, since he likes my C++ codes better. (We're betting money here.) Exact terms being that it needs to be compil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Could not validate certificate signature? I use the SSL Socket and Trustmanager from this side Self signed SSL but i keep getting following error: 09-28 19:52:41.942: WARN/System.err(10101): javax.net.ssl.SSLHandshakeException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: iPad Canvas Draw Image Error For some reason Safari on iPad is throwing an error when I draw an image as follows: INDEX_SIZE_ERR:DOM Exception 1: Index or size was negative, or greater than the allowed value var img = new Image; img.src = node.data.userimg; ctx.drawImage(img, 20, 20, 38, 38); where node.data.useri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to override/extend an inner class from a subclass? I want to change how a method of a class executes without overriding the method, and only overriding (or ideally extending) the inner class. Assume that I cannot change the fact that I need to do this (I am modifying an existing open source code base and there w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Prevent link popups in phonegap I am using the phonegap api, to create a native iPhone application. However when creating links between pages, if you hold down the links for a few seconds a popup comes up asking you if you wish to open or copy the links. I was wondering how I could disable these popups from coming u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loading and changing images asynchronous Im loading 4 images from a website asynchronous,and after the loading i change them with a timer,but looks like on the array of the images is always the first image,when i change to another position of the array it contains the same image,dont change at all... - (void)viewDid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get a handle to a popup window in gwt? Hi can someone tell me how to do something like the following in gwt? test(){ var win = window.open("http://www.stackoverflow.com", "mywindow", "location=1,status=1,scrollbars=1,width=100,height=100"); win.location = "http://www....
{ "language": "en", "url": "https://stackoverflow.com/questions/7588104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best practice for placing template views and backbone view code I am creating a ASP.Net MVC 3 application using Backbone.js. I am also using the jQuery templates for the views. My question is how do I organize the files in an efficient way? Currently I have a XXX.js file for the backbone application and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Game center authenticate on simulator, but nor actual device I am attempting to add game center to my application and all goes well for the simulator, but when I run it on the device, it always says game is not recognized by game center. I have attempted to log out of game center than back in hoping it places me in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In a view, why does visual studio not know that a semi colon after a model directive is going to cause a runtime error? I'm very very new to MVC3, and ran in to a problem very soon after going thru the asp.net mvc3 tutorials from pluralsight. Trying out the strongly typed example of the introduction 'adding a model'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iOS & XCode 4 Build Setting: Install Directory When developing iOS apps with XCode, there is a build setting called Install Directory. Does XCode ignore this? I've changed it to /Applications and the app still gets installed in the sandbox. I'm using a jailbroken phone and would like my app to get installed in /A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Most efficient way to concatenate list within list without a loop public class Unicorn { public List<int> Numbers { get; set; } } unicorns.Add(new Unicorn() { Numbers = {1, 2, 3} } ); unicorns.Add(new Unicorn() { Numbers = {4, 5, 6} } ); unicorns.Add(new Unicorn() { Numbers = {7, 8, 9} } ); What's the most eff...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: Proper Guid Mapping. Nhibernate I use an abstract Entity class which contains a Guid: public abstract class Entity { public /*virtual*/ Guid Id { get; set; } } Suppose I also have a class like: public class Post : Entity { public String Title { get; set; } public String Content { get; set; } public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Elastic WrapPanel and TextTrimming I am attempting to create an Elastic WrapPanel. Which means that each columns stretch itself to fit the panel's width until a new column fits inside the panel. The columns width is based on a ItemMinWidth. I was able to create the panel, but my problem is that if i put a TextBlock ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (To me) unexplainable value in character array I'm stuck with something I really don't understand and I hope someone over here does. Can anybody explain me why 'nextOne' holds the value 51? It's clear that at index 2 in the expression array is the number 3 so why does it store 51 in stead of 3 in nextOne? Here it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL Left Join + Min Seemingly simple MySQL question, but I've never had to do this before.. I have two tables, items and prices, with a one-to-many relationship. Items Table id, name Prices Table id, item_id, price Where prices.item_id = items.id What I have so far: SELECT items.id, items.name, MIN(prices.pric...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Adding a line break to a custom header css style? Newbie Q here: How can I add a linebreak in a custom header style? h21 { font-size: 1.52em; /*Equivalent of a line break here...????*/ } A: You cant add a linebreak in a class declaration, but you can add margin-bottom or padding-bottom: -10px or similar v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grails - Unit test a controller's method using the reCaptcha plugin I would like to unit test the following method: def handleEmailSharing = { EmailSharingCommand esc -> if (params.send) { def recaptchaOK = true if (!recaptchaService.verifyAnswer(session, request.getRemoteAddr(), par...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing objects to new objects $P1 = new Player(array( 'name' => 'Player 1', 'strat' => new Strategy(&$this) )); This is more or less what I'm trying to do. The reference to $this is obviously wrong. What is the best way to accomplish something like this? Basically, the new Strategy object needs to know wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Objective C: Serializing/Archiving issues I'm an Android dev who's recently started IOSing. In all my of my Android projects, I have an IO class that does the following: public static Object load(String fname , Context cont) { FileInputStream fis = cont.openFileInput(fname); ObjectInputStream ois = new Objec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding Html button and Onclick using Jquery? Here is what I am trying to do. function showDescription(td) { var desc = $(td).children("input:first").val(); var Button = $('<input type="button" value="Accept" onClick=validateUserInput(' + desc + '); style="float:right;"/>'); var dlg = $("#div"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to customize UISegmentedControl font color and UIToolbar gradient? It seems Apple's UIToolbar and some of the controls you can place on it, such as UISegmentedControl, allow very limited customization. For example, we want our toolbar to looks something like this mock: However, UIToolbar only has a single tintC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Typing Urdu/Arabic in TextEdit/TextView in Android I want to create a database in which i can add and retrieve the Urdu words. for this purpose i installed Inpage 2009 professional and copied its fonts (.ttf) into assets folder but it gave an error i.e I also installed UrduFonts.exe and copied its font JameelNoori...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook Like button using PHP My knowledge of Facebook's PHP SDK is limited at this point but is it possible to use their PHP SDK to create a text link version of their 'Like' button? A: No, I'm afraid this is not possible. A: I am currently using the Like button as well as the like box on our Website but the JS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create different RootViewController instances depending on the target I want to instance the RootViewController with different objects depending on the target I'm the running. For example, I have 3 RootViewControllers (RVCBase, RVCA, RCB) and 4 targets (T1, T2, T3, T4). I want that whenever T1 is running, RVCA show...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ajax call works great, but non-ajax call renders wrong in browser. What did I miss? In a non-ajax call, the ordering of divs inside other divs gets messed up and the page renders wrong. When the same call is done via Ajax, the page renders perfectly. So I have this search form on my master page: <form action="<%=U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Arrary with URL's--Convert to Clickable Links I have an array of URL's that I'm getting from a CAML query (something like: http://www.domain.com/site/files/doc1.pdf,http://www.domain.com/site/files/doc2.pdf). The array can have any number of comma-separated URL's depending on the query. What I need to do, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why Animals[] animals = new Cat[5] compiles, but List animals = new List() does not? In his book C# in Depth, Jon Skeet tries to answer the following question: Why can't I convert List<string> to List<object>? To explain it, he started with a code-snippet, which includes these two lines: Animal[] animals = new Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can Fiddler monitor traffic other than HTTP I have developed a Client/Server type application. XML data is passed between the client and server. I want to simulate how it would run on a very slow network (i.e. radio @ 9.6kps). I understand Fiddler can be used in simulate modem speeds mode. But no matter what I d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: pyramid_handlers not working I'm currently moving a project from Pylons 1.0 to Pyramid. My problem so far is how to use restful routes in Pyramid. I'm currently using pyramid_handlers since it seemed like a good start. I'm using Akhet. So here is the two important lines in my route: config.add_handler("new_accoun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Serialize list of employees in java I have a simple employee class: class Employee { private int id; private String firstName; private String lastName; private String streetAddress; private String city; private String state; private String zip; private String cellularPhone...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with pay pal subscriptions I have implemented pay pal subscriptions (daily) for some service on site. But I have problem with time. User pay for subscription at 10:30AM I receive IPN message save it to database and give user 24 hours to use service. When after 24 hours pass I want to give user another 24 hou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating an URL with javascript and a variable for jQuery ajax call I'm trying to use timthumb to dynamically resize an image using jQuery ajax: load_link = "/images/timthumb.php&src=" + link + "&h=194&w=263"; /* /images/timthumb.php&src=http://farm4.static.flickr.com/3631/5836439169_2230db5e6d_m.jpg&h=194&w=263...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }