text stringlengths 8 267k | meta dict |
|---|---|
Q: Get current pathname using JavaScript I'm using the following JavaScript to get the pathname to show a link is selected:
var pathname = window.location.pathname;
$(document).ready(function ()
{
$('ul#ui-ajax-tabs li a').each(function()
{
if ($(this).attr('href') == pathname)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Life of a Blobstore on the development server I found this question, which appears to describe the problem I am currently having, i.e. blobstore files do not persist after a restart.
Blobstore Images Disappearing on Google App Engine Development Server
However, I believe the question is referring to the python serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access Master page variables in child page in ASP.NET Here is my master page file. I need to pass strName, id, url, starttime, etc. to my Child page. I know we can write this logic in our Child page, but, I would like to access this Master Page variable in my Child page only.
I cannot write this logic in each set/ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Write a file and check if a file exists I would like to write a .txt file to a local disk (and prompt the user to scan a document) after which the script should halt/loop until it finds a certain .pdf file on the local disc.
EDIT:
I have heard that HTML5 packs a new JavaScript API called "FILE API", and I KNOW that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why Rijndael encryption code is not working for large file? I use the following Rijndael code to do encryption without fail for many times. But why it can not encrypt an ISO file with 4.2 GB? In fact my computer has 16GB memory and it should not be a memory problem. I use Windows 7 Ultimate. The code is compiled as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Expected ')' before error in objective-c protocol declaration In WebServiceAPI.h, which I referred in the code below, i declared a protocol with a required metod -(void) apiFinished:(WebServiceAPI *)api. When compiling the code i get this error: WebServiceAPI.h:13: error: expected ')' before 'WebServiceAPI' (line 13... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript select() method What does the select() method in JavaScript do? When should we use it?
A: Note: .select() is a jQuery function.
This method is a shortcut for .bind('select', handler) in the first two variations, and .trigger('select') in the third.
The select event is sent to an element when the user mak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Display all the images in thumbnail view from a database table(SQL Server) in VB 2010 We are doing a project using VB2010 as front end SQL server 2008R2 as backend.We need the code to display all the images in thumbnail view in VB when we open a database table.
A: Create a thumbnail using Image.GetThumbnailImage Me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Screen Sizes and Densities I am considering to drop support for small screens in my app.
Recently I have stumbled upon Screen Sizes and Densities and currently (2011-10-01) it says that 3.5 percent of the active devices fall into the small/hdpi category. I wonder what device actually has a small screen with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How portable is linking executables against loadable modules? I have a project on my hand with some libraries that are compiled as loadable modules, i.e. linked with libtool's -module flag. These libraries are supposed to contain all the necessary functions in themselves or their dependencies, that is, they should y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Date picker format for Blackberry webworks? I am unable to change format in Blackberry web works application.
I used this code for date picker
<input type="date" name="from_date" id="from_date" />
Here it displays date like yyyy-mm-dd but I need dd-mm-yyyy.
A: Seeing that Blackberry supports the input type=date, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change the file upload folder in apache tomcat? Tomcat 6.29 creates a folder under temp folder in apache tomcat, and when I uploaded a file with the path req.getSession().getServletContext() + specified folder but when the application is redeployed another application folder is again created so the previously... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Objective-C :: How to use NSAutoreleasePool for NSMutableRequest - asynchronous request? In a view controller I am doing a lot of NSMutableRequest calls asynchronously. In call back method I am handling the response. These all requests are autoreleased. Here, I want to know how to use NSAutoReleasePool to release th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hadoop, Mahout real-time processing alternative I intended to use hadoop as "computation cluster" in my project. However then I read that Hadoop is not inteded for real-time systems because of overhead connected with start of a job. I'm looking for solution which could be use this way - jobs which could can be easly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to delete all files that were recently created in a directory in linux? I untarred something into a directory that already contained a lot of things. I wanted to untar into a separate directory instead. Now there are too many files to distinguish between. However the files that I have untarred have been created ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Allignmet and the duration of the Toast? I want to show the toast always in my application and want to custom alignment of the toast ?
A:
want to custom alignment of the toast ?
For changing the alignment you should look at android's official documentation of Toasts : Custom Toasts or AndroidPeople--Custom Toasts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 'Server Not Found' error when using sfDomainRoutePlugin with Symfony I am trying to create a site with subdomains, using the sfDomainRoutePlugin plugin. I am using SF version 1.4.12 on Linux, with Apache as the web server.
I am following the online instructions and have created the following routing file:
homepage:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: emacs + latex + yasnippet: Why are newlines inserted after a snippet? Everytime I insert a snippet (with yasnippet) in a .tex document, I obtain a newline after the snippet. This is quite annoying for small snippets that are typically used in text style. How can I avoid that?
I read a bit about the problem (http://... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: consume items from a scala Iterator I'm confused about behavior of method take in trait Iterator. It seems that it doesn't consume items. Here is an example:
scala> Iterator(1,2,3)
res0: Iterator[Int] = non-empty iterator
scala> res0 take 2 toArray
res1: Array[Int] = Array(1, 2)
scala> res0.next
res2: Int = 1
App... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to implement backend of api with multiple versions I'm using Django to implement a private rest-like API and I'm unsure of how to handle different versions of the API on the backend.
Meaning, if I have 2 versions of the API what does my code look like? Should I have different apps that handle different versio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does pthread_detach free up the stack allocated to the child thread, after the child thread as exited I have used pthread_detach inorder to free up the stack allocated to the child thread, but this is not working, I guess it does not free up the memory.....
I don't want to use pthread_join. I know join assures me o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RIA Services : expose services when entities are in a different project from EDMX? My Visual Studio solution has the following architecture :
*
*a "DataAccess" project, containing one EDMX with his "object context" class (but without any generated business class)
*an "Entities" project, containing the business e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Issue moving new item to newly added list until I do page refresh I am using a jquery template for dynamically creating a list (columns) which has different items (they are also added dynamically) and also created a plugin which helps moving items from one list to 2nd or 3rd i.e. using jquery ui drag & drop, but hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SimpleXML fetch tag incl. all child-elements I would like to parse an rss-file with simplexml. If I print a specific tag, direct content is selected only - no children and "sub"-tags are included. How can I access a tag incl. children-tag names and their content?
//load rss into $xml
foreach ($this->xml->channel->it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Could not open property database I am using Windows XP , i want to have a repository , so i created it using Apache Server
Inside my Apache server , why i am getting this error ??
I have used this to create my repository under httpd-dav.conf
Alias /sites "C:/Program Files/Apache Software Foundation/Apache2.2/site... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rotate image to point I have the following:
CGPoint pos //center of an image
CGPoint target //a point, somewhere in the coordinate system
float rotation //the current rotation of the image to the x-axis, clockwise, so "right" would be 90°
Now I want the image to rotate around it's centerpoint (pos) so that it looks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: hide a header of a column with binding data in asp.net would it be possible to do it like this?
<asp:TemplateField HeaderText="Export" Visible='<%# Bind("isExported") %>'>
</asp:TemplateField>
I tried it and I got this problem:
The TemplateField control with a two-way databinding to field deviceExport must have an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I rename an implemented method in Java? I have a class which is implementing an interface, and one of the methods is called onClick. Is there a way to implement the onClick that the interface wants but name it something else? Something like (and I'm making this up):
public void AnyMethodNameIWant() implements ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Jquery Dialog is throwing error I am getting this error while I am using
Microsoft JScript runtime error: Object doesn't support this property or method.
I am using Jquery Dialog.
Thanks in advance
Javascript
function showQnsLogic(hdfLogicID) {
var qnsString = document.getElementById(hdfLogicID).innerHT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: hibernate3-maven: JDBC Driver not found in child project when compiling from parent project Problem:
12:03:10,126 ERROR org.hibernate.tool.hbm2ddl.SchemaExport - schema export unsuccessful org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver
I have a project divided into modules: Pare... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get calendar events by date? I am inserting data in my device calendar by this code.
i want those events by date.
if i pass date and i want to get event name.
thanks in advance.
A: For that you need to use EventKit/EventKitUI framework.
please refer code provided by Apple : Here This sample shows how to use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is Javascript any better than before as mentioned in the O'Reilly Javascript Patterns book for closures and anonymous functions? This is a quote from the O'Reilly Javascript Patterns book:
JavaScript is also an unusual language. It doesn’t have classes, and
functions are first class objects used for many tasks. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Automatically saving doc file after 20 secs i am doing a php program which requires doc file to be saved after every 10 secs.msword should not ask the path to be saved. actually i have written a program which opens a doc file. the file should be auto saved to the exact location from where the file is opened.
A: If ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: button should fire the action until I keep the button down I have UIscrollview in which I have placed images.I use the buttons(touch down) to move the position of the images by 5pixels inside the scroll view…..Button fires the action only if I repeatedly touches the buttons ( it moves the images to 5pixels if I tou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating strings in D without allocating memory? Is there any typesafe way to create a string in D, using information only available at runtime, without allocating memory?
A simple example of what I might want to do:
void renderText(string text) { ... }
void renderScore(int score)
{
char[16] text;
int n = s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to make my home page very fast? It works and I want to make it super fast. The index page is very static, doesn't really change for days unless date updates or a map updates. So it should be possible to optimize to very fast since it doesn't change much. I recently migrated to HRD and my URI is montaoproject.app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Broadcast Receiver for ACTION_USER_PRESENT,ACTION_SCREEN_ON,ACTION_BOOT_COMPLETED I am creating a class which uses broadcast receiver. I want to receive the broadcast on unlocking of the phone. But there is some issue. Please help me out.
My Manifest.xml is :-
<receiver android:name=".MyReciever">
<intent-filter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: 10 fold cross validation In k fold we have this:
you divide the data into k subsets of
(approximately) equal size. You train the net k times, each time leaving
out one of the subsets from training, but using only the omitted subset to
compute whatever error criterion interests you. If k equals the sample
size, this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Why does edit text and the spinner UI's corner get destorted? I make an XML layout and when I run it on big screen emulator or mobile, its UI is looking good, but when I check it on a small screen the edit text corner gets distorted and the user interface is not looking good. Why?
Is this a density problem or some o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there a way to make PhpStorm's autocomplete "go deeper"? In PhpStorm, if I create an object, then I have all auto complete on that object working fine:
$object = new MyClass();
$object->getNa...
Will auto complete to
$object->getName();
So far so good, but if I get returned an object through the first method, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Apache mod_proxy_balancer dynamically stop forwarding requests to time-outing member Apache mod_proxy_balancer
I'm trying to gonfigure apache mod_proxy_balancer to act as HTTP VIP and represent 2 IIS servers behind it.
This how the VIP configured:
<Proxy balancer://appcluster>
BalancerMember http://IP-IIS1:8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Codeigniter - multiple database connections I have a problem with multiple db connections at Codeigniter. At my database.php i configured two databases.
$active_group = 'cms';
$active_record = FALSE;
$db['cms']['hostname'] = 'localhost';
$db['cms']['username'] = 'yoloo_cms';
$db['cms']['password'] = 'p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pause download in Java? I'm using this code to download a file, and I was wondering if its possible to pause the download and then resume it later, and if so how?:
URL url = new URL(URL);
URLConnection conexion = url.openConnection();
conexion.connect();
int lenghtOfFile = conexion.get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sharepoint silverlight webpart - Problems I need to show a silverlight webpart in sharepoint 2010.
This is my code, to show silverlight control
protected override void CreateChildControls()
{
Silverlight sl = new Silverlight();
sl.ID = "CustomWebPart1SL";
sl.Source = "/Silverlight/CustomWebPart.xap";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: BIRT 3.7 runtime. Customizing of PDF fonts and jdbc drivers are not possible anymore? I'm trying to upgrade BIRT to the latest runtime 3.7.
Looks like that it's impossible to customize PDF fonts! In previous versions it were done in org.eclipse.birt.report.engine.fonts*/fontsConfig*.xml files.
In 3.7 fontsConfig*.x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Too many programs spawned with Expect I am using expect module for performing a task.
This is sample of my code
foreach temp $list {
spawn -X $temp
while {1} {
expect {
eof {break}
"password {send "password\r"}
"\]" {send "exit\r"}
}
}
}
The scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modify each char of a c string I've been wracking my brain for awhile, I've gotten it all done in Google Go easily. But now I need to get something written in C to do this too.
Take a simple string and modify the code of each char in the string, then make a new string from the now encrypted string. All I want to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to append/prepend/create a text node with jQuery
Possible Duplicate:
Escaping text with jQuery append?
My HTML is somewhat like this:
<div id="selector">Hello World</div>
Now I'd like to append some text to this div. I know that I could simply use
$('#selector').append(text);
but this wouldn't escape any sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: MySQL statements -- Pattern Matching etc
display all rows where the hiredate is before april 1, 1981 and the
employee name is from A to S
This is the code that I have done and it doesn't work. :( When I tried to put AND between '%A' and '%S' it doesn't work either. :( When I deleted the '%S' it worked but it wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way to configure php to always set $_SERVER['CONTENT_LENGTH']? I'm working on carddav client. As server i use davical v. 0.9.9.6. I don't understand why i'm getting invalid content-type error when http headers contains correct value. I look into source code and found this condition:
if ( isset($_SERVER[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Very Odd situation with CrystalReport and/or Visual studio 2010 I don't know maybe .Net Framework I faced a very odd problem It seems very funny looks like some stuffs having a fun with me.
I'm using Crystal-Report Version 13.0.2000.0 and Visual Studio 2010. Number of days ago I got a error related with my Crystal-R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Assigning variable in shell script #!/bin/sh
SUCCESS=0
java -jar sbc.jar &
while [ true ];
do
echo "sleeping"
sleep 5
echo "again"
tail -1 ~/NetBeansProjects/xyz/dist/newlog.log | grep -q "[INFO ] - Stream closed"
if [ $? = 1 ]
then
echo " entered if "
java -jar sbc.jar &
else
echo " did not if "
fi
done
I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I check if the 'destructive' button was pressed (UIActionSheet - iPhone)? I'm trying to work out the line of code I need to use in order to determine if the 'destructive' button has been press in a UIActionSheet.
I've had a look around and found the delegate method...
- (void)actionSheet:(UIActionSheet *)act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mapping class to a table without a table name I have many tables in my DB with exactly the same structure: same columns names and types.
The only difference between these tables is the their names (which I can only know in runtime).
I would like to create a mapping of a class to a table but giving the name of the ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Display literal text in HTML I need to display some literal text in my HTML page (it's automatically generated by an application. I wrote in C#.)
<TR>
<TD VALIGN="center" ALIGN="center"><B>398</B></TD>
<TD VALIGN="center">Name: <B>' an image.jpg</B></TD>
<TD><IMG SRC="Images/' an imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cross-activity background music / detecting if an app is active or not I am building an android game which consists of several activities. While the app is running some background music is playing. The background music consists of several loops which are played one after another.
So my problem is how to detect when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Copy part of file in C++ I'm currently busy with a project in which I have to copy a part from a file to another file, so I made a code for that using fread and fwrite. But I came across a problem: for testing purposes I made a code which should copy a whole file, but somehow the code creates copies that are larger ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating an ASP.NET User Control With a Javascript API I'm basically trying to figure out a good/clean way to organize controls that would have a public API like this:
<script>
function buttonClicked() {
var myUserControl = SomehowGetReferenceToThisUserControl("UserControl");
myUserControl.AjaxR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create a Notification cancel dialog? I have a notification which tells the user that its downloading a file with its progress..
I want to make a dialog with some textviews displaying some info and 2 buttons which are Close and Stop (stops the download).
How can I do this?
A: you can use the AlertDialog Class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How Static methods are mocked in any Mocking Framework like JMockit,PowerMocks? I learnt that we can mock static methods using core java library with PowerMock?Jmockit.Want to understand how it is doing it internally in brief?
My Understanding:- As we define the mock class in the test case itself(Though there are d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: codeigniter mysql query to multidimensional array(nested list) Ok here is what I am struggling with.
I have drop down menu on my site which is basically a nested list. It gets its information from my database. Now I have made this work as a procedural piece of code but I am now trying to separate it out for a MVC ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Many to many query with filter I have following issue. There are two tables - groups and students and third pivot table group_student.
Query to get students from specific groups (id:1,8) is clear...
SELECT DISTINCT s.*
FROM students AS s
Inner Join group_student AS gs ON gs.student_id = s.id
Inner Join g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Wrapping C library I have a private.h, public.h and the file.c, and I need to wrap it into Cython.
How do I wrap the function Person_ptr Person_create(const char* name);?
private.h:
#ifndef __PERSON_PRIVATE_H__
#define __PERSON_PRIVATE_H__
#include "Person.h"
typedef struct Person_TAG {
char* name;
int age... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I import a class into ClassWizard in VS2010 Is there a way in VS2010 to import a class from a .h and .cpp file into ClassWizard such that I can use ClassWizard to manipulate it (e.g. add variables etc...) Quite a number of the files that I brought into the project when I moved over from VS2008 do not seem to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Play music in the background using AVAudioplayer I want to play music even if the app goes in background. I checked all stackoverflow links but none of them worked. Please help need to do it today.
I had used following code:-
NSString *soundFilePath = [[NSBundle mainBundle] pathForResource:@"Day At The Beach" ofTy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Nunit test config file being overwritten I have an Nunit test assembly called Tests. The associated configuration file is called Tests.dll.config. In VS2008 I have the Test.dll.config set "copy always". The problem is when I build the solution the Tests.dll.config file in the Debug or Release directory contains only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cast char* to std::vector Is there a fast (CPU) way to cast a char array into a std::vector<char>?
My function looks like this:
void someFunction(char* data, int size)
{
// Now here I need to make the std::vector<char>
// using the data and size.
}
A: The general rule with STL containers is that they make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I scale a View in Android? Can I take a view that has been rendered by the Android framework and rescale it to some other size?
A: You need API 11 or above to scale a view. Here is how:
float scalingFactor = 0.5f; // scale down to half the size
view.setScaleX(scalingFactor);
view.setScaleY(scalingFactor);
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Android set Image Bitmap issue I'm working on a project which communicate with web server and download some photos. I want these photos to be shown on a listview after the download,but it's throwing me a NullPointerException. Here is the code I'm using :
private ArrayList <HashMap<String, Object>> items;
priv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: catch error and return in method result I have my own wcf service class which should as result return string with "Everything Save Saccesfully" if ok save data. Otherwise I need to return in this string exception.
string SaveData(Stream stream)
{
string error = "";
try
{
//do saving data
error+="Everythi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Override li style with class in my site I created this html/css
li
{
float: left;
...
}
.myclass
{
float: right;
...
}
<ul>
<li>test 1</li>
<li class="myclass">test 2</li>
</ul>
The two list elements have the same style but the second doesn't use the class to override the left float. Why?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: libmms linking error i have downoaded the wunder radio project, i have copy the MMS project in my workspace.
if i try to use mms_connect Xcode4 give me this error:
Ld
/Users/Alex/Library/Developer/Xcode/DerivedData/test1-gevnovbiecnctxguaabsznvdybxa/Build/Products/Debug-iphonesimulator/test1.app/test1
normal i3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to sort/filter observable collection and get back observable collection not IEnumerable Can any one please guide me which is best way to sort/filter observable collection and get back observable collection not IEnumerable ?
A: Probably for the sort you can convert it to a List and then call Sort(), providing a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extracting keywords from GOLD-Parser CGT-File i have defined a grammar with many rules, that uses many keywords. imagine it like this (just with more of these rules and more keywords):
<keyword> ::= 'public' | 'protected' | 'private'
the gold-parser-system is generating a compiled grammar table (CGT) file, which is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: php preg_replace_call : extract specific values for later reinsertion For the sake of brevity...
I want to take items out of a string, put them into a separate array, replace the values extracted from the string with ID'd tokens, parse the string, then put the extracted items back in their original positions (in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass a C++ callback function to a VB.NET program? I'm trying to pass a callback function from a C++ dll to a VB.NET application.
Here is my current C++ code :
void DLL_EXPORT registerEvent( void (*callBackFunction)(string str),string str)
{
callBackFunction(str);
}
void test(string str)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why if I create a varchar(65535), I get a mediumtext? Does a mediumtext and a varchar(65535) are the same thing ?
What I mean here is do they both store the data directly in the table or do the mediumtext type is storing a pointer ?
I'm asking this because if I try to create a varchar(65535) it is automatically tra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Retrieving OpenID data of a Steam account, returning null? I'm using Light-OpenID for PHP to authenticate and retrieve data.
For my OpenID provider URL I am using http://steamcommunity.com/openid/, as documented here-
Steam OpenID Provider Steam can act as an OpenID provider. This allows
your application to auth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Analytics SDK for iOS I'm trying to integrate Google Analytics SDK with my iPhone app.
As it's described in the docs, before I began using the SDK, I've first created a free account at www.google.com/analytics and created a new website profile in that account using a fake but descriptive website URL.
For the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue in playing youtube video in iphone I am trying to play youtube video within my application. Here is the code I am using
- (void)embedYouTube:(NSString*)url frame:(CGRect)frame {
NSString* embedHTML = @"\
<html><head>\
<style type=\"text/css\">\
body {\
background-color: transparent;\
color: whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Testing in-app billing I've read quite a lot about in-app billing and testing but I still didn't find the answer to few questions:
How can I test real purchases on draft (unpublished) version of the app? The products/items need to be published => app need to be published. Is there a way to publish items without publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JDO Batch PUT from Memcache In an effort to reduce the number of datastore PUTs I am consuming I
wish to use the memcache much more frequently. The idea being to store
entities in the memcache for n minutes before writing all entities to
the datastore and clearing the cache.
I have two questions:
Is there a way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to animate TextView's weight property I have a TextView, and I want to change its size, so I use its layout_weight property. When I set it:
textView.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, 0, newWeight));
It works well. However, I want to animate the change. Can I do this (withou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Data mapper and zend framework I am implementing the Data Mapper design pattern in my Zend Framework web application, and everything goes well, I am really enjoying working with the data mapper in Zend and not applying only the Row Gateway pattern, but I am having a problem regarding my architecture. I am not sure h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python list comprehension - simple I have a list and I want to use a certain function only on those entries of it that fulfills a certain condition - leaving the other entries unmodified.
Example: Say I want to multiply by 2 only those elements who are even.
a_list = [1, 2, 3, 4, 5]
Wanted result:
a_list => [1, 4,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to make boost.build use a specific compiler installation? I am trying to build boost 1.45 using a local GCC compiler installation. I can't make it use a different compiler command that the default "g++". Here what happened so far:
In boost_1_45_0 source directory:
./bootstrap.sh --with-toolset=gcc --prefix=$INST... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Search button - Twitter Search API I'm trying to create a button that takes a subject you've typed in and pulls the relevant tweets using the Twitter Search API.
I've seen something similar with the jTwitter plugin, but I'm not sure on how to do it myself, and can't seem to find any documentation on it.
Here's the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't install Ruby or Rails using RVM : ERROR: There has been an error while running configure. Halting the installation Here is what I ran:
rvm install ruby-1.9.2-p290
I have xCode 4 installed. And I am running OSX 10.6.7
Here is the error I get
ruby-1.9.2-p290 - #configuring
ERROR: Error running ' ./configure -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wireshark TCP Dup ACK - strange I have run Wireshark on the server's computer and I have such a strange transmission:
Client (X: src port 65509) connects to my server (Y: dst port 9999).
1) There is normal TCP handshake
15:47:41.921228 XXX.XXX.XXX.XXX 65509 YYY.YYY.YYY.YYY 9999 65509 > distinct [SYN] Seq=0 Win... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Feed Dialog not working on some browsers Hi guys I have a weird problem with de feed dialog.
It works pefect on Firefox, but when I try to use it on IE or Chrome I got this error "An error occurred. Please try later"
I have tried to fix it but I can't. Can you help me please.
This is the code i'm using to call the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wordpress. List pages except certain pages I am using this code to display the pages in a menu:
wp_list_pages('title_li=&');
There are a few pages that I would like to exclude from the list.
How would I do this please?
Note: I am using friendly URL's so the id's are actually names not numbers.
A: You can write
wp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: rounded border around img doesnt show
as u can see the border is missing from the corners (red one). if i make it 4+ px thick then its ok but i need it 1px thin. why it is a problem? ist this property behaves by design like this?
the html
<div class="win" >
<img class="rounded" src='red.jpg' />
</div>
and the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Breakout game ( When im out, i want the ball again to hit the remaining bricks) Im new to java programming. Im learning to develop a game similar to the one called breakout. Here's how it works
you have a set of bricks to hit using a ball and the paddle
Im caught in a situation here,
Whenever i miss the ball, itl ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php email and smtp i've got a php function which sends emails fine but I want it to use the smtp server i have specified in the ini.set function.
if i delete these 3 lines of code the email still sends fine.
the reason i want to use the smtp server is because sometimes this does not work to certain mail hosts.
conn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding "options" menu in Google Chrome extension How do I add the options menu on right-clicking the icon of a Google Chrome extension?
I have made a file named options.html; now how do i link it up so it works? I thought it would be automatic.
A: Google Chrome populates the right-click menu automatically, so to ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can i change UI of my page after async call? I am having async call on my page,
This takes about 1 minute.
I need to change UI after call completes.
Sample code is give below.
protected void Unnamed1_Click(object sender, EventArgs e)
{
apicasystemWPMCheckStatsService.CheckStatsServiceClient obj = new api... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Checking how much memory is readable in other process Is there a way to know how much memory I can read from another process using ReadProcessMemory?
If I try to read too much memory from a specific address, it will return error code 299, and will read 0 bytes.
I'm guessing it's because I'm trying to read beyond the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP - parsing txt file i'd like to parse this file:
Case Given Predicted
No Class Class
1 ? 0 [0.80]
2 ? 0 [0.80]
3 ? 0 [0.80]
4 ? 1 [0.75]
5 ? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Should I just use a single table? I have an entity Order.
The order has information on date, client, associate who handled order etc.
Now the order also needs to store a state i.e. differentiate between won orders and lost orders.
The idea is that a customer may submit an order to the company, but could eventu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get context in android Service class I am getting the following error when i try to read a XML file from the memory and into an object. Seems like problem with getting the Context. Can anyone tell me whats wrong with my code?
Code:
public class WifiScanning extends Service {
private static final String TAG =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7619917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.