text stringlengths 8 267k | meta dict |
|---|---|
Q: PHP MySQL Dropdown box I have a dropdown box which is populated through MySQL:
echo "<form>";<br>
echo "Please Select Your Event<br />";
echo "<select>";
$results = mysql_query($query)
or die(mysql_error());
while ($row = mysql_fetch_array($results)) {
echo "<option>";
echo $row['eventname'];
ech... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble with while loop and storing data I need to get a while loop to read 6 int values at each repetition and store it in an int local variable. I attempted something like the code below which throws an error. I also tried to change the array size however it still doesnt seem to work.
String fileName = "Data.txt";... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mysql data warehouse SQL Query Help please I have the following database
db: exam_2011
tables: score_01, score_02, score_03.....score_12
db: exam_2012
tables: score_01, score_02, score_03.....score_12
the database is the year and the tables are the month;
How can I get the data between 1 July 2011 to 2 February 20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Daily Automatic post in facebook users wall I'm trying to do a Script to post a message to all application users wall every day. It works for more or less 10 users but then it suddenly stops. I ask only for the publish_to_stream permission but it seems to work properly. I have read some post saying to add a sleep be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SelectedValue property for a Autocomplete User Control in GridView First off, forgive my English. I created one user control with Textbox and AutoCompleteExtender controls, and it's working fine. Now, I wanted to reflect my textbox similar to a dropdownlist. When i kept the user control in a GridView and accessed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I make my ScrollViewer pass Click events through to the control behind it? I have two grids overlaying one another, and the top layer is in a ScrollViewer. The problem is the bottom layer has click events, and they don't get triggered with the ScrollViewer there.
Is there a way to have the ScrollViewer pass ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Move left and right in UIScrollView I have a UIScrollView which scrolls only horizontally. I have a situation where I have views filled by array in UIScrollView. There are three views which altogether make one single component in UIScrollView (there are many such components). Component contains :
*
*UILabel
*U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: update foreignkey items from django shell Following is the models.py:
class UserProfile(models.Model):
user = models.OneToOneField(User)
belongs_to_user_category = models.ForeignKey(UserCustomCategory, null=True, blank=True)
class UserHistory(models.Model):
date_time = models.DateTimeField()
user = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find and execute a method on another java application currently running on computer using java? For example, lets say I have hello.java (arbitrarily), if it was running and user changed some accessible (not private) variable in that application by providing input while running, this application would have the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Associating high res images with Open Graph objects I'm building a testing app for the new FB Timeline and I've noticed that when an application posts activity to a user's timeline, and that user then 'features' the activity, the activity is displayed nice and widescreen but the image used is a scaled up version of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Post To Facebook message about my app i am already got the fbconnect well and can show the dialog to post on my wall.
but now i want a post to be shown when the user logs in.
post a message that will be ready in NSString Format before.
how can i do it without the dialog box?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7554981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create and use a .NET metadata-only 'Reference Assembly'? Since version 3.0, .NET installs a bunch of different 'reference assemblies' under C:\Program Files\Reference Assemblies\Microsoft...., to support different profiles (say .NET 3.5 client profile, Silverlight profile). Each of these is a proper .NET a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How to add subtext in TextView? I want to design a Layout in which I want subtext right below main text in Android.
Pictorially something like below.
____________________________________________
|<EMP NAME > | Location | ImageView |
|<designation> | |
|__________________________... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php cache xml file for 1 hour I am trying to work out how to download an xml file to my server and keep it for 1 hour and then download it again, to cache it to speed my site up, but not having to much joy.
so far I just download it each time:
$data = file_get_contents('http://www.file.com/file.xml');
$fp = fopen('... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sharepoint 2010 deployment problem I have a VS2010 solution with two projects, MyProject.Silverlight and MyProject.Sharepoint. I want to automatically deploy the .xap silverlight ouput into the VirtualDirectories\80\wpresources folder.
The sharepoint project has a single module which references the silverlight outpu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting SQL Server database to local C# database I have created program that uses SQL Server database to store data. After a while (and lots of stored data) I have realized I don't need database on the server, local database running without server could do the job.
Now I need some advice how to export, convert or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Including a js or css file in velocity template I tried to add a js file or css file as i mentioned below in the .vm file
<script src='/templates/jquery-1.6.2.js>
it didn't work.
But when i tried adding as given below it worked
<script type="text/javascript">
#include( "jquery-1.6.2.js" )
</script>
But the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Find all ContextMenuStrips defined on a Windows Form (not necessarily attached at runtime) In my winforms project, some of the forms have a set of ContextMenuStrips defined on them (through the visual studio designer).
Some of these contextmenustrips have been attached to controls, but others have not.
Now my proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swipe to delete is not working with custom cell I am using custom cell and adding tableview programmetically. I am trying to implement swipe functinality in my application. The tableview datasource method are not called when I try to swipe.
tableview = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 460) st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHPUnit best practice for fixation of value returned by protected method? consider the following code as PHP-style pseudo code to get my point across.
class C extends PHPUnit_Framework_TestCase
{
public function m1()
{
$v = $this->m2();
if($v == "x")
{
throw new Exception();
}
}
prote... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Moving cursor with t and f, using word as parameter, vim Is it possible in vim to move forward with t and f (or in the other way with T and F), but using words as a parameter ?
A: What about /word?
It can be combined with operators just like anything else:
the lazy cow jumped over the high moon
cursor at start, d/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to determine if a function with a given name exist in Javascript / jQuery? Given a function name as a string, how could I determine if such function exist (globally), and if yes, call to this function ?
I tried to do:
function foo() {
alert("foo called");
}
var func_name = "foo";
if (typeof window[func_nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fastest way to sort an array by timestamp how can i sort this array by timestamp and what is the fastest way (array has many many entries)?
my array
myList = new Array();
myList[0] = {};
myList[0]['title'] = 'I am really new';
myList[0]['timestamp'] = 1317039046;
myList[0]['date'] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: TFS 2010 API - Get work items from merge I need to send an email on completion of a build in TFS 2010 which details the work items associated with check-ins that have been compiled as part of this build. This works no problem via use of the associatedChangesets variable available in the build workflow.
However, in a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Mechanize get a file instead of a page object i try to scrap a web page. I use Nokogiri/ Mechanize. so if i make
page = agent.get(url)
page.class
=> Mechanize::File
, sometimes i get a page object sometimes a file object. but what i need is, everytime a page object. i tried to add a pluggable_parser for plain/tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery search if found element child Hi my html looks like this:
<ul class="first">
<li>
<div class="tg-hey">hey</div>
<div class="tg-hi">hi</div>
<div class="tg-hoi">hoi</div>
</li>
</ul>
<ul class="second">
<li>
<div class="tg-hey">hey</div>
<div class="tg-hi">hi</div>
<div class="tg-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Infobox in WPF Bing Maps I've recently started doing some stuff in WPF and I came up with an idea to integrate maps into my application. I tried some stuff with Google Maps, but the capabilities aren't that great, so after a while I gave up on Google Maps in WPF.
A little while later I bumped into Bing Maps. This l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why numberOfSectionsInTableView is called twice in UITableViewController? Is there any other reason (than calling "reloadData") why numberOfSectionsInTableView is called twice? I did debugging and found, that it's get called twice during initial startup when no custom reloadData statements are called.
I have create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to convert a string to tuple I like to convert in a Python script the following string:
mystring='(5,650),(235,650),(465,650),(695,650)'
to a list of tuples
mytuple=[(5,650),(235,650),(465,650),(695,650)]
such that
print mytuple[0] yields:
(5,650)
A: I'd use ast.literal_eval:
In [7]: ast.literal_eval('(5,650... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: HttpWebRequest an Unicode characters I am using this code:
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
string result = null;
using (HttpWebResponse resp = (HttpWebResponse)req.GetResponse())
{
StreamReader reader = new StreamReader(resp.GetResponseStream());
result = reader.ReadToEnd();
rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSF 2 View Expired Weirdest Bug (Update - Occurs when saving state to server only) The bug is this -
I have several forms in my JSF application.
If I activate AJAX calls outside a specific form for 20 clicks or more, I get a "No Saved View State Could be found for the view identifier" exception.
UPDATE 1 This only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Move from a single continuous HTML page to "separate pages" using CSS I have a (somewhat long) single page website that uses some CSS (e.g. each content item is a div) I would like to move this to a "set of separate pages" which are navigable by means of a menu.
so instead of
<head>...</head>
<body>
<div>stuff</d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the advantages of FastBitmapDrawable compared to Bitmap? package com.android.launcher;
import android.graphics.drawable.Drawable;
import android.graphics.PixelFormat;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
class FastBitmapDrawable extends Drawa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Locale-specific lookup table I'm using a lookup table for optimizing an algorithm that works on single characters. Currently I'm adding a..z, A..Z, 0..9 to the lookup table. This works fine in european countries, but in asian countries it doesn't make much sense.
My idea was that I could perhaps use the characters i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the different between ad-hoc distribute and share from archive I want to send my application to tester, as far as I know, I can use ad-hoc distribute and I can share app from archive.
What's the different between ad-hoc distribute and share from archive???
share app from archive is means that
A: In the arc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML5 Saving Image from a Canvas in Javascript (Android) Im trying to make a HTML5 signature capture in Javascript.
It works already but i got a problem running it on Android.
The function canvas.toDataURL(); does not work on Androids standard browser.
Does someone know an alternative for saving a Canvas to an imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What convention should I use for instance variables? Is there any instance variable convention used in Ruby code? Namely, I noticed that, in the examples section, instance variable are initialized using the '@' and then the code uses a variable name without the '@':
class BookInStock
attr_reader: isbn
attr_acces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regrading simulation of bank-teller
we have a system, such as a bank, where customers arrive and wait on a
line until one of k tellers is available.Customer arrival is governed
by a probability distribution function, as is the service time (the
amount of time to be served once a teller is available). We are
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android application should expire after 1 month of its release My android application should work only for 1 month after its release. What to do for that?
A: Please see this question, it has a good answer.
I will give you my experience with trials. At first I tried just using the date on the phone, but then realize... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change TextBlock foreground color based on the background I'm looking for a simple way to change the foreground color of a TextBlock based on the color of what is behind it, so that it is more readable. Since an image is more explicit than words, here's what I want:
I assume it could be done with a custom shader ef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Accessing Form1 Properties From Thread I have an exceptionhandler function that basically just writes a line to a textbox on Form1. This works fine when being run normally but the second I use a thread to start a process it cannot access the property. No exception is thrown but no text is written to the textbox:
Pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio Extensibility Package not looking at correct project I have created a new VS 2010 extensibility package. So far, all I want to do is have the user press a button and fill a listview with the entire contents of the solution. I have the following code:
EnvDTE80.DTE2 dte = (EnvDTE80.DTE2)System.Runtime.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Trying to link SDL in MinGW's G++ is failing miserably.. :/ Late last night I got bored.. so I began writing a small 'Noughts and Crosses' type game in C++ and SDL. I wrote a fair majority of the basic part of the game, but when I compiled it to check for errors I got the error message: Undefined reference to WinMai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create one php variable from several Basic question but I've searched and can't quite get this nailed - how can I create 1 variable from several others? I then want to get that into an array.
Something like this (obviously the syntax is wrong!):
$name;
$address;
$post_code;
$full_address = $name, $address, $post_co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iOs multi page browser (safari) like view I want to open multiple pages in my app just like iPhone( safari browser). Have two questions:
*
*What is the best way to hold the views here, One view controller with an array of views to switch from ?
*how to show safari like selection of views,where we can slide throu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Native Android/iOS development vs Marmalade SDK Our company is on the verge of picking between native Android/iPhone development and some cross-platform solution, specifically Marmalade SDK (former Airplay SDK).
We are a computer vision company, meaning we need low level access to the camera devices. Also, our appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Handle key using javascript onkeydown I have this code
function verifyKey(e)
{
var keycode;
if (window.event)
keycode = window.event.keyCode;
else if (e)
keycode = e.which;
regex=/[1-9]/;
if(regex.test(keycode))
return true;
else
void(0);
}
in the html I adde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Many-to-many messaging on local machine without broker I'm looking for a mechanism to use to create a simple many-to-many messaging system to allow Windows applications to communicate on a single machine but across sessions and desktops.
I have the following hard requirements:
*
*Must work across all Windows sess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Operator new with nothrow option still throws exception There is such code:
#include <iostream>
int main(){
for(;;){
int* ptr = new (std::nothrow) int;
if(ptr == 0){
std::cout << 0 << std::endl;
break;
}
}
std::cin.get();
return 0;
}
However, this pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: C# application works on Win 7 But not on XP I have built an application in C# and also built a setup for this application. The application on setup works on all Windows 7 machines but doesnt seem to work on any XP machine.
I shall briefly describe what my application does.
The application plays a swf file on startup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting the status code message of a HTTP ResponseCode thrown by an @ResponseCode annotate Exception I am currently trying to set the message of a HTTP Status Code thrown by an @ResponseCode annotated Exception.
I have defined the exception:
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public final class BadReque... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSLog an object's memory address in overridden description method I am overriding an object's description method. I need to know how to print the object's memory address to replace {???} in the code below:
-(NSString *) description {
return [NSString stringWithFormat:@"<SomeClass: %@>\nparmeterOne: %@\nparameter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "120"
} |
Q: How to place div1 below div2 and keep div1 transparent background? <div id="header"> Header content </div>
<div id="content"> Content </div>
#header {
background-image: url("/Content/Images/bg.png");
background-repeat: repeat-x;
float: left;
height: 45px;
margin: 0;
width: 960px;
z-index... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I add space between nodes in Forms.TreeView? I want my System.Windows.Forms.TreeView to have spaces between all root nodes.
For example, if they look like this:
A
B
C
D
E
F
G
H
I want them spaced apart like this:
A
B
C
D
E
F
G
H
Thanks!
A: You can use the ItemHeight property which sets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Emacs how to operate (i.e. search) only in code regions? I'd like to isearch/search-replace/occur only in code (that is not in comments or strings).
This must be a common problem, so what packages do this already?
If no existing packages do this, I'm thinking a minor-mode where strings and comments are hidden bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Show pagination links for product list on a Magento CMS page I created a CMS Page via the Magento Admin interface, and i put the following code in there:
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="3" template="catalog/product/list.phtml"}}
This shows ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Do these MySQL SELECT queries represent different inner joins?
Possible Duplicate:
which query is better and efficient - mysql
What's the difference, if any, between these two (MySQL) SELECT queries?
SELECT name, salary
FROM employee, info
WHERE employee.id = info.id;
SELECT e.name AS name, i.salary AS salary
FR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Migrating from MySQL to MariaDB I am migrating my database to MySQL to MariaDB. I have binary storage engine in MySQL and MariaDB does not support it.
How can I convert this to make sure my tables will works? Thank You
A: If this is a binary engine that works with MySQL and you have the source for it, then you sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: HTML TD Clickable I have a menu you can see on the top right hand side - www.balibar.co
HTML:
<div id="joinHeader" class="shadow">
<table id="indexNavigation"><tr>
<td><a id="navSearch">Search</a></td>
<td><a id="navLanguages">Languages</a></td>
<td id=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL Server concurrency I asked two questions at once in my last thread, and the first has been answered. I decided to mark the original thread as answered and repost the second question here. Link to original thread if anyone wants it:
Handling SQL Server concurrency issues
Suppose I have a table with a field which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Edge-Side-Includes: How do esi:inline tags work I have been looking at the ESI (Edge-Side-Includes) specs, but I cannot quite figure out how esi:inline elements work. Can anyone explain that?
A: Finally, I figured it out. You send a response with an <esi:include> and in the reply to that one you include <esi:inline... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In flex, how to declare a control to take all available width In Flex 4.0, I have a project with a videodisplay, and below it some controls that I've created (play/pause button, HSlider for showing progress, some volume controls...)
The problem arises when the flash is displayed in a window that is too small to fit ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to retrieve all tools used in shell script I've got bunch of shell scripts that used some command and other tools.
So is there a way I can list all programs that the shell scripts are using ?
Kind of way to retrieve dependencies from the source code.
A: One way you can do it is at run time. You can run bash sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get a string of union set from a vector string? I have a vector string filled with some file extensions as follows:
vector<string> vExt;
vExt.push_back("*.JPG;*.TGA;*.TIF");
vExt.push_back("*.PNG;*.RAW");
vExt.push_back("*.BMP;*.HDF");
vExt.push_back("*.GIF");
vExt.push_back("*.JPG");
vExt.push_back("*.BMP");... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Indeterminate progress bar in HTML+CSS I would like to create an indeterminate HTML+CSS progress bar so it looks like the one on Vista:
(source: microsoft.com)
I would like to:
*
*horizontally adjust it to progress bar width (minimum and maximum width may be defined)
*don't use Javascript but rather just animate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How would one approach creating a morphable 3D model? A Morphable Model for the Synthesis of 3D Faces
The above video is over 12 years old. How was the software done?
I need something way simpler but basically the same: a morphable model (thorax) that can be altered after being pre-morphed using a picture.
Any link... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory I am using pdfbox in java to convert pdf to images. But when I compile I got the message
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory.
Here is the code I am follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: String to double I hope you can help me out with this 'small' problem. I want to convert a string to a double/float.
NSString *stringValue = @"1235";
priceLabel.text = [NSString stringWithFormat:@"%d",[stringValue doubleValue]/(double)100.00];
I was hoping this to set the priceLabel to 12,35 but I get some weird lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to update a field of a table with some percentage of its value in SQL? Let suppose I have a table Employee, which have three field i.e EID , Salary, Dept
What I want to do is to increase the salary of every employee of Department 'Accounts' by 5%.
How this could be achieved in SQL Sever Query?
Kindly help me out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Extending Visual Studio 2010 - Replace text in editor with keyboard shortcut I want to write an extension for the Visual Studio 2010 editor, that replaces/edits the selected text. I've figured out how to do this the "old way" by selecting a "Other Project Types - Extensibility - Add In", but as far as I know, this i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: temporary object creation in copy constructor I am reading about copy constructor in C++
It was mentioned that an object is passed usuing call by value and return by values constructs a temporary objects that are never seen by the user. My understanding is that when we call by val for example
myclass b;
void myfunc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Highcharts.js: how can stacked area graph animations be smooth? I'm trying to make a realtime-updating stacked area graph in Highcharts.js. The problem is that the "area" of the graph disappears during .addPoint() animation.
I'm trying to achieve this effect: http://jsfiddle.net/DgKKX/5/
...But when I try it for are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: In Spring MVC validation, Is it possible to show only one error message per field at a time? Example,
I have
@NotEmpty //tells you 'may not be empty' if the field is empty
@Length(min = 2, max = 35) //tells you 'length must be between 2 and 35' if the field is less than 2 or greater than 35
private String firstName;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to correctly return callbacks from C++ engine to obj-c program? First the situation:
There is C++ written engine implemented in Objective C program. iPhone xcode to be precise. It uses OpenGL to draw everything. It has "renderFrame" method that is called every frame (approximately 50 times per second). User has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting a lits of all child controls of a control, by type im trying to make a method that creates a List with the name of all the child controls of a DetalsView that are of type string.
The closest i got was:
foreach (Control c in dv.Controls)
{
if (c is Label)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to retrieve data from web sql database in phonegap app I am working on a phonegap app on iOS that needs to store some data. I am using the storage API given in phonegap docs and I believe the data is being inserted. But when I am trying to retrieve the data using SELECT statement, I am not getting any output ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C#, Component class In my current project I have been provided with a solution that contains 3 simple classes and 1 component class. There is some code in component class that i need to access in one of my simple class. I am trying to create an instance of component class but there is error that Component class does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FB logon appearing behind Acitivity screen I am trying to logon to FB from within an activity.
For some reason the FB logon screen appears behind the activity screen.
The activity theme is defined as "android:theme="@android:style/Theme.Dialog" because I want it to look like a dialog.
This is what I am getting:
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java Webapp and KeyStore I'm designing a small tool (web interface and web services), for signing some blob's of data with a private RSA key. The application will have more than one private key (ie. for different types of blob's), and in the future we might deprecate some of the keys (and add new ones).
The question... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Migrate SSE2 to Arm NEON intrinsincs I have the following code in SSE2 intrinsincs. It processes input from a Kinect.
__m128i md = _mm_setr_epi16((r0<<3) | (r1>>5), ((r1<<6) | (r2>>2) ), ((r2<<9) | (r3<<1) | (r4>>7) ), ((r4<<4) | (r5>>4) ), ((r5<<7) | (r6>>1) ),((r6<<10) | (r7<<2) | (r8>>6) ), ((r8<<5) | (r9>>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Encrypt data between C#, ANDROID and IPHONE I'm developing a application to Windows(C#), Iphone, Android and Iphone which will connect to a SOAP WebService, that store information on a Database.
I'm looking for a way to encrypt/decrypt the information between those platforms. Is there any cross platforms library?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: App with WRITE_APN_SETTINGS permission is not available to Galaxy Tab 10.1 GT-P7500 on Android Market I have found that Android application with WRITE_APN_SETTINGS permission is not available to Samsung Galaxy Tab 10.1 GT-P7500 on Android Market. I can see also from developer console that app is not available to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Boost named_mutex and remove() command I have a class which can be created by multiple threads. But at one function the code needs to be protected, so I decided to use the boost interprocess mutex. Every class creates or opens the same Mutex in it's constructor:
MyClass::MyClass()
{
boost::interprocess::named... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Asp.net http tunelling Application Is there any open source http tunneling software written in asp.net ? I know i can simply get http response and display it in an iframe, but this is not the result want. The links should be replaced, the styles of the page content should be set respectively. This needs lots of pars... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c++ even more generalized operator templating So I just learned (thanks guys) about decltype. I now can write really nice vector templates that actually outperform valarrays(!):
template <typename T, typename U>
vector<decltype(T()*U())> operator*(const vector<T>& A, const vector<U>& B){
vector<decltype(T()*U())> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ways to model child view model interaction with the parent view model? Consider some sort of Personal Information Management presentation with a PimDetailVm that takes a Person object as it's Model. The presentation will manage various aspects about a person (name, contact points, addresses, etc), which together wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Integrating google+ api in iphone project I am developing an application in which I have to give support for google + login also.i follow this link to download the latest version of google +(gdata)api and I integrated it in my project.When I run it it was showing 16 errors.I added json files.Now it is showing 2 erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are you allowed to retrieve sequence inside a trigger I want to be able to get teh sequence value and use the same value on several operations in a trigger to do an audit operation for a table. So when a table is updated, I want to get all the column that were updated. But I want to have them grouped as one when I r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to redirect hostname to ec2 instance? I have this domain 'suaparte.org' and I have the website running in a EC2 here http://50.19.242.172:8080/SuaParte/ I would like to redirect 'suaparte.org' to http://50.19.242.172:8080/SuaParte/.
Amazon provied a public dns to my elastic ip : ec2-50-19-242-172.compute-1.amazo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LINQ to SQL relationship doesn't update collections I'm having one issue with LINQ to SQL for Windows Phone (SQL Server CE).
I'm developing an personal finance app, and then I have the Account class and the Transaction class. Each Transaction class have a reference to the account it belongs to, so the Account class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Lines not visible on a KML file I have a set of points that are joined by using kml.linestring . But, I want to colour code those lines based on the speeds at those lines ( which I have available)> The problem is that my kml file, when rendered on google maps, doesn't render the lines at all :(
If I do the sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to use google place api for my php application I'm trying to create a web page. When user starts typing in a textbox, an autocomplete city with state name list appears in suggested dropdown box like in google map.
I've got the api for google place autocomplete. But I am unable to implement it.
Can any one sugges... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Smartcard authentication for .NET I have a smartcard reader and a smartcard. I have installed drivers and it works as expected. I can use this card as windows logon or for remote desktop logon.
I'm building my app which should work only when the card is inserted and I need to call web services from my app which req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Binding FontSize of TextBlock in Validation.ErrorTemplate I declared a simple Validation.ErrorTemplate for TextBox as the following.
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property="Validation.ErrorTemplate">
<Setter.Value>
<ControlTemplate>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WatiN firing KeyDown event for the wrong keyCode If you look at the code in WatiN.Core.Element.cs you see the following:
private static NameValueCollection GetKeyCodeEventProperty(char character)
{
return new NameValueCollection
{
{"keyCode", ((int) character).ToString()},
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF Service is slow after few iterations I am new to WCF Services. I have created a wsHTTPBinding WCF service.
While I am using the WCF Service in my Client application(application contains text box and submit button) it is very slow after few iterations (after six or seventh iteration).
I checked the web.config fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I access PropertyChanged event from a static property? I have static Property a like this :
public static int AverageDiarrheaB
{
get { return averageDiarrheaB; }
set
{
averageDiarrheaB = value;
OnPropertyChanged("AverageDiarrheaB");
}
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why background image for body is not going to bottom in this jsfiddle example See this jsfiddle example http://jsfiddle.net/z7JBr/4/
this is css
body {background:url(http://digitaldaily.allthingsd.com/files/2007/06/iphone_34.jpg) no-repeat center bottom red}
A: You will need to give your body some height, since it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: flex not importing SQL based connections? I'm trying to include a database un flex4 (flashbuilder) project, i don't see data and SQL packages in the import? What might be the reason? Should i add external library?
import flash.data.SQLConnection;
import flash.data.SQLStatement;
import flash.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NSNumber comparison with < (less) operator instead of compare some days ago I've read a post written by another user regarding comparisons between NSNumber objects using the < (less) operator.. He was getting wrong results and people told him that it was comparing the addresses of the NSNumber objects instead of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.