text stringlengths 8 267k | meta dict |
|---|---|
Q: Rails 3: Duplicate validation error messages during testing I'm getting some weird validation behavior: it's duplicating my validation error messages and I can't figure out what's causing it... it doesn't do this in the rails console.
Here is the validation from my Phone model:
# phone.rb
validates :number, :length ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Combining function and callback parameter to create new function I have a wrapper around the jQuery animate function, which accepts a callback parameter to fire after the animation is completed. I want to "build" that callback by combining a user-passed callback and internal code. For example, the user passes functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Html.BeginForm() with GET method How can I specify that my form should be using GET method with @Html.BeginForm() ?
@using (Html.BeginForm(method: FormMethod.Get))
Here VS complains that best overload doesn't have a parameter method. Thank you!
A: There is an overload that allows you to specify the method:
@using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Get Redmine custom field value to a file I'm trying to create a text file that contains the value of a custom field I added on redmine. I tried to get it from an SQL query in the create method of the project_controller.rb (at line 80 on redmine 1.2.0) as follows :
sql = Mysql.new('localhost','root','pass','bitnami_r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: problem with while loop here is the script I wrote but it seems it has problem with while ! while suppose to compare the content of K with SDATE and while they are not equal go to the loop !
for d in \
$(sed -nre 's/.*\[(..)\/(...)\/(....):(..:..:..) .*/\1 \2 \3 \4/p' thttpd.log | date +%s -f-);
do echo $d >s1; do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Form inputs inside jQuery draggable objects are uneditable I'm trying to put a form inside an element, on which jQuery sortable is active. There's a DIV element, which is movable (with jQuery sortable), an IMG element, which is used as a handler for moving the DIV and FORM element with inputs inside. Both FORM and I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: calling functions returned as pointers from other functions in ctypes I'm trying to use ctypes to call a c function that was returned as a pointer from another function. It seems from the documentation that I can do this by declaring the function with CFUNCTYPE, and then creating an instance using the pointer. Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding Jira comment using soap in PHP How to add comment in Jira using SOAP in PHP?
A: $soapClient = new SoapClient("https://YOUR_JIRA_DOMAIN.com/rpc/soap/jirasoapservice-v2?wsdl");
$token = $soapClient->login($username, $password);
$soapClient->addComment($token, $issueKey, array('body' => "your comment"));
Refer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Python binary-data ascii error when encoding in multipart I'm using this cookbook recipe to encode images in a multipart form data to upload to Twitter.
When I run the code to pack the image in a django shell everything runs fine (even the print statements that I used to debug the post body with binary data) but whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write just one 0x0A character to STDOUT in Ruby on Windows? How to write just one 0x0A character to STDOUT in Ruby on Windows. Just one, without 0x0D.
@EDIT: Thanks to all! I knew about binary/text mode concept but have no idea how to deal with this in Ruby interpreter. The solution is to use STDOUT.binmode. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PHP/CSS can't get element to sit over a table? I have a div relatedListings that contains a table of customer's orders.
I want to add a heading above it, I have tried h3, div, and span but it always puts the element below the table.
The code that generates the table:
echo '<div id="relatedListings">
<h3 id="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC Right separation for functional component I am building a Web application that allow people to subscribe to certain classes which are divided by semesters.
In one of my interface I have a list of all activities that act as a summary in the backend interface. I was looking to group them by semester and browse thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grid with named RowDefinition fails to populate as ItemsPanel in WPF4 I have a Grid defined in an ItemsControl ItemsPanelTemplate, and one of RowDefinitions has a x:Name defined (so I could animate the row size).
<ItemsControl ItemsSource="{Binding Data, Source={StaticResource model}}">
<ItemsControl.ItemsPane... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: jQuery add elements to empty selection? Why doesn't this work?
var spans = $();
var elem = document.getElementById('someId');
spans.add(elem);
What is the proper way to start off with an empty collection and add elements to it?
I want to loop through a collection of ids and find the element on the page and add it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: How to make the Force Close window display friendly app name instead of a package name? I think it is possible to replace the Java package name in Force Close window in Android with a more readable application name. I cannot find any information how to do it or recall where I saw it, however. I tried to search on Go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL query to find rows with at least one of the specified values Suppose you had two tables. One called MOVIES:
*
*MovieId
*MovieName
Then another called ACTORS that contains people who appear in those movies:
*
*MovieId
*ActorName
Now, I want to write a query that returns any movie that contains ONE OR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android + ListFragment with a custom view hierarchy I'm attempting to customize the fragment layout by returning my own view hierarchy from onCreateView(LayoutInflater, ViewGroup, Bundle). This inflates my custom view, but seems to stack the views instead of inflating within, I see everything at once. Any help is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: NSData to file PHP I have NSData that I am 'POST'ing to a PHP file on my site, from that NSData, I am writing it to a file. However, the file's contents are the string of NSData (range of letters and numbers) rather than the parsed data. How can I parse the NSData to a string in PHP and then write the contents of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debugging missed broadcast datagrams, which show up in wireshark, but not in C# app? I have two machines A1 and A2, both of which are running the same embedded code, which broadcast packets. The third machine, B3, is a Windows XP box running a C# (.NET 4.0) app, which listens for those broadcasts.
All of the data ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to (efficiently) convert int[] to Integer[]? Is there any direct way to convert int array to Integer array with out looping element by element.
Brute force way will be
int [] a = {1,2,3};
Integer [] b = new Integer[a.length];
for(i =0; i<a.length; i++)
b[i]= i;
Is there any direct way with out traveling th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's an appropriate design pattern for this hierarchical class structure? I have a class that instantiates a hierarchy of classes. The interface should hide all of the internal hierarchy by presenting a single class reference. (An the interface to the classes at intermediate levels should hide internal implementat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is my controller not ordering by what Im telling to order by? My controller action is calling all images belonging to a specific user and Im trying to order by its position (Im using the acts_as_list gem) but when I go to the page, the images are FIRST sorted by the created date, and then position (according to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: security for cookies If I sign-up to a website and the website sends me a cookie with and ID with which it can identify me, can somebody else impersonate me if they get hold of this cookie?
If somebody else knows the format of the cookie and guesses the ID can they impersonate me this way?
Also, any material where t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: onCreate() is not called by getWritableDatabase() I am writing a database in my android app, but my tables aren't being created. I added break points at my onCreate method, and my getWriteableDatabase, and getWritableDatabase is called, but onCreate is not.
package com.fslade.app;
import android.content.Context;
im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Can't assign to mapType::const_iterator? ("no operator = matches") typedef map<string,int> mapType;
mapType::const_iterator i;
i = find_if( d.begin(), d.end(), isalnum );
at the '=' i am getting the error:
Error:no operator "=" matches these operands
I know that find_if returns an iterator once the pred resolves... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to instantiate and populate a Scala Stream in Java? I have a Scala function foo(bs : Stream[Bar]) : Bat that I need to call from Java code. How do I create the "bs" Stream (Stream[Bar]) in Java and lazily generate its Bar objects?
A: Depending on what needs to be in the stream, it might be easiest to create a j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Django database model "unique_together" not working? I want my ip and stream_id combination to be unique, so I wrote this model:
# Votes
class Vote(models.Model):
# The stream that got voted
stream = models.ForeignKey(Stream)
# The IP adress of the voter
ip = models.CharField(max_length = 15)
v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: BLToolkit - Current readiness for Azure Does anybody know if BLToolkit has been tested and certified for use with Azure Sql and if it supports the dropped connection retry functionality? And if not are there any plans to get it tested and passed?
A: At the time of writing, there is nothing official on the BL Toolk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: De-authorize a Facebook app using the new OpenGraph API I have this code to de-authorize my FB application for currently logged in user:
FB.api({ method: 'Auth.revokeAuthorization' });
It's using the deprecated REST API. How do I do the same using the OpenGraph API with FB.api method?
A: I figured it out:
FB.api(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatically adding text labels to a family of curves
Possible Duplicate:
How do I label different curves in Mathematica?
Using Mathematica, I would like to programmatically add text labels to each member of a family of curves. I'd prefer not to use a legend. Here's an example:
f[x_, a_] := a*x
myplot = Plot[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Removing cdata in simplehtmldom Hello good day I am trying to scrape an xml feed that was given to us, I am using simple htmldom to scrape it but some contents have cdata, how can I remove it?
<date>
<weekday>
<![CDATA[ Friday
]]>
</weekday>
</date>
php
<?php
<?php
include('simple_html_dom.php');
include ('... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Understanding UIGraphicsGetCurrentContext() I'm trying to understand Quartz and getting the context you have to draw on. If I have a function where I create a context, but then I call another function to some other drawing to the same context, do I need to pass the context from the first method to the next? Or can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: C# how to use Regex.replace, to replace all the pattern matches with the target string Yes, I want to search and replace all the occurrences of the pattern and replace them with a target string. I am trying to use Regex.Replace(src, pattern, target), is there a flag like \g to put in pattern to make it work, or what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Zend render static / dynamic with multi controllers I'm pretty new to Zend (read the documents concerning routers and controllers).
My StaticController and IndexController :
class StaticController extends Zend_Controller_Action
{
public function displayAction()
{
$page = $this->getRequest()->getParam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Close copied worksheet when exporting into CSV I try to save each worksheet of an excel spreadsheet into CSV files. The following script do the job. The line .Parent.Close savechanges:=False is supposed to close the created worksheet but when uncommented the script stops after the first sheet. If I comment the line,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementing OnTouchListener on LinearLayout - Android Development public class UnitConverterActivity extends Activity implements OnTouchListener {
/** Called when the activity is first created. */
LinearLayout mLinearLayout;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Overriding Camel & log4j I'm fairly new to Apache Camel, but have to say that I love it so far. One "limitation" (probably a lack of understanding on my part) I've hit so far is that Camel ships with log4j as its default logging component.
My team has already gone to great lengths to build our own logging framework,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: self invoking function in for loop Here's code from https://github.com/Khan/khan-exercises/blob/master/khan-exercise.js
for ( var i = 0; i < loading; i++ ) (function( mod ) {
if ( !testMode && mod.src.indexOf("/khan-exercises/") === 0 && mod.src.indexOf("/MathJax/") === -1 ) {
// Don't bother loading kh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What regular expression can validate this type of string? How do I validate this using a regex in js?
first.last.wrt
OR
first.last
Both are part of email addresses, only the name part in the format mentioned above should validated.
Ex: These should validate using the regex:
john.doe.wrt
john.doe
A: If you only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: MongoDB C# mapping domain objects Normally when using Nhibernate I have models in the Nhibernate project, then they are mapped to a UI model to be used and then back, however I have to use merge frequently opposed to update because the mapped model although having the same Id as an existing NhibernateModel it isnt t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: django save data in database only when certain conditions are met I have a python function that scrapes some data from a few different websites and I want to save that data into my database only if a certain condition is met. Namely, the scraped data should only be saved if the combination of the location and date ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where can nightly builds of OpenJDK 7 for Windows be found? I have searched high and low for a CI server or other source for a nightly build of OpenJDK7. I would like this so that I can track the bug fixes and performance improvements being made to hotspot for invokedynamic support.
I have found the instructions for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPad Home Screen Icon Pixelated when inatlled via Ad-Hoc I am testing my app via Ad-Hoc Distribution and have run into a strange problem.
When testing via Xcode to my iOS device everything looks and works exactly as expected; however when installing the app through iTunes (using an IPA file generated in Xcode using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL root password change I have been trying to reset my MySQL root password. I have run mysqld_safe --skip-grant-tables, updated the root password, and checked the user table to make sure it is there.
Once restarting the MySQL daemon I tried logging in with the new root password that I just set and still get Acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "178"
} |
Q: Android custom dialler on tapping phone number links I have to implement custom dialler application. Well it will not make regular phone call, instead it will connect to some service to estabilish VoIP connection. That is simple part I think I can handle it. But the other part is a bit tricky for me. I want to "regi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with TRandomStream - Delphi TurboPower LockBox 3 I am using TurboPower LockBox 3 (http://sourceforge.net/projects/tplockbox/ and http://lockbox.seanbdurkin.id.au/tiki-index.php)
I have a problem with the TRandomStream. I'm trying to generate a chunk of 32 byte random data, but the output does not seem to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UILocalNotification not cancelling after firing My application generates multiple local notifications and while I'm testing it, I see that the app continuously receives the local notification appDelegate message. This is in spite of my having no repeat interval.
<UIConcreteLocalNotification: 0x1574b0>{fire date = (n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multithreading: C# program running C dll - Unresponsive C# I wrote a C dll that performs two tasks:
1) Relay certain messages to the C# program
2) Perform an intensive task on a different thread
It all works but the C# UI is unresponsive, even though C is running the intensive task on a different thread.
I have al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone EXC_BAD_ACCESS with NSMutableArray of strings Problem context is a ViewController with several button handlers and a scores.list data file of 1000 NSString objects. If I click on buttonOne, the handler code checks if the file scores.list exists in the User Documents directory. If yes, it loads the data in an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: trying to __dopostback from jscript, RaisePostBackEvent not firing i'm trying to follow the suggestion here: Call ASP.NET function from JavaScript?
But it's not working for me. The page does post back. but my RaisePostBacKEvent never fires. I am doing this in a usercontrol and not a page:
public partial class MyTrea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Coldfusion stripping leading zeroes in autosuggest I've just encountered CF's unwanted "feature" which involves stripping leading zeroes from the values returned to an autosuggest input. I was thinking I could prepend some character to the values and strip them out after the return, but have hit a snag. I'm modifyin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python - how to avoid exec for batching? I have an existing python application (limited deployment) that requires the ability to run batches/macros (ie do foo 3 times, change x, do y). Currently I have this implemented as exec running through a text file which contains simple python code to do all the required batc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF DispatchMessageInspector - Process and make available to operation I want to create a DispatchMessageInspector for my WCF service that will run before each operation, perform some processing and then make the result of that processing available to the operation.
Creating the MessageInspector is easy. However, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is BeginRead guaranteed to read any incoming bytes that arrive after a call to it? Let's say that after BeginRead is called, there is other code that will ultimately trigger the arrival of the bytes I want to read. Is the following scenario ever possible:
(1) Call to BeginRead is made, passing in 'buf' and returns
(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flashdata only shows every OTHER time the code runs I am relatively new to CodeIgniter, so I'm not sure if this is just bad coding, or if it is a problem with how I'm using CodeIgniter's flash data. For context: the user submits a phrase in a simple HTML form. The phrase is compared against what should be typed in (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Contact Form Problems Trying to install this contact form:
http://www.catswhocode.com/blog/how-to-create-a-built-in-contact-form-for-your-wordpress-theme
I'm getting HUGE gaps between fields: http://themeforward.com/demo2/features/contact-form/
Any idea what the problem is? I should be able to figure this one out a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Define a pre-processor variable for all the files in make I have a number of .c and .h files with some parts of the code disabled by putting the code block in pre-processor directives e.g.
#ifdef FOOBAR
// some code that can be compiled if needed by defining FOOBAR in pre-processor.
#endif
No I need to define FOOBA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Not adding (non-retina) 1x images to an iPhone app Is there a way to not add 1x images to an iPhone/iPad app?
I'm developing an iPhone app and also testing on my iPad.
When I just use @2x images, the iPad successfully resizes down to the 1x size.
Is there any downside to not to add 1x images? Or are they still impor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java: how to execute a process which is not attached to a Windows console? Both, Runtime.exec() as well as ProcessBuilder seem to attach a console to the started process. On Windows 7, one can see a conhost.exe popping up in the Task Manager. My problem is now that the C process I'm trying to start performs followin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Regex to validate url The url will be something like: meusite.com/user/{keyword here}
The user will only enter the key word, then I would a regex to validate word if this does not invalidate the URL, blank spaces, special characters and 5 to 22 characters.
A: You just want to validate the keyword? Something like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Must template parameters be types? In the Bjarne Stroustrup C++ Book (chapter 13, page 331), it said that "a template parameter can be used in the definition of subsequent template parameter". And it gives the following code:
template<class T, T def_val> class Cont{ /* ... */ }
Can anyone provide an example of how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JSF ui:repeat included by ui:include wrapped in h:panelGroup with conditional rendering... A mouthfull Original question is below, but as I have come up with a more minimal example to demonstrate this problem, and figured it should go at the top.
Anyway, it appears that ui:repeat tags are processed before checking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why doesn't $(this) work inside a javascript function? I've attached an onlick event to a function. I want to reference the element being clicked from inside the function so I can change its inner HTML, but why is it not working? Is there any other way to reference the clicked element?
HTML
<div class="save... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What database is best suited, especially in terms of disk usage, to millions of very small rows with a high insert, query, and delete volume? I'm looking at a table structure that might look about like this:
| char(32) | char(32) | (boolean) |
The combination of the first two columns will be indexed. This database ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to swap jquery for prototype in Rails 3.1 I have a rails 3.1 project that was created with the default jQuery. What is the best way to convert the project to use prototype instead?
A: *
*Remove the jquery gem from Gemfile
*add prototype-rails to it
From https://github.com/rails/prototype-rails:
You may ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Determining methods available in a web service by examining the WSDL file (I am fairly new to web services, kindly excuse any incorrect terminology)
Given a WSDL URL, how does one determine what methods are available in that web service by looking at the source of the WSDL file?
Also, how does one construct a SOAP r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Annotation or keyword to tell garbage collector of objects to remove first There is an annotation or a keyword in Java that tells the garbage collector to remove some objects first when the memory is running out.
Unfortunately I've forgotten it's name. Do you know it?
A: I think I'm safe in saying that your memory'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I trigger a function? I have this code:
<a href="#" class="button" id="buyme" ></a>
<a href="#" id="buy" onclick="placeOrder('10');return false;"><span id="please">click me</span></a>
<script>
$('#buyme').click(function() {
$('#buy').trigger(function(placeOrder('10')));
});
</script>
<script>
function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending log to remote MSMQ I installed NLog version 2 and sending to a remote MSMQ is not working. Do I have the config setup properly?
<nlog autoReload="true" xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target xsi:type="MSMQ" na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jquery tabs inside a floating div not showing up properly i can get tabs working fine in straight htm file with no floats. when i add a left & right container side by side the tabs get messed up. The content gets displayed outside of the tab div underneath it.
here is the code, anyone solve this issue? i found s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: file_get_contents() and stream_get_contents() fail to open stream I'm trying to force a file to be downloaded by sending it special headers. In doing so, I have to redirect URL requests for PDF documents through my download script.
I pass a query called $seg3, which is base64_encode()ed before sending, and then base... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding customized functions to Buildbot I have written a function in python and I would like to have Buildbot to execute this function
when it receives a "build" command. I have used the "factory.addStep()" before to add new commands through command line, but I'm not sure how I can add a python function to Buildbot.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error when accessing Count property of an IList in ASP.Net MVC 3 When I try to display the count property of an IList in my ViewModel on the View i get the following error:
The property System.Collections.Generic.IList`1[[WebUI.ViewModels.ItemViewModel, WebUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "The Report is empty" - is bug? I've created report with 3 parameters in iReport and it's running successfully. The report is execute MS SQL stor proc with 3 parameters:
*
*startdate;
*enddate;
*dept_nm (department name);
iReport gives good result. As soon as I exported jrxml file to JasperReports Server 4.1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Having issues passing Objects among tiers I'm trying to do something that should be real simple but I'm getting errors I don't know how to correct. Also, I don't even know if I'm doing things the "correct" way.
I have 3 entities. My first entity is called Bill and it's my main one. The other two are Repeat and Type.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set the date in a plist to [NSDate dateWithTimeIntervalSince1970:0]? I have a row in my plist using a Date type. I manually set to the date to Jan 1, 1970 12:00:00 AM. I'm using the plist as defaults for NSUserDefaults. When I read the value using NSUserDefaults, it returns 1970-01-01 08:00:00 +0000. As a res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Only count a download once it's served We have this code which serves a download:
public class downloadRelease : IHttpHandler {
public void ProcessRequest (HttpContext context) {
-- snip --
context.Response.Clear();
context.Response.ContentType = "application/octet-stream";
con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Javascript: Onclick Set Dropdown Menu Checked Value UPDATE: I was trying lots of different methods for doing this and none of them worked... until... I changed my dropdown menu name from (date-range) to (dateRange) removing the (-), sorry for wasting time!
I have a search form and a custom reset form button, which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to tokenize text in PL/PGSQL using regular expressions? I want to tokenize text in my database with RegEx and store the resulting tokens in a table. First I want to split the words by spaces, and then each token by punctuation.
I'm doing this in my application, but executing it in the database might s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Jquery ajax calls, which is best? I have found this information on the web about jquery ajax requests.
load(): Load a piece of html into a container DOM.
$.getJSON(): Load a JSON with GET method.
$.getScript(): Load a JavaScript.
$.get(): Use this if you want to make a GET call and play extensively with the response... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detect whether user is logged in to Facebook I want to show Login button and Login status as "LOGGED IN" if the user has Facebook open in any other tab of their browser, and otherwise show "NOT LOGGED IN".
A: To use the Facebook to determine, the user would have had to first approve your application. This can be c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: string.GetHashCode() returns different values in debug vs release, how do I avoid this? To my surprise the folowing method produces a different result in debug vs release:
int result = "test".GetHashCode();
Is there any way to avoid this?
I need a reliable way to hash a string and I need the value to be consistent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Time-varying values in Rx I have two observables. One is from Observable.fromEvent(..), where the underlying event is the user checking a Winforms checkbox. The other is Observable.Interval(..) which I subscribe to in order to do some IO, and I would like to prevent this observable from doing IO, whenever the checkb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android videoview garbled in new activity I'm loading an mp4 video from external storage into a videoview in every activity. In the first activity, the video is perfect, in the second activity, the video is garbled, and then in the third activity, the video is perfect again. Do I need to somehow clean up the video... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Center Text on a Button I know this has been asked a couple of times before, but not of the solutions seem to be working in this case. Basically, I want the word "play" to be centered vertically and horizontally on this button. Horizontally, the text behaves itself, but vertically, not matter what I try, it is alway... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rules-of-thumb doc for mathematical programming in R? Does there exist a simple, cheatsheet-like document which compiles the best practices for mathematical computing in R? Does anyone have a short list of their best-practices? E.g., it would include items like:
*
*For large numerical vectors x, instead of comput... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Refactoring 'match' in routes.rb I've read official guide but still have misunderstanding.
Is this code able for refactoring?
match '/help', :to => 'home#help'
match '/contact', :to => 'home#contact'
match '/about', :to => 'home#about'
help, contact and about are the only actions in the controller home.
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Git Alias - Multiple Commands and Parameters I am trying to create an alias that uses both multiple Git commands and positional parameters. There are Stackoverflow pages for each, and it would appear painfully obvious to do both, but I am having trouble.
As an example, I want to switch to branch foo and perform a st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "238"
} |
Q: Entity-specific functions in Symfony2 In my Symfony2 project, I have a ModelBundle which holds my entities, and other bundles for the frontend, backend, etc, which utilise that ModelBundle.
I have a couple of model-specific functions that perform some entity-specific tasks.
Where do I put these?
*
*Do I create a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which platforms will support Visual Studio 11? We all know that windows 8 will be released very soon, and that Visual Studio 11 will be released too. With Visual Studio 11 you can make Metro UI apps exactly like WP7.
My question is that if we program with VS 11, is it supported on Windows 7, Vista and XP?
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: range input disable does not work in chrome I am disabling my range input however in chrome it shows it grayed out but it is still usable.
<input type="range" disabled min="0" max="100"/>
I would assume the above would not allow you to change its value.
Am I doing it wrong?
jsFiddle
Relevant specification Disabled... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: jQuery animate colors plugin only works when clicked? Trying to animate background color on page load but it only works when I actually click the element. I am using the colors plugin.
$(window).load(function () {
$(".hilite").toggle(function() {
$(this).animate({ backgroundColor: "yellow" }, 1000);
},functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linux SoftLink to applications and execution I have created a softlink to an application using the following command:
ln -s sourcedir/Application somedir/ApplicationSoftLink
But I do not know how to start the application using the softlink. My understanding of a softlink is that it is the same as a shortcut in Wind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I change the entire style of a button from code behind in realtime? I have a button that flashes.
I would like to change the entire button style from a resource dictionary when ever it flashes.
I would think it would be like this:
DesktopWindow.AlertButton.Style = (Style)DesktopWindow.Resources["GreenAlertBut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Building a graph with draggable nodes I want to populate some user data on the browser as a graph of draggable nodes, with each node representing a user and the edges are relationships between them. I figured out a solution(it works): I use draggable divs over an HTML5 canvas (the divs have a greater z-index than th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Problem with displaying AS3 code in Flex I have AS3 script bitfade.text.steel returning type Sprite. It works in Flash environment but not in FLEX. In Flex it displays nothing. No errors appear. It looks like the attached code also works. I use Flex SDK 4.5
Can you give me a clue what the problem with this code migh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to do flags in C# In C# I have seen enums used in a flag format before. Such as with the Regex object.
Regex regex = new Regex("expression", RegexOptions.Something | RegexOptions.SomethingElse);
If I have a custom enum:
enum DisplayType
{
Normal,
Inverted,
Italics,
Bold
}
How would i format a m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: css form dropdown list problem On my site css file i have it so all form input backgrounds (textareas, dropdowns etc) have a background color black attribute.
However on one page I'm trying to do a color section dropdown, with the background of each option a different color, eg: blue
This works, when the dropdown is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xquery on MarkLogic using OR This is a newbie MarkLogic question. Imagine an xml structure like this, a condensation of my real business problem:
<Person id="1">
<Name>Bob</Name>
<City>Oakland</City>
<Phone>2122931022</Phone>
<Phone>3123032902</Phone>
</Person>
Note that a document can and will have multipl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery: contains() always returning true I have a parent jQuery object and a child jQuery element.
I'd like to see if the child is already contained within the parent. I was thinking of using jQuery's contains() method. However, in Chrome and IE I always get true returned and in FF6 I get an error a.compareDocumentP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.