text stringlengths 8 267k | meta dict |
|---|---|
Q: Counting the number of shortest paths through a node in a DAG I'm looking for an algorithm to count the number of paths crossing a specific node in a DAG (similar to the concept of 'betweenness'), with the following conditions and constraints:
I need to do the counting for a set of source/destination nodes in the gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: CouchRest Model use a custom value instead of guid for _id field I wonder if there is a way to use a custom string value (e.g. name of the object) as the _id field instead of a guid in CouchRest Model.
E.g.
class Cat < CouchRest::Model::Base
property :name
end
By default, it will use a guid as _id field. But I j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Drawing textures with variable transparency I am a moderately experienced C# developer, but I'm new to XNA and graphics in general. I'm making a 2D game and I'm trying to draw a texture that partially transparent. The desired transparency value is stored in a float variable. The only solution I've found is to direct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Current_user devise method returns nil outside the user controller Is this a scope/routes problem? The current_user works in the user controller. Outside, in another controller/view, this returns nil. Even if the user is logged in, the user_signed_in? method returns false. I know I am missing something, just not abl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Massive URL Decode in MySQL I have a MySQL table with 10,000+ entries. There are four columns in the table. One of them is URL. Some of the URL values are encoded, some are decoded. I want to have them all be decoded.
How can I do this either with PHP directly or MySQL?
Thanks!
A: Is this what you want?
$result ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perl trapping Ctrl-C with threads in bash While I see how to have Perl trap Ctrl-C (sigint) in bash; I'm getting lost at why does it fail with threads; I'm trying the following script:
#!/usr/bin/env perl
use threads;
use threads::shared; # for shared variables
my $cnt :shared = 0;
sub counter() {
while (1) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: make: -c: Command not found First of all, I'm trying to get used to makefiles but yet I#m new with this. The following file is supposed to, first, compile all ./src/*.cpp files to ./src/*.o (where the filename survives) and afterwards complete compilation with simulation.cpp and linking the whole stuff together. Now... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Open Graph Beta, Display another string in Custom Action Caption using Text Templates if Object Property is null? How can we display a different string in a custom action caption using text templates or formatters if a Profile property is null?
Facebook displays a default caption for an action if a string property i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: setStreetView() and setTrafficView() is not working im working on map view and i have set four views normal , Satellite ,Traffic and Street normal and satellite is working fine but when i click on street and traffic its not get associated views here is code.can any one kindly tell me how to post code after once as i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ViewBinder setViewValue for ListView item leads to multiple CheckBoxes checked I'm using a ListView which has:
*
*list item click
*CheckBox click
I can save the cursorPosition by using view.setTag(cursor.getPosition()) and I can take necessary action on the checked item but when I scroll down, I see several ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In memory ActiveMQ attempting to respond to temporary queue before it's fully created? We have a scenario where we need to send a synchronous message over our an in memory activemq broker. Our synchronous client side code looks like this:
Session responseSession = connection.createSession(false, Session.AUTO_ACKNOW... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# problem with flags I have an enum (flag)
[Flags]
public enum DisplayMode
{
None,
Dim,
Inverted,
Parse,
Italics,
Bold
}
I want to assign two of the flags to a variable, like this:
var displayFlags = DisplayMode.Parse | DisplayMode.Inverted;
However, when I debug and hover over this variab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jira update ticket using script Is there any way update Jira ticket using scripts?
Basically I will have a build from hudson/jenkins and if I get the Jira ID in all changes then corresponding ID should be updated to release version in Jira? Can any one help me? I am bit new to Jira admin.
A: It's a bit difficult to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CR vs LF perl parsing I have a perl script which parses a text file and breaks it up per line into an array.
It works fine when each line are terminated by LF but when they terminate by CR my script is not handling properly.
How can I modify this line to fix this
my @allLines = split(/^/, $entireFile);
edit:
My fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Creating a hash in Perl How do I create a hash in Perl which uses the directory name as the key, and then stores both the count of files in the directory as well as the names each of the files? Is it possible using hash of hashes or hash of arrays?
I would appreciate any pointers.
A: Hash values must be scalars, so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: QT project won't link to functions that have std::wstring as parameter. I have a VS2010 dll I'm trying to link into a QT project.
I'm using QT version 4.7.4 that I built using MSVC2010. QT Creator is also using MSVC2010 to compile.
I'm implicitly linking by including the header files, referencing the .lib in the pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: django and database connection pools when connecting to many databases If I want my application to connect to potentially hundreds of different databases, what effect will this have on database pools?
I'm assuming django has database connection pooling, and if I am connection to 1000 different databases, that will r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Save multiple graphs one after another in one pdf file
Possible Duplicate:
How to print R graphics to multiple pages of a PDF and multiple PDFs?
I am new to R and have a quick question. The following code writes one .pdf file for each graph. I would like to add figures one after another in ONE pdf file. Thank you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Have I used STL? Or not? I'm confused about some of the documentation at cplusplus.com. Have I used the standard template library with either of these two lines of code?
for (std::string::const_iterator it = str.begin(); l < data.size; ++it, ++l)
and
tile_tag(): distance(std::numeric_limits<int>::max()), dir(unknow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I send a cfm file as the body of an e-mail using ColdFusion? I have a legacy application where an email.cfm file is used with a cfmail tag to send e-mail:
<cfmail from="abc@123.com" to="def@456.com" subject="New e-mail!">
// lots of HTML
</cfmail>
Now I'd like to update it for ColdFusion Model Glue 3. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Select iframe using Python + Selenium So, I was absolutely baffled as to how to do this in Selenium, and couldn't find the answer anywhere, so I'm sharing my experience.
I was trying to select an iframe and having no luck (or not repeatably anyway). The HTML is:
<iframe id="upload_file_frame" width="100%" height="46... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: imeOptions actionDone with Android 2.3 I have a few EditTexts where I've set the imeOptions to actionDone. When I run my application in the emulator using either Android 2.1 or Android 2.2, the enter key on the virtual keyboard becomes "done."
However, (and I've not tested this in the emulator), when I run my appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ignore minimum size when resizing QWidget Is there a way to make a QWidget (and any subclass of it) completely ignore its minimum size? What I want is for a QPushButton to cut off when it is sized too small, rather than prevent the window from resizing (the default behavior).
A: You can use:
button.setSizePolicy(QS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot run "HelloWorld" monodroid application on my device Helo.apk
and Hello-signed.apk (by vs2010 monodroid)(default monodroid app from template
I have lg android2.2 phone and i load by usb to my phone those files.
When i run it i see "Unexpected error process Hello.apk")
In emulator device application works fine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scipy's fmin sticks only on inf only sometimes I'm using Scipy's fmin search to compute the log of the likelihood of a distribution's fit to some data. I'm using fmin to search for the parameters that maximize the log likelihood, like so:
j = fmin(lambda p:-sum(log(likelihood_calculator(data, p))), array([1.5]), ful... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server Login role for remote database manipulation My scenarion is MVC Blog (funnelweb) installed on a server named WEB. The SQL Server 2005 runs on DB. FunnelWeb site requires access to its own database. I have create a new database using SQL Server Management Studio and had named it FunnelWeb. I want to use SQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to increase div's height with Zoom level/Screen resolution? Could anyone of you help me resolve this issue. I have to implement the following layout:
Root div
-Header
-Content
Footer div
There should not be any gap between the Root Div and the Footer. And the Footer should always stick to the bottom ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP MYSQL displaying picture link from dB Hey all I have a table caleld Box1, with a simple structure of: id(increment,primary) imageurl, link.
What I am looking to do, is on my site in the HTML file, display the imageurl into a imgsrc, so that the Image URL loads the image when going to the site
I cannot find spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server Script Error: Database is Already in Use I have a SQL Server deployment script running from visual studio that gives me the error:
Error SQL01268: .Net SqlClient Data Provider: Msg 1828, Level 16, State 5, Line 1 The logical file name "myDB" is already in use. Choose a different name.
However, when I go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The best regex to parse Twitter #hashtags and @users Here is what I quickly came up with. It works with regexKitLite on the iPhone:
#define kUserRegex @"((?:@){1}[0-9a-zA-Z_]{1,15})";
Twitter only allows letters/numbers, underscores _, and a max of 15 chars (without @). My regex seems fine but reports false positiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating bash aliases via .bashrc As a sysadmin I routinely rdp and ssh into remote machines for administration.
I've created a file, ${SERVER_FILE}, containing one entry per line noting the hostname and protocol to use when connecting to a given server.
Example:
...
server1,ssh
winsrv,rdp
...
Given the above entri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Exporting GridView to Excel results in blank columns being inserted into the middle of the GridView i am trying to export the elements in gridview to excel spreadsheet. that grid hides several columns depending on the condition, here is some of the code
in the def of the button, this is the part where i have prob wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Variable and if input What is wrong with this code? I declare a variable, then i say if it is 0 hide, if it is 1 animate. Then, when you click on it, the variable become 1 and so it animate. The code hides #slickbox11, but, when i click on it, it doesn't "animate" itself and the scroll.
var slickbox11 = 0
//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Trouble inserting variable as my URL in PHP fopen() I'm trying to make my xml file URL dynamic so multiple people can be using my site and querying data at once. I order to do so I'm inserting a random number php variable in front of my xmlfile. For some reason I'm having issues creating and writing xml files when t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to import data from excel sheet in iOS programmatically I am working for a iOS project whose data source is an excel sheet. How can I convert the excel sheet to csv or plist?
A: I just had a similar issue recently. I saved my excel files to csv format, and then I downloaded the code described in this link:
http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Bar Graph Effect: Aligning Multiple DIVs to Bottom when Side by Side Here is an image of my problem:
http://www.rhexi.com/images/uploads/example.jpg
I am trying to align multiple side-by-side divs to the bottom within a parent div. The end result I am trying to achieve is a bar graph, where you have a parent contai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Method in SSRS Custom Assembly Fails After Pushing to Server Background - I have developed a custom assembly for my SSRS server that I use to dynamically generate default values for particular report parameters. Some of these functions require a call to my database, mostly funneled through a generic function named ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails console is not outputting SQL Statements to my Development Log When I access my Webrick server via the localhost, or when I run rails migrations, my development.log is correctly written to. However, when I bootup my rails console with "rails c" and then try and create a new database object and save it via a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Check if siblings in an unordered list of inputs are checked using jquery I have an unordered list of checkbox inputs:
<ul>
<li><input type="checkbox">parent
<ul>
<li><input type="checkbox">child
<ul>
<li><input type="checkbox">grandchild
<ul>
<li><input type="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to print comma-separated list with hamlet? With the hamlet templating language that comes with yesod, what is the best way of printing a comma-separated list?
E.g. assume this code which just prints one entry after another, how do I insert commas in between the elements? Or maybe even add an “and” before the las... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Google shopping API country code not working except for US Hi I'm trying to call this url https://www.googleapis.com/shopping/search/v1/public/products?key="my key"&country=US&q=9780198062257&alt=json on the browser.
It works fine and gave the appropriate data but when I change the country form US to IN (India) or a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redirect google bots, but show a 'Moved' page to visitors? When moving a site to a new domain name, how can I show a 'This page has moved.' message to visitors and not automatically redirect, but at the same time tell Google and other bots that the sites have moved, to maintain SEO?
Or what is the best alternative? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 'objType' is not defined... Actually, it is, so why is this happening? As you seen in this picture below, for some reason my DirectCast wont except ANYTHING for the second argument. It says it requires a type, but, it won't take any object at all!
Thanks for any help! I'm using VB.net so all .net answers are acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to use a Go package built from a different version? I'm using Go for Google App Engine, which uses an older version of Go. I want to use a third party package that requires a newer version of Go (goauth). It is possible to use that package in my Google App Engine program?
Goauth uses strings.SplitN, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make calls to a server in WPF I'm a noob in WPF so please bear with me. I wanted to do a client - server application. The client has a UI and the server is a console application.
Is there any way that the client can communicate with the server? I know there were "sockets" in Windows Forms, which could send/re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: From Flash to Asp.net I have a flash file, but I haven't got the source codes.
How can I get values from it?
For example if it was a html form, I can get the posted values like below:
Request.Form("myValue")
But it doesn't work. How can I get the posted values?
Thanks.
A: In HTML, this code:
Request.Form("myValue"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to scroll down to particular child of a div using jquery How to scroll down to a nth child of a div. Consider this code
<span id="click_me">Click me to scroll down to nth child</span>
Messages div has 6 childs. I want to scroll down to 3rd or 4th child which somebody click on "click_me"
Note: Childs are added... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: drawing a line from gesture between 2 buttons I am beginner for interactions on iphone. I have 3 buttons, one on the left, and the 2 other ones on the right. I would like to push the left button with finger and display a line real time stretching with my finger moving on screen that goes to the other button I am goi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: environment.rb contents when migrating from Rails 2 to Rails 3 I'm updating an application from rails 2.3 to rails 3.1, and I'm new to rails. I followed the RailsCast and got some idea. Somebody please help me for where to place my old environment variables. These are the four pieces of code in my old environment.rb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ideal database schema for similar structures In our business application, we have a need to store user or system generated "comments" about a particular entity. For example, comments can be created about a customer, an order, or a purchase order. These comments all share many of the same characteristics, with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to stop a browser from opening a dialogue box when a user clicks the right mouse button? I'm making a game, it uses the canvas element, and I need both of the mouse buttons. How can I stop the browser (I'd like it to run in most major ones, so, it's preferred that the solution is universal) from opening that dia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery add a class only if it does not have another class I have a navigation animation that is being applied to elements with the "js" class - via a css background. I don't want this animation to occur on the link for the current page (a class "current" is being echo'd out by PHP to the current page).
So basically... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ doesn't convert string from data I want to write a little program which should be used in supermarkets. everything is fictitious and it's only for learning purposes.
However, The tool generate a new data for every new article. in the data there are 2 lines, the name and the prise.
The data is named as the articl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Select from table1 where similar rows do NOT appear in table2? I've been struggling with this for a while, and haven't been able to find any examples to point me in the right direction.
I have 2 MySQL tables that are virtually identical in structure. I'm trying to perform a query that returns results from Table 1 w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to attach a list box to a button onclick I am creating a monthly calendar of events. Each day that has one or more events is represented by a button labelled with the day of the month. If the user clicks on a day with one event, that event is chosen. However if the user clicks on a button with more than one even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Memory leaks in pushViewController and (I think) coming back from a GCD queue I'm having some trouble with memory leaks on one of my view controllers. From my main view controller, I'm pushing my settings view controller like so:
-(IBAction)launchSettings {
SettingsViewController *svc = [[SettingsViewController... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Java make a image move down How can i make a image just scroll down a straight line by it self?
Like
The Image starts up here and then it will just smoothly scroll down till it hits the bottom and stop
Please look at this: http://tinypic.com/r/1z17iv9/7
A: i think you should take a look about TranslateAnima... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: dynamic div height attribute I'm looking to extend the height of my div dynamically with my menu on the left. Here is the url:
http://www.whiterootmedia.com
I would like to add grass and the bass of the tree to the bottom of this web page. Any help or ideas?
currently the div has this inline css:
<div id="tree_trunk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to restrict which nodes produce output in stylesheet I am working on a transform. The goal is to transform nodes into key/value pairs. Found a great stylesheet recommendation on this forum but I could use some help to tweak it a bit. For any node that has no children, the node name should become the value of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: General question about curl in php It's simple question, can curl make posts on vBulletin forum? In PHP script so of course.
I didn't try that so just if anyone now or ever tried, to spare me some time I would appreciate a lot :D
If there is too much job, I'm not really sure if I should try to write that code
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP Contact Form Problem http://www.raymondselda.com/php-contact-form-with-jquery-validation/
I'm trying a few different contact forms including the one above.
I have it running on this page: http://themeforward.com/demo2/features/contact-form/
The problem is this form does not successfully send e-mails to the addre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Silverlight binding with filtering I am currently trying to figure out a binding solution in Silverlight 4.
I have an observable collection of items. I want to bind this to a ComboBox but only display the items that match a certain condition. For example group == "Test Group." I have tried quite a few ways to make t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make a secure file that PHP can read? I have a file sort of like this, it's a user database (udb.htm):
user1:pwd1
user2:pwd2
user3:pwd3
something along the lines of that. I would like to secure this file and make it available for PHP via the file_get_contents("udb.htm"); method, but not a browser window. Thanks!
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove alias details in Nhibernate logging When NHibernate logs its SQL, it uses aliases for all the columns it retrieves e.g.
SELECT menuitems0_.menuSectionId as menuSect6_1_
I was just wondering if it's possible to omit the alias information to make the SQL a bit clearer e.g.
SELECT menuitems.menuSectionId
Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display Rows side by side, Kind of pivot I have a table like this
Column1 | Column2
-------------------
A | 1
A | 2
A | 3
B | 4
B | 5
B | 3
C | 2
C | 2
C | 2
D | 7
D | 8
D | 9
I want to output it as
A | B | C | D
--------------------
1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to force https I have a grails project. Right now, the user can access it either with HTTP or HTTPS. I would like to require that they can only access it through HTTPS. any ideas? I do have spring security core installed, if that can be of help
thanks
jason
A: Spring's core supports that:
grails.plugins.spri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Reset Static fields on change in INI file I have a C# class library which reads an INI file to obtain the value for a parameter
for e.g. (debug=on)
Now on every call and some times multiple times in one call I have to check this INI and this leads to I/O overhead.
To overcome this I made the parameter in code to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Preparing SQLite SQL statements in PHP I'm trying how best to prepare my SQLite SQL strings in PHP. The SQLite3 class comes with an escapeString() function, but here are my issues:
Try 1)
$sql = "INSERT INTO items ('id','content','title','created') VALUES ('4e7ce7c18aac8', 'Does this work', NULL, '2011-09-23T16:10:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to apply OR rules in find of MongoDB db.media.find( {Released : {$gte: 1990, $lt : 2010}})
Looks for movies released between 1990<= to <2010 and this is an AND condition.
How to apply an OR condition in the query statement?
For example,
Looks for movies released before 2000 or type is of action.
A: You can use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: We are getting a permission denied error in IE8. facebook-graph-api We are getting a permission denied error in IE8. It happens after the FB.init. We have tried the channelUrl fix. We have put the as the first tag after the body. We have tried the document.domain in both the script and in the channel.html. We have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery: how to let showed div which display:none, keep showing when load to another page? I have a div in masterpage that I set a toggle effect on it. It's like expand folders; when you click the "folders", it will expand folders so all the sub-level folders show up.
Each sub-level folder is a hyperlink. I set the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android kernel configuration menu for ARM DS-5 Streamline I am trying to use ARM DS-5 streamline for Android and I am having a hard time to figure out the basic settings.
You must enable certain kernel configuration options to run Streamline. In the kernel configuration menu, use the arrow keys to navigate to the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using an NSFormatter to alter string as user types I'm writing a Mac OS X desktop Cocoa app. I've got an NSTableView with some values and I'm trying to control those values using a custom NSNumberFormatter.
My desired behavior:
As a user is typing a value, if they type -, I want it to behavior similar to a +/- but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Comparing generic types I am writing a Generic Binary Search Tree. I need to compare two generic types. How to do it, assuming the the user has implemented IComparable in T class.
private void Insert(T newData, ref Node<T> currentRoot)
{
if (currentRoot == null)
{
currentRoot = new Node<T>(newData);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checking all checkboxes in jQuery I have a table setup like this:
<table>
<thead>
<th>
<input type="checkbox" class="check-all" />
</th>
<th>
Title
</th>
</thead>
<tbody>
<tr>
<td><input type="checkbox" /></td>
<td>Na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Pass data/variables/objects to Zend_Controller_Plugin I am converting an old ZF app (its using an early ZF version where we used to do manual app loading/config in the index.php) to latest version, and in one of the plugin we are sending data directly to the plugin constructor
$front->registerPlugin(new My_P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Usb Host Problem with Samsung Galaxy 10.1 Tablet I am attempting to leverage the USB host capability on the Samsung Galaxy Tablet. I purchased the attachment dongle from samsung (http://www.samsung.com/us/mobile/galaxy-tab-accessories/EPL-1PL0BEGSTA). When I first connected a usb device via this dongle, I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: GCC C compile error, void value not ignored as it ought to be I'm having trouble compiling some C code.
When I compile, I'l get this error:
player.c: In function ‘login’:
player.c:54:17: error: void value not ignored as it ought to be
This is the code for the error:
static bool login(const char *username, const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: onUpgrade database Android version number not increasing I am trying to update my database in my Android application. When I update the version number, onUpgrade gets called, but the version number doesn't increase, so every time I access the database, onUpgrade gets called. Here is my code:
private final static int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: @Singleton cache implementation I wonder if my cache implementation is correct and would appreciate any feedback. A resource has some String (Client-Adresses) values assigned.
Do i have to synchronize the addEntityRegistration() method? Or is there a better approach for this use-case?
thanks in advance,
m
@Singleton... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is a SqlConnection automatically closed when an application is closed? I am querying the db in a separate thread.
If I close the application while the query is being executed, will the SqlConnection automatically close or will it remain open?
A: If the process is terminated, all the OS resources, including network ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Embed Google Maps on page without overriding iPhone scroll behavior I'm working on optimizing a site for mobile. We have a Location page that includes info about a location and a map of the location via the Google Maps API. (v2 - I know it's deprecated but I haven't justified the time to upgrade, "if it ain't broke.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Raise an alert in rails controller without redirect I just want to flash an notice/error if the message is/isn't saved, without any redirect, how can I have no redirect:
respond_to do |format|
if @message.save
format.html { redirect_to request.referer, :notice => 'Message sent!' } #dont want redirect
else
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Can jQuery check whether input content has changed? Is it possible to bind javascript (jQuery is best) event to "change" form input value somehow?
I know about .change() method, but it does not trigger until you (the cursor) leave(s) the input field. I have also considered using .keyup() method but it reacts also o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Using strings as incomplete bits of code in Python (please help me clarify the title)
This is what I'd like to do:
s = "'arg1', 'arg2', foo='bar', baz='qux'"
def m(*args, **kwargs):
return args, kwargs
args, kwargs = m(magic(s))
# args = ['arg1', 'arg2']
# kwargs = {'foo': 'bar', 'baz'='qux'}
What is the definit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: cuda context creation and resource association in runtime API applications I want to understand how a cuda context is created and associated with a kernel in cuda runtime API applications?
I know it is done under the hood by driver APIs. But I would like to understand the timeline of the creation.
For a start I kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why is my Facebook app not getting the allow access box? $app_id = "someid";
$canvas_page = "http://mydomain/index.php/fbresponse";
$auth_url = "http://www.facebook.com/dialog/oauth?client_id="
. $app_id . "&redirect_uri=" . urlencode($canvas_page);
$signed_request = $_REQUEST["signed_request"];
li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting Skype status images from an HTTPS site I have a Rails 3 app where I'm trying to display a page with users and their respective Skype status. This is easy to do if the page is HTTP: just set a background url of an element to the image returned from http://mystatus.skype.com/mediumicon/USERNAME.
However, my si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make PDF reports in Perl? All the PDF libraries for Perl seem a bit barbaric -- stuck in the 1980's. You have to specify PostScript points to do layout. Java has JasperReports, Ruby has Prawn, and Python has ReportLab. Is there a non-extinct library/module that will let me make a nice looking PDF in less than a week... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I fix this Ruby Yes/No-Style Loop? I've got this method I wrote to ask n-times for user input using a while loop inside.
The idea is really simple and common, repeat the while loop if the condition is true,
The problem is that it doesn't work...
def play_again?
flag = true
while flag
print "Would yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Aligning content within a table with CSS I have a table in my HTML that is defined like the following
<table>
<tr>
<td><img src='corner1.png' /></td>
<td>First Name <a href='#'>edit</a></td>
<td><img src='corner2.png' /></td>
</tr>
</table>
I want the edit link to be right-aligned within the cell. B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple increment of a local variable in views in ASP.NET MVC3 (Razor) Well, this is just embarrassing. I can't even figure out a simple increment in one of my views in ASP.NET MVC3 (Razor). I have done searches and it appears that the documentation for Razor is pretty sparse. Here is what I have tried and failed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Google+ API get people "me" After struggling to authenticate on the Google+ API, I finally succeed to retrieve my info with https://www.googleapis.com/plus/v1/people/{MyUserId}?key={ApiKey}
However, despite I did obtain an access token with the scope https://www.googleapis.com/auth/plus.me I cannot request "me" : ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I express this query in sqlalchemy? I'm using this as an example to help me learn sqlalchemy. Here is the mySQL:
select f.type, f.variety, f.price
from (
select type, min(price) as minprice
from fruits group by type
) as x inner join fruits as f on f.type = x.type and f.price = x.minprice;
Here is wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why can't I see my HTML content in my App? I'm new to developing for Facebook. I'm trying to create a "Welcome" tab, and I'm unable to see content after adding the App to my Page. I'm a little confused on Canvas Page URL and Page Tab URL. Should they be the same URL minus the HTML filename?
A: The canvas page url i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: detect carriage return in UITextField in iOS How would I detect a carriage return for a UITextView in iOS?
I am currently just watching this field for a period of time but want to improve on this a bit:
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSStrin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are public properties in an ASP.NET code behind supposed to persist between page loads? I am trying to capture the HTTP_REFERER upon page_load event of an ASP.NET page, and persist it between postbacks until I need it later. The way I trying to do this isn't working:
public partial class About : System.Web.UI.Page
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Groovy Script to insert database entries with unique key I am writing a groovy script to read data from an CSV file and then pull inserts into database. I have gotten everything to work EXCEPT for generating a unique primary key or autoincrement for each insert. The unique key is campusID. Here is the script.
def s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery Plugin - Passing options as object I built a custom Message Dialog Box JQuery plugin that works great. However, I am trying to allow users to set the options from input text fields (i.e. background color, font size, etc). I then create a object with all the options that are not empty, and pass to my plugin to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# - XML - Treat inner xml from a certain element as string I have the following XML:
<Plan>
<Error>0</Error>
<Description>1</Description>
<Document>
<ObjectID>06098INF1761320</ObjectID>
<ced>109340336</ced>
<abstract>DAVID STEVENSON</abstract>
<ced_a />
<NAM_REC />
<ced_ap2 />
</Document>
</Plan>
I des... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.