text stringlengths 8 267k | meta dict |
|---|---|
Q: emacsclient: could not get terminal name ssh -X root@localhost "emacsclient -c"
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
emacsclient: could not get terminal name
I have googled but i can't find the soluti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: why EL functions in jsp must be declared as static? I am reading some JSP text regarding EL user-defined functions, and the author said these kinds of functions must be declared static and gave no other explanation. I have tried to declare non-static functions and got a org.apache.jasper.JasperException: java.lang.N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: fetching data from celery's backend(redis) How do I get data(all I really need is the state of the task) from a Celery backend? I am using Redis.
A: Assuming that you configured the CELERY_RESULT_BACKEND to use redis ( see here ), then you can monitor your application using a variety of methods.
I believe that cele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Maximum Python object which can be passed to write() I am looking around the net (so far I have found pickle ) for an explanation for what I am doing wrong
I am trying to write a very large data structure (nested dictionary/list) to file. Using the below code I discovered that the problem might be because the passed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SELECT multiple table i need some help here,
table "friends"
+------+-------------+-----------+
id | friend_id | user_id |
+------+-------------+-----------+
1 | 1222 | 99999 |
+------+-------------+-----------+
2 | 48989 | 1492 |
+------+-------------+-----------+
table "use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MATLAB Mex Socket Wrapper Library Have anybody written a POSIX socket wrapping library for MATLAB using Mex?
I basically want to open, write and read. Both sync and asynchronous alternatives would be nice. My main target platform is Linux. I know Mex and I know POSIX sockets. I just want to make certain that nobody ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Split by [char] but not by [char]{2} via regex I need do it, basically:
Parameter | Expected Result (array)
a | [a]
a_b | [a, b]
a_b_c | [a, b, c]
a__b | [a_b] <-- note that the double underline be unique
a_b__c | [a, b_c]
I know how I do it with the methods explode and s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SCRIPT70: Permission denied on IE9 api error 191 I get an SCRIPT70 error on IE9 after doing FB.login(function(response){}) and I don't use iframes for this script. I get an error at:
the popup give me an
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: about linux v0.01 bootsect.S Recently I'm looking at the linux 0.01 source code, since the bootsect.S in 2.6.11 and upper version is useless and it is a good place to start learning linux code, therefore I choose to trace the first version of linux. :P
I have some question in bootsect.S. The following is some of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Query optimization using primary key I have a database with two tables: one that keeps information about each user and one that keeps information about the games each user is currently playing. Each user row and each game row has a unique primary ID so that whenever I want to fetch a particular row, I can obtain it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Skype API or Google Talk/Voice in Java, Android It will use Skype's API or Google Talk/Voice. The app's front screen is very simple. The app is meant to be an intercom through skype, so it will have its own skype account and will call another specific skype account.
At the top will be a status bar. It could say: Not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mobile Data connection is a battery killer if there is no data transfering? I'm developing an app that use Mobile Data connection (always GPRS) to upload in a loop each 5 minutes 300 kb of data. Between two upload i see that the data connection remains up (gprs logo on status bar) even if there aren't data transferr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dns.GetHostByAddress() works but Dns.GetHostEntry() doesn't I changed my code so it no longer uses the deprectaed:
Dns.GetHostByAddress(ipaddress);
to use:
Dns.GetHostEntry(ipaddress);
The problem is I get an exception from Dns.GetHostEntry
No such host is known
SOURCE: System
TARGETSITE: System.Net.IPHostEntry ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Match if several identical characters in a string I would like to match if a string contains more than 1 identical character, for example :
Using PHP preg_match or similar function.
the character would be "-"
Something-or other : no match
Test-tes-t : match
Basically what I want to do is disallow the use of more tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: django RadioSelect widget list id I currently have a RadioSelect widget on one of my form classes that I want to style with css. However the rendered widget is contained in an ul and the list has no id.
What is the easiest way to add an id to the rendered list?
A: Subclass RadioFieldRenderer and override render met... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UINavigationBar - How to change the position of UIBarButtonItem? I've subclassed a UINavigationBar. NavigationBar has two buttons of type UIBarButtonItem. Is it possible to move these button? For example I would like to move "left button" 50px right and "right button" 50px left.
Is LayoutSubViews the right place to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating an Android search result list I am trying to implement the following logic:
User enters a search string in a text box (an activity) -> Web service is called to perform the search asynchronously -> Search results are displayed in a list (another activity)
So far I have the following:
An activity to enter the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Joomla Frontend AND Backend Down after Installing Extension I recently tried to install an extension for Joomla, and as soon as it had been enabled, the site (both frontend and backend) went blank.
From researching online, it sounds like this might be due to a PHP error- but how would I go about fixing this problem,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: JPQL/HQL - Is it possible to specify the order, by providing a list of IDs? (Note: I'm using the Play! framework, which uses Hibernate as the JPA implementation.)
I have a list of IDs and I want to get the Items from the database by keeping the order that is used in my ID list.
Let's say my list is: 444,222,333,111
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remove/Insert code at compile time without duplication in C++ I have a template class that is taking in a couple of types. One type is there just to determine policies. That class determines how a function may work in certain cases.
Let's say this is one of the function:
/* this code is part of a class */
templ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I build a 'has-many-through' relation linking more than 2 models? I have 3 models eg;
TABLE `users`
`id` INT
`username` VARCHAR(32)
...
TABLE `books`
`id` INT
`title` VARCHAR(100)
`author` INT (foreign ket constraint)
TABLE `rights`
`id` INT
`name` VARCHAR(32)
Now I want a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: first character truncated when committing hgsub I'm trying to create a mercurial repository containing subrepositores. I have the following entry in my .hgsub file:
subrepo1 = http://hgserver.domain.com/subrepo1
However, when committing, I get the following message:
B:\>hg commit
committing subrepository ubrepo1
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I fire a Button Click event when PageDown key pressed in c# winform i write some code in a Button Click event,
private void sabt_btn_Click(object sender, EventArgs e)
{
some code....
}
i want fire this button action when PageDown" key is pressed in form.
private void myform_KeyDow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get a reference to an object (COM) in JavaScript that can be passed outside the browser I have a hyrid type application (web and forms). It's a .net compact framework app. On one of the forms I have a WebBrowser control.
I want to communicate between the WebBrowser control and the form that host/contains the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does tokenization and pattern matching work in Chinese.? This question involves computing as well as knowledge of Chinese.
I have chinese queries and I have a separate list of phrases in Chinese I need to be able to find which of these queries have any of these phrases.
In english, it is a very simple task. I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Could you please suggest on a simple drawing program? I am new to C++. I try to draw a polygon. My code can be built, but nothing shows in the form when I run it. Could anyone please give me some help. Thanks (Most of the stuff below was from the default VS template, I added a few lines only)
namespace DrawMyShape {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using jBCrypt to salt passwords in Android App causes a long hang I am using the jBCrypt Library to hash user passwords when they register using my app.
I am using the basic hash function, with a salt, like so:
String pass = BCrypt.hashpw(rawPass, BCrypt.gensalt());
I noticed a one to two minute hang when registeri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Where to find library? import common.money.MonetaryAmount;
import common.money.Percentage;
googled, the only result I found is:
"Actually no, its maven dependencies packaged under common-aux.1.0.1.RELEASE.jar" which I also couldn't really find.
has variation of:
import common.datetime.SimpleDate;
It is related to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iOS Wrong UITableView size I am building an iPad application, and I added a simple UITableView to an inner view, somewhere in a XIB file.
The problem is, as you can see in the image, the UITableView doesn't have the right size. Of course, I set it in IB (should be 360x243, as I recall), but no matter what I do, it s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php why is basic super global failing? i am using globals to share variables between functions like this
<?php
$whatyear;
$whatfirstname;
$whatlastname;
function mycustom_user_register_submit($form, &$form_state)
{
$GLOBALS["whatyear"]=$form_state['values']['yearofstudy'];
$GLOBALS["whatfirst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Can a variable in c++ add its old value plus its new value? Is there a way in c++ for a single variable to maintain its same value and when added to, it will add its last value with the new one?
for example, I am writing a program where the user can enter as many "checks" and "deposits" they received through the day... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Validate an url with parameters I’m trying to determine whether or not a given string is a valid url or not. And in my scenario, the url can have parameters:
*
*www.example.com -> OK
*example.test -> OK (although there’s no .test TLD)
*example.com/page.htm?abc=123 -> OK
*xxx/xxx.jpg -> Not OK
*xxx -> Not OK
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to slideTo() only if the loadmore button is clicked using jQuery? In my script I load some posts from external RSS feeds. I have a "load more" button that when it is clicked, calls the loadfeed() function and shows some 10 more posts.
When this happens, there is a slideTo() that slides the browser to the first o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AuthLogic sessions only work on localhost:3000 I'm running pow locally along with localhost:3000 (for debugging purposes). For some time I was able to create user sessions fine with authLogic on http://app.dev.
At some point however, I discovered that I was only able to login using http://localhost:3000. The login a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: returning code of function instead of result I saved a function created in jQuery in clean.js file..
jQuery.fn.singleDotHyphen = function(){
return this.each(function(){
var $this = $(this);
$this.val(function(){
return $this.val()
.replace(/\.{2,}/g, '.')
.replace(/-{2,}/g, '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Launching new Intents with SingleInstance I have two activities. One activity has the main game and the other activity has the game over screen which is truly just a custom alert dialog. In the game over screen there is a button that when clicked launches a new Activity.
String authUrl = httpOauthprovider.retrieveRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I find the source code examples for "Introduction to 3D game programming with DirectX 9.0c"? I have a book : "Introduction to 3D game programming with DirectX 9.0c– a shader approach" by Frank Luna.
The official site is dead and I can't seem to find 3 main files used for all the projects.
*
*d3dApp.h
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dropshadow with css I want to add a transparent dropshadow to my div. I have a container, and behind it I want to place a dropshadow. I don't want the dropshadow to have a color. This is what I have so far:
.content_right1{
background:#fff;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Linq - Creating Expression from Expression I have a predicate Expression<Func<T1, bool>>
I need to use it as a predicate Expression<Func<T2, bool>> using the T1 property of T2 I was trying to think about several approches, probably using Expression.Invoke but couln;t get my head around it.
For reference:
class T2 {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: VBA variable/array default values Consider the declarations
Dim x As Double
Dim avg(1 To 10) As Double
What are the default values in x and avg?
Through testing, I want to say that x is initialized to zero.
Likewise, I want to say that all elements in avg were initialized to zero.
However, can I write code that dep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: how to use data from 2 tables and combine it in one? I have 2 tables 1 is Lookup and another is Details.
Lookup Table
Identity Type Value
200 Entity A
201 Entity B
202 Entity C
203 Entity D
300 SOURCE X
301 SOURCE y
Details Table
Sender(int) Reciever(int) Source(int) State(varchar)
200 203 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSIS FlatFile Access via Jet Is there a way to access FlatFiles with the Microsoft.Jet.OLEDB.4.0 driver in SSIS ?
The acces via the FlatFile Source is much better, it´s just about if there exists a way to do it with the Jet driver.
A: This seemed an interesting question so I piddled around a bit with it. Yes, you c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Data reading and storing in c#, (Concept..no code) I want to translate my Matlab code (least squares plane fitting) into C#.
I have many problems in understanding c#.
Let me ask here.
Reading a text file and storing data in xyz format in matrix (e.g., xyzdata= xyz) in Matlab is quite easy.
Translating it into CSharp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make parent DIV enclose floating chid DIVs I've been having trouble creating parent DIVs that encloses the floating child DIVs.
<div id="parent">
<div class="child1">content</div>
<div class="child2">content</div>
<div class="child3">taller content</div>
</div>
...where #parent would expand vertical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Strange Behavior in F# Parallel Sequence I have written the following code to generate all possible combinations of some numbers:
let allCombinations (counts:int[]) =
let currentPositions = Array.create (counts.Length) 0
let idx = ref (counts.Length-1)
seq{
while currentPositions.[0]<counts.[0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating a dynamic js file and caching it? I have a JavaScript which is currently being re-used in over 5 websites, and will prolly be used by alot more websites as time progresses, the thing is - that javascript runs some checks according to the server name, and I was wondering what's the best way to create some JS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Various Odd Errors in Xcode In Xcode, I am getting some various odd errors that should build normally.
First, In
- (void)touchesMoved:(NSSet *)touches withEvent(UIEvent *)event {
[self touchesBegan:touches withEvent:event];
marblebeingdragged = NO;
}
it gives me the errors:
error: Semantic Issue: Use of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Moving app between appstore accounts I have published an app that have sold pretty OK and i have since then started a company where i will do my development. I checked with Apple to change the name of my account but that seemed to be very complicated and time consuming.
The problem I have is that I would like to mov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: jQuery - Why are `li a` and `li:has(a)` different? In applying li a and li:has(a) different results show up. But, why is that? Aren't they supposed to do the same thing?
A:
Aren't they supposed to do the same thing?
No. In the first example, you are selecting all a inside a li; in the second one, you are selectin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: javascript convert string to safe class name for css I am sure this must of been asked before but can't find any in the search.
What is the fastest way to ensure all non safe characters are removed from a string allowing it to be used in a CSS class name?
A: I use this for my selectors, IDs or classes names:
Str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to reference external set of permissions in an XACML policy? Originally, I asked "How do you write a policy that requires a subject be granted access to a requested permission, where the set of allowed permissions is in an external attribute store. Can you reference an external set of permissions in a policy?" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't fire click event on the elements with same id Could you help me to understand - where I made the mistake. I have the following html code:
<div id="container">
<a href="#info-mail.ru" id="getInfo" onClick="return false;">Info mail.ru</a>
</div>
<div id="container">
<a href="#info-mail.com" id="getInfo" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Java Simple Line Drawing Program I want to create a simple java application for drawing only lines.
My program is like that now;
User can draw everything by draggin his mouse, but by the time he release his finger, I deleted everything from the screen and I draw a line withrespect to first mouse coordinates and the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: config git proxy through 127.0.0.1:8087 I can't git clone https://code.google.com/my-repo,
so I want set git through my local client proxy 127.0.0.1:8087.
How to config?
Thank you.
A: Try setting the https_proxy environment variable before cloning. For example:
export https_proxy=127.0.0.1:8087
git clone https://w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: wicked_pdf: footer height/styling I'm using the awesome wicked_pdf gem to generate a PDF, but I can't figure out how to change certain styles within the footer.
I'm having a HAML template for the footer looking roughly like this:
!!!
%html
%head
%meta{:charset => "utf-8"}
= wicked_pdf_stylesheet_link_tag "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: cookieManager outside of activity I'm trying to do some post request to a webpage containing json data... but there are cookies involved.
cookies are working fine but aren't persistent....
I'm doing the request from a separate class(object). I pass the activity context to that class but I'm still not able to store t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I call an editor command from a vimscript? I want to remove an unwanted scrollbar from taglist. I created a function and a command like this:
function s:TlistWaToggle()
normal :TlistToggle<cr> " <- this does not work
set guioptions-=r
endfunction
command! -nargs=0 -bar TlistWaToggle call s:TlistWaTo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Change a number of products to a product pack I have this problem : i'm working on a small e-shop and I have about 60 products in the database . all the products have a code , like : 4444, 5334, 3244 and so on . The problem is that there are also product packs and they are made out of several products .
I have to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find issue in XAML that causes code crash I wrote a Radio Button style.
When a page containing a Radio button, that has the style implementation I wrote. is shown I get crash and I don't know why.
After I examined the xaml more than 8 times - I found the bug.
But I still want to ask some important question =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending Batch Request to Facebook Open Graph Beta I am trying to submit a batch request to add objects via Open Graph Beta to a user's Timeline but no matter what I do I get this:
The action you're trying to publish is invalid because it does not specify any reference objects. At least one of the following propertie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: File upload after model save on Django admin I am using a file upload in my Django model like this :
def upload_path(self, filename):
return 'upload/actualities/%s/%s' % (self.id, filename)
photo = models.ImageField(upload_to=upload_path)
and my adminModel is :
from actualities.models import *
from django.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I configure gem install to use "install" from the right place? When I try to install rails using gem on my Arch Linux machine, I get the following error:
$ gem install rails
...
...
make install
/usr/bin/install -c -m 0755 bcrypt_ext.so /home/gphilip/.rvm/gems/ruby-1.9.3-preview1/gems/bcrypt-ruby-3.0.1/lib
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Django admin - Keep updating a model and do not create more than one Im not sure how to put this title.
But what I need is a simple model that I can just update everytime. Lets say I have a Settings model ,and these settings I just want to update or change every now and again. So there is no need to add another obje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using PIM, how to detect what is the attribute which is retrieved using Contact.TEL and index? I'm looping over all attributes of the Contact.TEL field to retrieve names and data, so that I can display something like this:
HOME: +2034953213
WORK: +2033923959
MOBILE: +20179083008
I've retrived the values (+20349... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: belongsTo and hasMany with inline data Is it possible to use the Ext.data.Model associations belongsTo and hasMany with without explicitly using a Ext.data.Proxy? I have Stores that use the inline data attribute to create Model objects. Should associations work with this type of setup?
Thanks in advance!
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7627033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any possible way for CoreGraphics to not lag when drawrect is being called from touches moved? I am calling setNeedsDisplay from touches moved (and have also tried not calling from touches moved, but instead from a 0.05 timer) and the drawrect method is always laggy. Is their anyway to change this? I am doing a lot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to insert data in table using select statement in sql server I have two tables Login table and userinfo table. UserInfo table is primary key(UserId) table and login table is foreign key(UserId) table. So my problem is when i insert data in login table value of userid column should come from Userinfo table and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Will this javascript cause memory leak? function outer(){
var a, b, c;
function inner1(){
...
}
function inner2(){
...
}
inner1();
inner2();
...
}
I want to keep the global namespace clean so I wrote above code. Inner functions are only used by code inside Outer. But after that I begin to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: EF switching from one db to another .edmx settings how to? I have an mvc3/EF4.1 model that has an .edmx bound to a Db locally. I have to move this model to Database to another server.
Q: What steps do I need to make so that when I right click on the .edmx and "Update Model/Database" that it selects and picks up tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: bazaar bind branches In my project , i have local branch for working and branch on network drive
i did "bind branch" between local one and network one
My idea is to use the bind option for auto backup of each local commit.
After i commit files in the local branch , i receive a message in network branch
" Working tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Azure Table Storage OnStart Constructor Query I've been looking at some Azure samples and doing some general searching around Table Storage. I've noticed a bit of a pattern using OnStart and a static constructor. For example the following type of code is found in both locations:
// Get connection string and table ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check whether the path is relative or absolute in java? I am developing a tool, which takes a path of an xml file. Now that path can be either relative or absolute. Inside the code, when I have only a string, is there a way to identify that the path is absolute or relative?
A: How about File.isAbsolute():
Fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: cassandra data model for web logging Been playing around with Cassandra and I am trying to evaluate what would be the best data model for storing things like views or hits for unique page id's? Would it best to have a single column family per pageid, or 1 Super-column (logs) with columns pageid? Each page has a uniq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What Web app chores, can be eliminated using Plugins/Gems in Rails I've been building Rails Application Prototypes and Loving it. I'm aware that there are many pre-build libraries to utilize in projects.
While, I'm not a fan of using plugins for managing login and user authentication, which is core part of the app, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine Internet Connection in Cocoa? I need to determine if Internet Connection is available or not. I don't care how it is connected (WI-FI, Lan,etc..) . I need to determine, is Internet Connection available at all .
P.S. I found a way to check WI-FI connection. But I don't care how it is connected (I nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Python's logging module misses "captureWarnings" function Python's standard logging module is supposed to contain a useful captureWarnings function that allows integration between the logging and the warnings modules. However, it seems that my installation misses this function:
Python 2.6.5 (r265:79096, Mar 19 2010,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NullReferenceException while storing data to session in an ASP.NET MVC 3 Controller I have a following View Method in an ASP.NET MVC 3 Controller that retrieves data from Amazon SimpleDb, stores it in a list and then stores that list object in a session. But at the line where I am storing the userBox object in a ses... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iOS maps GPS location implementing blue-ball location and arrow sign on the map 1.) I need to have a blue ball circle/location dot on a map as shown below.
*
*What is it called?
*How can I implement it?
2.) How do I get the arrow on the pop-up screen as below?
A: I think what you're after is the MKMapView... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: django check which users approved document I have two models
class Document(models.Model):
name = models.CharField(max_length=250, blank=True)
class Approval(models.Model):
document = models.ForeignKey(Document)
user = models.ForeignKey(User, related_name='approval user')
status = models.IntegerFiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encryption in Dropbox-like Java application I'm thinking about encryption in an application. The architecture consists of:
*
*Server
*Desktop client
*Web client
*mobile client
The goal is to allow user to store his data on the server, and access it from all clients, but to guarantee data privacy by encryptin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a lambda expression in C++11? What is a lambda expression in C++11? When would I use one? What class of problem do they solve that wasn't possible prior to their introduction?
A few examples, and use cases would be useful.
A: What is a lambda function?
The C++ concept of a lambda function originates in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1736"
} |
Q: How to use list from sys/queue.h? Currently, I have implemented a singly linked list, like so:
struct PeerNode {
struct Peer* cargo;
struct PeerNode* next;
};
...and I have a struct that contains a couple of these linked lists, like so:
struct Torrent {
...
struct PeerNode* peer_list;
struc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Android reading from InputStream not consistent I have a rooted android phone. I am trying to read the output of "ls" via my program:
Process p = null;
p = Runtime.getRuntime().exec(new String[]{"su", "-c", "system/bin/sh"});
DataOutputStream stdin = new DataOutputStream(p.getOutp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Toast showing up twice I have a program that sends pre-defined text messages to a group of people at a push of a button. I have it working well but the problem I have is that when it sends the messages, it pops up with 2 toasts per message sent. Code:
package com.mfd.alerter;
//imports
public class homeScreen exte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OpenGL rotation and scaling Does rotation always occur about the origin (0,0,0)?
Does translation always occur relative to previous translation?
Does scaling increase the coordinates axes size?
A: I suggest that a good way for a beginner is to start by thinking about points rather than 3D objects. Then all the tran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How To Define Function From Closure This question is related to one I asked recently.
If I rewrite (fn [n] (fn [x] (apply * (repeat n x)))) as
(defn power [n] (fn [x] (apply * (repeat n x))))`
it works just fine when used like this
((power 2) 16)
I can substitute 2 with another power, but I'd like to make a funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Save the console.log in Chrome to a file Does anyone know of a way to save the console.log output in Chrome to a file? Or how to copy the text out of the console?
Say you are running a few hours of functional tests and you've got thousands of lines of console.log output in Chrome. How do you save it or export it?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "229"
} |
Q: perl ftp not working Script works fine, but ftp code uploading the xls but uploading with 0 byte, but if ftp code present in before of the following snippet, FTP Works Fine,
What is the error in code,
my $workbook = Spreadsheet::WriteExcel->new('TestRPT.xls');
my $worksheet = $workbook->add_worksheet('TestRPT Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Movable dashboard-like panels for web I wonder, is there any free complete solution for implementing web dashboard like this? All I need is to implement such movable widget panels but any additional functional will be useful.
A: YUI? GWT? Dojo? Anything with widgets can implement this.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7627115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I limit the number of digits in a list? This is a small piece of code that I am writing for an chemistry ab initio program. I am having issues making the C1pos list a number with exactly 6 digits after the decimal place. I have tried several methods such as the decimal function, but so far I am having no luck... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scala underscore - ERROR: missing parameter type for expanded function I know there have been quite a few questions on this, but I've created a simple example that I thought should work,but still does not and I'm not sure I understand why
val myStrings = new Array[String](3)
// do some string initialization
// this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: Posting php over to html form wraped up in my own code Hello i have what i need in side
$v->id
But i need to get it from this page over to testing.php
here is my code
echo '
<div class="auction_box" style="height:150px">
<form name="myform" action="h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: JSJaC + Openfire: no connection with some users ok, I'm finally at my wits' end. I have a have an XMPP server (Openfire) running, and trying to connect via JavaScript using JSJaC. The strange thing is that I can establish a connection for some users, but not for all. I can reproduce the following behavior: create tw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Online calculator or accurate formula to calculate the number of milliseconds since 1970 to a given date? Can anyone give me the link to an online calculator or an accurate formula to calculate the number of milliseconds since 1970 to a given date?
i have a function which calculates this. But I want to compare the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selecting with a limit, but also a limit on the amount of times a column can have a specific value I've got the following SQL query. I want to get 5 posts from this query, but I also want to limit it so that I can, at most, get two posts per user. Only two users in this case, would mean a maximum of four posts.
SELE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript + Prevent printing out duplicate values from listbox to label I am trying to prevent printing duplicated values from a listbox to a label, this is what I did but apparently it's not right, there's not errors but nothing is printed out to my label, if I remove this line:
if (arSelected.indexOf(selectBox.op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to change the location of a minimized mdichild form? In my MDI application i have changed the size of its MDI client to avoid the scrollbars that appear when a portion of an MDI child form is moved out of the view of the client area of the MDI parent form (i made the MDI client size bigger than the size of the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set tooltip with many rows for each (dynamic) listbox item in Silverlight I would like to set in Silverlight for each item in a ListBox a tooltip with many rows.
In XAML i have a listbox and a button:
<ListBox Height="100" HorizontalAlignment="Left" Margin="24,136,0,0" Name="listBox1" VerticalAlignment="Top"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I do a context menu with logo on the left side I've looking for 4 hours how can I do a context menu with logo. I mean something which looks like daemon tools context menu.
For these who dont know how it looks like:
Is there any option to do it in simple way in XAML?
A: You will have to adjust ContextMenu's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Javascript regex that matches a decimal that is polluted with other characters I'm trying to match the first set of digits in the following examples.
some stuff (6 out of 10 as a rating)
needs to return 6
some stuff (2.3 out of 10 as a rating)
needs to return 2.3
some stuff (10 out of 10 as a rating)
need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7627145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.