text stringlengths 8 267k | meta dict |
|---|---|
Q: What if I want to dispatch MouseEvent.MOUSE_UP when un-clicking only some objects, not all of them? What if I want to dispatch MouseEvent.MOUSE_UP when un-clicking only some objects, not all of them? I mean, when I add eventListener that listens for MOUSE_UP, it's dispatched (thought with different targets) every ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Anonymous User Log in with ActionMailer and Rails 3 I have seen the RailsCasts video on setting up ActionMailer for Rails 3. However, I have a situation where the mail server (Lotus Notes) I need to use requires an anonymous login (where I do not put in a user name or password). I set up an initializer file, control... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: foreach statement only returning 1 item I'm using sessions to store products viewed, but I'm having a problem printing out all of the items when I query the database.
Controller
$hello_world = $this->session->all_userdata();
foreach($hello_world as $key=>$product_id) {
$query['products'] = $this->Global_products... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to format the date in PHP and SQL? I have a field in one of my tables called "publicationDate" and its data type is date. However, when I make a query that should show today's date, I am having a problem on how to format it. It always shows 0000-00-00.
This is my variable:
$today = date("F j, Y, g:i a");
This i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery 1.6.4 cloning problems in Internet Explorer 7 I am using jQuery v1.6.4.
Here is the test case for my problem:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
</h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Annotating templates (ModuleElements) in Acceleo I was wondering if I can easily annotate Acceleo templates and then get these annotations when working with TraceabilityModel.
Acceleo is now using an annotation to determine entry points for generation:
[comment @main]
So I am asking, if I can use this mechanism to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Web-browser needs again username and password While a web page -which needs login- is opened in my browser,
if I close browser and re-open, I have to write username password again.
But, sometimes when I close browser and re-open for the same page, it isn't needed username and password again?
Is it about Session, Coo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Some Users having issues with App, Resource Loading, I am unable to replicate.. Image/Drawable load I have an App that was working perfectly, then I released an update and now suddenly some users cannot inflate the main view.. it is dying on inflation of the XML on line 28 with a nested exception of
Resources$NotF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Actual landscape OpenGL View on iOS I'm porting a C++-based engine from Android to iOS and I have some questions on how landscape mode on iOS devices work.
I can successfully start my device on landscape mode but my framebuffer stays on portrait mode no matter how I rotate it (or force its rotation). For instance, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Javascript token, category search field like mail A little while ago I came across a Javascript search box that had token input like that in Lions Finder or Mail, where the tokens have a category element that is auto completed as well as the query element. I have spent much of the day so far trying to find it, but I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FQL Query not getting a response My javascript solution for pulling in the likes for a set of links on a certain page is no longer working. I can't find anything wrong, and I've tried using the .api() method (below) and the Data.query() method but neither is working. This is the code that I currently have and it's s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Away 3D tutorials Can anyone recommend some good tutorials for Away3D? In particular to create similar effects to those on their home page.
http://away3d.com/
Went to the tutorials page but nothing there...
http://away3d.com/tutorials
A: These aren't tutorials specifically for the effects you're looking for but the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: httpErrors errorMode = "Detailed" only for a specific error code I have an asp.net MVC3 application. In my controller I have an ajax action that sets custom response code using Response.StatusCode = 600. I need to pass through the response as is without the IIS trying to look for the custom error page. I tried to us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Will there be any inconvenience if two objects of different classes add two same-named listeners to the stage? For expample like this:
package {
class A {
public A() {
stage.addEventListener(MouseEvent.MOUSE_UP, jump);
}}}
and
package {
class B {
public B() {
stage.a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I deploy/push only a subdirectory of my git repo to Heroku? I have a project that uses Serve and is version controlled using Git. Serve creates an output folder with static files that I want to deploy to Heroku.
I don't want to deploy the Serve project itself since the Heroku Cedar stack doesn't seem too fon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: what is the best way to bind ViewModel data to master page in asp.net-mvc I want to dynamically create my menu on my master page and i have seen 2 different approaches:
*
*First approach is have a base controller that loads up all shared view model data in its constructor. This is described here
*Second approac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Last if statement always evaluating to true (overwriting)? I'm trying to display an image based on a change in rank. If the values of the array $rank_change are echoed before my if statements, the correct values are printed, such as:
0, 0, 0, 0, 0, 0, 0, -7, 1, 1, 1, 1, 1, 1, 1
However, if printed after the follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running two queries for each individual thing Sorry about the lame title, but I really don't know how to explain it!
Basically, I want to query the game categories from a table, then query games from another table which equal the category of the category queried from the categories table.
Got me so far?
This is the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery Tooltip and CSS Don't worked tooltip after change in select box $('select[name="tour_name"]').change... and use of id #residence_name, what is causes this problem and how can fix it?
Example: http://jsfiddle.net/7Arye/
$('select[name="tour_name"]').change(function () {
var val = $(this).attr('value');
... | {
"language": "ar",
"url": "https://stackoverflow.com/questions/7539393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remap Capslock Key in Keymando? Can you remap the CapsLock key in Keymando?
CapsLock is listed as an available key but when I try a test like:
map "<CapsLock-j>" { alert("CapsLock-j") }
... and hit Reload Config in the Keymando menu, I get an error dialog that says:
Error Parsing Keymando Config File
undefined met... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: problem in fetching a particular cookie This is the script that i am using to fetch a particular cookie lastvisit :
AFTER THE EDIT
// This document writes a cookie
// called from index.php
window.onload = makeLastVisitCookie;
function makeLastVisitCookie() {
var now = new Date();
var last = new Date();
now.setFullY... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How i get the button clicked time with Jquery? I would like to show my customer's the average registration time in seconds on the registration page. The average time will be based on last 15 registrations by using the cookies.
Here is sample text that i want use on my registration page:
Registration will take about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GUI layout using Tk Grid Geometry Manager Building a small application for personal use with Python and thought I'd try my hand with a little GUI programming using Tkinter. This is the GUI I've created so far:
Application doubts:
How can I make sure that the three LableFrames - A, B and C in the screenshot - have t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Redirecting non www to www in CakePHP using app/webroot Gurus of So
I am trying to redirect any user that comes to http://domain.com to http://www.domain.com. I have found a bunch of different ways to do that on SO, but I need to make them fit the dynamic app config from CakePHP.
Currently, this is what my .htaccess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Images in html inside div don't appear below each other (please see the pic)? Why images appear in such manner , .. ?
<div id='container'>
<div class='imgContainer'>
<div class='myLocation'>
<img src='https://graph.facebook.com/1055505/picture' style='width:30px'>
To... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: phonegap with codeigniter backend So I am getting better at using phonegap but am still trying to fully add codeigniter as the backend. I have been able to .load in jquery something from a controller of my CI to my phonegap android app but can't seem to submit anything TO the server properly. Do you need a rest serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using sub-domains with Google Analytics I have added Google Analytics to my primary domain and added the script to the head section of each page. I have done similarly with a sub-domain. Both the primary domain and the sub-domain are showing under the primary domain statistics.
I have used the multi-domain script in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Plot Variable Frequency using ggplot2 I'd like to plot a bar graph showing frequency of a string in ggplot. The input file (t1. txt) looks like:
do 4
re 2
mi 5
and my current r script is:
library("ggplot2")
t1<-read.table("t1.txt",header=FALSE,sep='\t')
ggplot(t1,aes(V1))+geom_bar()
However this isn't what I'd ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Content positioning into a UIScrollView I'm trying to add a scroll view to an existing screen of my app to help scroll the screen upward when keyboard hides a text field into this view.
I have added the scroll view as a subview of the main view in Interface Builder. Then I added all other objects as subviews to thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how do i tell my uitableviewcontroller to reloadData in a asynch socket I'm using cocoaAsyncSocket when i click on a button in my tableViewController to fetch the dat
I want in the function didReadData to call reloadData of my tableView.
how should get the reference of my tableView ?
please tell me, if i should use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spark View Engine site works for about 30 minutes then gets a "Dynamic view compilation failed." error First off, this may be a duplicate of "http://stackoverflow.com/questions/3892891/spark-views-work-initially-but-then-get-a-dynamic-view-compilation-failed-erro" but the answer to that question has not solved my is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Select ten recent review comments from ten different users I have two database tables, Users and Review. The User table has a reference key to the Review table.
User table
----------
userid
name
password
email
Review Table
------------
reviewid
userid
comment
datetime
I am using mysql database
I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP File Get Contents getting PHP? I'm using PHP's file_get_contents in a way that makes it an API without XML. I've done this several times before, but today, it's outputting the file's ACTUAL PHP as opposed to the output HTML which is what I'm trying to get!
Here's the code:
File I'm getting, udp.php
<?php
sess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deploy Haskell code that uses the Snap Framework What's your experience with deploying Haskell code for production in Snap in a stable fashion?
If the compilation fails on the server then I would like to abort the deployment and if it succeeds then I would like it to turn of the snap-server and start the new version... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Oracle 11g: Index not used in "select distinct"-query My question concerns Oracle 11g and the use of indexes in SQL queries.
In my database, there is a table that is structured as followed:
Table tab (
rowid NUMBER(11),
unique_id_string VARCHAR2(2000),
year NUMBER(4),
dynamic_col_1 NUMBER(11),
dynamic_col_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Use jQuery to position element relative to another that is not the parent If you look here: http://dev.driz.co.uk/tips/ You will see I am experimenting with some Facebook ripoff tooltips.
What I'm trying to learn is how to position the tip relative to another object. So for example if a user hovered the red box it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WiFi only version iPad app? I have an iPad that worked perfectly with my iPads with WiFi only environment. But It was rejected due to one of the function that I suspected that the cellular network has something to do with it. Currently, without the necessary resources to test in that environment, I want to target ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to sort a list using my own logic (not alphabetically or numerically) I've spent the last 30 mins looking through existing answers for what I think is a common question, but nothing quite hits it for me. Apologies if this is a dupe.
I've got a list of objects.
List<Journey> journeys;
The object has a 'status' p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iOS NSDateformatter issue - dateFromString does not work properly as expected The following snippet will give an unexpected output:
Snippet:
NSString* testDateStr = [[NSString alloc] initWithString:@"2010-04-04 19:11:11"];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add current slide body class on slide change I'm using slidesjs to create a slideshow on my site, this is working fine but I want to add a incremented class to the body tag e.g. slide-1 at load and then when the slide changes slide-2 etc until the slide fully rotates and it goes back to slide-1
My current code is;
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flex AdvancedDataGrid c/p rows issue I'm a newbie in Flex/AS3 development and I came across an issue that bugs me for a while now. I'm using an AdvancedDataGrid with some columns, and an ArrayCollection as the provider. I would like to make a copy/paste functionality so that multiple rows can be selected, copied, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AlertDialog Android HELP I have one countdown timer, and I want onFinish to pop up yes/no message box, and do something with it, but I get this error: The constructor AlertDialog.Builder(new CountDownTimer(){}) is undefined.
CountDownTimer start1 = null;
start1 = new CountDownTimer(60000, 1000) {
public void onTi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a shell right click menu item to edit desktop.ini I am trying to create a right click shell menu item to edit desktop.ini. I have managed to get this far:
[HKEY_CLASSES_ROOT\Folder\shell\editdesktop]
@="editdesktop"
[HKEY_CLASSES_ROOT\Folder\shell\editdesktop\command]
@="notepad "%L/desktop.ini"
use th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get value from TextBox (C#) I have been saving to the registry the infos that were typed into the TextBox on a form which was earlier created.After opening form, I want to appear all of the infos which was saved into the TextBox. When I attempt to run the following code,it's returning null value.
What might be the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: WPF DataGrid binding custom row header give me suggestion I am trying to do togglebutton visiblity change on true/false properties,
my togglebutton in row header template,
I also create convert for change properties.
Visibility="{Binding Path=col1, Converter={StaticResource ResourceKey=DemoConvertor}}"
refer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: scope of $this is funked in PHP is it a bug or a feature? I have this code:
class a(){
function b(){
if(isset($this){
echo 'instance! ';
echo get_class($this);
}else{
echo 'static';
}
}
}
class C{
public function test(){
a::... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Need a update-query to populate table column "display_order" I have a table on mysql with these columns:
*
*id
*property_id
*display_order
The data is to be like this:
1 , 1 , 1
2 , 1 , 2
3 , 1 , ...
3 , 2 , 1
4 , 2 , 2
5 , 2 , ...
but the display_order is currently set to 1 on all rows.
I need a mysql query... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android's Activity.runOnUiThread is not static, so how can i use it? For example, if I have a thread doing expensive stuff, and from that thread I want to fire runOnUiThread in the Main (activity) class. Obviously I shouldn't make an instance of my activity class (Main). So if I try
Main.runOnUiThread(mRunnable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JQuery .html() strips tr/td tags? http://jsfiddle.net/WXG7V/
As you can see below, I have a simple div containing a row I would like to append to the end of my table. If I alert the contents of the div back to the screen using ".html()", jQuery strips out all of the td/tr tags.
<html>
<head>
<title>jQuery Strips Ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Limiting (clamping) canvas size I want to make moveable world for my HTML game so I put 1600x1200 canvas inside my 800x600 div element and using left and top to move the world. I expected that div will clamp size of my canvas, but instead my canvas overlaps borders of my div. The div doesn't stretch, the canvas is s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would I output HTML in the specified format from a Ruby array? I have an array of various food items, like so:
1% milk (low fat)
100% fruit juice blend (juicy juice)
100% whole wheat bagel
100% whole wheat bread
100% whole wheat cracker (triscuit)
2% milk (reduced fat)
alfredo sauce
all-bran cereal
all-fruit pre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to put a Javascript event on something? I have a pre-made layout, cannot be changed. But I must put an onload() event to <BODY>. As I said, I'm not allowed just add "onload = sdfsdf" event. Then how?
A: You could make a script to attach the event (i suppose that your problem is that you have no control over the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to rewrite url using mod_rewrite My urls currently look like this:
http://domain.com/news/articles.php?id=22&category=investments&title=securing-your-future-making-the-right-investment
How can I use mod_rewrite to make the url look more like this:
http://domain.com/news/articles/investments/securing-your-futur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook get like count for search query I'm using https://graph.facebook.com/search?q=watermelon&type=post to retrieve posts with query watermelon. Is it possible to also get the like count for the posts I retrieve?
A: The likes element is returned for search result entries that have been liked. Not all posts hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Question to mapKeyPath I am following the Restkit Tutorial on https://github.com/RestKit/RestKit/blob/master/Docs/Object%20Mapping.md and this is pretty good because RestKit is a really cool framework - I think.
There is just one point I don't get. In the documentation is a line with "article" but I cannot see where... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails how to update image? And how to do RESTful routing? I am trying to update my photographer model. But how problems with Rails routing and paperclip wont replace image.
When I submit my form the url is: http://localhost:3000/admin/photographers/save.75 which gives an error. Couldn't find Photographer without an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Download bugzilla eclipse plugin? I want to download Mylyn bugzilla eclipse plugin from an update site.
Can anyone tell me the update site, because most of the links I found were invalid, thanks.
A: I think the reason you aren't getting any answers is because it's available from the main update site:
http://downloa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery + CSS element change I'm using the following code to set all classes of the element to display:none with the exception of the first instance.
How would I modify the code to set the classes all the elements todisplay:none with the exception of the SECOND instance only.
$(document).ready(function () {
$('se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Wordpress extracting wp_usermeta I'm writing a script that will extract wp_usermeta in a readable layout.
I've got sql like below:
select distinct(user_id), meta_value as suburb from wp_usermeta where meta_key = 'suburb' order by user_id
Now is there a way we can include all other fields aswell using sql query to j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there UI guidelines for facebook canvas apps? Does Facebook offer guidelines or some kind of CSS style library for Facebook canvas apps? Something that a developer could use to make the look and feel of their canvas app compliment Facebook? I'm speaking along the lines of fonts, colors, dialog box styles, etc.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Recipe for `final`: omit `virtual`? Is it a valid recipe to say that if I write final (to a member function) one should not write virtual?
In a base class, final methods would make no sense:
struct Driver {
virtual void print();
};
If one would add final to print() this would defy the reason for polymorphism in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problem with pagination links with routing i need to route all /home/college, /home/school etc to thehome controller's index action, with the following prototype.
function index($type="school"){
...
}
below is my routing definition
Router::connect('/home/:type',array('controller'=>'home','action'=>'index'),array('... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to get FlexSlider jQuery Slider to work with Drupal I've been wrestling with trying to get FlexSlider http://flex.madebymufffin.com/ to work with Drupal 7 all today as it suits my needs perfectly and the logic of how to get it work made sense but hasn't actually worked.
My setup:
Using a subtheme of AdaptiveT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Select last 30 items per group by Hopefully the title makes any sense.
For this example I'll have the next table in my database
measurements
==================================
stn | date | temp | time =
1 | 01-12-2001 | 2.0 | 14:30 =
1 | 01-12-2001 | 2.1 | 14:31 =
1 | 03-12-2001 | 1.9 | 21:34 =
2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Self-closing tags using createElement I need to add a self-closing tag to XML file with DOM in PHP, but I don't know how, because standardly, this tag looks like this:
<tag></tag>
But it should look like this:
<tag/>
A: DOM will do that automatically for you
$dom = new DOMDocument;
$dom->appendChild($dom->createE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to use Boilerplate on Business Catalyst as it does not allow Web server configuration I want to use Boilerplate for my Adobe Business Catalyst Template. Every thing is fine but it(BC) do not allow .htaccess file as its an hosted solution. What alternatives are there to go without .htaccess file?
I also posted o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript Json problem in IE9 Hy guys. In firefox and chrome this script alerts 'myclass', but does nothing in IE (i have version 9).
var a = {"class" : "myclass"};
alert(a.class);
if I use cssclass instead of class, it is working in IE too.
var a = {"cssclass" : "myclass"};
alert(a.cssclass);
This is very... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Type cant be resolve in UnitTest after migrating Project from vs2005 to vs2010 (MSTest) We are actually analyzing what we have to do if we migrate our application from VS2005 up to VS2010.
What i have done:
I opened all solutions in VS2010 and let convert vs the projects.
At the moment the production assemblies don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fuzzy outline on a form button when using a background image with a 20px border-radius For some reason, exclusively on Windows machines, on the Sign in button on this page, I'm getting this odd fuzzy outline that's difficult to explain, so see for yourself:
http://zis.smartlyedu.com/login
It doesn't appear on Mac OS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a smarter alternative to "watch make"? I ran into this useful tip that if you're working on files a lot and you want them to build automatically you run:
watch make
And it re-runs make every couple seconds and things get built.
However ... it seems to swallow all the output all the time. I think it could b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Currency used in the cart must match the currency of the seller account My client's Google Checkout account is based in UK, hence its default currency is GBP. Accordingly, I thought I'd let users pay using GBP - they actually think they are paying in USD but behind the scenes I convert USD to GBP according to the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simultaneous maximum & minimum from a set of elements In Book "Intro to algorithm -- by CLRS" mentioned in Sec-9.1 that Simultaneous Maximum & minimum finding can be done in the running time 3*floor(n/2). Same as for lower-bound also.
I have written the following algorithm (taking help from CLRS) whose lower-bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I compare two lists in python, and return that the second need to have the same values regardless of order? a = [1, 2, 3, 4]
b = [2, 4, 3, 1]
c = [2, 3]
When comparing a to b, should return True: all items in a are presented in b, and all items in b are presented in a.
When comparing a to c, should return F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Online game backend architecture using mono I need to write backend for a flash game. The game it self is not complicated. The game itself is a small session(around 2 minutes long) but there are many sessions active at a time. What I though of is making a gateway server which accepts connections and multiple servers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can not send special characters (UTF-8) from JSP to Servlet: question marks displayed I have a problem sending special characters like cyrillic or umlauts from a jsp to a servlet.
I would greatly appreciate your help here.
Here is what I have done:
*
*Defined the utf-8 charset in the jsp:
<%@ page language="java"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: how to execute bulk insert statement in java (using JDBC) with db=SQL Server 2008 Express I am trying to execute a BULK INSERT statement on SQL Server 2008 Express.
(It basically takes all fields in a specified file and inserts these fields into appropriate columns in a table.)
Given below is an example of the bulk ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Log in to desktop application by Windows Live ID I want to create a login form for my desktop application that user can use Windows Live ID for that.
I create an application in manage.dev.live.com and use Desktop Implementation section.
I use a WebBrowser control and navigate to a given address. but I don't know how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Detect Programming Language from code snippet
Possible Duplicate:
Detecting programming language from a snippet
Is there a way to identify the following for a text snippet?
*
*Whether it is a piece of code
*The programming language in which it is written
A: Not in general.
A large part of the problem is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What do this expression mean? (SetConsoleTextAttribute function in C) I'm in a the middle of creating a console based small game for our C programming class assignment and I decided to make it more presentable and unique by adding text colors and text backgrounds.
While I was on my quest searching for a solution, I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Emacs: how do I set a major-mode stored in a variable? Suppose I have a variable newName which is bearing some mode name, e.g. "python-mode". How do I make current buffer of the mode specified by newName?
(progn
(let (newName)
(setq newName "python-mode")
(newName) ;; doesn't work! It doesn't set current b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scheme function that sum number u and list x u+x1+x2 Im new to Scheme and trying to make function that is (in f u x), u is integer, x is a list and f binary function. The scheme expression (in + 3 '(1 2 3)) should return 3+1+2+3=9.
I have this but if i do (in + 3 '(1 2)) it return 3 not 6. What am i doing wrong?
(d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where GTK finds icon names to use with gtk_image_new_from_icon_name()? GTK can construct images by name of the "icon from current icon theme". For example:
#!/usr/bin/env python
import gtk; wnd=gtk.Window(); img=gtk.Image();
img.set_from_icon_name( "go-jump", gtk.ICON_SIZE_BUTTON );
wnd.add( img ); img.show(); wnd.s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Closest group of 3 points Is there a known, efficient algorithm for finding the closest group of three points in a cloud?
This is similar to the closest pair of points problem but I am looking for three points instead of two.
Edit
The definition of "closest" will affect the complexity of the algorithm. As Jack poi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: iTunes Connect validation I have an app (v1.0) that I uploaded successfully a couple of weeks ago.
Now we have updated it (v1.1) but when I try to validate it I get "No suitable applications records were found."
I have added the version in iTunes Connect. Targets Bundle version and Bundle version string, short is se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does .pem file contain both private and public keys? I am wondering if PEM-files contain both private and public keys? What does "PEM" stand for?
A: You can decode your PEM formatted x509 certificate with the following command:
openssl x509 -in cert.pem -text -noout
PEM certificate contains public key only or priv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: .html() Problem I've been having a little problem getting the .html() function in jQuery to work.
Basically, the page gets a bit of HTML via a PHP file using the jQuery post() function, and then it has to insert it into the document. It gets the data from the PHP file fine, it just won't insert it into the document.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook Achievement URL I tried creating an achievement and saw myself having to create a new page with the open graph tags describing the achievements and left the content of the page empty. I was able to register and publish the achievement to a user and finally I was able to click on the achievement. The problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chrome extension - just to save current page into local html file I am new to both Chrome extension development and website techniques (mainly JS).
Trying to learn by myself, I wanted to create a Chrome extension that can save the current page, say, to desktop. I know this simply can be done by "Ctrl+S", but I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add a background gradient image from top to bottom? body {
color:#999;
background-color:#000;
font-family:"Helvetica Neue", Helvetica, arial, sans-serif;
font-size:11px;
line-height:1.8em;
background-image: url(../images/bck.jpg);
padding:0;
margin:0;
}
How can i modify ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding all characters till it finds the FIRST occurrence of a string given and then keep fetching the rest with preg_match_all $HTML = '
<div class="tsts">CONTENT GOES HERE 1ENDENDENDENDEND<div class="tsts">CONTENT GOES HERE 2ENDENDENDENDEND <div class="tsts">CONTENT GOES HERE 3ENDENDENDENDEND
<div class="tsts">CO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to add a progress bar to a gridview i am a beginner in android programming so maybe it's a silly question...
I read a lot about async task to add a progress bar but i can't find out the solution i need:
I have to show a grid view, but i need to search for data on images and texts to show in it.
So if i load the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert swedish characters to opencart tables I just created a script to import a given file (csv) to opencart. The remote server transmits the data as iso-8859-1 and opencart uses utf8_bin collaction as default.
My problem is, that the script, where default echo statements show the desired output without problems or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Malloc crashes in recursive function I'm currently coding an implementation of the Burrows-Wheeler Transform which requires sorting a (large) array. Since I want to parallelize parts of the code of a recursive sort function, I decided to allocate some of the local variables in the heap (using malloc()) to prevent st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE7 and IE8 JS support for Math.floor (or some other method?) I've researched around this subject for quite some time but I can't find out which method or code is causing me problems with IE7 and IE8 - it works fine in IE9, Chrome and FF. Using IE9's F12 tools to debug, the javascript stops at this line with the err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Avoiding error 100: invalid parameter (requires valid redirect URI) in application requests dialog I'm developing a game for Facebook. I need a way for users to invite others to the game. For that, I use the apprequests dialog. I redirect the user to the dialog URL, which I glue together like this:
$url = "http://ww... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: jQuery Tokeninput add if not exists I am in the process of writing a script that builds upon user input,
I have some fields that its values need to be quired from the database,
and if no entry found I want to add a new value so the next user will find it through autocomplete.
I found this great looking & easy to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Django CheckboxSelectMultiple with django uni-form I have a form in my django project with a ModelMultipleChoiceField rendered as a CheckboxSelectMultiple widget:
class EventCreateForm(forms.Form):
...
event_types = forms.ModelMultipleChoiceField(EventType.objects.all(), widget=forms.CheckboxSelectMultiple()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Qt QGraphicsView use topleft as scale origin How would I take the topleft corner as seen through the QGraphicsView and keep it the topleft while scaling?
So if I happen to have the symbol 'A' in the topleft corner while scaling, the A will stay there yet scales. At present the center of the screen is taking as the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ communication between objects I'm sure this kind of question has been asked (and answered) before, so please link me to a previous discussion if so...
In C++, say I have an object of type ClassA which includes a private member variable object of type ClassB. How would I go about calling a reference to the ClassA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7539667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ScrollView setOverScrollMode replacement in API < 9 From documentation, ScrollView.setOverScrollMode() is available in API from version 9
What can I use in API version 7 and 8 as replacement?
A: Overscrolling hints didn't exist pre-gingerbread. So, aside from rolling your own, there's no replacement.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7539674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.