text stringlengths 8 267k | meta dict |
|---|---|
Q: gmaps4rails trigger side bar click event I'm using gmaps4rails sidebar function to allow jumping to individual marker on the map.
My question is:
how can I trigger the click event on the first sidebar item so the 1st marker's info window will be display by default?
A: You should just add a callback:
Gmaps.map.callb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What do people think of the new HTML5Boilerplate with the Normalizer.css Hello fellow designer/developers!
So I have just been updating my HTML5 template and I have been trying to incorporate all the latest tips and tricks but in the end settled on combining HTML5Boilerplate with Grid960.
One big change to the HTML5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What causes Lucene.Net to be unable to find one of its files? We're getting random, sporadic issues on our Lucene.Net-based application. They look like this:
System.IO.FileNotFoundException: Could not find file 'G:\Site\App_Data\Model Index\index\_2y0.fnm'.
Is this symptomatic of something we're doing wrong? We ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting a POST requests require a Content-length header response(411 error) I have been trying to upload video on video on you tube using my own code.
During one step when i try to upload videos meta data on you tube to get the token and url for the video to upload i get a
POST requests require a Content-length he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why do I need a cast in this situation? if i have a method defined.
public static <T> T getSomeTea(Class<T> returnType) {
//do stuff and return a T
}
public static <T> T getSomeSpecialTea(T someVal) {
T someTea = (T) getSomeTea(someVal.getClass());
}
in getSomeSpecialTea, why do I need to cast the return fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Galleria - Fatal Error - No Theme Found IE8 I have built a site using Galleria that works beautifully until it meets IE8
http://milroyandmcaleer.com/Architecture/index.html
Then occasionally throws the no theme found error. I have scoured the web trying different solutions. No better. The link above is where it a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to install HttpClient library from Apache? import org.apache.http.client.*;
I want to import this java package it says that it doesn't exist, so where should I download this package from, and where to install it ?
A: You can download the jar file from the Maven Repository.
You just need to place the jar on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: programatically set auto refresh on a SSRS report I'm developing a dashboard report in SSRS 2008R2, and I need to refresh it ever 1 minute or so, Is there's any way to do that other than pressing the refresh button on the browser!
Thanks
A: Set AutoRefresh property of the report to whatever no. of seconds you want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does Sitecore.Context.Item make use of HttpContext? Does Sitecore make use of the HttpContext to save needless calls to the DB?
Specifically for the context item and database?
Thanks
A: Yes. Take a look at Sitecore.Caching.ItemsContext. It uses HttpContext.Current.Items to save the context Item. The context databas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery index of the object in array I'm trying to get the index of the trigger element in the array.
The html looks like this:
<ul>
<li><a href="#" rel="group">Link 1</a></li>
<li><a href="#" rel="group">Link 2</a></li>
<li><a href="#" rel="group">Link 3</a></li>
</ul>
Then on click I'm calling the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to represent a category hierarchy using term prefixes in Xapian? Assume I have the following example hierarchy:
*
*US
*
*Michigan
*
*Detroit
*Grand Rapids
*Lansing
*Minnesota
*
*Grand Rapids
*Minneapolis
*St Paul
*Ohio
*
*Columbus
*Grand Rapids
*Sandusky
I see two ways t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MEF vs Unity mostly for Composition I'm creating a multi layer project with a lot of different assemblies and using dependency injection.
I was thinking about using some tool for composition but not sure which one to use.
MEF and Unity are strong candidates.
I think that MEF could perhaps help if I change the web pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I retrieve all applicable facet fields for a Solr search I'm trying to use Solr for faceted-seaarch on a website.
When a user fires off a search query, I query Solr and retrieve the search results which can then be displayed.
My question is - how do I find out which facet fields and terms are applicable to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: UI refresh, NSOutlineView reloadData and recursive methods I populate a NSOutlineView reading a directory recursively.
After a directory and its subdirectories are read I refresh the outline calling reloadData inside a dispatch like shown below
-(void)readDir:(NSString*)path {
dispatch_async(dispatch_get_main_que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to fix this to write a program that uses while loops to calculate the first n Fibonacci numbers I am new to C++ programming and I am a bit lost. Here is what I am suppose to do and my code. Any ideas on what to do?
Write a program that uses while loops to calculate the first n Fibonacci numbers. Recall from ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JGroups: send(null, null, Message)vs send(Address, null, Message) I've written simple test for using JGroups.
There are two simple applications like this
import org.jgroups.*;
import org.jgroups.conf.ConfiguratorFactory;
import org.jgroups.conf.ProtocolConfiguration;
import org.jgroups.conf.ProtocolStackConfigurato... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Scala Interpreter: anyway to get the line of a compile error? I am using the scala interpreter to run some user defined script. for this I use the "IMain" class. Works like a charm except when it comes to report the line where a compile error happen.
To get the error line number, I just parse the interpreter output ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dynamically Display Grid Content I have 3 different layouts (similar to I guess what you would call Skins but the layouts are hugely different, not just changes to colors and fonts) which I have developed for my application. The layouts are used for displaying the same data, but in a completely different format. Eac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why can't Tomcat find SMTPTransport(Session, URLName)? We've got a web application that sends mail. For some reason, an installation of it has decided that it can't find the constructor for SMTPTransport that takes (Session,URLName) arguments.
Relevant bits of the stack trace:
javax.mail.NoSuchProviderException: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Provide/Export executable file to client I just completed working on a client's tool, which uses Jfreechart jar, and dll and a lib file for JNI interface. Now I would like to export/ provide a executable file to client, I tried to click on java project folder and export Java>Runnable Jar file (extract required libra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to read TLD "META-INF/stripes.tld" from JAR file error I'm encountering a bit of an unusual error after a major upgrade of our web application to ivy for build management which also included updating all of the major libraries involved as well. While we are managing to pass our unit tests, when we deploy the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Query related to fancybox in facebook page tab I want to use fancybox in a facebook tab based page. In that page there are seperate pages loading in fancybox, but what is happening is I can not give width of that page more than 520px as my fancybox opens inside the facebook page so there is a scrollbars in my facebo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: replace styles.less with styles.css via git post-receive I have a local development web with an index.html which is using:
<!-- LESS -->
<link rel="stylesheet/less" type="text/css" href="css/styles.less" />
<script src="js/lib/less-1.1.3.min.js" type="text/javascript"></script>
When I am ready editing I commit/push... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to show a Wait cursor using C# without having an active (or any) Windows Form? I have tried using this code sample:
private void DoShortRunningTask()
{
using (new StWaitCursor())
{
Thread.Sleep(5000); // 5 sec delay.
.. do some work ..
}
}
From: http://www.codeproject.com/KB/cpp/W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tomcat as Clients communicating with multiple separated Servers via SSL Here is the scenario:
*
*I have multiple application servers running locally for now (should be running in different host) --> each is listening on different port (at localhost).
*I have a single client application running on Tomcat.
*When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Overriding Environment Variables in an Ant Script I have an issue where my automated build environment necessitates a different version of ant than the actual delegated scripts being run to produce the build.
I do not have an environmental variable for ANT_HOME.
I throw my CI environment the ANT_HOME to a directory ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Restricting records to one side of the join in a self join query Consider a table (name Term) as follows:
[Id] [int] IDENTITY(1,1) NOT NULL,
[CategoryId] [int] NOT NULL,
[Label] [nvarchar](256) NOT NULL,
[Uri] [nvarchar](1024) NOT NULL
Now, consider that there are two categories defined: CategoryId 1 and CategoryId... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Failure 1 (unrecognized token: "1295980589.jpg") on 0x2a6530 this is the error:
09-28 17:48:03.830: ERROR/Database(1485): Failure 1 (unrecognized token: "1295980589.jpg") on 0x2a6530 when preparing 'INSERT INTO bookmarks (id, title, image1File) VALUES (2014, 'Hilton Craigendarroch, '1295980589.jpg')'.
this is the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Contacting a dynamically created control I have created a textBox control on run-time for my winform application. The control appears just find once the form loads up, and works great too. However, I have just run into a problem as I realize I do not know how to write the code to write to a dynamically created contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is IIS appending localhost/default.aspx to the URL? This is a very strange problem. We have a Windows 7 machine. We have one web site set up and it works fine. We added a second web site. It is a very simple web site. There is only one file - test.html. Then we set up both sites to use host headers. Then ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WebKit Scale Transformation issue I need help on webkit scale functionality.
I have a .css file with properties as shown :
@-webkit-keyframes expand
{
from {-webkit-transform:scale(1)}
to {-webkit-transform:scale(1.2)}
}
.image-highlight
{
-webkit-animation-name: expand;
-webkit-animation-duration:0.2s;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL Query help and outputting to PHP Below is an attached image of what I have so far. 1 = a feature and 2 = a benefit.
What I need to do is match the feature with the benefit. The first #1 goes with the first #2
What I have so far is:
<?php
if ($result = $mysqli->query('SELECT FB_TEXT FROM `FB_DATA` WHERE `FB_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: jQuery IE6 stripping HTML from XML. I have a problem with IE6 that is stripping HTML from XML even after I wrap this inside CDATA
e.g <name>Product <![CDATA[<br />]]> Name</name>
var phoneCarousel = $("#phone-carousel"), phoneXmlPath = "deals/phones.xml";
// Generate to allow image to be vertial aligned bottom.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add html input boxes to a div on click using jquery I need to add input boxes to a page onclick of a button, I have written the following jquery script. It adds one input box when clicked the first time but does not repeat adding.
<script type="text/javascript">
function addInput(){
$('#fileinput').html('<l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Url Routing (ASP.NET 4 Web Forms) returning 404 under IIS7 (Win2008) but OK under IIS7.5 (Win7)? I have an asp.net 4 website that is working fine locally under IIS7.5 (windows 7), and under the Classic Application Pool (albeit .NET 4).
Some of the site uses routing and some of the older sections of the site don't. A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java insertion sort recursive i have an array and have to sort them using insertion sort. i tried to use the compareTo method to run through the array and see whats bigger. I ran into a problem because i was trying to reference an array index with a string which obviously didntwork (thats at compareTo(a[key])).
any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the ip range out of a CIDR Notation or an address netmask pair using Java For example:
How to get the lower-higher ip address of the CIDR Notation 10.66.114.0/24
In this case the answer is:
10.66.114.1 - 10.66.114.254
A: Here's the gist of it (I'm a C guy):
unsigned int network = 0x0a427200; /* 10.66.1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: 'Title' is not getting inserted I recently changed my site to allow a user to choose from a dropdown list or a textbox to be able to insert a title. The table is called Picklist, the columns are PicklistID, Title, Data.
Can someone help me with the insert of the title?
Protected Sub SubmitLink_Click(ByVal sender As ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Plugin for Maven that Exports non-project files of choosing to a RAR/compressed filetype Here's what I need to accomplish:
Take some files, and create a Zip/Rar/Tar file while running the maven package command.
With the maven-rar-plugin I can only create a compressed file containing all of the contents needed to run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IIS output caching causing wrong pages to display I turned on output caching in IIS7.5 for .aspx pages but sometimes when I browse to PageB.aspx I see the output for PageA.aspx. Looking on google this seems like it's a common issue but no one has said if they have fixed it or how.
How can I enable output caching but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pass a dynamically generated ID to Jquery I'm using a nice Jquery context menu which returns the ID of my element in the form
$(context).attr('id')
and not in the form
$(this).attr('id')
due to the fact that I'm using one single context menu for a large number of elements where each element has its unique ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Better Management of Binary Target of Exec Plugin Our build uses the exec plugin to execute a external binary. The way we do this currently is that each developer must install the binary on their machine, and then configure the plugin with the path to the executable. It seems to me that their must be some way to m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to define method for specific attribute of class in Ruby? I have some Ruby-question.
Let I have class Cat. Cat has age attribute, which is Class::Integer.
How can I add method .humanize, which will calculate human age equivalent form all cats in my project?
i.e. ...
@cat.age #=> 2
@cat.age.humanize #=> 20
@tree.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why in ASP.NET MVC 3 the default route is not working for a controller called "ContentController"? I have a brand new asp.net mvc 3 project. I did not modify the routes in any way. I have a controller called PageController and another controller call ContentController.
When I browse to domain.com/Page then the Index... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to calculate the angle between a line and the horizontal axis? In a programming language (Python, C#, etc) I need to determine how to calculate the angle between a line and the horizontal axis?
I think an image describes best what I want:
Given (P1x,P1y) and (P2x,P2y) what is the best way to calculate this angl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "263"
} |
Q: Access database on network I made a small C# Winform application with a simple GUI and a database (MyDB). Now I want to run my application on the Server. I want other users to access my database through the network. I have a Wired\Wireless network.
Suppose I have 2 systems (sys1, sys2) I have my application in sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: COM addin for MS Office doesn't load in a limited user account I've created a toolbar for Word. It's a COM addin and is written in C++. It works when Word is started by an Administrator account in XP. But when Word is started from a limited account it's not even loaded. I placed this code in DllMain:
///////////////... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Ninject with custom WebViewPage type I am using ASP.NET MVC 3 + Ninject in my application which works great with my controllers.
I also have a custom base page class that inherits from WebViewPage and I have setup an interface that I'd like to be injected in that custom base page class.
However, it's not wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to do something at the end of a Youtube video I'm currently launching a Youtube video using this piece of code:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube://"+token));
activity.startActivityForResult(intent, SmartBrowserWebViewActivity.ACT_YOUTUBE);
It works great. But I would like at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamic Linq to Xml example I need a basic example on how to use System.Linq.Dynamic with Xml. Here’s a functioning statement I want to convert to dynamic Linq:
XElement e = XElement.Load(new XmlNodeReader(XmlDoc));
var results =
from r in e.Elements("TABLES").Descendants("AGREEMENT")
where (string)r.Element... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Boost condition_variable destruction assert My question is: is there something specific I need to do (like call notify_all?) in the destructor of a thread that encapsulates a boost::condition_variable. The following code generates this assert when the Test destructor is called:
cond_var:
/usr/include/boost/thread... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to place inline div and input I have a html form. There are many input's and label's. In the bottom of the form I have one div and one input (submit).
How can I place them (div and input (submit button)) in one horizontal line?
A: This is one approach:
<div>
<div style="float:left">my div</div><input type="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: receive byte[] from asp.net website with webrequest I need to get some information from a website. that website is not meant to be accessed from a browser. so let's say that the website contains a byte array: I want to get that byte array from a console application.
// c# code for asp website
protected byte[] dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git working over http but not ssh I have a remote repository that is working fine when I communicate over http, but if I use ssh it gives me errors when trying to push.
Goal: get the repo to work over ssh
I can ssh directly into the remote machine without problem, all folders and files in the git repo and git workin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: In-App purchase server model I have got few questions about In-App Purchase server model.
I have got my DB, and a table in which I store item description. For example, I've got a Sword priced $0.49 and a Mace priced $0.99. So table with fields - id, name, price, info(description). I want to display this items in my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django: How to concatenate translation and constant string in template I'd like to pass a translation with variable to template tag. I'm trying to do it this way:
{% my_tag _("Entries for tag")|add:" '"|add:tag|add:"'" %}
But this does not work. Is there any solution?
A: What's wrong with <span>{% my_tag _("Entrie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Curious Spring AOP Exception I'm trying to get my first-ever Spring AOP-based MethodInterceptors working, and am getting some bizarre exceptions with my ultra-simple XML configuration.
I have a class named Food which has a method called eat(ConsumptionRate rate) that takes an object of type ConsumptionRate as its so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL COUNT(), SUM() and GROUP BY I have a particular question which is about MySQL. Please have a look at the query and the result set below:
SELECT COUNT(c.Population) AS c, c.City AS cc
FROM City c
GROUP BY c.City
ORDER BY c.City;
261 | Bristol
----------------
910 | London
----------------
241 | Manchester
---... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how do I pass all the files in a folder to shell script and get result in one file? I have a shell script
#!/bin/bash
a=`grep "var lon" $1 | tr -d 'var longitude=;'`
b=`grep "var lat" $1 | tr -d 'var latitude=;'`
echo "$1,$a,$b";
I have around 100 files with latitude and longtude. which i pass through this script t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prototypes and object creation Lately I'm trying to get the technical aspects of the prototype chain. Now I have a few questions about object instantiation.
Consider the following code:
var Foo = function(s) {
this._bar = s;
};
var fooInst = new Foo('test');
Now when I examine the created object, then:
Foo.proto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MVC Webgrid Column Pointing to Array Indices - is this possible? I'm playing with the MVC Webgrid in a project, pretty impressed so far, but I think I've found one restriction to it's capabilities, which I'm assuming is due to the nature of its reflection capabilities.
It seems quite alright to point at data as such... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JOSM Map Editor component With the use of what is written editor component?
Where can I find the source code for drawing editor ?
I try to develop simple training map editor with fast interface and drawing, but I don't know how to do it with Java.
A: JOSM is built with the standard Java API. Thus, all graphical co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wordpress Custom Widget - Saving a list of checkboxes created from custom post types This is probably a pretty standard thing to do. I just can't work out for the life of me how to do it. I checked various other coded doing similar things but most of them seem to do things in a different way from me which I don't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Common Table Expression in a SQL WHILE loop? How can I use a common table expression (CTE) in a while loop? The following is give errors on the "while" statement and the reference to the "cte":
Errors: (1) Incorrect syntax near WHILE (2) Invalid object name 'cte'
WITH cte AS (
SELECT
t.employee
FROM Em... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Query Add an Alternate Blank Records I am using following Query to Display Records from SQL SERVER
select * from orders
Currently this query shows all 100 records in database, what i need is instead of 100 it should show 200 records ( so alternate blank records is fine ) It is possible can it be done ?
A: -- s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Engine Yard deploy failed while executing migration script I am trying to deploy ruby on rails 2 based application using engine yard gem and get following error:
ey deploy --migrate=rake db:migrate
Beginning deploy for 'test' in 'test' on server...
~> Deploying revision 11111 Test commit.
~> Pushing code to all serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hashtable- Rehashing I have been told that Hashtable in .NET uses rehashing in order to reduce/avoid collision.
Ie. “Rehasing works as follows: assume we have a set of hash different functions, H1 ... Hn, and when inserting or retrieving an item from the hash table, initially the H1 hash function is used. If this l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: JQuery: Hide anchor if href is empty Been on this one for a while now. Basically, I need to check where a href on an anchor tag with the class .pdf-download is empty, and if it is, hide it.
I have attempted a few options but with no luck. This is what i have so far:
$("a.pdf-download").each(function (i) {
if ($('[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Getting Type T from a StackFrame The goal is to create a generic instance based on the type that called my method.
The problem is that when called from a generic, the StackFrame only appears to contain the open definition type parameters instead of the closed definition type arguments. How do I get type arguments f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Logging in Joomla platform 11 JLog I'm playing with the new Joomla 1.7 system built on the Joomla platform 11-- and all my logging code from earlier versions of Joomla no longer work (they appear to be writing log entries but with improper syntax, so the messages are blank).
Does anyone know the proper syntax for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Axis, wsdlsoap:address location and reverse proxy I've used AXIS 1.4 to generate some webservices.
These webservices will be called by clients, but their calls will go through a reverse proxy (apach with mod_proxy).
The process is working fine, however in the generated wsdl (when calling http://proxy/services/Servic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I add an object to an array in Objective-C? I am starting to program in Objective-C. I am using a book to learn the first basics. The given example is not working! I can not see the problem in my code.
It was not so hard to understand it, but it just won't work. But everything I found elsewhere, they added O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Suppress the virtual touch screen Windows keyboard in a WPF full screen application We have a full screen application developed in WPF that will be used on a touch interface. As part of this project I developed a styled virtual keyboard that will be used to input when the application is run on a touch device. Ever... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Web service over SSL in Grails-cxf? I need to serve a specific CXF web service over HTTPS (I have several others that need to work over plain HTTP). In SecurityConfig.groovy, I set:
httpsPort = 8443
and tried both of
secureChannelDefinitionSource = '''
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jqgrid width size problem in usercontrol I have a jqgrid in the third tab of a jquery ui tab, the grid is visible but the size is much smaller than its usual size. I dont have this problem when I move the grid to the first tab. I read and know that the hidden tabs are not reflecting the width and have seen some simi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Customize the Error Message for an invalid date in ASP.net MVC I have an ASP.net MVC model with a date:
public class EditModel
{
[Display(Name="DOB")]
public DateTime? DateOfBirth { get; set; }
}
@Html.TextBoxFor(m => m.DateOfBirth)
@Html.ValidationMessageFor(m => m.DateOfBirth)
When the user enters an in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to tell search engines which is the main menu? I wanted to implement the following structure on my website:
<h1>Site Title</h1>
<ul id="menu>
<li>Section 1</li>
<li>Section 2</li>
<li>Section 3</li>
</ul>
I have several <ul> on the same page. So, I added <h1> to the <ul> which contains main menu and I was think... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Add A Gallery - Android How can I dynamically add a gallery to an android app, I have:
Gallery gallery = new Gallery(this);
But it doesnt work.
A: set the Layout parameters of gallery, ie size then take a Layout and add into it
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(30, 30);
gallery... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: c# Using setting dynamic expression dynamically? I'm new to the dynamic keyword and been researching it quite a bit, for I want to use it to parse xml. I came across this example I'm using as my test: http://blogs.captechconsulting.com/blog/kevin-hazzard/fluent-xml-parsing-using-cs-dynamic-type-part-1
In the exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google Analytics - Tracking metrics for webpage content using the Data Export API I'm trying to write a program that will create a report of the page views within a date range for specific webpages within my site. I've been scouring the API help section, but i can't seem to find out how to get metrics for a specific... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getting NullPointerException in getApplicationContext() I am getting a Nullpointer exception when I open my app and this was on the background. My onResume calls an Asyntask which calls this method:
public boolean reloadIni() throws NetworkConnetionException {
if(mMyApp == null)//chek if the object has been delet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IOUtilities.streamToBytes get Hanged in Blackberry When I try to get the data from IOUtilities.streamToBytes() it hangs. Has anyone else faced this sort of issue while trying to read data?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7586183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Qt::Drawer type window signal on User-driven close Is there a signal being emitted when a user drags a Qt::Drawer type window (OSX specific) enough to close it? I need to capture that in my app so that I can trigger my "open" button again.
A: Is your drawer widget getting a close event?
If so, then you can key off ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: scala.tools.nsc.interpreter memory leak I need to implement a DSL (Domain Specific Language) using Scala, and this DSL will be interpreted in a Scala interpreter (scala.tools.nsc.interpreter). The problem is that the memory used by the interpreter keeps increasing until an outOfMemory exception is thrown. I cannot r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Stopping a Vimeo Video on close of jQuery Modal Thanks in advance for your help.
Let me preface this by saying that I am mainly an HTML/CSS guy so please try and be as clear as possible in your responses to anything requiring javascript implementation.
I have a Vimeo video loading in a modal box on my page at:
http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: EmbossMaskFilter strange effect on other drawings I've tried to use EmbossMaskFilter to create custom Drawable.
However I've come across strange behaviour, that when I try to use Emboss it's causing
black stripes on edges of other 2d-graphics objects that overlaps with "embossed" drawble bounds.
Am I missing somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to determine minimum supported version of third party executables Putting together a collection of Bash scripts that will be released to a wider audience of users with expectation of various operating systems and software versions. The scripts themselves rely on software like mysqldump and getopt.
Being a good c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Input Integers in MIPS Assembly I am writing a program in MIPS that will read in signed integers from the keyboard.
Is there a way to read input like that, the way we do in higher level languages from a console? If not, I already have an array as follows:
.data
intdata: .word 3, 23, -5, 57, -12, 41, 39, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I simulate a very slow computing environment? Is there some emulator out there where I can program in some language (C, C++, Assembly etc.) and where I can slow down the Hz rate (down to 1MHz or something)
I've been very curious how difficult it is to program with such a limitation and wondering if there is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XML drawable Bitmap tileMode bug? I'm having issues where my drawable resource uses the tileMode repeat. In some cases the image is just stretched and sometimes it is properly repeated.
The following are the xml files I use to create the button states:
Image drawable used for tile repeated
^^^^^^^^^^^^^
btn_menu_i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What's the best way to filter/validate ID's in a '#show' action? So, this is really a Rails pattern question.
I have a Rails 3.0.9 application that works, and well. We're using Airbrake to detect and report errors, and that's helped tune the last few leaks in the program design.
Only, now it gets attacked by robot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ant - replace string I am looking for possible solution,how to replace specific String in my Android.manifest
Currently I am using task:
<replaceregexp flags="g" byline="false">
<regexp pattern=""com.package.Something""/>
<substitution expression=""com.package.Extra.Something"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Program not entering if statement In my python program, an if statement is not being entered. I have simplified the code to the following:
x = -5
while x < 5:
if (x == 0):
print 0
x += .01
This program does not output anything.
However, changing the last line to x += .5 makes the program output 0. W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Attaching a .avi file to an email I'm trying to attach a video clip (.avi) to an email. Is there any way to do this within the .NET Framework 4.0?
My logic is that I need to open up that avi in some sort of file stream then attach that stream to the email and send it off. The part that I am struggling with is the g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I allow a ruby script (program ?) to access the internet through an http proxy? I was trying to install the blogger plugin for vim .
According to the instructions , after installation and configuration, I should be able to write something like this :
e blogger:list
and I will see the list of the blog po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF File Streaming 400 Bad Request So I have reviewed a large number of the same issue being reported, and for some reason I cannot get a working version on my end, even using the existing solutions to these questions. Could someone shed some light on what I am overlooking? It almost has to be related to the file ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle large doctrine Collections and Associations I'm working on a project where I have to collect a lot of data from the database. I'm using Symfony2 (symfony bf1281aebdc842a39ec0eb7438e1ea3fca9b9705) and Doctrine2 (doctrine 3b3186ee98392802a44118cd421a3530119aa7eaand ) as working base.
The Problem I encou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: JAVA; When The string from the file is printed on screen null is also printed along with it at the end Soo my program is working...but there is just one problem...null is also being printed along with the content or string from the file... is there anyway i can stop null from being printed. The code read asks a user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Quartz : Memory Leak? I am using Quartz to run a job every hour. The servlet is running on Tomcat and I am using the ServletConextListener to listen for when the context is destroyed.
When I shut down tomcat, I get the message:
"appears to have started a thread named [MyScheduler_Worker-1] but has failed to stop it"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Actionscript Compiler directive I have an established pattern for lazy loading data from a server via AMF.
private var _XeventDispatched:Boolean;
private var _X:ArrayCollection;
public function get X():ArrayCollection{
if(!_XeventDispatched && (_X==null || _X.length==0)){
var evt:Eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7586256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.