text stringlengths 8 267k | meta dict |
|---|---|
Q: close button for jquery qtip tooltip plugin I am trying to have a close button on the qTip tooltip - i have the following:
<script type="text/javascript">
$(document).ready(function () {
//****** tooltips **********
$('img.help').hover(function () {
// Destroy currrent to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to correct TypeError: Unicode-objects must be encoded before hashing? I have this error:
Traceback (most recent call last):
File "python_md5_cracker.py", line 27, in <module>
m.update(line)
TypeError: Unicode-objects must be encoded before hashing
when I try to execute this code in Python 3.2.2:
import hash... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "450"
} |
Q: tokenizer null character inputValue = "111,GOOG,20,475.0"
StringTokenizer tempToken = new StringTokenizer(inputValue, ",");
while(tempToken.hasMoreTokens() == true)
{
test = token.nextToken();
counterTest++;
}
It's giving me some invalid correct NULL character
I started to learn stringtokenizer and I'm no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Identical data frames with different digests in R? I have two large data frames, a and b for which identical(a,b) is TRUE, as is all.equal(a,b), but identical(digest(a),digest(b)) is FALSE. What could cause this?
What's more, I tried to dig in deeper, by applying digest to bunches of rows. Incredibly, at least to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Determining most register hungry part of kernel when I get a kernel using too many registers there are basically 3 options I can do:
*
*leave the kernel as it is, which results in low occupancy
*set compiler to use lower number of registers, spilling them, causing worse performance
*rewrite the kernel
For opt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Schedule a task after a specific interval in Java I've got a class
class A {
int a=0;
public int getVal() {
return a;
}
}
and I've to execute the function getVal periodically. How do I do it from another class b? Thanks.
A: Old Way
java.util.Timer
New (and preferred) Way
java.util.conc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MS Word Macros 2003 - 2007 I work in a remote region with limited resources and technical expertise as a Project Manager and a new project I just got handed was the testing of MS Word 2003 macros on a MS Word 2007 platform. The Macros were initially developed by Corel a few years ago when we migrated they migrated t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The type or namespace name 'DinnerForm' does not exist in the namespace 'NerdDinner.Models' when trying to implement partial form Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code approp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get jQuery Mobile to use Javascript Array I have jQuery mobile app. I get new data from the server and hold it in javascript Arrays.
When I go to a page in the jQuery mobile app I want it to populate with the data from the Javascript Arrays.
The reason for this is I update the data in the web app
Question is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Handling exceptions in a class library enveloping a device driver I am writing a class library that envelopes an USB device driver.
This device has its own class library, provided by the hardware vendor.
Very often, especially if you handle with old DLL or COM assemblies, there are methods (functions to be correct) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery fadeIn fadeOut makes page scroll I have wordpress enabled website where I want to create a featured block. This featured block will have featured articles fading one after another. I got it working by using the fadeIn and fadeOut APIs of jQuery, but there is a problem with the implementation.
Here is the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cycles in chained exceptions I'll first quickly motivate the question with my use case.
My library needs to expose a Java exception classifier to a framework which it plugs in to. For example:
enum Classification { FATAL, TRANSIENT, UNKNOWN }
Classification classify(Throwable t) {
if (t instanceof MyTransientE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Testing for console.log statements in IE
Possible Duplicate:
'console' is undefined error for internet explorer
If you have console.log statements in your code, Internet Explorer will throw a JavaScript error (at least in IE7 which is what our intranet users have installed).
I am using Firefox for most of my deve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Zend Quickstart Tutorial Conceptual Problem I am trying to learn zend framework, and managed to get through the whole quickstart tutorial they have. However, there is something that I simply can not understand, and was hoping somebody can help me with.
In the tutorial, you create a db-table class, a mapper, and a mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle i18n in Go? I searched on web but I didn't find anything related to i18n and Go.
I wish to use Go for develop web sites. What is the best way to handle internationalization?
A:
Packages roadmap
Comprehensive support for international text.
Support for international dates, times, etc.
Support for mult... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Why does my WCF service give the message 'does not have a Binding with the None MessageVersion'? I have created a working WCF service. I now want to add some security to it to filter Ip Addresses. I have followed the example that microsoft publish in the samples to try and add a IDispatchMessageInspector that will r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: how to get Roundhouse to create db on second hard drive I want Roundhouse to create the db on a second hd (not the C drive which it does right now). Is there any way in Roundhouse to do this ? Iam using sql server 2008 r2 express. I tried the -cds option for custom db creation but it gives an error saying does not p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to setup a Windows Phone App without a tile title How can I set no title to my app, like the Facebook app, since my app also have its name displayed in the logo ? I tried in the app properties in Visual Studio but it displays an error saying that the title should not be empty.
To clarify : I want the app tile no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Anchor button label not aligned I can't seem to align the label of an anchor tag that's been made to look like a button.
Cancel label is clearly off. I would like it to be aligned with the Next button's label. We need the Cancel button to be an anchor tag because this site needs to work without Javascript.
Anyone h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.net/C# newbie looking for help editing column width dynamically when data is retrieved I've been messing around with this and have yet to find a clean solution. At the moment, I have a asp:DataGrid control on the aspx page (I am open to changing this). When I click a button, I retrieve a DataSet from a database ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reusing LINQ query results in another LINQ query without re-querying the database I have a situation where my application constructs a dynamic LINQ query using PredicateBuilder based on user-specified filter criteria (aside: check out this link for the best EF PredicateBuilder implementation). The problem is that t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Setting IGMP Version on Windows 7 I have a piece of software written "out there" (e.g. no source code available) that allows me to use it in multicast mode. I'm trying to use this software on a network that, for technical reasons, can only use IGMP Version 2.
My OS is Windows 7 (64-bit, though I doubt that makes a d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can automate the input to a program with Perl? The program has these prompts:
Enter Username:
Enter Code:
How can I get Perl to input the proper text for each prompt?
A: You can use expect. There's a CPAN module for it.
A: Expect is the usual solution.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7585379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Write object to XML file (specify my own file name) So there's the basic function like this ....
def show
@position = Position.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @position }
end
end
and if you go to, say, http://localhost/(position_id).xml then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to install or integrate bundles in Symfony2 i have downloaded a sonata admin bundle, and have placed in /var/www/Symfony/vendor/symfony/src/Symfony/Bundle, and have made an entry in AppKernel.php as $bundles = array( ... new Symfony\Bundle\SonataAdminBundle\SonataAdminBundle(),), but throwing an error as
Fat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Have only one tooltip active on the screen when using the qtip jquery tooltip plugin I am using the jquery qtip tooltip on multiple elements (images) on a page. I am trying to have only one tooltip appear on the page at a particular time. If a tooltip is shown and another tooltip has been triggered to open, the cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to show MBProgressHUD on iPhone without spawning new threads? I want to show an MBProgressHUD in my iPhone app without spawning new threads.
I have a very complicated set of business logic which sometimes (but not always) needs to wait for user input, and running on multiple threads ends up asking for user inpu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I want to be able to convert numbers into text according to the ASCII decimal table I am trying to make it so that I can take individual three-character substrings and convert them to integers under the conditions tht the length of the String is a multiple of three. The integers into which the partioned substrings ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drupal path pattern token if/then I would like to do something like
if [node:subtitle] is available make the path pattern
[node:title]-[node:subtitle]
else
[node:title]
What is the best way to do something like this?
A: You can't do it with the pathauto module I'm afraid, it simply doesn't have this functionalit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get a person assigned to the task in Alfresco? There are many elements in repo and I start workflows specifying a document attached to the workflow:
var workflow = actions.create("start-workflow");
// ...
var node = search.findNode("workspace://SpacesStore/" + uuid);
workflow.execute(node);
Workflow starts so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dialog manipulation I want to create a dialog window, where the user can perform various tasks, and would like him to return from the dialog by clicking on the Cancel button with the mouse (i.e. not by hitting Enter). Therefore I do not want to use CreateDialog. However, by creating a less-specific dialog window via... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to draw a arbitrary path with touch move on a UIView I know that you can draw a line easy by Core Graphic on UIView in a drawrect function. However, I only can draw a straight line。 If I want to draw a arbitrary path with the touch move, what should I do? Can someone give a hint?
Best Regards,
A: You could use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adapting Library for Android The library given consists of several parts:
*
*a network module
*a storage module
*a 'controller' module
They all rely on the former module (storage relies on network, controller relies on storage). Most of the functionality is exposed in controller module.
My first plan was to w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP script unexpectedly not continuing I have a PHP script (let's call it execute.php) that draws the whole page (HTML tags and body tags etc.) at the beginning and, afer that, executes some commands (C++ programs) in the background. It then waits for these programs to terminate (some depend on the results of others... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Horizontal Scroll View and a gap with overlapping content After some issues, I now have a working horizontal scroller, it uses a linear layout, with various image views inside, the problem is, I want some of the image views to overlap each other, I achieve this by using
myImageView.setX(-100);
The problem is, there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: Identify what code an AsyncTask is running In Eclipse in the Debug window I see a thread that shows:
Thread <16> AsyncTask #11
Is there a way to determine what actual section of code the AsyncTask is referring to? Is there something I have to add in code to identify that running thread?
A: You can name the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MySQL Query Pegs Server at 100% - Sometimes I've got a MySQL query that runs very, very slowly and pegs the server usage at 100% as soon as it's executed....sometimes.
Here's the query:
SELECT DISTINCT r1.recordID,
(SELECT MAX(r2.date)
FROM reminders as r2
WHERE r2.owner = '$owner' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jstack gives java.lang.reflect.InvocationTargetException Til yesterday, jstack was working fine.
Today, all out of sudden it gives me the exception below and I don't know why:
$ sudo -u tomcat6 jstack -J-d64 -m 26385
Attaching to process ID 26385, please wait...
Exception in thread "main" java.lang.reflect.Invocatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is ObjectContext.SaveChanges ACIDIC? As the title suggests, Is the following code acidic, e.g. if I call SaveChanges, will all the Product.Add INSERT statements be executed (or rolled back if there is an error).
using(DBEntities ctx = new DBEntities())
{
for(int i = 0; i < 10; i++)
{
ctx.Products.Add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing Exceptions using SenTestingKit/OCUnit The only solution I seem to be able to find for testing for exceptions is using SenTestingKit's STAssertThrows and STAssertThrowsSpecific, however in both cases when the exception is thrown the application under test hangs until I manually ask it to continue. Surely the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: problem reading hex values from file with NSString or NSData I have a file which I need to grab some data from but I am only getting nil when i read it.
the file contains
K vU™"3Dô
U0?*
the hex values are
1B 1B 01 1B 4B 07 20 1B 76 02 06 55 AA 11 22 33 44 99 20 0A 1B 55 30 1B 1B 3F 0C 1B 2A 01 0C 0C
I have tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CoreData: How to handle inheritance dynamically? e.g., I've got three classes in my CoreData-project: Person, Pupil and Teacher. Pupil and Teacher have Person as parent class.
Now, I'd like to do something like:
Person *person;
if (createPupil) {
person = [[Pupil alloc] init];
...
} else {
person = [[Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to convert string to bytes in Python 3? TypeError: 'str' does not support the buffer interface suggests two possible methods to convert a string to bytes:
b = bytes(mystring, 'utf-8')
b = mystring.encode('utf-8')
Which method is more Pythonic?
A: If you look at the docs for bytes, it points you to bytear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1399"
} |
Q: java string optimizations - load-in-place algorithm I need to optimize the actual loading/parsing of a csv file (strings). The best way I know is the load-in-place algorithms and I successfully used it using JNI and a C++ dll that loads the data directly from a file made out of the parsed csv data.
It would have be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Defining jquery plugins I have a problem with defining jquery plugins. In asp.net page located RadAjaxPanels, in which are loaded widgets (asp.net controls). In the widget I define jquery plugins:
<script src="../../JS/jquery-1.5.1.js" type="text/javascript"></script>
<script src='../../JS/jquery-ui-1.8.16.custom.mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TSQL DISTINCT RECORD COUNT
I am using SSMS 2008 and am trying to get a distinct count of Event_names from my table. But instead, it is returning count = 1 when there are actually 2 records and other invalid values. What I want is the total count / consumer for their number of distinct event_names they are part of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to draw a pixel on the screen directly? I'm wanting to do something like the following:
...
pixel[0,0] = [ 254, 0, 0 ] # Draw R at pixel x0y0
pixel[2,1] = [ 0, 254, 0 ] # Draw G at pixel x2y1
pixel[4,2] = [ 0, 0, 254 ] # Draw B at pixel x4y2
...
I hope to display many different configurations of pixels and colo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: org.postgresql.util.PSQLException: Large Objects may not be used in auto-commit mode I am using Spring , JPA, Hibernate, Postgresql. I can upload/insert a file to the database. But I got the error when tried to access the file.
EVERE: Servlet.service() for servlet default threw exception
org.postgresql.util.PSQLExc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't call my service method I'm getting this error:
The communication object,
System.ServiceModel.ChannelFactory`1[FxCurveService.IFxCurveService],
cannot be used for communication because it is in the Faulted state.
When I call this code:
using (var client = new WCFServiceChannelFactory<IFxCurveService>(new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jsp scriptlet function called from button click I am looking for a quick and dirty way to allow a user to enter something in a text field, click a button, and have some results be displayed based on what is entered. How do I accomplish this with scriptlets in a jsp? Thanks.
A: You can't make scriptlets (java code s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing Files Relative to Bundle in Symfony2 In a Symfony2 app's routing configuration, I can refer to a file like this:
somepage:
prefix: someprefix
resource: "@SomeBundle/Resources/config/config.yml"
Is there any way to access a file relative to the bundle within a controller or other PHP code? In parti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: @HTML.CheckBoxFor() MVC 3.0 Issue? I have a loop that generates List of items with Check box to select
foreach(var i in item)
{
@Html.CheckBoxFor(x=>i.Checked)
@Html.labelfor(x=>i.price)
}
I have 3 items. so this is Producing below code three times
<input id="paid" name="paid" value="true" type="checkbox">... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tomcat auto unpack WAR file changed the last modified time of files I experienced an issue when I tried to deploy a WAR file to tomcat.
While the auto unpack process from tomcat, the last modified date of unpack files were being modified.
The date of unpack web app. files became 12 hours faster, and this results se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Chrome brings the integer value for $('.abc').css("top"); The following javascript code returns two different values for Chrome and Firefox for the same page element.
$('.abc').css("top");
Chrome returns: 114px
while Firefox returns 114.1230px
I've tried this several times on the same page and Chrome consistently c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript Variables - A variable variable is required The following code requires that the name of 2 variables are combined.
var myScroll;
var orderit;
var id;
$('.scrollable').each(function(){
orderit += 1;
$(this).attr('id', 'scrollp' + orderit);
id = $(this).attr('id');
myscroll = new iScroll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python oauth 2.0 new fbsr facebook cookie, error validating verification code I'm trying to use the new fbsr_{{appID}} cookie.
I'm using the following functions to parse it, but when I try to get the access_token afterwards, I get 'error validating verification code' message. Is something wrong with these parsing fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: after reloading the asp page why textbox text will goes to blank? After reloading the page how can i get the previous values in that textbox again.
Because when that page reload then textbox value goes blank?
How can I do this using javascript and jquery?
A: You don't typically save POST values with javascript or j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google OCR Api with OAuth 2 I try to upload image to google docs using code
I setup access_token and access_token_secret
$uri = 'https://docs.google.com/feeds/documents/private/full?ocr=true';
$newDocumentEntry = $client->uploadFile($fileLocation, $fileName, $mimeType, $uri);
but i receive exception
"The field ocr i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Null parameter checking in C# In C#, are there any good reasons (other than a better error message) for adding parameter null checks to every function where null is not a valid value? Obviously, the code that uses s will throw an exception anyway. And such checks make code slower and harder to maintain.
void f(SomeT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: android layout issue - separating the screen into two layouts (inside a tab) I have tabhost and in 1 tab I want to do the following:
1. At the top - a search edittext.
2. Below it some textbox. When user press the search button - I need this textbox to be changed into a list, on the rest of the screen (below the sea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to exclude code from the Clover coverage report? Is there any way to hide classes or methods from being included in the Clover code coverage report? We have some proof of concept code along side production quality code in the same directories. This concept code is being included in the code coverage reports wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: search and print specific date in a log file I'm working with a log file and I want to print from a specific day till the end of it . that specific date is ($sd=27/Dec/2002) for example. now I want to search for this day and print from it till the end of log file ! but what if 27/Dec is not among items in log file ?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET SmtpClient sending EHLO vs HELO Running into a peculiar issue. I have an SMTP server that I need to authenticate to in order to send mail. We have a C# service that is designed to automatically do this, however the server host has configured the SMTP server to not allow relaying when a client initiates with H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you set the required property when adding a column in Access using ADOX? I have the following script that adds columns to and table in an Access database. I don't know how to set the "required" property of that column to "NO", the default is yes. Here is my script:
Option Compare Database
Function AddColumns... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google map with highlighted locations I want google map with highlighted locations using html or classic asp. How can i do it? Please check the link.
This is sample link.
A: They've created separate overlays, in which they're layering transparent PNG images over the top of a map,
e.g.
http://www.shelbybb.com/gunne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drop-down width -- IE labels crop I know it is possible to set a CSS width for a drop-down menu. In FF the top window is affected by it, while the option items scale as far as the content in them, however in IE the options are also as wide as the window, thus cutting the options' labels.
Is there a better way to con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can one scale a SharePoint Excel Web Services Web Part chart? I'm please with my the Excel chart being displayed as a web part in our SharePoint 2010 site... however, it's coming out too large, taking up most of the screen.
I had hoped I could change the width/height of the web part, but that just creates me scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Polygon based pathfinding I have implemented a basic grid based A* pathfindinder in Java. I would like to make a navigational mesh/polygon based pathfinder, but the problem I have is this:
If I found the orange route then I could use something like a funnel algorithm to straighten it to get the desired route (blue)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: CUDA: can different threads read from the same memory location simultaenously? I am writing a CUDA program for the NVIDIA Tesla C2050 where each thread has to read a string of characters in an ordered fashion from position 0 to n-1. The string size is small so it can easily fit in constant, shared, or texture memory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to set product version at build time in a Basic MSI project? I have an InstallScript project that I'm looking at manually recreating as a Basic MSI project. For the InstallScript project, we obtain the product version at build time through the following mechanism:
*
*Ant does all the compiling, tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Generate SOAP Envelope and digital signature So currently we have a model of just writing a SOAP Body and then manually wrapping that into a SOAP Envelope that is done in a script. That then gets passed to an app that makes a request to a webservice. Also, the language the app that would generate the soap would be C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extjs form not submitting its values I have this function that creates a form and the form not submitti its values, what is wrong?
It submits empty ajax, If I change the third line to applyTo:document.body it works fine.
(the tab variable is a tab panel that the form needs to be on it)
function myFunction(tab) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery and MooTools conflict with jQuery plugin I have to use both MooTools and jQuery in a single page. I am using the featureCarousel jQuery slider plugin. There is a conflict between jQuery and MooTools. But the animation is not working perfectly even with jQuery.noConflict() function.
You can see the live demo o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fill template of one class from another template class If I have two classes:
template <typename T>
struct Node
{
...
};
tempalte <typename T_Node, typename T>
struct NodeIterator
{
T m_value;
};
NodeIterator<Node<int>, int>
can I deduce the template argument T from T_Node without the class Node explicitly cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simplest Way of drawing line, point, pixel? I'm using SlimDX and C#.
Can you tell me how to draw a simple line and pixel using directx9?
I don't want this line to be textured, 3d or shaded or affect by lighting.
I just want to draw simple 2d solid colored line and pixel.
A: Just using dx9 makes these trivial tasks ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Large negative hex value conversion to long in java the result should have a negative value, but its positive.
How can I fix this?
Thanks!!
BigInteger b = new BigInteger("80000000000000004308000000000000", 16);
System.out.println("long value: "+b.longValue());
-->
long value: 4830110600354856960
A: http://download... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I re-authenticate a user in an ASP.NET MVC 3 Intranet application? The application is already using Windows integrated security, not Forms. What I am trying to accomplish is a so called "step-up" authentication, or "force re-authentication" for the following scenario:
*
*the user is browsing the site doing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: fileNotFound exception while starting glassfish 3 I am getting the following message while starting glassfish server 3 in netbeans. How to amend this fileNotFound exception ?
Welcome to Felix
================
ERROR: Error creating archive. (java.io.FileNotFoundException: C:\Users\Rajat\.netbeans\6.9\config\GF3\doma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transparent border in WPF programmatically It's trivial to generate a border (to use for Trackball events) transparent over the viewport in the XAML file:
<Border Name="myElement" Background="Transparent" />
But how do I do it in the .cs?
Border border = new Border();
**border.Background = (VisualBrush)Colors.Trans... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why do I get a 404 error with Perl's RabbitMQ consumer? RabbitMQ is setup and I can use the sample script:
use Net::RabbitMQ;
my $mq = Net::RabbitMQ->new();
$mq->connect("localhost", { user => "guest", password => "guest" });
$mq->channel_open(1);
$mq->publish(1, "queuename", "Hi there!");
$mq->disconnect();
It pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PowerShellscript, bad file encoding conversation I have a PowerShell script for the conversation of file character encoding.
Get-ChildItem -Path D:/test/data -Recurse -Include *.txt |
ForEach-Object {
$inFileName = $_.DirectoryName + '\' + $_.name
$outFileName = $inFileName + "_utf_8.txt"
Write-Host "windows-1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using JavaBDD in C# Is there any tutorial for using JavaBDD in C#? I's days i'm looking for it with no chance :(
It's JavaBDD website: http://javabdd.sourceforge.net/
A: I know of none, unless there is, or you can create, an interface that is heterogenous (web service, for example, or wrapping with a COM wrapper?).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i calculate the field of view of the camera of a phone? I need to know the field of view of the camera of the phone to make an augmented reality app, for calculate where i have to write on the camera view the name of a gps located Point of interest of a city on the correct coordinates of the screen, pointing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to do not apply CSS on a specific TAG I do not know if is possible in CSS, but I would like a general Role to don't apply to a specific element in my case id=special.
In my example all the DIV should be red but I want only id=special to have not applied this color.
I understand I can always overwrite the element... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: kaminari pagination problem Very simple pagination set up giving me the following error:
NoMethodError in Projects#index
Showing /users/MasterControl/div/ikon/app/views/projects/index.html.erb where line #32 raised:
undefined method `current_page' for nil:NilClass
Extracted source (around line #32):
29: <br /... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is it possible to merge a twitter and facebook feed into a single feed? Is it possible to merge a twitter and facebook status feeds into a single feed to display on a website?
A: One option is you could use Yahoo pipes which was built for this.
Check out this pipe for an example:
Combine your facebook status with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: multiple regex replacement on variable in bash? I'd like to know if there's a way to make multilple regexp replacements in bash with
${string//substring/replacement} or, possibly, what better solution exists.
I have a script to send updates to statusnet and friendika with curl.
I sign petitions online, for instance... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using composition I'm trying to use a custom class to override a method in its super class using composition.
Below is the code im trying, in the class "Bar" what object calls the method doSomethingElse() ? This is not my code and is linked to question - Using composition over inheritance when overriding
All of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: List to single dimension of multidimensional array Is it possible without looping (i.e. without using for or foreach and with some LINQ or Array method) to insert the elements of a list into a single dimension of a declared multidimensional array?
For example - from list:
List<int> l = new List<int> { 1, 2, 3, 4, 5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Printing values from a JavaScript array I have an array that looks like this (the full list is here):
var verbMap = [
{
infinitive: "gehen",
thirdPres: "geht",
thirdPast: "ging",
aux: "ist",
pastPart: "gegangen",
english: "go"
},
{
infinitive: "geli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to print variables coming from an sql db when using the mail function PHP I have a mail function that sends out an email with content from an sql db.
The message that will be included in the email will be taken from the sql db. The message in the sql db has variables in it.....
example:
In the database:
Hey $nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: fine tune rspec before In Rspec, we can setup some global before/after behavior like this:
config.before(:each) {blah...}
I can say:
config.before(:each, :type => :model) {blah...}
To have this block run only with model tests
But this wouldn't work:
config.before(:each, :type => [:model, :controller]) {blah...}
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Writing new HTML out to the calling position How do you go about writing out HTML to the calling position of a jQuery function?
I have an HTML page that contains the following jQuery/JS code:
... HTML contents ...
<script>
functionName();
</script>
... More HTML Contents...
How do I get functionName to appen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: GQL Not Recognising a ReferenceProperty in Filter I have a datastore thats has ~850 groups and ~19,000 items. Each item may belong to only one group, I have two models in my app that represent a Group and an Item:
class Group(db.Model):
Id = db.IntegerProperty()
Name = db.StringProperty()
# ... some othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How Do I Configure Json.NET Custom Serialization? For reasons beyond my control, I have data coming back from an external service being formatted as an array of array of string: [["string_one", "string_two"]]
I am trying to deserialize this into an object with two properties:
public class MyObject
{
public strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Boyer Moore search for small key First I know very little about algorithms, so bear with me.
As I understand it, the Boyer Moore algorithm is fastest with a long key. So what if I have a very shor key (example 10 chars), and alot of text to search (over 10,000 chars).
Would Boyer Moore be the best search algorithm f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I create a chm file with multiple directories via command line? I am working on a project where I need to create a chm through command line. It has multiple directories and I was able to get it to work in FAR, which does not have a command line option to create the chm.
Using the MS HTML Help Workshop comman... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In WiX, Should I have different Product Ids for 32 and 64 bit versions I'm writing a WiX installer, with a common set of WiX sources for the 32 bit and 64 bit versions of the product.
The question is, should I use different Product Ids for the different versions?
A: To answer my own question, which it turns out was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: objective-c: Webservice, How to tell about specific method to access I am trying to access http://services-staging.cmtnyc.com/payment/payment.asmx web service and
AuthorizeCreditTrip I checked this webservice on .Net application and its working fine but in objective-c it does not responds with the same data.
The we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php use array as index to array If I have an array $dictionary and an array $words how can I use an array ($words) to index another array ($dictionary)?
The easiest I can think is:
function dict_dispatch($word,$dictionary) {
return $dictionary[$word];
}
$translated = array_map('dict_dispatch', $words,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.