text stringlengths 8 267k | meta dict |
|---|---|
Q: How to implement the queue of events? I need to implement the queue of events (=updates on the server). New events will be added to this queue when user changes the slider, presses buttons etc. Each event will contain the following properties:
*
*device id (the action will be applied to that device on the server)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Facebook publish status I am using facebook ios api and I want to publish a status for the user if he clicks on something.
The problem is that i want to do it without using the FBDialog and I didn't find anyting that do it - I've only found the method:
[[FBRequest requestWithDelegate:self] call:@"facebook.fql.status... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing variables from delegate iOS im passing an array from my app delegate to a view controller as follows :
Delegate *appDelegate = [[UIApplication sharedApplication] delegate];
self.rows = appDelegate.getCourseArray;
My question is, when do i release 'appDelegate'? i tried to release it after the variable is pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Maintaining privacy when publishing actions to Facebook using Open Graph For the new Open Graph Protocol to work we push an action by sending a request which includes the objects url to Facebook.
Facebook then sends out it's bot with a special user agent string to get the information about the object.
The informatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Protect access phone's settings with a password programmatically? Is it possible to implement an application that programmatically protects the access to a phone's "Settings" with a password ?
A: The answer for you may lie in Device Administration API for Android
Also refer an example http://developer.android.com/r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert a large JMeter summary report to a chart I have a set of large summary reports from JMeter test cases. The reports contain test results where I have a large number of threads in long-running loops. The summary reports provide me with all the statistics I need, but I would like to be able to convert th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVC3 Razor view not coping with jQuery CDN fallback script I'm looking to implement loading jQuery from the Google Content Delivery Network. The issue I'm having is that the recommended script from HTML5 Boilerplate is causing the Razor view to lose sight of it's closing curly bracket.
I've tracked it down to the la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I use getenv in daemon process under UNIX environment? I am writing a daemon process (let's say pA), which is kicked off by a another process(let's say pB), in this daemon pA, I want to use getenv to access a evn variable defined in .cshrc, but to my surprise, getenv returns NULL in pA. I write a another standal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Magento CMS Page/Static Blocks - How to display store name? I have number of Magento CMS pages and static blocks which use the variable {{store url=""}} to display the store url address in some text depending which store is being viewed.
I would like to also display the store name. Is there an equivalent which would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to walk a dropbox folder tree with node.js I am trying to read dropbox metadata through their API, and write the url paths for ALL folders, subfolders and files into an array. Dropbox basically returns me a metadata response object showing all files and folders for a certain URL, and then I have to go into ea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: php script seems to be ignoring if statements? I have AJAX running a query every 5 seconds which checks if a user has requested a session with the coach. and if there is it pops up with a dialog. the script changes the field so that it won't catch the same session request, but it doesn't seem to care if the field is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: how to add record to into array I got a problem with RecordStore when I fetch it and put it into array I got multiple results.
I mean when I have 3 records and fetch it by enumerateRecords then put it into array[][] and then fetch it again, I know that is wrong way to fetch again, but how can I add resultset of reco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio 2010 very slow Core I7 + 16gb ram + raid 0 stripping + win7 ultimate 64bit
When I compile my web project with Visual Studio 2010 ultimate 32bit, it takes long time (the total build time!!!) and usually appends when I change something into the ASPX code.
Compiling single projects is very fast, but after... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cannot match %2F in mod_rewrite I have a set of rewrite rules (in a .htaccess) something like this:
RewriteRule ^list/vendor/(.*)$ list.php?vendor=$1
RewriteRule ^list/product/(.*)$ list.php?product=$1
RewriteRule ^list/(.*)$ list.php?search=$1
(I don't think the first two are relevant to my question, though).
When... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can't reload self-made captcha on the page using JS <a href="javascript:void(0);" onclick="document.getElementById("capchaimage").src="captcha.php"><img id="captchaimage" src="http://website.org/captcha.php" border="0" width="70" height="20" alt="Captcha image"></a>
Captcha image successfully loads but it's not pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Full text search solutions for Java? There's a large set of entities of different kinds:
interface Entity {
}
interface Entity1 extends Entity {
String field1();
String field2();
}
interface Entity2 extends Entity {
String field1();
String field2();
String field3();
}
interface Entity3 extends Entity {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP Remote Sudo Script Execution I want a PHP script to cause a shell script to execute on a remote server as root. The script needs to execute sudo commands itself so it needs to be executed as root.
Any Ideas?
I tried having PHP ssh login and execute with sudo but it was too slow.
(I have Ubuntu 10.04 & PHP5 on bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strange behaviour with directories and FileTest.directory I am working on this ruby script where I have to recursively look inside all the subdirectories starting at a particular directory. But for some reason FileTest.directory? only seems to recognise a directory if it is located in the same folder as the script
d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coding Style Standards for Android I would like to know if there is some standard code styling for Android(maybe a book?) (styling XML , Java programming , file naming , etc...)
A: @inazaruk: The codesearch link for android-formatting.xml is now obsolete. I found the file at geobeagle.
Funny thing is that the file ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Gitosis on Dotcloud Is it possible to setup gitosis on dotcloud? If so, what are the steps? I tried to follow this but it wasn't very comprehensive.
Thanks!
A: You can try this recipe:
https://github.com/jpetazzo/gitosis-on-dotcloud
Sorry, it is not documented yet, but the quickstart informations in the README.rst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compare static addressing and import for extends/implements Is there any difference between using
public ClassName extends some.package.Class implements another.package.Interface {}
and
import some.package.Class;
import another.package.Interface;
public ClassName extends Class implements Interface {}
when talking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP Path to Include Files I have a site with an index.php.
The index.php has a number of include files like
<?php include_once('scripts/php/index_mainImageJoin.php');?>
I've created a new folder off the root called 'extrapages' and I'm going to have pages in there that have information relating to the site. I've a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: dismiss the keyguard in a Service? how to dismiss the keyguard in a Service?
Flag.Dismiss.keyguard cannot be use as there is no window - am I right?
A: Yes you are correct. You have to either send a call back message to an activity to get the window or apply a dummy activity. Answer to your question Here
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7544788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Covering union of intervals I am trying to implement a solution to a problem that boils down to interval covering.
by googling I know usually this is solved using a greedy approach, but my own first idea was to use breadth first search. I am starting out assuming the intervals's union is an interval and all interval... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iOS / Cocoa / Data interpretation with NSString initWithData to build a string drives me crazy I have a very simple callback called when a HTTP request has just been completed through a NSURLConnection object (connectionDidFinishLoading). This code just turns raw 7-bit encoded data read from a remote file into a NSS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debugging iphone application crashes When testing my iPhone application on the actual device after a while the application seems to crash/exit by itself. It does not crash at any particular point but instead crashes after a while of use, for example : i can use the application and then leave it idle. It will crash. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add support for OpenSSL in PHP without recompiling Is this possible? I'm on Mac OSX.
I'm using a custom install already, with the Mac OSX default*ish* apache.
A: I was able to do this by:
cd {php_dir}/ext/openssl
phpize
./configure
make && make install
Restart apache
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7544805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: google maps infowindows is always attached to the first marker i'm looping over an array to create markers and infowindows but the infowindow is always attached to the first marker... (even if you click another marker)
function initialize() {
var myOptions = {
zoom: 8,
center: new google.maps.Lat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: bbc beta panorama with jquery Just been looking at the bbc's beta homepage http://beta.bbc.co.uk/
and thought the panorama looked decent.
It'd make an interesting home page for a video site.
Has anyone seen something similar (open source) and preferably built with jQuery?
If not, any pointers on how best to achie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why this warning comes in making stand-alone .exe from my .m & .fig file ? see i have one .m file & .fig file for gui feature associated with that .m file now for making standalone .exe file for that .m file
i am using
mcc -m -mv jig322.m jig322.fig
after doing this i get warning like this
Warning: No matching b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert N random values into table I need to insert @N rows with random float values into one table and use IDs of every new inserted row for another INSERT. All this I need to do in stored procedure. For example:
CREATE PROCEDURE Proc
@N int
AS
-- START LOOP, REPEAT @N TIMES
INSERT INTO [T1]
([Value])
VAL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery - get character pressed - REGARDLESS of Keyboard I am trying to retrieve the character inserted into a textfield/input with jQuery.
I use the usual:
var character = String.fromCharCode( e.keyCode || e.which );
method, but the only problem occurs when I use a different keyboard layout which I just noticed.
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Trying to recover sites from a .htaccess redirect badware on Wordpress Forgive me if this is a noob question, but I'm honestly stumped.
My site, hosted on Wordpress, has been blacklisted because of some badware. So far, I've tried unmaskparasites.com, google webmaster tools, and sucuri sitecheck. I've narrowed dow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to specify a default value for VARIANT_BOOL? MS IDL has syntax for specifying a defaultvalue for parameters.
I tried to specify a default value for a function that accepts a VARIANT_BOOL:
[id(42)] HRESULT Foo([in, defaultvalue(VARIANT_TRUE)] VARIANT_BOOL bar);
And got the following error message:
error MIDL203... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Command line arguments in Visual C++ in VS2010 How do I access the command line argument that I set in my project.
for example if I give following input to command line "abc def ghi"
then how do I access them using argc &/or argv.
I am getting some integer values if I am accessing them via argv[i] or *argv[i]
Thanks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need help with jQuery hide/show I'm using jQuery to show and hide elements upon user interaction. The following code works fine:
<script type="text/javascript">
$(document).ready(function () {
$('.c').hide();
$('.b').click(function() {
var t = $(this);
t.parent().find('.c').show();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sizing in Android In my new application I want to have one Linear Layout width height: XXXdip and green background. Than show a scrollview be shown in the middle an at the Buttom of the viw there should be two Buttons like "Next" and "Back". The Scrollview contains many text.
In every tries the buttons wouldn't be s... | {
"language": "ja",
"url": "https://stackoverflow.com/questions/7544836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems with glew and gltools, _glewInit already defined I am trying to add shadders from opengl Superbible example to my program. The problem is, when I call any function from gltools i get
glew32.lib(glew32.dll) : error LNK2005: _glewInit already defined in gltools.lib(glew.obj)
After this i swapped glew32.lib ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to edit project settings in xcode 4.2? This sounds dumb but i want to edit my project settings and change my delevelper profile of a project which in xcode 3.2 was project>>edit active targets/ edit project settings
but cant find this on xcode 4.2 beta version :(
Does anyone know how to.
thnx alot in advance.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Avoid Maven complaints about mock objects without any @Test Maven 3.x.x complains about my mock "TestPacket" class that I use for another real test:
java.lang.Exception: No runnable methods
How can I avoid Maven complaining about this?
I did this for now (in TestPacket):
@Test
public void workaround() {
}
But ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pass a targeted method as a parameter first of all, my english is not very good so if you could be kind it would be appreciated. Thanks.
Now my problem, like I said in the title, I would like to pass a "method name" as a parameter in another method. Like a picture is worth thousand words, there is a chunk of my func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android XMLSerializer namespace exception I'm using XMLSerializer to write xml but i keep coming across an exception that doesn't explain much, can you help?
09-25 10:46:31.733: WARN/System.err(23654): java.lang.IllegalArgumentException: </{}titleid> does not match start
09-25 10:46:31.944: WARN/System.err(23654): ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run different threads on different cores?
Possible Duplicate:
how to set CPU affinity of a particular pthread?
I am writing a c++ program, using g++ compiler in Ubuntu. I have 4 threads in my program and 4 cores on my CPU. I want to be sure that each thread will be run on a different core. I am rarely fami... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Regarding asp.net routing in webform & Asterisk sign I saw people use asterisk sign at the time of routing in webform. i just do not understand the importance of Asterisk sign like below one
routes.MapPageRoute(
"View Category", // Route name
"Categories/{*CategoryName}", // Route URL
"~/Categor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Cross browser border gradient I want to get border gradient (from top: #0c93c0; to bottom: white). I wonder, is there any way to get it with css3 for both webkit and moz browsers?
A: instead of borders, I would use background gradients and padding. same look, but much easier, more supported.
a simple example:
<div... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VSTO Outlook before item changed event, or previous item status I am developing a visual studio VSTO add in and monitoring item changed events for mail, contacts, tasks and appointment items. This I have done using the following
//subsrribe to task events
taskItems = Globals.ThisAddIn.Application.Session.G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: call controller and action method and pass model values I'm calling another controller and action method here
[HttpPost]
public ActionResult Index(LoginModel loginModel)
{
if (ModelState.IsValid)
{ some lines of code . bla bla bla
return RedirectToAction("indexaction","premiumco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installing CouchDB on Android I watch this video
and I followed a lot of tutorial how to install couchDB on my android phone but many of them need to install CouchDB application which should be on Play Store. e.g. like in the link above. But at this moment android couchDB application isn't on Play Store.
In this tu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem cache with django/Wsgi apache I am working on apache with a Django project and i got some issues. When i modify a file, sometimes my modifications is not use by apache. I have to restart it to apply my modification.
How can i force to reload all file on every request?
Thank you
A: If you are running a devel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dot Net Nuke 5 calling webservice in module this is very confusing for me, cannot picture how it can be done. I have the following scenario:
I have a server A & server B, Server A hosts an application that saves in it information. Server B hosts a Dot Net Nuke website where the information should be displayed.
Now ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Efficient way of XML parsing in ElementTree(1.3.0) Python I am trying to parse a huge XML file ranging from (20MB-3GB). Files are samples coming from different Instrumentation. So, what I am doing is finding necessary element information from file and inserting them to database (Django).
Small part of my file sampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Inheritance + NestedClasses in C# We can have nested classes in C#. These nested classes can inherit the OuterClass as well. For ex:
public class OuterClass
{
// code here
public class NestedClass : OuterClass
{
// code here
}
}
is completely acceptable.
We can also achieve this without making NestedCla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Detect radio button changes based on a button id In some circumstances I have to detect radio-buttons changes. The problem is the app only have the ID of the button it is interested. For example, given that HTML piece:
<label class="required">Type</label><br/>
<span class="vertical">
<input checked="checked" id=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Maven dependencies for JSF 2 and IceFaces 2 i have a Spring JSF 2 project which is using IceFaces 2, and i made the project use JSF and IceFaces libraries from properties>project facets, and added jsf capabilities to the project, then used a user library JSF 2.1 Mojara, then added icefaces capabilities too,
what i w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Grails problem with shiro-quick-start: imports cannot be resolved (by Eclipse) On my fresh new grails project, I installed shiro
(grails install-plugin shiro)
and the quick setup grails shiro-quick-start. This generated new files as described in the shiro documentation.
However, in one of those files, controllers/(d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Facebook FQL photo_tag table not returning all appropriate photos I'm trying to run a query that returns all the latest tags that happened on my friends photos.
Here is my query:
String query = "SELECT subject, created FROM photo_tag WHERE subject IN (SELECT uid2 FROM friend WHERE uid1 = me()) ORDER BY created DESC ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does anyone have experience with Perl5i? I occasionally see Perl5i being mentioned. It looks great and make things easier. Some questions:
*
*Is this module compatible with other modules, e.g. Dancer, Mojolicious, XML::RSS, etc.?
*It it compatible with Moose, or does it have better OO features?
*It wraps the be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Rails: Model and model template interaction Using: Ruby on Rails (3.0.3)
I am building a website where one can perform different health and diet related calculations.
Each calculation holds different inputs:
Calculation 1
height, weight, waist_measurement
Calculation 2
weight, hip_measurement
Calculation 3
hip_meas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Symfony2+Twig: Using a template both for authenticated and anonymous user I'm new to symfony and twig and I have some headache with security, firewalls and templates.
What I'm trying to do is to have a "base" template that shows a topbar. I would like this top bar show a "You are not logged in" if the user is not lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert Between Latin1-encoded Data.ByteString and Data.Text Since the latin-1 (aka ISO-8859-1) character set is embedded in the Unicode character set as its lowest 256 code-points, I'd expect the conversion to be trivial, but I didn't see any latin-1 encoding conversion functions in Data.Text.Encoding which contain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Qt QGraphicsSvgItem renders too big (0.5 unit on each side) If I draw an SVG item at (0, 0) with 64x64, the actual displayed SVG item is from (-0.5, -0.5) with 65x65. I measured this by drawing the boundingbox behind the SVG item. And the SVG item is sticking out at all sides by a half unit on the QGraphicsScene.
Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XBRL and its link and xlink specification mapping from xml to C# classes I want to model XBRL (consisting of one XSD and many included XSD files and a bunch of referenced linkbases which themselves have xlink elements that point to elements within themselves of outside themselves). I want to be able to do some autom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SPHINX : How to set the matchMode on the mysql client I installed Sphinx search on debian squeeze.
Connection trough the mysql client, with :
mysql -h127.0.0.1 -P 9306 --protocol=tcp
gives me access to the searchd. I would like to change the matching mode to
SPH_MATCH_ANY
I don't have any access to the php api (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python, Twisted, Proxy and rotating the proxy server I use the below to starting the reactor for fetching web pages...
So...all pages I fetch use the proxy once the reactor starts. But...what if I want to rotate proxies? How do I do that using e.g. random.choice(proxy_list)
Thanks
site = server.Site(proxy.ReverseP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use the progress bar? In my application, onclick of menu it is taking time to load the next activity. So in between the screen is black for sometime.What should I do? Shall I add a progress bar? .
A: This is what you need: Async task
It will create a separate thread to display the loader
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7544945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: can't log in to eclipse google plugin when developing a google app engine project i suddenly can't login with my google acount.
here is the error:
Error
Sun Sep 25 18:03:11 CST 2011
Could not sign in. Check that your computer's date and time are correct; sign-in errors can occur if your computer's time is s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to loop through an array, edit the contents of an array in C#, and the loop through it again to show the edited contents? I am trying to loop through an array of products. I was wondering if it would at all be possible to change an element of the array, and then loop through it again to display it wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entity Framework 4.1 Foreign Key question I'm trudging ahead with an ecommerce database desgin in EF 4.1 Code First.
I've come to a situation where I think I'm justified, but not sure..
Consider:
class Download
{
int ID
string Mime
string Filename
string Extension
}
class DownloadBinary
{
int ID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Memory leak in javascript when using new Image() I seem to have a memory leak, caused by using the 'new Image()' in a javascript script. If I watch the used physical memory in the windows resource monitor, i get the expected increase in memory used when I load the page because it loads some quite large images using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Taking a screenshot of flash game/animation, server-side? (or client-side?) I'm just wondering, is it possible for a server-side script to take screenshot of a flash animation (no matter the time in the animation, resolution etc) located on the server?
Also acceptable would be a solution that could make use of clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php name spelling correction from mysql I have a database containing "FirstName - LastName - Company" from users
I'm looking for a spelling corrector to help me to do matching between data on a form and the database
Imagine I have "Luk - Vandbrol - Google" on my database... I want to be able to find this entry if i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a git personal server for sharing changes between machines? Is there a way to run a no frills git server just so I work on different machines at home?
The main reason for this is that my WiFi network is slow and I'd prefer to work locally and disconnected.
I assume there's something similar to the Mercurial... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Simple regex word question I have the regex:
TheComment = Regex.Replace(TheComment, "(\\@" + r + "\b)", "<span style=\"background:yellow;font-weight:bold;\">@" + ThisUser.Username + "</span>", RegexOptions.IgnoreCase);
This is an example pattern
(\\@to\b)
I want this to match @To but not @Tom. At the moment it's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sound when the app is in the Background iOS I'm trying to play a sound when my App is in the background. I use AVAudioPlayer, and it works correctly when the app is active, but in the background AVAudioPlayer doesn't play anything and I don't know how can I do.
I have thought that I could use UILocalNotification, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Image segmentations with gradient filled regions I have to work on image segmentation. The idea is to divide an image into regions which have pixels either of the similar color or the ones which can be represented by a gradient equation (linear or radial). I have found many algorithms which do the separation based o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uploading photo from server to facebook I have a facebook canvas application and I want to upload a file from my server to the user's wall.
Facebook says that a form should be created, this is what I did:
<form action="https://graph.facebook.com/me/photos?access_token=<%= @access_token %>" method="post" enctype="mu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: H2 database> How to compact / vacuum while running? Heading
In one of my projects I am using h2 database with file storage.
According to h2 db documentation
"Empty space in the database file [is] re-used automatically. When closing the database, the database is automatically compacted for up to 200 milliseconds by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Add page to pdf in php I need to add into pdf file one page after already existing first page and into this added page write text. I read somewhere, that Zend framework can do it, but I have no idea how.
Thanks in advance for answer
A: First you need to create a pdf object and assign it to a variable:
$pdf = pdf_ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Restricting arguments to certain defined constants Consider the following code
public class ColorScheme {
public static final int DARK_BLACK = 0,
WHITE = 1;
private int Scheme;
public ColorScheme() {
this.Scheme = DARK_BLACK;
}
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7544994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: FFmpeg/X264: Split video mid-GOP without reencoding entire stream I've got an H264 video (Stored in an MP4 file). Each GOP is approx 10s long. I want to trim the first couple of seconds off the video, which means I need to split the first GOP. Is there a way to do this without re-encoding the entire video?
I've got ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Wrap a span around all children I am trying to get the contents of a div and wrap a span around it and append back to the div.
From this:
<div>
<a href="#">12</a>
Testing
</div>
To this:
<div>
<span>
<a href="#">Hehhehe</a>
Testing
</span>
</div>
So I tried this:
var span = $(document.createElement('span'));
var ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to serialize circular referenced objects? Better that should be text format. The best would be json, with some standart to pointers. Binary would be also good. Remember in old times, soap has standart for this. What you suggest?
A: No problem with binary whatsoever:
[Serializable]
public class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how to obtain entire text content of a web page within a iframe using javascript I want to obtain the text contained within a web page in an iframe.
As per an existing question on SO, the javascript code to obtain the content of a web page in an iframe is given below--
var myIFrame = document.getElementById(iFrameNa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: django conditional filter OR if w:
conditions['is_discount_table'] = 'Q( is_discount_table = True )'
conditions['is_discount_banquet'] = 'Q( is_discount_banquet = True )'
pl = Place.objects.filter( **conditions ).order_by( 'name' )
SQL WHERE looks like
WHERE (
"places_place"."is_discount_banquet" = tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any reason to favor MathML syntax over TeX in MathJax? MathJax, opensource javascript library to render maths, support multiple syntaxes, including MathML and LaTeX. Are there any reason to favor the use of the MathML syntax for in-page equations vs the TeX syntax? It only looks to me that MathML is vastly more verb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Canvas draws lines too thick I want to draw lines on my canvas element at every 48px high. Here's my code (a little jquery selector included since I also use jQuery).
var $canvas = $('canvas')
, maxY = $canvas.outerHeight()
, maxX = $canvas.outerWidth()
, X = 0
, Y = 0
, ctx =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Calculating dimensions of STL (stereolithography) object from .stl files How can I get the length,width and height of 3D object stored as a .stl file?
A: STL files are dimensionless, so whatever is reading the stl must know what units the file was written in.
The format of stl files is detailed in wikipedia
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7545014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can someone explain this: 0.2 + 0.1 = 0.30000000000000004?
Duplicates:
How is floating point stored? When does it matter?
Is floating point math broken?
Why does the following occur in the Python Interpreter?
>>> 0.1+0.1+0.1-0.3
5.551115123125783e-17
>>> 0.1+0.1
0.2
>>> 0.2+0.1
0.30000000000000004
>>> 0.3-0.3
0.0
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: "Bare" git repository: how can I let Apache always "see" the latest commit? We've got a "bare" git repository on a server, for a Web portal project. Several programmers, designers, etc... perform dozens of push and pull from/to it.
Now we want to test the project on the server itself, and always test the last commit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ActiveMQ: Publish Messages in bulk, persistent, but not async? is it possible to store a large amount of messages in bulk?
I want to send them sync, persistent, but to get speed very much at one time.
I am using NMS, the .net version of the java-framework. But if you only know how to do this in java, it would even h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ActionScript 3 feather vector I've been looking at gradient masks to add a feathered/blurred effect to the edges of some shapes I'm drawing in AS3 (only with code) but I need it to work on squares/rectangles as well as circles.
Is there any kind of matrix that allows for this type of transformation? I could really u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Selecting columns from resultset into array I'm trying to get a number of columns from a PDO resultset into seperate arrays, so resulting as such:
<?php
$query = 'SELECT col1,col2 FROM tbl_imaginary';
...
$col1 = array(col1_row1, col1_row2,...);
$col2 = array(col2_row1, col2_row2,...);
?>
I know I could loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Questions about Bean Validation vs JSF validation? I have some questions about Bean Validation and JSF validation, currently I am using Bean validation:
*
*With the JSF validation, the validation works client side only, no request sent to server, and Bean validation works on server?
*If javascript is disabled ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Table CSS not working when using position I am experimenting with a fixed header table (I have seen many plugins online but I want to do it myself using PURELY CSS) at http://dev.driz.co.uk/table.html
However I have two issues:
*
*The headers doesn't stretch the width of the table anymore and is no longer in sync... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: help with perl regex rules I would need some help with a regex issue in perl. I need to match non_letter characters "nucleated" around letter characters string (of size one).
That is to say... I have a string like
CDF((E)TR)FT
and I want to match ALL the following:
C, D, F((, ((E), )T, R), )F, T.
I was trying with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Weighted randomness. How could I give more weight to rows that have just been added to the database? I'm retrieving 4 random rows from a table. However, I'd like it such that more weight is given to rows that had just been inserted into the table, without penalizing older rows much.
Is there a way to do this in PHP ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Couchdb: Access to two documents in a shows function I'm trying to create a show function which needs to access to two documents: The document in 'doc' reference and another document called 'users'
My function looks like:
function(doc,req){
var friends = doc.friends;
var listFriends = [];
for(int i = 0; i<friends.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is ajax-PHP-MySQL a good combination for a chat room app? I plan to create a small chat room for my friends at my University.
As I don't want to invest any money, I will use a free host which doesn't allow me to install an IRC server.Also I like using ajax and PHP as I already know them.
Is a self-refreshing ajax an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: File format that is simple like XML but smaller I'm creating a map editor that saves maps for something. Currently, I've been saving it in XML (because it is built into the .net framework). The problem is, XML is very bloated and there could be thousands of elements per file.
Is there any other simple to use for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Calling non-library code from an Android library Since Android introduced library projects, I've been converting my app into a library so that I can make several versions with appropriate tweaks (for example, a free and pro version using the same code base, but changing a few things).
I initially had trouble allowin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.