text stringlengths 8 267k | meta dict |
|---|---|
Q: How to hide a text after 5 sec using jQuery? How can I hide the #results after 5 secs ? I tried this but it does not work.
$('#results').hide().html(data).fadeIn('slow').delay(5000).hide();
What I had is this one
$('#results').hide().html(data).fadeIn('slow');
A: Do you mean something like:
$('#results').hide().h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can hunchentoot host CGI application? We have a CGI application developed using python, which can be hosted in erlang YAWS easily:
>cat ~/yaws.conf
...
<server 192.168.1.2>
port = 8000
listen = 0.0.0.0
docroot = /media/G/www/qachina/
access_log = false
appmods = <cgi-bin, yaws_appmod_cgi>
</serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: forcing a definite size on a select multiple element When a select multiple element is empty (without any options), the dimensions of the element become zero and shows only the scroll bar , also the element resizes according to the size of the data of the options . How can i create a select multiple element with a d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: build rules for xcode / iPhone Im incorporating the facebook SDK into an update and i get compiler warnings for four files,in one of my targets each file gets two warnings like these.
[WARN]warning: no rule to process file '$(PROJECT_DIR)/APP_NAME/Facebook.h' of type sourcecode.c.h for architecture armv7
[WARN]warni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Is there a good way of switching between different debugging environments on windows mobile emulator I've got a .NET CF (C#) mobile application that I run on a windows emulator. This application uses a sqlce database, and also is controlled by a number of config-like files. I frequently need to change back and for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I select an entire row which has the largest ID in the table? How would I do something like this?
SQL SELECT row FROM table WHERE id=max(id)
A: SELECT *
FROM table
WHERE id = (SELECT MAX(id) FROM TABLE)
A: You could use a subselect:
SELECT row
FROM table
WHERE id=(
SELECT max(id) FROM table
)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "163"
} |
Q: Sorting gigantic binary files with C# I have a large file of roughly 400 GB of size. Generated daily by an external closed system. It is a binary file with the following format:
byte[8]byte[4]byte[n]
Where n is equal to the int32 value of byte[4].
This file has no delimiters and to read the whole file you would ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: zend, how to use jquery ajax to submit a form? i have a Zend Form and i would like to use jquery to do some ajax posting.
if ($this->getRequest()->isPost()) {
$data = $form->getValues();
$image_id = $this->usermedia->crop_image($userObj->user_id, $data);
}
the crop_image saves the data:
$new_image_id = $this->getDb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Client and Server fail to communicate I have a client/server program in c. While the server runs, I can send it command via telnet and it works fine. In addition, nmap reports the port to be open. Similarly, I can successfully use (connect(sock, (struct sockaddr *) &servAddr, sizeof(servAddr)) if my IP is the addr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where to put jQuery code for DOM manipulation in Codeigniter I have some jQuery code that deals with DOM manipulation, simple stuff like fadeIn(), etc...
Is the best practice to put
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
and any script associated with m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Associative Container as Function Template Parameter I would like to know how I would write a function that can accept as a parameter an associative container that itself accepts two or more template parameters. For example, if I want to write a function that works for std::map, I could write something like what is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Overriding the look of baked-in Android features The Android app I'm working on makes use of Android's baked-in speech-input feature, but I want to alter the look of the speech-input dialog to be more of an aesthetic match with the rest of my program. Is there a way to substitute my own assets? Is it a simple matte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Try-Catch and Delete[] issue I'm having a bit of a problem with a try-catch situation, here goes the code (it's pretty simple):
struct Something
{
int A, B, C;
Something()
{
A = B = C = 0;
}
~Something()
{
cout << "Destructor " << endl;
}
};
int main()
{
Something * s = new Something;
//S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding a Second Page To an App I have an app that has too much information in one spot so I wanted to add in a next button
that would lead to a new page for more information. Is there an easy way to do this? (I am currently a novice user).
Thanks for the help.
A: You can create a new activity page2 and have a butto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding UIButton top bar of a navigation controller that pushes to another viewController I have a UIButton that pushes to another view controller using the following code. How do I go about putting this UIButton to the top bar of a navigation controller.
-(IBAction) nextButtonPressed {
TipsViewController *o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SearchView focused when hiding the ActionBar menu I have an ActionBar with a SearchView. The hidden/overflow menu items are shown on the right in a drop-down list when the menu button is selected. When the drop-down menu is hidden, the SearchView is focused and the keyboard shows. Is there a way to stop the keyboa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Where do I get the jersey-guice package? I would like to use Jersey and Guice together and I have found this tutorial, and a reference to jersey-juice here.
However, I'm not using Maven. I downloaded the main jersey package, but it does not include jersey-juice. Where do I get that package? All the links I've fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JTable cell value change listener Which listener can be used to react to the event of JTable cell value change? I tried using TableModelListener but either I got something wrong, or this listener doesn't react on changing the contents of a cell.
I need to act either to changing the content of a cell or to cell losin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: usage of XSD in fixing errors in xml? I am just wondering if we can make XSD to fix the errors it finds in the xml itself rather than reporting them.
Thanks
A: No, XSD describes the structural rules for a document.
XSLT or XQuery would be more appropriate tools fix errors found in the XML.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7604947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: difference between System.exit() and killProcess() What's the difference if I call System.exit() vs. killProcess().
I am interested in difference only
A:
What should we use?
No one, read this Is quitting an application frowned upon?
A: I dont think There is any difference. although with System.exit(), you shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: New to logging in general, but what should I log in an MVC3 application? I'm really new to logging, and I've decided it's time to take the plunge and start working it into my applications from now on.
I'm going to be using NLog as I hear it's very fast and simple to set up.
What type of information should I be conce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any functionality in git to check multiple git repos under a directory? I've got multiple git repos under a directory, and I was wondering whether there was some functionality in git to iterate each directory, check whether there are any uncommitted changes and report those to me?
I could run this every mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I use LazyLoading with gallery and BaseAdapter? I am using this code to Create a BaseAdapter for a Gallery:
private class ImageAdapter extends BaseAdapter {
/** The parent context */
private Context myContext;
/** URL-Strings to some remote images. */
public String[] mImageURLs = {
urlI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Freehand Drawing on Entire Screen I'm trying to make a simple little tool that would allow a user to switch from normal operation to a mode where all application messages are disabled and they can use the mouse to do some freehand drawing, then switch modes again to keep their drawing on the screen while they do wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the holdup on the first WCF call via the serviceProxy? There are a lot of similar questions, but they all deal with server-side slowness - this is all about client-side issues.
1st call takes 900ms.
2nd call takes 20 ms.
I narrowed the slowness on the first call to serviceProxy.Method(). Fiddler reports t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: flashdata not being stored between redirects when using Tank Auth I'm using the latest version of Codeigniter and tank_auth 1.0.9 on a site I'm building.
When using set_flashdata() and flashdata() respectivly, nothing is being returned on redirect but if I set sess_use_database to FALSE in the config it works.
I've ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Maximum and Minimum values for ints How do I represent minimum and maximum values for integers in Python? In Java, we have Integer.MIN_VALUE and Integer.MAX_VALUE.
See also: What is the maximum float in Python?.
A: In Python integers will automatically switch from a fixed-size int representation into a variable wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1147"
} |
Q: SQLAlchemy - build query filter dynamically from dict So I have a dict passed from a web page. I want to build the query dynamically based on the dict. I know I can do:
session.query(myClass).filter_by(**web_dict)
However, that only works when the values are an exact match. I need to do 'like' filtering. My bes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Converting aggregate operators from SQL to relational algebra I have several SQL queries written that I want to convert to relational algebra. However, some of the queries use aggregate operators and I don't know how to convert them. Notably they use COUNT and GROUP BY.. HAVING operators.
Here is the schema:
Sailo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: macro: does #define a(b) ({... c;}) means a(b) returns c? I have this code in linux kernel:
#define task_cred_xxx(task, xxx)
({
__typeof__(((struct cred *)NULL)->xxx) ___val;
rcu_read_lock();
__... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVC3 Model Lifecycle I'm hoping someone can clarify how a model should progress through postbacks given the following example:
MyModel
public class MyModel
{
public string Text { get; set; }
public List<RadioButtonListItem> Options { get; set; }
public MyModel()
{
//Initialize the options.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to syslog-ng to remote facility i have a host running syslog-ng. it does all it's stuff locally fine (creating log files etc). however, i would like to forward ALL of it's logs to a remote machine - specifically to one facility on the remote machine (local4). i tried playing around with rewrite (set-facility) an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Assigning NSDictionary keys to NSStrings I'm importing a txt file with a list of first and last names. Each new name is on it's own line, so I imported them into a NSMutableArray and then split them with componentsSeparatedByString:@"\n". I then want to sort the names via their last name. I have found this Sort coll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pulling and storing SMS numbers with PHP and Twilio So I'm new to using Twilio (and my PHP is a bit rusty) but currently the code responds to text with data depending on if you give it the right data, otherwise, it just asks you to try it again. So that's the bit that works. However, what I'm hoping to do, is to pul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: trying to use jquery tooltip plugin, object has no method "tooltip" I'm using this tooltip: http://flowplayer.org/tools/demos/tooltip/index.html
I have the following lines in my html file:
<script src="/javascripts/home.js" type="text/javascript"></script>
<script src="http://cdn.jquerytools.org/1.2.6/jquery.tools.m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Onclick Event Issue in IE 7 I'm thoroughly confused now. Exclusively in IE7 my onclick function fails to execute. However, when I run it in IE's console, it works just fine.
I've tried the following combinations:
onclick="loadStatsRSH('h',2)" href="javascript:void(0)"
onclick="loadStatsRSH('h',2);return false;" hr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails3 ActionMailer deliveries in development environment Is it possible to send mailers in the development environment?
I've added this to my development.rb file:
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.smtp_settings = {
:address => ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate a random uuid in a maven archetype I need to create a random UUID and write it to the generated project. Currently, I ask the user to fill in a random UUID each time a project is created, and I would like this to be done automatically.
Right now, I have in my archetype-metadata.xml the following required pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Symfony 2 passing a variable to a form class to dynamically create a hidden field in the form I am working on a blogging sort of tool on symfony 2 framework where a post can have many comments. I have a one to many relationship established between posts and comments in the respective entities. When a post is displ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Codeigniter PHP Fatal error: Call to a member function item() on a non-object when call $this->config->item(‘config_item’) $this->config->item('config_item')
PHP Fatal error: Call to a member function item() on a non-object
Anyone knows how to fix this kind of problem? Or anyone ever been had same stuff?
The erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to open a page in previous window? I have number of buttons in my page. when one of them is clicked a popup opens.the user browses some links there and click one of them. I want this webpage be displayed in the same page that the button exits. can you please give me a clue how I should do that?
A: To access th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is 0 == "" true in JavaScript Why is 0 == "" true in JavaScript? I have found a similar post here, but why is a number 0 similar an empty string? Of course, 0 === "" is false.
A: 0 == ''
The left operand is of the type Number.
The right operand is of the type String.
In this case, the right operand is coerced ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Interrupt queue or file write operation in iOS I work with large images on the iPhone, so saving them to disk can take several seconds, and sometimes an instruction to delete the image comes when it hasn't finished saving. I would like to interrupt the saving process and delete the file inmediatly, without waiting f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Textfield display issues in some versions of Flash Player I was just wondering if anyone else has come across some strange textfield display issues in any of the recent Flash Player releases. Both IE and FF were having display problems, both in slightly different ways. FF would simply display the text as if it were ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Google's regex library RE2 for C++: linking errors I'm trying to use Google's regex library, RE2, in my C++ code but cannot get it to compile. Here is a simple test program that I wrote:
#include <iostream>
#include <re2/re2.h>
using namespace std;
using namespace re2;
int main (int argc, char **argv)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I avoid Captcha dialog when posting picture using Feed Dialog in iOS SDK? I am using the dialogs in Facebook iOS SDK to allow users's of our app to share a link on their news feed (SDK downloaded today to ensure I have latest version). This was working last week and began behaving differently last Friday after ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to pause animateWithDuration once it has started? I'm using animateWithDuration method to animate a textView with lyrics to a song that scrolls as the song plays. It works fine, but I included a pause button for the song and obviously when paused the animation continues scrolling. Is there a way to pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Moving A Body With A Texture I am using Farseer Physics Engine to build a "Monster Dash" like game targeted for the PC using C# and XNA,
I am trying to move a body with it's texture, the texture is built from parts so they all should move together, basically it looks like this:
public void Update()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does this model test pass on CentOS, but fail on Mac OS X (Lion)? This spec passes just fine on my CentOS development box, but fails when run on my Macbook (10.7).
app/models/issue.rb
class Issue < ActiveRecord::Base
has_attached_file :cover_image,
:styles => {
:thumbnail => ["80x80>"],
:large ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get Well Known Text from lat long I can get easily a lat,long pair from the Google Maps API:
from googlemaps import GoogleMaps
gmaps = GoogleMaps(GOOGLEMAPS_API_KEY)
gmaps.address_to_latlng('Jose Javier Diaz 440 Cordoba Argentina')
>>>> (-31.4464489, -64.191219899999993)
And I have a model like this:
from django im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Reading from a file in android In the following code:
fileInputStream = new FileInputStream(new File(pathToOurFile) );
bytesAvailable = fileInputStream.available();
bufferSize = Math.min(bytesAvailable, maxBufferSize);
buffer = new byte[bufferSize];
bytesRead = fileInputStream.read(buffer, 0, bufferSize);
Printing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to add static block to magento product description I want to modify the product pages in my Magento store (I'm using version 1.4.2) so that a particular static block is appended to the description. I'm using the easytab system right now, but many of my customers can't find the information that I want to present ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any caveats of using a git repository inside another git repository? Is it considered as a good practice? (I know there are some similar questions but I think none apply exactly to this one, so I decided to ask it.)
I never did repository nesting myself, but I'm in a situation that it would become handy. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MSG BOX prob in c# I'm a Beginner in c# so It's not encouraging to me see you voting down on my basic question...
This is a button to show in a message Box the result of my select from my BD.
I get errors : Argument '2': cannot convert from 'object' to 'string',
Argument '3': cannot convert from 'object' to 'Syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I hide a vertical scrollbar (without disabling it)? I have a list but want to hide the scrollbar but still keep the functionality. If I put verticalScrollPolicy="off", this disables scrolling via the mousewheel on windows (100% of my users use windows). How can I hide the scrollbar visually but keep the abili... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a way to make only certain sizes of an image download through css? Basically what I am asking is, is there a way to have say a 1000x1000 pixel image and simply have some sort of code, whether html, css, or anything else to only download a resized verison of 100x100 pixels. Is there any way to do this? I wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JQuery Unbind event when removing a class So I have a couple of divs with a class "turn". Then in Jquery I have
$(".turn").click(function(){
...some code...
if (..) $(this).removeClass("turn");
});
which I expect to remove the handler, so I can't click on it anymore. But I still want to be able on the other d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: translating C++ snippet I am working on porting a framework from C++ to Java, and it is turning out to be harder than I expected, as I don't know a whole lot about C++. I came across this one snippet that I don't really understand. If someone could tell me what the lines marked do that would be awesome.
/** Heap d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can't find CMake created executable file I am new to Cmake, I was trying to build an executble program from a Fortran code using Cmake-GUI. As per the program instruction I created the Cmakelists.txt. I then launched the Cmake-GUI and nominated the source directory and binaries directory and then used the configure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tab Pages (Signed_Request / OAuth 2.0 / SSL) I just wanted to make sure I understand the requirements of the upcoming October 1st deadline! I know that canvas apps require using OAuth 2.0, I am just wondering if tab pages have to require it? I am just building a fan gateway page and I'm using the signed_request to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Test that two function variables point to the same function? How can I test that two function variables point to the same function?
test = lm
test2 = lm
test == lm # error: comparison (1) is possible only for atomic and list types
test == test2 # error: comparison (1) is possible only for atomic and list types... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I perform SQL ORDER BY exposure, focal and iso (in numeric not string) The columns for Exposure, Focal, and Iso are not being sorted properly. It seems like they are all being interpreted as strings and sorted as such. For example, if I sort Exposure down, the values can look like this:
1/800, 1/800, 1/800, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In jQuery, can I store elements using .data() onto another element for fast retrieval? Can I use the data() function to store a dom element (or a jQuery element) onto another element? (see code below)
Does it store it by value or by reference? Is it good practice?
I want to be able to quickly and easily find the sla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Asp.net MVC does not display the template editing I have the classes:
public class PersonDetailsModel
{
public string FistName
{
get;
set;
}
public string LastName
{
get;
set;
}
public string Email
{
get;
set;
}
}
public class Reg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Object synchronization method was called from an unsynchronized block of code I receive an exception in production with message "Object synchronization method was called from an unsynchronized block of code" on Mutex.ReleaseMutex() in following code:
Mutex Mutex
{
get { return mutex ?? (mutex = new Mutex(false, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A class like UITextView, but with the ability to handle URL clicks I am wondering if there is something already like this out there. But I basically want something like UITextView to display text with embedded links. However, I want to be able to handle the URL clicks as a delegate.
I've read a few posts like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What UIKit classes respond usefully to sizeThatFits? Is there a list anywhere of the UIKit classes that respond meaningfully to -(CGSize)sizeThatFits:(CGSize)size (and, by extension, -(void)sizeToFit)?
The UIView docs mention UISwitch and UIImageView. I know UILabel does, but I don't see it documented anywhere.
Tria... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you sort numeric values stored in a hashmap then in an ArrayList in Java? I have an ArrayList.
Each element is a HashMap lookup for my values.
1 of the values is numeric.
I'm using Collections.sort() for alpha sorting. But the numbers are getting alpha sorted, instead of numeric sorted.
protected ArrayList<H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hot to add a loading class until the form data are returned using jQuery? On submit, I would like to add a .loading class in the #results until the data are returned, so the class is removed.
How does the code change ?
$(function(){
$("#myform").submit(function(event){
event.preventDefault();
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery mobile loads a page into DOM even when I don't ask it to Here is the scenario:
(fyi, in the following, when I say 'window.location=...' it is triggered by a button tap)
I have three pages: 1.html, 2.html, 3.html. I navigate following way:
1.html --- window.location="2.html" ---> 2.html
2.html --- <a href="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Play an Audio File and Pause at Various Times on iOS Say that I have an audio file and an collection of time information about particular segments of that audio file, namely their startTime and endTime. What I would like to do is play the audio file sequentially, starting at the beginning and moving segment by segm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Adding name attribute results in ID value becoming property of the document object in IE and Opera? Consider this HTML source code:
<form id="foo1" name="x"> Form 1 </form>
<form id="foo2"> Form 2 </form>
As you can see, we define two FORM elements.
In Chrome, Safari and Firefox, both document.foo1 and document.foo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can everyone resize their iframe the way CityVille does? CityVille seems to have a version of the FB API that allows them to go 100% width/height within a Facebook iframe. Is this only for them? How can this be achieved?
Thanks!
A: Have you tried the following javascript ?
FB.Canvas.setSize({ width: 600, height: 88... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Want to Transfer Remove image to Image hosting site I try to find a solution to transfer image to remove server with php..
For Example i have image http://example.com/image.jpg.. and want to transfer this link/file to http://postimage.org or any other image hosting service.. if you have any solution in PHP Please le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: ImageView on tableViewCell doesnt appear? I have a tableView and you can add cells. and it doesnt show my image on the left hand side of the newly added cells. I'm using the default cell style and here is my code:
This is the button that allows us to add a cell.
- (IBAction)outlet1:(id)sender {
[cart.cells addObjec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove everything but the domain with PHP My current js formula removes http://, https://, www and anything after '/'.
function cleanUrl(url) {
return url.replace(/^(http(s)?:\/\/)?(www\.)?/gi,"");
}
E.G:
http://www.google.com/piza
returns google.com
How can I do remove everything but the domain in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Installing .deb from MobileSafari Does anyone know how to make .deb files install directly from MobileSafari on the iPhone/iPod touch/iPad? I know it's possible, as seen with the 'lima' project, but I have no idea what it's supposed to be written in, or how. If someone could tell me I'd be grateful. Thanks in advanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Configuring network settings in Google TV emulator Can anyone please help me in configuring proxy settings on my google tv emulator? In other Android emulators,we have an option to set the proxy and port in the Network settings. Couldn't find a similar one in Google TV emulator.
I am totally stuck at this part. Don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: onDraw method using DrawPoint() causing jitter and distortion on canvas I am developing an app which draws more or less a two-dimensional matrix of values to a canvas. The values of this matrix are scaled to Alpha levels to illustrate intensity, and the coordinates for the matrix are simply extrapolated fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: show different controllers for one tab depending on some condition When user taps on Favourites tab, I need to show:
*
*Introduction of how to add favourite, if there is no favourite
*Otherwise show the list of favourites
So when user taps on the tab button, I need to check if there is any favourite then decid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python ConfigParser interpolation from foreign section With Python ConfigParser, is it possible to use interpolation across foreign sections? My mind seems to tell me I've seen that it's possible somewhere, but I can't find it when searching.
This example doesn't work, but it's to give an idea of what I'm trying to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: LazyLoading images into a Gallery If you check out this answer.
Lazy load of images in ListView
Fedor has provided a tutorial on how to lazy load with image view.
But he said it can be used with Gallery with minor modifications.
How do i go about doing this with minor modifications?
Ive Tried this so far.
This is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to include files relative to the current executing script in psql? I have a PostgreSQL script (say, MAIN.sql in ~/sql/) which has lines like
\i components/helper-functions.sql
This include works fine if the $PWD is the same as the directory of my script (~/sql/), but if it is not, it looks for the included fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: CSS3 Animation Scale Not Working as Expected in Safari The desired effect is working in Firefox and Chrome, but not Safari.
The Animation is to behave as follows:
*
*Pan Immediately to the left
*Zoom in
*Slowly Pan to the right
*Zoom out
These all work fine except that in Safari, there is no Zooming ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to turn off implicit type conversion in SQL Server? As the title indicates:
Is there a way to turn off implicit type conversion in SQL Server?
I want the following simple SQL to generate an error
SELECT 'a' WHERE 1='1'
A: There is no way to disable it.
It has been requested though: see the proposed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: convert datetime to string in PHP I am getting my datetime using this function
function wilTime($frmt,$tz){
$date = date_create(date($frmt));
date_timezone_set($date, timezone_open($tz));
return date_format($date, $frmt);
}
the first parameter of the function is the format and the second one is the time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Validation of dates based on the user inputs Given the Following code,how can I trap a function where in it would only allow a user a certain range of date to choose from the datepicker.
Ex.
If the user chooses the Monthly on the dropdown, it would only allow the user a range of 28 days. if the user chooses a Weekly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Come October 1st, can I iframe non-SSL sites within my SSL-Enabled FB App? Since FB is requiring all iframed apps to be hosted under SSL come October 1st, how will this affect people like me who have apps that iframe content from non-SSL domains?
For example:
My app domain is: https://myfbapp.com/appfolder
In my ind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Retrieving old builds for re-deployment in Jenkins I have built an automated deployment system using Jenkins, Subversion and ANT on a set of environments. It all works, allowing me to deploy old tagged releases to a set of environments or automatically deploy the latest build using the Subversion Release Manager wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Widget CSS being interfered with by external page CSS Just created a javascript widget that injects the content on the 3rd party site using DOM. I include a css file with the widget. However, I keep running into instances where the external pages css will interfere with the widget css and add something weird like a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does a vector have to store the size twice? This is a rather academic question, I realise it matters little regarding optimization, but it is just out of interest.
From what I understand, when you call new[size], additional space is allocated to store the size of the allocated array. This is so when delete [] is cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can't find html table on source code of a website I'm a member in a website and there's a huge (automatically generated) HTML table on this PHP page that is only available to me and I wanted the table source code because I want to copy it to a HTML page on my computer to then process it with a program.
The problem i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Field 'user_data' doesn't have a default value in CI 2.0.3 I used CI's user guide to create my session table.
CREATE TABLE IF NOT EXISTS `sessions` (
session_id varchar(40) DEFAULT '0' NOT NULL,
ip_address varchar(16) DEFAULT '0' NOT NULL,
user_agent varchar(120) NOT NULL,
last_activity int(10) unsi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Implement right-clicking context menu using PopupControlExtender? Is it possible to implement a context menu which appears when users perform a right-click on an item of interest using the PopupControlExtender?
From investigations so far, it seems like the PopupControlExtender only works with left-clicks or the othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: form_tag action not working in rails I have this form in my application.html.erb.
<%= form_tag(:action=>"index", :controller=>"posts") %>
<p>
// code here
</p>
I dont understand why is this getting directed to posts->create instead of posts->index?
Thanks.
A: You seem to be a little mixed up with respect to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Very basic request response web server in NodeJS I am learning node JS and want to create a very basic single purpose web service that runs
a windows command (to create a new user in ejabberd chat server) on the server where the client can pass in a specific argument to the command (using ajax I imagine).
I've bee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is wrong with Facebook and Twitter APIs? Is anyone else noticing that facebook and twitters APIs aren't working?
For facebook even if I allow my application to have access to my wall
$facebook->getUser()
Is always 0... When I try to open getLoginUrl it just open pop-up and redirect it instantly to success retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is strategy pattern helpful for this scenario? I have two classes A & B and both class implements the interface ISomeInterface. But some properties are not required for both class A & B.
But in the client app I am calling the same ISomeInterface to invoke both the classes. The problem which I have is I don't want D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: adding Progress Bar to my dataCall function - Android How do I add a Progress Bar when a user selects a spinner item that triggers a http request. Do I add it to the class doing the http request (dataCall) or the main activity that has the spinner in it?
I have a class DataCall that when called does a http call to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WebView memory leak in android app I'm using a layout with a webview ... every time I load a page in the web view I notice in the task manager that I get a memory leak... seems like my webview keeps in memory all pages' data... how can I avoid this behavior?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7605177",
"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.