text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I invoke a Javascript that does not have a name using C# I would like to invoke a Javascript function on a web page that does not have a function name. Using C#, I would normally use Webbrowser.Document.InvokeScript("ScriptName"). In this instance however, there is only a type attribute. This is what it looks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: During Eclipse debugging While debugging my code in eclipse IDE,
the code enters into some class files.
Please refer to the screen shot here,
![enter image description here][1]
http://imageshack.us/f/26/newposterh.jpg/
I get confused here.
Please tell me what is the best way to recover in this case
A: You get NoSu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: TFTP server written in C - Binary diff at the client end shows a difference but not always I have written a tftp server in C . The tftp client I am using is the native linux client . The file transfer seems to happen correctly . The sent and received file sizes appear to be the same . But if I do "cmp" on both the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to set value of property defined at C# to javascript Is it possible to set value of property defined at C# to javascript...
c# Code.
public int val { get; set; }
Now i want to set val property at java script function
A: You could do a <% Response.Write( val )%> , or <%= val %> in the .aspx page if y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to zip archive individual sub folders I have a main folder called "Test" under that I have around 100 sub folders starting from test 1, test 2 ..... test 100.
I am trying to create a work flow in Macautomator. But it puts all the 100 folders into one big archive file rather than creating 100 archive files with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java Scanner, taking user input from console into array list as separate words I am trying to read the user input from the console directly into an array list, separated by each word or entity that has whitespace on either side (the default behavior). The problem is I am stuck inside of a while loop. Scanner.next() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set a minimum delay for BlockUI? I'm trying to set a minimum display of the BlockUI but having trouble. No matter what value I put in setTimeout, the element is unblocked immediately.
Here I'm setting up the options for the jQuery ajaxForm plugin:
var options = {
type: 'POST',
con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Regex match in google app engine webapp WSGIApplication Hi A rather simple question:
application = webapp.WSGIApplication([
('/result', Result),
('/result/', Result),
The only difference is the trailing '/'.
Can I merge the two url mapping into one?
A: For SEO reasons, it is usually better to choose one URL to ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is a good idea to use a GUID in name of files generated by users? I'm building a application (a CMS) where user can upload files like images.
My question is how to rename these files to save.
I think generate a GUID (System.GUID.NewGuid()) to save a file is the best way to go. I'm right or exist better approach in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to use google tcmalloc to get per thread memory usage Like the title says I'm interested if I can see per thread memory usage on programs compiled with -ltcmalloc. AFAIK with regular malloc memory is linked to process not to thread, but I'm not sure about tcmalloc.
A: TcMalloc has some per-thread mem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding new input:checkbox and not has value I have problem in add new input:checkbox, when i adding new input and checked on it next setup clicked on button i not have value for input:checkbox that was checked. how is fix it?
DEMO: http://jsfiddle.net/G4QRp/
$(function () {
$('a.add_input').live('click', functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: create a sort and then retrieve first n method for a List where T: IComparable I want to write a generic method with the following signature :
IList<T> Sort<T> (IList<T> list) where T: IComparable <T>
that returns a sorted list.
sorry for the incomplete original post.
so I want to sort the list and then select t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle widgets buttons I'm starting with widgets and got a very nice tutorial on the internet, got the example run perfectly, but when i tried to change somethings I got stuck.
The thing is: I just want to change the image from my imageButton when i press it, I've tried somethings but nothing seems to work. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unexpected nextLine() behaviour in Java I'm new to java, the nextLine(); doesn't work once and it does all of the other times. I'm confused :( I use eclipse in case you need to know.
package tuna;
import java.util.Scanner;
public class Calculater {
public static void main (String args []) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Avoiding "Unique field" conflicts in inheritance My situation
I have an entity model with a base class ItemBase which defines an ID, a name and a few other properties. The "ID" column is the identity, the "Name" colum is an unique field in the base table. This base class is also defined as an abstract class. So yes,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sidebars with 100% height I have uploaded example here: http://vizakenjack.narod2.ru/testpage2.html
My problem is sidebars with 100% height. If the content is only 1 line of text, sidebars should fill all the screen. Otherwise, if the content is more that screen, sidebars should scroll down to the end of page.
I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wrong strlen output I have the following piece of code in C:
char a[55] = "hello";
size_t length = strlen(a);
char b[length];
strncpy(b,a,length);
size_t length2 = strlen(b);
printf("%d\n", length); // output = 5
printf("%d\n", length2); // output = 8
Why is this the case?
A: it has to be 'b [leng... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When a user updates an iOS app, does application:didFinishLaunchingWithOptions: get called? I've looked at the docs but am still unsure. Will application:didFinishLaunchingWithOptions: get called again after the user updates their app from the App Store and then launches the app again? As I understand it, this metho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Kohana 3.2 does not load the config files I am developing a web app using Kohana 3.2 with the following modules loaded:
*
*useradmin
*auth
*database
*orm
*pagination
*oauth
*kohana-email
On my development machine (Mac OS X Lion with Apache) everything its fine.
On my web server running ubuntu 10.04 with n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need assistance with NSIndexPath in the method below why indexPath.Row always return 0???
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can specializations of a template function be virtual? Something like, for example,
class A {
template<typename T> T DoStuff();
template<> virtual int DoStuff<int>() = 0;
};
Visual Studio 2010 says no, but I get a funny feeling that I simply messed up the syntax. Can explicit full specializations of a membe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to catch top level failures on an EventMachine server? I have an EventMachine server that I am monitoring with monit. Sometimes it crashes, and I am trying to figure out why, but it is unclear to me how I can just log all top level failures. I tried code like this:
begin
EventMachine::run do
EventMachine::... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to protect files on your website I will have clients upload pdf files with sensitive information. I'm planning on having the directory outside public_html. When a client want to download his/her file they will get a php link that will authenticate them. Is more I can do to protect such files?
A: *
*Place the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: css positioning with display or float , can I get this structure using display property Given this HTML:
<div id="div1">
<div id="div1a"></div>
<div id="div1b"></div>
<div id="div1c"></div>
<div id="div1d"></div>
</div>
<div id="div2a"></div>
Can I get this structure using CSS display property?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: git pull with new latest tag info on the file been trying to find out if there is a way to pre-write the tag version inside a file, so each time when i pull the code from repo, it should write the latest tag version number automatically. so i would know, which guy is using that file from which version..
is there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Intrincate sites using htmlunit I'm trying to dump the whole contents of a certain site using HTMLUnit, but when I try to do this in a certain (rather intrincate) site, I get an empty file (not an empty file per se, but it has an empty head tag, an empty body tag and that's it).
The site is https://www.abcdin.cl/abc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Switching between multiple Cameras using Emgu CV I have a quick question: I need to switch between the two camera on a tablet. Front and Back. By default, the Front camera is always used by Emgu CV.
Thanks.
A: Ok. There is a different constructor. I was building upon the 7 line demo for Emgu CV.
Using the correct o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: method="post" enctype="text/plain" are not compatible? When I use
<form method="post" enctype="text/plain" action="proc.php">
form data can not be sent to proc.php file properly. Why? What is the problem? Why I can't use text/plain encoding with post but I can use it with get method?
A: [Revised]
The answer is, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Confused about "this" operator in Java Though I'm trying to understand why "this" is needed, I'm very confused about its purpose. For instance, I coded the following:
public static void main (String args[])
{
SandboxClass1 temp = new SandboxClass1(1,2,3);
System.out.println(temp.getX());
System.out.pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: xsl for ordering subnodes of xml Here is sample xml
<Data version="2.0">
<Group>
<Item>3</Item>
<Item>1</Item>
<Item>2</Item>
</Group>
<Group>
<Item>7</Item>
<Item>5</Item>
</Group>
</Data>
And for ordering nodes in Group by Item value I tried to use the following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: New to IIS, looking for a way to handle logs and sessions upon a deploy Deploying a ASP.Net application via Teamcity and a Nant scripts. Currently I am zipping up the directory from the local git repository (after building) and copying up to the test machine, Renaming the current web home directory and dropping in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alias Methods and Performance Concerns In order to improve code readability, sometimes I use "alias methods". These are basically methods that all do the same thing (at least in the base class; derived classes may do it differently) with different names, that enhance code readability for the class user depending on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Building and creating related objects via the association: how to set the foreign key of a nested model? I am using Ruby on Rails 3.1.0. I am trying to save a nested model having an attribute that is intended to store the foreign key of the parent model. At the creation time of the parent model I would like to set t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make Heritrix to continue crawl process on domains found and are not in seed list How to make Heritrix to continue crawl process on domains found and are not in seed list?
I mean make it to not to stop after crawled over all Domains in seeds list. and continue the crawling process for each link it found in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android) can i set a default activity that runs right after installing in my app, there is two activity and i want to make activity1 to the starting activity after installation.
But now the RUN button (is showed right after packgae installing) is disabled.
below is the manifest file. thanks.
<activity ...1>
<inten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Automatically silence the sound volume of Android Phone programmatically? I'm developing an application that can turn off the sound of Android Phone automatically. How can I detect the volume of the sound and turn it off programmatically?
if (hour == myTime.getHour() && minute == myTime.getMinute()) {
if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery place p content into attribute this is my first time here...
I have the following scenario:
<div class="album-wrap">
<img src="picture.jpg" alt="Mickey">
<p class="caption">little mouse</p>
</div>
<div class="album-wrap">
<img src="picture2.jpg" alt="Donald">
<p class="caption">little duck</p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using TextField to search from a txt file xcode I am trying to make a simple iphone program that will allow me to search a keyword when entered into a textfield and then search for it by clicking a rect button. I have searched the site and there is nothing that relates to my current situation. to reiterate, I have a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gem not found after migration 2 -> 3 I migrated a rails 2 project to rails 3.
I use several gems, and i migrated it to Gem file, installing them with bundle.
But i get the following error:
NameError (undefined local variable or method `acts_as_rateable' for #<Class:0x10322fc00>):
But the gem is correctly installed.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ocaml equivalent for Lisp's let*? I'd rather use let ... and ... and ... in than nested let's when possible, but the normal let syntax doesn't allow this for expressions that depend on each other.
Not allowed:
let encrypt password =
let seed = int 16
and keys = xlat seed (length password)
and plaintext =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Browsers act different on anchor with image on MVC3 Razor world! I have a odd thing with an "a" tag. The big idea is rendering something like this: <a href="/*Retrieve an original sized image from database*/"><img src="/*Retrieve an original sized image and resize to thumbnail*/"/> </a>.
This is what I need to imple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: USB device found on embedded device but unable to mount I have a embedded device running linux 2.6.27 on an arm machine. The kernel and system is working correctly AFIK. I plugged in a USB flash drive and it detects the drive (following output).
scsi 0:0:0:0: Direct-Access Kingston DataTraveler II PMAP PQ: 0 AN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: background image on a java gui
Possible Duplicate:
How to set background image in Java?
I am trying to put a background image on my java gui, and I can't figure out how to do it. I've looked around and tried some code but I can't get it to work. I have the imageicon setup but I don't understand where I'm suppose... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails instance variable based on time? Quick question. If I have a Model, say Charities, that has a start_date and an end_date attribute, how can I set that to be the current_charity from a method in the Controller?
I know I'll have to do some kind of Charities.find(params[:something]), and will just have to set tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I fixed my dilemma with the looping issue. But How can I make it so I dont have to press R? As in, any other key pressed will loop? import java.util.Scanner;
public class CurrencyConversion{
public static void main(String[] args){
// declare and initialize variables
double dollars = 0;
//double euro = 0;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: python: creating list from string I have list of strings
a = ['word1, 23, 12','word2, 10, 19','word3, 11, 15']
I would like to create a list
b = [['word1',23,12],['word2', 10, 19],['word3', 11, 15]]
Is this a easy way to do this?
A: Try this:
b = [ entry.split(',') for entry in a ]
b = [ b[i] if i % 3 == 0 else i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to read schema of a PostgreSQL database I installed an application that uses a postgreSQL server but I don't know the name of the database and the tables it uses. Is there any command in order to see the name of the database and the tables of this application?
A: If you are able to view the database using the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# get set javascript equivalent is there an equivalent in javascript to the following C# code
public class Class
{
public string str
{
get;
set;
}
}
I am trying to do something like this
var list = function () {
this.settings = {
id: 1
};
this.id ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding the same existing field twice(more than once) within same content type I want to reuse the same existing field more than once within the same content type.
Assume that ContentType1 has a field Phone-Number.
Now I want to use the existing field Phone-Number from ContentType1 within ContentType2, but three time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Constructor with by-value parameter & noexcept In this example code:
explicit MyClass(std::wstring text) noexcept;
Is the use of noexcept here correct? wstring can potentially throw on construction but does the throw happen before we are in the constructor or while we are in the constructor?
EDIT: Suppose this can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: adding a dynamic button on a MCGrid i want to modify the line in the code below ($g->addColumn('button','check_out') to $g->addColumn('button','check_in') if the field instock is 'N'
This way the button calls a different function depending on if the tool is instock.
I do have the functions in the model as well alre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to compare two columns to find unmatched records in MySQL I have a MySQL table with 2 columns and each column has thousands of records
For Example 15000 Email addresses in Column1 and 15005 Email addresses in column 2
How to find those 5 records from 15005 which are unmatched in column1?
I wish MySql query to co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: make img draggable in td elements foreach($photos as $photo) {
$lastChild = "";
if( $count%3 == 0 && $count != 0 )
echo "</tr><tr>";
$count++;
?> <td>
<a href="<?php echo ($photo['source'])?>" title="<?php echo ($photo['name'])?>">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Wrap a div from H2 until last paragraph I want to wrap a <div> FROM THE BEGINNING of the <H2> up until the next <H2>, but it is only starting on the first paragraph.
This is what I have, which ALMOST does the job:
$('h2:contains("test")').nextUntil('h2').wrapAll('<div class="wrapper" />');
Here's my HTML:
/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# trim string with ip address and port
Possible Duplicate:
string split in c#
Hello guys i am getting connected ip address from socket which is looks like this: >> "188.169.28.103:61635" how i can put ip address into one string and port into another?
Thanks.
A: Personally I'd use Substring:
int colonIndex = tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the handle of a method in an Object (class inst) within MATLAB I'm trying to grab a method handle from within an object in MATLAB, yet something in the sort of str2func('obj.MethodName') is not working
A: The answer is to get a function handle as @Pablo has shown.
Note that your class should be derived f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: error during reformatvob I'm doing vob migration from Solaris to RHEL, out of 24 vobs 23 vobs migrated successfully except one pvob which is giving following error.
db_dumper.54: Error: Unexpected error from database library (8) in "../db__dump.c" line 2835
db_dumper.54: Error: Error from libdb (8)
cleartool: Error:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hotswapping / Edit and continue for C/C++, Linux I'm looking for an IDE that supports a (Visual Studio's) Edit and continue -like feature. I know Netbeans has it for Java (called hotswapping, Fix and continue), but can not find anything about an implementation for C/C++ for Linux systems.
Any help would be very much... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Codeigniter: Paypal IPN and csrf_protection I'm working with codeigniter-paypal-ipn and have csrf_protection enabled.
This seems to block the access from Paypal to my IPN controller. If i disable csrf_protection it works just fine, with csrf_protection enabled, paypal IPN service throws a 500 Internal Server Error.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Convert UUID to hex string and vice versa A UUID in the form of "b2f0da40ec2c11e00000242d50cf1fbf" has been transformed (see the following code segment) into a hex string as 6232663064613430656332633131653030303030323432643530636631666266. I want to code a reverse routine and get it back to the original format as in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ninject - Kernel in static class? Is it right at all to "wrap" a StandardKernel with the required NinjectModules in a static class in a separate, shared library, and use that same library whenever injection is needed (instead of instantiating a new kernel everytime)?
Edit: I am trying to use Ninject from within the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to fix a non responding ext.list? I've got a problem with an Ext.List:
You press a button on the main menu and are shown the list. Everything on it works fine and it let's you choose, where to go deeper inside the app. No problems so far.
But if you then go back to the main menu by pressing a "back"-button and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSP with Servlet - Bean unable to convert Date value from input field After a lot of research I've been unable to find a resolution.
I have a JSP page backed by a servlet that I'm setting up to run on the Google App Engine. I've created a bean (Client) to facilitate the transfer of my form fields between the JSP and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: FileNotFoundException for bean definition file happens only online, not on localhost When I published a war file for an application that works locally with Eclipse WTP, I had a FileNotFoundException for the bean.xml file with my beans definitions.
SEVERE: Exception sending context initialized event to listener insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write a data in plist? I have followed this answer to write data to the plist
How to write data to the plist?
But so far my plist didn't change at all.
Here is my code :-
- (IBAction)save:(id)sender
{
NSString *path = [[NSBundle mainBundle] pathForResource:@"drinks" ofType:@"plist"];
NSString *drinkNa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Spring 3 in jar configuration (auto configuration) I'm looking for some kind of "best practice" informations about Spring jar configuration. I have a web project (war) and I need connect some jar libraries - my jars which contains additional functions. These jars contains Spring services. But when I connect jar, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Script to pull an image from a Website I have a website on which I want to post the current xkcd comic. xkcd provides a link for embedding, but each link has a unique name for each comic. For example, http://imgs.xkcd.com/comics/hotels.png is today's comic.
Is there any way to write a simple script to grab the late... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to filter data from model? I have two models:
class ModelOne(models.Model):
something = models.TextField[...]
class ModelTwo(models.Model):
other_something = models.TextField[...]
ref = models.ForeignKey(ModelOne)
And I want to write function in ModelOne which return me all related objects from Mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: displaying image from sqlite error I have saved an image in sqlite and i am trying to retrieve it and displaying it in a QLabel using this code.
connect(ui.tableView->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)),
this, SLOT(getImage(QModelIndex,QModelIndex)));
void smith::ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Echo results of mysql query with php I have this query
$people = "SELECT name FROM people";
$people = mysql_query($people) or die(mysql_error());
$row_people = mysql_fetch_assoc($people);
$totalRows_people = mysql_num_rows($people);
I can echo the results within a unordered list using a while loop like this
<ul>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regular expression - need to get string from html comment I need to get string from comment in HTML file, I was trying to do it with DOM, but I didn't find good solution with this method.
So I want to try it with regular expressions, but I can't find satisfactory solution. Please, can you help me?
This is what I nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting an Android Button visible after a certain period of time? I have a button that I don't want to be clickable until a certain amount of time has run (say, 5 seconds?) I tried creating a thread like this
continueButtonThread = new Thread()
{
@Override
public void run()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java/JavaScript graph layout library that supports node size Could anyone please suggest a Java or JavaScript library to layout a graph. The main requirement is that it should support graph layout algorithm taking into account a node size.
I myself found a list of Java libraries to work with graphs and already tried... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does %NNN$hhn work in a format string? I am trying out a classic format string vulnerability. I want to know how exactly the following format string works:
"%NNN$hhn" where 'N' is any number.
E.g: printf("%144$hhn",....);
How does it work and how do I use this to overwrite any address I want with arbitrary v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing a url in a form from page to servlet drops part of query string If I have a form on a JSP like this:
<form action = "/myApp/myServlet?rssFeedURL=${rssFeedURL}' />" method = "post">
<input type = "button" value = "See data for this RSS feed."/>
</form>
What I find is that if the variable ${rssFeedURL}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grammar - RegEx - containing five vowels (aeiou) I am trying to learn regular expression. I have
L = {a, b, x, y, z, i, o, u, e, c}
I want to construct a regular expression that describes a strings that contain the five vowels in alphabetical order (aeiou). All strings will have at least one of all five vowels.
Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ajax ModelpopupExtender Cant work I am using modelpopupextender in asp.net and this code is working window is popup sucessfuly but cancel button can't work; can anybody tell me why?
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp"
%>
<asp:ToolkitScriptManager ID="Toolki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Saving lots of dictionaries and arrays My game comes with lots of .plist files containing many dictionaries, arrays, etc. They are about each party member's stats, info, etc.
A singleton is in charge of reading all those files and provide the necessary data for my game to run.
The game, at many points, will edit suc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Algorithm or api to create Intrusion Detection System inputs Hello I want to develope Intrusion detection system using neural network.
I know there are 41 inputs. ( I know this from the Dataset which I used to train the neural network) .
I need help how to capture this 41 inputs in live connection. Please somebody ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you have an OR in a WHERE statement inside a mysql query? Is it possible to have an OR inside a WHERE statement in a mysql query as I have done below.
$query = mysql_query("SELECT * FROM fields WHERE post_id=$id OR post_id="" order by id desc") or die(mysql_error());
This produces a server error when run on my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: List all child nodes of a parent node in a treeview control in Visual C# I have a treeview control, and it contains a single parent node and several child nodes from that parent. Is there a way to obtain an array or list of all the child nodes from the main parent? i.e. getting all the nodes from treeview.nodes[0],... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Should I create individual properties in a class or just a method to set the values? I am learning vb.net and I am having trouble wrapping my head around the following...
I can create several properties of a custom class and get/set values or I can create a method to set them all at once. If each property is going t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DWORD and unsigned int I'm getting this error and can't correct it. Any help is appreciated. Thanks.
error C2440: '=' : cannot convert from 'DWORD *' to 'unsigned int'
IntelliSense: a value of type "DWORD *" cannot be assigned to an entity of type "unsigned int"
using namespace std;
typedef vector<WIN32_FIND_DATA> t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: instanceof in SpEL i have a class with the method:
Code:
List<Entity> getData() {...}
and some classes which extends Entity: Project, Phase, Invoice, Payment.
and i would like to do something like this:
@PostFilter("filterObject instanseof Project ? filterObject.manager == principal : filterObject instanceof Phase ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Fancy thumbnail hover effect I'm using a script - for a pretty small image gallery within a tabbed content area.
I'm using; http://www.sohtanaka.com/web-design/fancy-thumbnail-hover-effect-w-jquery/ But customized to almost a fourth the size, only 3 images, and realigned to have the thumbs sit directly below the 'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delphi case statement for integer ranges I have a function which is being passed an integer value, representing a step value.
There are 5 seperate conditions I want to test for:
Value =0
Value =1
Value =-1
Value >1
Value <-1
Currently this is implemented as a set of if statements, and I would like to change this fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I fix a Thread Leak in a JSF application? I have an ApplicationScoped bean that fires up a separate Thread to do some background work. The Thread has a method for cleanly terminating it called terminate(). If not terminated via that method it runs in an infinite loop, and sleeps for a while if it finds it h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does boost::crc_32_type generate any exceptions? Assuming that BufferLenght is >=0 and *Buffer is a valid buffer will the following code generate exceptions? What about if Buffer is invalid? Are there any cases where it can generate exceptions and how to handle them?
unsigned CRC32(const void *Buffer, unsigned Buffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook PHP SDK get access token using php I am using the following code to post to Facebook:
require('facebook.php');
$fb = new Facebook(array('appId' => 'MY APP ID','secret' => 'MY APP SECRET','cookie' => true));
$result = false;
$feed_dir = '/401868882779/feed/'; //to the UID you want to send to
$acToken = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rolling apply to subset of a vector I want to apply a function to progressive subsets of a vector in R. I have looked at what i could find, and the apply and friends aren't quite there, and rollapply does not work on straight vectors, only zoo/ts objects.
vapply <- function(x, n, FUN=sd) {
v <- c(rep(NA, lengt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Efficiency of Google Geocoding with Dispatch Queue - How to Improve - iPhone I have a Google Map view in my app which is populated with pins via geocoding. I am using the below code to create a dispatch queue which then queries Google for the longitude and latitude for each place in my app.
The problem is that altho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: pyQt v4 rowsMoved Signal Im pretty new to Qt and have been trying to create a UI where the user will have rows of information and each row represents a stage in a pipeline. Iam trying to achieve that a user can drag and drop the different rows and that will change the order in which the steps occur.
I have achieved ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove all whitespaces from NSString I've been trying to get rid of the white spaces in an NSString, but none of the methods I've tried worked.
I have "this is a test" and I want to get "thisisatest".
I've used whitespaceCharacterSet, which is supposed to eliminate the white spaces.
NSString *search = [searchbar.te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "136"
} |
Q: How to limit the content of XML feeds I save in an array? Is there any way to still make use of all the feeds but instead of loading all the 25 posts of every feed (<entry></entry> or <item></item>), to get the first 10 posts of every feed.
$feeds = array('',''); //a looot of inputs
$entries = array();
foreach ($fe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to profile a C++ function at assembly level? I have a function that is the bottleneck of my program. It requires no access to memory and requires only calculation. It is the inner loop and called many times so any small gains to this function is big wins for my program.
I come from a background in optimizing SP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Best practise for displaying multiple controls which require an extended class? If I want to display a MapView inside my Activity I would have to extend my Class from MapActivity. If I want to display a Tabbed interface I would have to extend my Class from TabActivity. Similar is the case with some other controls wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the POSIX c99 utility usually implemented as on Linux systems? I am curious what the POSIX c99 utility is usually implemented as in GNU/Linux distributions.
I realize that this is really a question that should be answered by each distribution's documentation, but both the manpage on my openSUSE 11.4 install... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Paged list and CursorLoader I need to implement paged list, that uses Loader to get Cursor from ContentProvider. I have footer and when user clicks it - I need to add next records to list.
How can I refresh data in the list, using Loader? Or what should I do here?
A: I think you should read this article about Load... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: boost::variant single storage guarantee My goal is to guarantee single storage on all my variant types: according to 'never empty' guarantee from Boost::variant, we need to override
boost::has_nothrow_copy for each bounded type. But a bit later
the documentation mentions something about 'boost::blank' and if that
ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: save the screen change history in lightswitch app is there any easy way to track what is changed on a lightswitch app screen?
i have a form that shows information about a customer (listdetail). When I save it, i want to write to a history table what was changed.
A: found the answer here.
Just use the following code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.