text stringlengths 8 267k | meta dict |
|---|---|
Q: Qt program with Shell I want to write a testing program. It will open a special *.tests file and test direct program with tests from the file.
I need to:
*
*Run some program. e.g ./main -testing 45 563 67
*Listen to result.
How I can to do it? I want to run program main with some tests and listen to its result... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cygwin displays error messages in Hebrew and garbled I have been using Cygwin to build my Android library using the NDK's ndk-build script and Cygwin's make tool. It started giving me errors with a bunch of Latin non-English characters. When copying the text to Google, it was pasted as Hebrew (which I can read). Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there is any way to increase the java heap size in nokia c2 mobiles? I'm developing a mobile app in J2ME. I'm facing memory issues. I'm using Nokia c2 mobile.Please tell me Is there is any way to increase the java heap size in Nokia c2 mobiles?
Thanks & Regards,
A: As far as I know there is no way to extend VM m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Bit depth issues on bitmaps and screens (white is not white) I have a transparent PNG image representing a bluetooth icon with a blue glow, exported from photoshop:
On a HTC Desire, a simple imageview is created, and the PNG is used as a bitmap.
If the background arround the imageview is white, there are difference... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Attempted to read or write protected memory when accessing dll I try to access zip32.dll version 3.0 when my code got this error :
System.AccessViolationException: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.
at projectName.clsName.ZpArchive(ZCL& zcl, ZPOPT&... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: emacs:how can I look for a function with source code?
Possible Duplicate:
Emacs: how to jump to function definition in .el file?
with C-h f emacs can tell the function document,How can it be function with source code?
A: When C-h f shows the function documentation then the first line of the help is "... function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Solution for graphing application events metrics in real time We have an application that parses tweets and we want to see the activity in real time. We have tried several solution without success. Our main problems is that the graphing solution (example:graphite), needs a continious flow of metrics. When the db agg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Auto generate class properties by binding to database lookup table I'm not sure if this is feasible or not but is there a way in C# that will allow me to generate static members or enumrator of all the lookup values in a database table?
For example, if I have a table for countries with 2 columns: code, countryname. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: linking background image I have an css background-image that needs to be linked to the site index. However I cannot seem to be able to link it. I have tried using:
#header-bg {
background-image: url("./styles/duffcraft/theme/images/bg_header.png");
}
Then using:
<a href="./" id="header-bg"></a>
But it didn't w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is my footer div wrapping everything? Please check this page: http://www.playtrickz.com/basic/basic.html with Firebug. Please tell me why the #pagefooter is wrapping everything. Is it bug?
A: You need to add a clear property to your footer :
#pagefooter {
clear: both;
}
A: You need to add a clearing div ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create a web page as 2 parts I want to develop a registration form with 2 panels. One panel is personal information and another is address details. In these panels the user fills in all details of personal information and after completion of this, the user clicks on Add Address Details. If the user clicks on that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: excel vba - efficiently loop 2d array I'm hopelessly trying to find a better way of filling a range contents. This way produces the correct results but is very slow. Can anyone point me in the correct direction in terms of how to fill a 2d array or otherwise to speed up the algorithm? I would love a code snippet som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: looping through url I want to do a loop, normally it is done with while do for etc but when the process is big I came up with a solution to refresh the page by echoing a javascript to refresh the page for the next loop.
for example:
The page is http://localhost/index.php --> this preforms the first iteration with $i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: right way to specify the src for an image in MVC3 I have the following code:
<img src="images/img2.jpg" alt="" title="" />
Is this correct for Layout.cshtml and partial views?
Should I instead specify the source using something like @URl?
A: This will probably gonna break. The below one is the right way of doing i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: my json response keys contains "$" and it gives me undefined value i am receiving json response
when i alert the data i see those values but when i alert data.$tracking it gives me undefined i also tried data.tracking but no hope
function GetVideos(URI, PageSize) {
alert("in GetVideos: " + URI + PageSize);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to launch the Android Download Manager How do I start default phone's download manager, like the one builtin in default browser? I need to create an intent that contains url of file to download. I know it's possible, as I saw some applications doing it in the past.
A: What you want is DownloadManager.
Browsing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I change the values in this array? Here's my code:
var array = [{"number":"500","title":"whatever 500"},{"number":"400","title":"whatever 400"}];
alert(array[0].number); //should output 500
$.each(array, function(index, val)
{
array[index].number = val * 5;
});
alert(array[0].number); //should output 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Comparing Strings in IronPython I am trying to compare two strings while searching for WSUS groups to update. However, my comparison is failing even though they appear to be the same visually, and are of the same type. Since this is IronPython, I don't have a debugger available in Komodo (anyone know of one for IP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any possibility to declare indexers in C# as an abstract member? As the title states, I would like to declare an indexer object this[int index] in an abstract class as an abstract member.
Is this possible in any way? Is it possible to declare this in an interface too?
A: A simple example:
public interface ITest
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: how to select elements with more attributes? How can you select elements with more attributes?
$('input[type="checkbox"]')
This will select all checkboxes, but how can you specify one more attribute in the selector?
<input type="checkbox" data-test="1" />
How can you select all checkboxes with the data-test attrib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android - Open YouTube video via Link in TextView I have an app that I wish to put links in that will open the youtube player, the link will be located within a text view.
Can anyone help me achieve this as simply using Link text does not work ??
Thanks for any help !
A: Guess this is what you're looking for: http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create a simple private message system in rails with inbox, send, and reply's? There are some gems out there to instantly have a simple messaging system for users which I have looked at but they don't really fit the bill in terms of having a way to easy customize them.
Therefore I would like to ask some suggestions ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does a shell guess the PATH when spawned in an empty environment? Using the following code to run the ls command via /bin/shnworks fine:
#include <unistd.h>
int main(int argc, char **argv, char **envp) {
execle("/bin/sh", "sh", "-c", "ls", (char*)NULL, envp);
}
However if I launch the shell in an empty envi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Telerik MVC Controls and JQuery Closure I have a telerik grid in an asp.net mvc3 (RAZOR) View. While designing I had also bind OnDataBound client event.
@{
Html.Telerik().Grid()
.Name("someGrid")
.clientEvents(e=>e.OnDataBound("someGrid_onDataBound"))
.Render();
}
<script>
function som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transferring c# List to another list with a method inbetween Was'nt sure of the title, but I have this task which I am having trouble with.
I have a List downloaded from a WCF service.
ie:
List<Stops_edited_small> StopsList = new List<Stops_edited_small>(e.Result);
The list has several items
two being:
LatitudeFie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the way of correct way in using calloc for an array? I want to create a pointer to an array of pointers (with 10 pointers in the array), then I want to give a pointer a value.
This is what I have so far:
char **arraypointer = calloc (10, sizeof (char*));
How will I give value to this array?
I've tried:
arra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make punch-through transparent text in HTML/CSS? I have a div which has css background: rgba(0, 0, 0, 0.85);. Centered in that div is the title of the page. I want to make the title see through (knockout, punch-through, however you want to call it. i.e. see past the div's background black to the background ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why Progress Indicator is not starting from View Controller class? I have a progress indicator in one of my classes, that is subclass of NSViewController.It is connected with Outlet. When I'm trying to start indicator in initialization time of that class, and show content in main Window, from App Delegate, indicato... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I stop this div from sitting on top of the scrollbar without breaking my JQuery ScrollTo plug-in? I am having a little bit of trouble with a website I'm building. I am using the jQuery plug-in "scroll to" as the website is one complete page with different sections. Now I am trying to keep the navigation bar f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery ui datepicker : custom dayname headers general information:
I'm using the datpicker to set opening hours for stores.. for an entire year.
For this I have buttons to select all mondays etc of the entire year and then i have other buttons that add the classes.
for instance you click "monday", which selects all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove all items of an array except the last 5 on PHP
Possible Duplicate:
Remove elements from array?
how would I remove all array elements but last 5 ones? The array is a log, but the log will become extensive so I just want to see the five recent items (a.k.a. last five elements)
A: $new = array_slice($old, -5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: MySQL apply a value a field of each row based on the order of another field I have a table which I would like to apply a price rank for each record.
1 for the highest, 2 for the next highest, 3 for the next highest.
Currently I'm selecting each row and then updating each record individually like so:
Usage: function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cakephp vs Codeigniter I'm a Cakephp developer but my colleagues say that it is slow compared to Codeigniter and I must say that there shouldn't be too much of a difference since you can use cache to speed things up.
Is the speed that noticeable with Cakephp and Codeigniter and is it a significant issue over selecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the concept of default constructor? help me in getting the concept of default constructor with example.
i don't know when to use default constructor in the program and when not to.
help me coming over this problem.explain it with an example for me.
when it is necessary to use it?
#include<iostream>
using nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: get row with max from group by results I have sql such as:
select
c.customerID, sum(o.orderCost)
from customer c, order o
where c.customerID=o.customerID
group by c.customerID;
This returns a list of
customerID, orderCost
where orderCost is the total cost of all orders the customer has made. I want to select... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using NHibernate and Mono.Data.SQLite I read and implemented Trying to using Nhibernate with Mono & SQLite - can't find System.Data.SQLite
However, as the last comment there states this seems not to work with NHibernate 3.1
The error is
HibernateException: The IDbCommand and IDbConnection implementation in
the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Fast and easy data import tools/libraries I'm looking tools/libraries which allows fast (easy) data import to existing database tables. For example phpmyadmin allows data import from .csv, .xml etc. In Hadoop hue via Beesvax for Hive we can create table from file. I'm looking tools which I can use with postgresql or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Capacity planning of the Cache size How to do the capacity planning of the cache - for e.g. how much RAM to allocate for ehCache, memcache or dynacache?
Is there any industry standard formula?
For e.g. I have about 60,000 Records in the database. This is the company data - which contains company name, description an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: session invalidate in JSF2.0 I'm using JSF2.0 with jsp.I'm trying to incorporate session invalidation in my project.I've tried using the following code.
<h:commandButton value="Logout" action="#{bean.logout}" </h:commandButton>
and my bean class contains the following method
public class Bean{
public String ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why the Nullpointerexception? This is the scenario:
class A{
int a;
}
class B{
A objectA[]=new A[10] ;
}
class C{
B ObjectB;
public static void main(String[] args){
ObjectB.ObjectA[0].a=1;
}
}
I get a nullpointerexception in main operation. However if I declare just one object of class A, I don't get the error. W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove duplicate vectors inside a vector of vector I have a vector of vector (loops) which contains integer values. Some inside vectors are duplicating but their element order is not the same. Now, I want to get a vector of vector without having any duplicate inner vectors.
here is an example for my vec of vec;
loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Symmetric multiprocessing and Distributed systems? Are distributed systems a completely independent concept compared to symmetric multiprocessing (since in distributed, we have individual memory/disk storage per CPU whereas in symmetric we have many CPU's utilizing the same memory/disk storage)?
A: I wouldn't say t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Div overlay hue issue only in IE8 Please visit http://www.in2medical.com/ with IE8.
There seems to be some sort of lighter hue over the dark blue bar (in which the logo resides) on top. This hue is not visible in IE9, chrome or firefox..
It looks like in IE8 the div in which I place the content and I position on top... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVP: How does presenter access view properties? I will give a full example that compiles:
using System.Windows.Forms;
interface IView {
string Param { set; }
bool Checked { set; }
}
class View : UserControl, IView {
CheckBox checkBox1;
Presenter presenter;
public string Param {
// SKIP TH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write event logs into xml files with SLF4J or Logback? I want to create a customized log viewer and I need to integrate log files generated in .Net and Java platforms. First of All I want to know if I could write log events into a well-formed xml format with SLF4J or logback.
Any Idea?
A: logback-classic sup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use C# 4.0 tasks feature with these properties - assigning variables on run time - keep certain number of tasks alive Alright i have been searching for days but there is no example of what i am trying to achieve. Currently i am able to use tasks for multi-threaded crawling but it is very bad written. You can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Google OAuth on localhost I started to use OAuth with Python and Django. I need it for Google APIs. I working on localhost, so I can't register a domain for url-callback. I've read about that Google OAuth could be used with anonymous domain. Can't find, how and where I can do that?
Edit:
I have this view:
def ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: make castle widsor not load all modules I am using castle windsor to dynamically load some modules. is it possible to ask castle widsor to not load a specific module? I want to instantiate that module manually and then add it to the list of modules
A: Based on the comment (I think you meant components, not modules?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get current date and time in XSLT 1.0 I am using xslt 1.0, I am trying to print current date and time to my node. Below is the sample xslt
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tcm="http://www.tridion.com/ContentManager/5.0" xmlns:xlink="http://www.w3.org/1999/xl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Handling an exception properly I am not good at handling exceptions, so I need a hint at this occasion:
I want to put arrays in a collection (ArrayList) all of which should be of the same length. Otherwise errors emerge in computations. When an array of not desired length is to be inserted in the ArrayList, I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update using Active Record in CodeIgniter I have a strange problem, maybe I just don't understand how Active Record works well enough, but here it is. I'm trying to update a record with a particular id. For simplicity and testing I'm just supplying the id directly instead of a variable.
Now, if I have understood Act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to prevent an textfield losing focus using jQuery and JavaScript? I have a textfield <input type="text"/> that I want to validate when the focus is lost. If the input is not valid, I want to prevent the focus moving to the next element, or in other words keep the focus at the invalid input until it's valid.
How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I change an image when it passes a certain point on a page, and then change it back when it is above that point? I am completely new to javascript, but I want to learn it rather than jQuery to get some fundamental knowledge. The function I want to create should animate an arrow to turn upwards when it passes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Dynamic form validation in symfony2 Before receiving $_POST information from form submission, I didn't know anything about the number of fields, types or validation rules (whether the field is required, whether it should be a valid email, etc.)
In ohter words, the validation rules and fields depend on what i receive... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone Core Location startMonitoringSignificantLocationChanges I need to know when the user approaches a certain location.
On the iPhone 4 I'm using startMonitoringForRegion:desiredAccuracy: but this is not supported on the 3GS (which I want to support), so in this case I'm forced to use startMonitoringSignificantLo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UITableView cell not diplaying images horizontally I want to have only one uitableview cell which can display horizontally as many images as it receives from server. But the problem is currently I receive say 15 images from the server and the cell only displays first 6 images and does not display rest 9 images. Howe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting the character from keyup event I'm handling the keyup event, and need to get the character being typed. When I type a dot, data.keyCode is 190, but when I'm trying to convert it using String.fromCharCode(190), I'm getting the "¾" symbol.
This reference tells me 190 is the period symbol. That one says I don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to Access Elements in FancyBox iframe There is an iframe, opened in fancybox window.
The content of the iframe is external.
Is there a way to access this content and to change the style of one of the elements?
A: If the iFrame is on another domain you can't access it in any way due to browser restriction. This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Zend AutoLoader not functioning properly under Shared hosting I recently lauched a zend framework project on a shared hosting. With much struggle, I got the first index page working, but pass it all the autoloadable classes like models, forms, mappers are not found.
Here is the version of .htaccess i am using outsid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery files selector conflicting I am using two libraries of jQuery. One is main library from site(I named it as mainlibrary.js) other as limitkeypress.js(named as same). I think both files are conflicting. I used code in sadd.php at line 24 as
<script type="text/javascript">
$.noConflict();
$(document).ready(f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Silverlight double color lines I need to draw a line with two adjacent color.
The only solution i found is based on two lines, with a TranslateTransform on the second.
But the translate value have to change according to line orientation (angle).
Is the any way to do it more easily?
Thanks for help.
A: You can draw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove background color of ShellFile “icons”, but not of “real” thumbnails I’m using WindowsAPICodePack, getting ShellFile’s Thumbnail’s. But some of those which look like the generic icons – have a black background. I therefore make it a Bitmap and set Black as transparent.
The problem is that when it’s a th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Difference between ~lp() or simply ~ in R's locfit This is cross-posted after having first posted on stats.stackexchange.com, as I thought it involves more the use of R and statistics than coding, but now I see that I might find a more lively community of R users here. https://stats.stackexchange.com/questions/16346... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: where are member-vars of a class on the heap stored? As a class is instantiated on the heap. Are all member vars then also allocated on the heap, or somewhere else. Is there then any good in allocating member vars explicit on the heap?
struct abc {
std::vector<int> vec;
}
int main() {
abc* ptr = new abc(); //the "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: using roboguice without extending Activity Is there a way to use roboguice without extending Activity class with RoboActivity.
A: Yes. It's easier with the 1.2-SNAPSHOT which isn't yet in beta. To use 1.2, just add the following to your onCreate(), onContentChanged(), and onDestroy(). You don't need the bits abo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to build the gsl-1.8(GNU Statistical Library) on Win 64bit I'm a newbie in compiling GNU libraries(Never did it before).
I have VS 2010 but don't mind downloading other ANSI C Compiler.
If you can assist me in the steps I need to do to run the make file that build the library.
A: As far as I can see the win32 p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to minify Javascript if you use SBT 0.10 or later How do you minify or obfuscate your Javascript files, if you build your Scala projects with Simple Build Tool (SBT) 0.10.x?
Edit: Or later SBT versions, e.g. 0.11, 0.12.
(For earlier versions of SBT there are some plugins that minify/obfuscate Javascript, but a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does there have to be a mode switch for something to qualify as a context switch? Does there have to be a mode switch ie. from user to kernel mode in order for the action to be called a context switch?
A: No. Not all processors even have privilege levels.
A context switch usually means restoring an execution state ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Draw triangle cutout for selection indication in UIView I'm creating a view that serves as a category selector for my app. I'd like it to have a cutout triangle as the selection indication, as in this image:
I'm not sure how to draw the triangle so that it is a cutout, revealing the main view underneath. The main v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Solutions for Storing Data XML, Databases and...? I have a piece of software for reviewing cigars, the user enters the stats (name, price, brand, country, length etc) and a review (maybe a paragraph or two). Theres a menu for searching for previously reviewed cigars which will pull the stats and review for that ciga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lost in the listbox data binding I am trying to do something which I thought would be really simple, but..
I have created a pivot application and inserted a listbox in MainPage.xaml
< ListBox x:Name = "partyList" Margin = "0,0,-12,0" >
< ListBox.ItemTemplate >
< DataTemplate >
< StackPanel Orientation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loading Components/Classes into an ArrayList via some component Name Pattern I have a number of classes of the same type (com.project.abc.abs.Agent) annotated like so;
@Component("WEB.Agent-1"), @Component("WEB.Agent-2"), @Component("WEB.Agent-3")... etc. For now assume that all classes are in the same package (com.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Easier way of writing null or empty? I'm sure I've missed something here. With a certain project I need to check if a string is empty or null.
Is there an easier way of writing this?
if(myString == "" || myString == null)
{
...
A: if (string.IsNullOrEmpty(myString)) {
...
}
Or you could take advantage of a q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Why my python mechanize script cannot work for this specific site I need to simulate the process of inputting an item name and clicking the search button on http://ccclub.cmbchina.com/ccclubnew/.
if I inspect directly in HTML, the search form is described with name "searchKey"
<span class="searchinput">
<input ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to open pgsql file on Windows? I downloaded a 7 Gigabyte .pgsql file.
What do I need to download in order to open this file on my Windows 7 machine?
I tried installing PostgreSQL 9.1 for Windows, but when I open the pgAdmin it keeps asking me for a server, and I don't have any. All I want is to open an existing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# grade array with histogram I am studying fundamental programming in C# in Sweden and I was wondering if you could give me a hand with understanding an easy example.
My goal is to fill an array with random numbers and then to show asterisk (*) or any symbol that many times as is the random generated number.
This w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: json_decode not interpreting array I have a following JSON string, arriving via AJAX to server:
{"Names":"[{0:'asdasd'}]","Values":"[{0:'ad'}]"}
As you see, Names and Values were intended to hold an array. Problem is, when I call
$data = json_decode(stripslashes($_POST['data']), true);
$data['Names'][0] I don't g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python web.py template, how to escape (.) dot In web.py template: index.html I wrote:
$def with(s)
<img src="$s.filename.png" />
s.filename's value is "picuture" so I want to print
<img src="picture.png" />
but how can I tell web.py templating system do not to use $s.filename.png just use $s.filename and add ".p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL query doesn't find cities that begin with č, ć, š, ž, etc My SQL query doesn't find cities that begin with for instance č, but does find cities which have č in their name but begin with regular English letters.
The City column in the database is of nvarchar type.
What is the solution for this problem?
I am using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to write a small (socket) server in iOS I saw this in some official iOS apps, so I know it's possible and permitted.
I want to write a small socket server in iOS that some other application, that I will write for a desktop machine, can connect to and read data from.
Anyone did something like this and can help ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Checking Request Attribute in JSP I am trying to check a request attribute in a jsp to show/hide certain html.
request.setAttribute("submitted", "true");
jsp:
<c:if test="${submitted == 'false'}">
// some html
</c:if>
But no matter what value I set in the attribute, the condition always evaluates to false.
Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ListView is not responding to clicks whats wrong with this class? the clicks in the listview arent registered, i tried to do a log, but it doesnt go into the setItemOnClickListener
public class Chosen extends Activity{
SimpleCursorAdapter adapter;
String[] getResult;
Cursor c;
@Override
public void onCreate(Bundle s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between int, NSInteger and NSUInteger What is the main difference between int, NSInteger and NSUInteger in Objective-C?
Which one is better to use in an application and why?
A: In such cases you might right click and go to definition:
#if __LP64__ || (TARGET_OS_EMBEDDED && !TARGET_OS_IPHONE) || TARGET_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: CoreData - how to create fetchrequest to get array of random attribute values I have simple model with 2 entities House and Flat. House has to many relation to Flat. Flat has attributes like number and description.
I would like to get a list of random eight flat numbers.
I'm trying to go this way, but it seems that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UIImageView consumes memory when hidden? (iOS) Does UIImageView requires memory when it is hidden?
Same question for alpha=0.0
I work a lot with hidden images, and I wonder if those still consume memory.
More specifically I would like to know that for tableview.
Thanks
A: Of course if it has an image loaded into th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generics and returning class objects I am trying to return an object of a class using the generics.
This is the generic class
public class ClientBase <S>
{
protected S CreateObject()
{
return default(S) ;
}
}
This is how I am trying to use it...
public class ClientUser : ClientBase <SomeClass>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: web config clear What is the use of the <clear/> in the web.config file?
I have it under connectionStrings:
<connectionStrings>
<clear />
</connectionStrings>
A: It clears all inherited keys, that's it.
Here is the MSDN Article:
http://msdn.microsoft.com/en-us/library/aa903345(v=vs.71).aspx
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7626440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Issues with mmap of Complex Types I have an issue attempting to access shared memory using mmap for complex types.
So I allocate my memory as so in my parent process:
/* Create mmap file */
fid = open(TMP_FILE_NAME, O_RDWR | O_CREAT | O_EXCL, (mode_t) 0755);
if (fid < 0)
{
printf("Bad Open of mmap file <%s>\n", TM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 3.1 - Fields With Errors I'm using Rails helper methods to build a form, and using validations.
Whenever one of these validations fails, rails wraps the corresponding inputs and labels in a field_with_errors tag. Which is fine.
However, for some reasons rails is wrapping both the input AND the label in differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: php replace non matches from two arrays How do you replace all non matches from one array that are not defined within the other array, i have kind of got working but its not exactly right. as i will show you.
the result is, but wrong.
- - £ 8 - - - - - - - -
The required result should be
£ 8 - -
this is how my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to allow files uploading with WebView in Cocoa? WebView have a method called
- (void)webView:(WebView *)sender runOpenPanelForFileButtonWithResultListener:(id < WebOpenPanelResultListener >)resultListener
But there is almost 0 doc and details on it. Inside I display an open file dialog and get the selected fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What could cause my program to not use all cores after a while? I have written a program that captures and displays video from three video cards. For every frame I spawn a thread that compresses the frame to Jpeg and then puts it in queue for writing to disk. I also have other threads that read from these files and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Assign some data fields to DropDownList item I want to assign 2 data fields to a DropDownList item because I want to display 2 values at click at an item in different elements (for example, 2 textboxes).
For example: at click on a DDL item, that a value of data field named "example" displayed in one TXTBOX and other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mahout collaborative-filtering input binary dataset i am new to mahout.
I have already used mahout's item based algorithm with a loglikelihood similarity measure. I read in past threads that it is better to use loglikelihood similarity when the recommender handles binary values (like or dislike). I also read that m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using CSS translateY() I am moving some element from (browser height + element height)px towards the top of the browser at -50px of the browser using CSS keyframes and that works but the problem is it's lagging and I am well aware that using translateY would resolve this issue.
Now assume I have a CSS as follows.
.b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Working with a Model class that has a foreign/navigation key to itself I am trying to develop a catalog project in ASP.NET MVC 3 and using EF Code first with an existing Database. There is a Categories table in my database that points to itself. For that, I have written the following model class. --"Correct me if t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to multiply values from different rows and different columns? This what the table looks like.
Code Items Unit QTY Price Total
------- --------- ---- ---- ----- -----
HTM001 Cable Tie pcs null 1.00 ?
HTM001s Cable Tie null 20 null
and I tried a query like this...
SELECT VRIJ1 FROM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stop a timeout function in this code:
$("a").live("click", function(e) {
e.preventDefault();
setTimeout(function () {
$.get(
"someOtherUrl",
{someVariable: "someValue"},
function(result) {
$(".result").html(render(result));
}
);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Require_once triggering on page load and when submit? I have a php page (horses.php) that includes:
<?php require_once('send_email.php');?>
What happens is I have some scripting to send an email (and do some other things) in the send_email.php file.
Now when horses.php loads the send_email.php page triggers and s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP explode(), delimiter being returned? I'm not sure why but the explode function doesn't seem to be working for me.
I have a string which contains one or more sets of comma-seperated values. These sets are delimied by starting / ending square brackets.
After stripping off the ending "[" and "]", I thought it would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7626481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.