text stringlengths 8 267k | meta dict |
|---|---|
Q: How to get WPF combobox display text using UIAutomation? I just started using UIAutomation for some testing. I got the most stuff working except this seemly simple one.
I want to verify the localized text displayed in a combobox, but I couldn't figure out how to retrieve the (localized) display text (combobox items... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Alternatives to caseInsensitiveCompare sortDescriptor An array to be sorted has strings such as:
200burgers
1apple
2burgers
11apples
and similar. When sorting ascendingly with caseInsenstive, I get:
11apples
1apple
200burgers
2burgers
Which makes sense, but I would prefer a lexicographical sort that put "1" befor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using a Java Library across iPhone and Android app version Good libraries are either written in C or Java a lot of the time. (No offense to Python, javascript, or Erlang). Well this time the best library for what I am doing is in Java. But I want to use it for both the Android and iPhone version of my app. How can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JTextPane - how to style selected text I am looking for the most simple way to control JTextPane (its inner text) font color and font size within selected text only.
I know I must look at StyledDocument but its snippets show the JMenu action listener tricks but not JButton :(
I couldn't find code snippets which cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting an Access database from 03 to 07 programatically with vb.net? I need to convert old .mdb Access files to the new .accdb format.
What's the best way to do this in vb.net?
A: Use Office InterOp to instantiate Application of Access and try to open .mdb, file then save it using SysCmd method.
Honestly, I did... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ADO.Net - Having multiple DBDataReaders running at the same time? When I have multiple DBDataReaders reading data at the same time I get the following error:
There is already an open DataReader associated with this Connection which must be
closed first
I have ConnectionPooling enabled in my config so I don't unders... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL: username and password not recognized correctly ..of which I can't figure out what the exact problem is and/or why the interepreter is complaining about this. I'll post my code:
<?php
$path = realpath(dirname(__FILE__));
require("../data/userhandler.class.php");
$db = connectViaPdo();
//var_du... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Algorithm behind typo corrections in Google Search I notice if I make a typo in Google search bar, it is very likely to correct it for me.
Like, if I type "incerdible", it will suggest "incredible", or for "stackovflow", it will be "stackoverflow".
What is the core idea of such algorithm?
A: Here is an explanation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do OSes keep themselves from crashing when I stack overflow? What methods do operating systems use to prevent crashes or erratic behavior when one of my programs accidentally leaks memory or stack overflow?
A: Briefly: Memory management.
Typically each process is allocated a limited (but usually adjustable) amo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PE header entry point RVA I am having an issue with a non .net, x86 machine type, pe32 executable piece of malware I am analyzing on a virtual machine. The entry point field is not NULL so this rules out execution starting at 0x0.
When I break with a debugger at the entry point after creating the process in a suspen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: implode a key with a value How do I implode 2 values, 1 as the key and the other as the value. Say I have:
$string = 'hello_world';
$arg = explode('_', $string);
I now have $arg[0] and $arg[1] (as you know)
How can I implode that so it becomes this structure
Array (
'hello' => 'world'
)
A: $array = array($ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wicket pageparameter I am trying to add and fetch with a key as String and value as List<object> in Wicket PageParameters.
While am fetching the value with key, I got classcastException:String cant be converted into list.
I am using something like this:
List<Example> list = (List<Example>)params.get("ExampleList");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Loading MKMapKit overlay tiles from server The Apple sample code TileMap is great at showing how to add raster image overlays using gdal2tiles, but it depends on having the tile directory on the device. What is the best way to adapt the code to load the files from the web?
I noticed that one of the first thing it d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: rails / css : variable width text inputs Is this possible? I have an input (just one line, not a text-field) for comments which currently has a set width of 200px. But Could I make this text input scale with the browser width? So if the browser was 500px the input would be small but it it was 2560px the input would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get an existing app to use the new permissions dialog? How do I get an existing app to use the new permissions dialog?
I am using oAuth 2.0, which sends the visitor to facebook.com/oauth/authorize.
If I try and add extended permissions like "user_actions.music" I get this error: Error Message: invalid per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to update an Object in play framework? How do I edit an existing object in the database? For example, if I have a model like this:
class Topic{title,content,author}, when I edit and save the object I do not want to add the "author" object again. How do I update my existing object rather than adding a new one?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Send HTTP POST request to a server and get the response? I'm trying to send a HTTP POST request to a Google server and get the response. I'm trying to send the exact same request that my browser would send. When I search, I checked the request and response from Chrome's developer tools. According to that, this is my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using ActiveRecord serialize with Hash not working? I've been reading up on the use of serialize from ActiveRecord, and I thought I understood how to use it, but my attempts are failing so I'm not sure if what I want is even possible this way? What I want is to store a simple hash linking id's of objects called accr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a multi-model, multi-page form in Rails? I am a newbie trying to learn Ruby on Rails. I am trying to learn how to work with the has_many association. I have a blog that I want to be able to add comments to. I am able to put an add comments form in a post page but i want to also learn how to add comme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET CLR Stored procedure OUTPUT Parameter I am creating a CLR stored procedure in VB.NET (.NET 3.5,SQLServer 2005). The procedure has 4 BYVal parameter and 4 BYRef parameters. It compiles and deploys correctly into SQL Server and a Stored procedure is created.
However when I try to run the SP it insists on passing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use folders in Codeigniter? I'm just starting with Codeigniter. I created a simple controller called home.php and a view called home_view.php. This is working fine. Now I would eventually like this site I'm building to have a admin section in addition to the public www version. So I reorganized my file struct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Pass in only strings and ints in C#? I have a function like the below. I ran into a problem were i accidentally passes in enums when i wanted the value. Same problem would occur if i passed in structs or classes.
Is there a way i can pass call the func and only have strings and ints as my arguments?
static public s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ios UIImagePickerController Take photo button title I can take the photo by UIImagePickerController and the sourceType = UIImagePickerControllerSourceTypeCamera ;
i want to know how to make the button title based on device language.
Now the cancel button, it only display "Cancel".
how can i make the cancel button b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BSSID vs MAC address? I don't understand the difference between MAC address and BSSID.
I understand that MAC is an identifier to local networks, but when I searched BSSID on wiki I got this:
In an infrastructure BSS, the BSSID is the MAC address of the wireless
access point (WAP).
from source: http://en.wikipedi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to capture the client's connections and disconnections at the server side? I have written a server/client using WCF (net.tcp). Now I want to capture the client's connections and disconnections at the server side.
A: If you have got authentication built within your WCF with slight modification this can be achiev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Leaking Memory In C++ With boost::ptr_vector I been working in a project, but recently I check if my program has some leaking and the results is that it's leaking and a lot.
I use _CrtDumpMemoryLeaks(); to receive all the messages of leaking and I check that most of them are related with boost, I know that it must b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Configure Emacs for Web Development (PHP) I am trying to use Emacs as a beginner. I want to configure it for web development.
I want syntax-highlighting for PHP, Javascript, HTML, CSS, and also I want (project wide)code completion.
Can anyone please guide me where to start? What packages must be installed? Any guide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Paypal payment_gross is empty I am working with with paypal sandbox.
According with that article after IPN verification i need to check payment_gross field but in my case it is empty.
Also i have fields mc_gross and mc_gross_1 which is contains paid amount so should i check mc_gross insteard? any thoughts why paymen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Would WebClient.DownloadString work as if a user is browsing the website? Basically I am downloading string/source of an online forum with threads/topics per page. But as a user, when I use a browser and browse through the site by clicking n number of links, it sometimes tells me that the server is too busy with an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to move a SVG using jQuery SVG? I have written the following in a JavaScript method :
<html>
...
<script type="text/javascript" charset="utf-8">
$(function() {
$('#layout').svg({});
var svg = $('#layout').svg('get');
svg.rect(150, 50, 100, 50, 10, 10, {fill: 'grey'});
svg.text(200, 75, "Some T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS or JS for list item with no children from sibling list item with children I am creating a dropdown menu and want to add rounded borders on all four corners on hover if the main list item has no submenu, but I want only the top corners to be rounded on hover if the menu list item has a submenu. The submenu itself... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to launch a pdftk subprocess while in wsgi? I need to launch a pdftk process while serving a web request in Django, and wait for it to finish. My current pdftk code looks like this:
proc = subprocess.Popen(["/usr/bin/pdftk",
"/tmp/infile1.pdf",
"/tmp/infile2.p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: 000webhosting appending script I'm tearing my hair out with these guys. I'm trying to work on my ajax, and they're making it extremely difficult. If I make an ajax request or try to use a page as a javascript tag's source, they automatically append:
<!-- www.000webhost.com Analytics Code -->
<script type="text/java... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex for URI routing I'm following up on a question since the question changed
Finding the regex for /<region>/<city>/<category>?
The answer that works is /(?:[^/]+)/?([^/]*)/?([^/]*) and it outputs city in $1, category in $2 but I also just want to output $0 so can you help me modify it a little do achieve this?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Forcing a trailing slash at the end of the URL I currently have this on my htaccess file to map mydomain.com/contact-us -> mydomain.com/contact-us.php
RewriteEngine On
RewriteRule ^contact-us(\/?)$ /contact-us.php [NC,QSA,L]
My problem is I want it ALWAYS to show a / at the end of the URL even if the users did not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Distinct results in db.collection.find() query I have query over a collection db.users.find() which is returning duplication results. For example user._id "1" can repeat multiple times.
Is there a way to return distinct results?
A: If you want only all the distinct user._id, use db.users.distinct("_id")
if you want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: 406 (Not Acceptable) error on rails and jquery mobile autocomplete I keep getting this 406 (Not Acceptable) error when i type in an autocomplete field.
I am using jquery mobile and jquery ui autocomplete and rails
here is my jquery
$("#request_artist").focus(function(){
$("#request_artist").autocomplete({
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a high level shape drawing API for C or C++? I am starting a new project (Windows application), which needs a simple graphical interface. The graphics are not the main point of the application, the algorithms behind them are, so I'd like to spend as little time as possible thinking about graphics.
I need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Swing Applet losing dirty data In reaction to a button being pressed on a toolbar, the user is prompted if he wants to Discard his changes (dirty data). If he selects YES that he wants to Discard his changes the displayed applet is stopped and destroyed. Alternatively, if the user selects NO that he does not want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use of inode fields for storing encryption key of the file I am working on inherent kernel functionality for file encryption and decryption ; directory name with some predefined prefix will be automatically be encrypted. Now I am stucked to store encryption key for file securely can I use any unused field of inode f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hashcode function My hashcode function for string is as follows
hashVal=(127*hashVal+key.charAt(i))%16908799
I am following cs61 b lectures online and I dont quite follow when Prof.Jonathan on what would happen if instead of 1690877 we would use a value that is no relatively prime with 127. I understand the simple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you set a variable to an Edit Text Box I'm new to android developing. I have a value in a variable that I need to set = to a edit text box. How do you do this? I keep getting a null exception error.
myStockPrice = (EditText)findViewById(R.id.txtStockPrice);
ManualPrice = input1.getText().toString().trim();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Horizontal Accordion Jitter I know this is a fairly popular topic around here, but I'm hoping someone can help me with my particular implementation. I'm working on a design that uses jQuery animations to create an accordion menu, and it works, but I get a lot of jitter during the animation.
From my searching... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP : How to get the last index of FB friendlist Json.Parse data? I use json2.asp in my app.
This is the code to parse friend list json data.
Set friendlist = JSON.parse(friendlist_json_data)
The result, I can get first friend id with this code
friendid = friendlist.data.get(0).id
So the friendid = 1234567890 (som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: libboost_date_time linker error I just built and installed boost on cygwin and was trying to compile a program but it gave me a linker error because it was looking for libboost_date_time, and I have libboost_date_time-mt instead in usr/local/lib
I tried to reinstall boost using the following (the same command I had ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check which specialized template is compiled in I have a templated function, which is also specialized with built-in types (int, float). Is there a way to display which functions are being used and which are being pruned out by the compiler, at compile-time?? Perhaps using #pragma??
template<typename T>
int f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: One tap printing on iPhone I want to make an app on the iPhone that would print an image just by tapping a button. I've tried the tutorials about UIPrintInteractionController online, but all of them will take me to a selection page before I can actually print. Can I programmatically skip that page by sending a defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's wrong with this MySQL trigger? So what is wrong with this trigger? MySQL is only nice enough to tell me it is a 1064 error.
DELIMITER |
CREATE TRIGGER new_member BEFORE INSERT on member
FOR EACH ROW BEGIN
INSERT INTO party(PartyId, PartyTypeCode, DateCreated, DateUpdated)
VALUES(New.PartyId, ’M’,no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: apply jquery selector to object corresponding to hover For some reason .add on the last line doesn't work as expected, all the :first-child in the document are modified, I want only the :first-child from the hovered object to be modified. I tried everything I could think of, have no idea what the problem is.
jQuery.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: inline javascript: can it retrieve reference to the element it was invoked from? On basically any element you can put a onclick='func()' or some such to run JS when interacted with. Is there any way to get a reference to the DOM element itself?
When i do the obvious thing: <input type='button' onclick='alert(self);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML5 wrapper for old browsers, Modernizr I'm new to HTML5. It appears that Modernizr and a massive array of "HTML5 shims" provide bits of HTML5 support for older browsers.
But what if I'm lazy and I don't want to even think about older browsers? Which HTML5 features can be perfectly emulated and which cannot?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to prevent duplicate entries in SQL Database using Stored procedures in C#.net I'm trying to make a simple user registration form with the following 4 fields,
*
*userid ( which is unique)
*username ( which is unique)
*password
*email
Now i'm able to prevent user from entering duplicate user entries in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Restart single activity within a tabactivity As title, I have read some articles. And I wrote this to do so.
public class TabManager {
private static Context tabAct;
private static final String TAG = "TabManager";
public static void setTabActivity(Context t) {
Log.i(TAG, "setTabActivity");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tilestream support in Route-me Has anyone been able to integrate the opensource TileStream server with the route-me framework for iOS? The documentation is pretty scarce. I have been able initialize a dictionary with the data for my map, however I get a sigabrt whenever I try and run the code.
Thanks
A: I've create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is the following negative lookahead is not working import re
txt = 'harry potter is awsome so is harry james potter'
pat = '\W+(?!potter)'
re.findall(pat,txt)
according to my understanding the the output should have been all the words that are not followed by potter that is
['potter', 'is', 'awsome', 'so', ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Simple regex help using C# (Regex pattern included) I have some website source stream I am trying to parse. My current Regex is this:
Regex pattern = new Regex (
@"<a\b # Begin start tag
[^>]+? # Lazily consume up to id attribute
id\s*=\s*['""]?thread_title_([^>\s'""]+)['""]? # $1: i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP output buffer is not empty? I have this peculiar problem. I am making an AJAX call to a PHP page. In case of error I am returning the string "error" to success: function(msg) i.e. msg will have the value "error". But for some reason it is sending back "error" but with a line break preceding it. And this fails th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c pointer assignment to pointer to pointer what does it mean I have a code snippet am struggling to understand.
char *c; // c is uni dimensional table ( single row )
char **p ; // p is a two dimensional table
**p = *c; // what does this mean ?
When I do the above the assignment, is the c copied as first row o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Piping a program that uses WriteConsole I wanted to call _popen to get the results from an executable but it was blanking out.
I looked in debugger and found out the program uses Kernel32.WriteConsoleW to write a unicode string to the console, instead of using stdout.
How do I capture it?
A: Any output generated wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: toPaddedString equivalent in javascript or jquery Anyone know if there is an equivalent method in jquery or javascript that matches the prototype toPaddedString method?
A: There's nothing to match this in jQuery, but here, I whipped you up a straight Javascript version of the Prototype method:
function toPaddedStri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UITableView with Right-Side Index, Sections and Searchbar Causes Right-Side Index to Become Squished I have a UITableView with a section, searchbar and a right-hand side index. Initially, everything works and is drawn properly. However, when I type into my search bar then click cancel the right index is not redraw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Questions about Saving/Accessing saved files in Android All right, i'm reading a lot about the saving and accessing implementations in various Android and off-site documentations/help sites, but i still can't understand the implementation and how does it work, so my last resort is to turn to StackOverFlow (i'm worki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NullPointerException using append method on a view in android? I am trying to populate data from database into a TextView using this code:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView view = (TextView) findViewById(R.id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the meaning of "value class space is flat"? I am now reading the book Programming in Scala. In chapter 11, it mentioned:
Note that the value class space is flat.
But no one explain what it means. Is it important? Why? And how to use and how to check value class space is really flat. It seems that ,it shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: MediaWiki like directory system So if you look at a mediawiki url:
http://en.wikipedia.org/wiki/Stack_Overflow
You see that the page is a subdirectory of index.php in /wiki. How can I make my script work like
http://mysite.com/users/Walter
when all I have in the users directory is index.php (and other resources to m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Wikipedia allow URL fetching via Google App Engine? I am writing a Python web app and in it I plan to leverage Wikipedia. When trying out some URL Fetching code I was able to fetch both Google and Facebook (via Google App Engine services), but when I attempted to fetch wikipedia.org, I received an exception. Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any free unlimited album artwork search API service? Google's custom search API has a limitation up to 100 queries per day. That is far less than what I expected. I want to add that artwork-search function to my app. Thanks a lot.
A: Musicbrainz and the Internet Archive offer the Cover Art Archive but you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Eclipse ide tasks tag problem I have been puzzled by the problem for several days: the task tags(TODO FIXME XXX and etc.) disappeared in tasks view in my working java project. What strange is this problem did not occur if a create a new project. Perhaps that's because I changed some configuration of my working proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does multiprocessing.Queue work with gevent? Anyone know what is wrong with this code? It simply "loads" forever. No output. "Sites" is a list of a few dozen strings.
num_worker_threads = 30
def mwRegisterWorker():
while True:
try:
print q.get()
finally:
pass
q = multipr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Integrating Dwolla with PHP with their API Foreword:
Okay I've used APIs in the past such as TwitterAPI but I always used a library and some documentation to assist me with connections, and retrieving tokens. I have a basic understanding of how API's work.
Okay so I've tried multiple ways of requesting the dwolla AP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I get the user ID in the Facebook PHP sdk? I'm having the toughest time figuring this out... how can I get the user ID? While I relize the question sounds a bit retarded, I can't find this anywhere! This is my following top part of my code:
require '../fb_fc/facebook-php-sdk-9147097/src/facebook.php';
$appId... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to ping a database from NSIS? Putting together a NSIS installer. (first time)
Currently, a manual step in our install is to make a URL connection to a database, and save a basic connection properties file to a folder under Tomcat.
To aid this, we currently use a small JAR application that helps the user build th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Paypal IPN processing after payment I have IPN controller which is validating IPN and then validating some fields according with that article
After user clicking pay on paypal website the ipn sending to my ipn controller and at the same time user getting redirected back to my web site(after paypal controller) from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Verilog Barrel Shifter I want to create a 64-bit barrel shifter in verilog (rotate right for now). I want to know if there is a way to do it without writing a 65 part case statement? Is there a way to write some simple code such as:
Y = {S[i - 1:0], S[63:i]};
I tried the code above in Xilinx and get an error: i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Help extracting data from JSON result I am having an issue retrieving the key from this JSON result returned from the last.fm api
this is what is being returned:
{"session":{"name":"mcbeav","key":"***************","subscriber":"1"}}
and i just need the key, but if i try to print_r or var_dump , nothing is displayed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C#: Simplest way to dump a custom collection to csv file I have a class
public class DevicePatchInfo
{
public string HostName { get; set; }
public string PatchName { get; set; }
public bool IsPresent { get; set; }
}
I have a List<DevicePatchInfo> which is loaded with the data and is bound to a datagrid. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Get values of number fields depending on Button Click I have 20 fields that are created (numbered 1-20) with corresponding submit buttons. I need to retrieve the values of those fields for an AJAX post depending on which button number was clicked. For example:
$(function(){
$("#addCommentButton1").click... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: multithread boost C++ program design for low-latency large-data exchange I am trying to solve a network flow problem by C++ multithreading.
Given a network (all nodes are connected by arcs, each arc is connected to 2 and only 2 ending nodes, one is input node and another is output node, each node can have multiple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: exception in camera application in android I am getting an exception using a custom front camera. On button click I am calling camera.takepicture. Can anybody tell me what the problem is and how to fix it?
09-23 11:24:35.062: ERROR/AndroidRuntime(949): FATAL EXCEPTION: main
09-23 11:24:35.062: ERROR/AndroidRuntime(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting values from dictionary I have a Dictionary<int, int> in my class. How can I access both values without knowing the key?
For instance, I want to be able to do something like this: If the dictionary contains Dictionary<int, int>
and the values are <5, 4>
I want to be able to get the value of <(this),(this)> li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS not modifying link properties Whatever I try to do, I can't modify the color of my links ( want to create a color rollover effect). They always stay the same default blue color with the underline effects. I know its something very minor that I did wrong, but can anyone tell me?
<!DOCTYPE HTML PUBLIC "-//W3C//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Is it faster to use XML or Serialize() saving data to a DB in PHP? I have a project that has a ridiculous amount of customization required.
As such, I am looking for a way that will be the fastest (or near fastest) at runtime and also be rock solid stable to save a variable number of customized fields.
For instanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Android GPS Fix & getFromLocation I have two issues, the first is that I have a String Builder that obtains an address and prints it to a edittext:
Geocoder mGC = new Geocoder(context,Locale.getDefault());
address = mGC.getFromLocation(lat, lng, 1);
if (address !=null){
Address currentAddr = address.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: sum with join in active records Hi pleas bear with me I'm very new to mysql/active records (all previous projects have only been basic CRUD) I am trying to join two tables so I can generate a table of my invoices with a subtotal (database structure based on bamboo invoice)
currently trying with no luck (syntax error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does a template type waste space in C++? I was going through EASTL's list class to look at how the author has implemented the nodes. My expectation was a simplistic class/structure. Instead, I see a base and a node that is inheriting from this base (still simplistic, but why two classes?). His comments explain why:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to send automatic email via Gmail client from Android I searched a lot from internet for this thing. But everywhere very complex code. Can anybody provide me simple code to send an automatic email without user interaction from my device?
may be very simple steps like
*
*Create an email client object.
*Set To... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why does the keylistener stop working? In my Java program, whenever I select some text from a JTextField, the keyListener stops detecting key presses. I noticed the same thing happens when a JButton is pressed. Do I need to remove the keyListener from the objects after using them? If so, how to I do this?
Here is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Good practice to free malloc's at program conclusion? I have a simple program which reads a bunch of ini file settings in memory allocated dynamically (malloc), then does stuff in loops for a long time, then ends. When I run valgrind I see that the memory I malloc'ed for my ini strings is not freed.
On the one ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to display messagebox only one time in a loop I am New In C sharp,
I am using messagebox to display the line. but it is in a loop so the messagebox display more times i want to display it only one time and message box should not be display for the next time.
try{
using (var sr = File.OpenText("test.txt")){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading text fields from file with custom separator I am working on a problem for a class I'm taking in which we need to read in text from a file to a 2d table of strings (called 'string table[][]'). The text file I'm reading in is formatted as follows:
Ain el Beida # - # - # OEB # Algeria # Africa # F # 42578 # 61... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Socket Server for PHP Chat System? I was told that a simple PHP (with Ajax) chat system wont be able to support more than a hundred users before it's too much for the system unless I use a socket server. Is this true? And if so, where can I learn about creating a socket server or w/e?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7543639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby, RVM version messup and not picking up right versions Here is my terminal output.
Anand@luckydev:~ $ which ruby
/usr/local/bin/ruby
Anand@luckydev:~ $ rvm list
rvm rubies
jruby-1.6.2 [ darwin-x86_64-java ]
ruby-1.8.7-p334 [ x86_64 ]
=> ruby-1.9.2-p180 [ x86_64 ]
Anand@luckydev:~ $ ruby -v
ruby 1.8.7... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: git:// urls with gitolite I am running a gitolite system and I currently clone like this:
git clone gitolite@debainserver.local:my-project
and it works fine, but I want to clone into an application that needs (no work arounds, tried them all) a git:// address. so how can I set this up.
To clarify a little more look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to parse HTML to DOM in chrome extension I am building a Chrome Extension, that I will scan many pages of different domains in background and examine whether there are some text patterns in the pages.
I can use regex to search the plain HTML text, but I prefer to parse the HTML text into DOM and then traverse th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP mysql_num_rows WHERE this equals this Is it possible to do something like the WHERE clause in a mysql_num_rows statement in PHP? For example, say I have the column "number" in my database. I want to use mysql_num_rows($number) to display how many rows have the number 1. I know the other ways to do this, but it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Weird "EXC_BAD_ACCESS" error I'm trying to make a simple binary-adding app. Here's the two main methods that I use. You can assume that anything I don't declare in the code has been declared in the header file:
-(IBAction)valuesChanged
{
if ((![input1.text isEqualToString:@""]) && (![input2.text isEqualToString:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unit Testing of actions If I need to Unit Test my actions, how do I do it? Do I need to use /test/bootsrap/ for that?
A: Functional tests is what you need to write.
They do exactly what you need:
It calls your action with different parameters and test your response.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7543663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery get children of children of children Okay, this may be a bit basic. The HTML is :
<div class="parents-of-all">
<p>
<a>
<span class="thechild">Something</span>
</a>
</p>
The jquery is
$('.parents-of-all').click(function(){
alert($(this).find('span').attr('class'));
});
But somehow it do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Max width in css header So basically, my css and html works like this. I have a top and bottom to the header, as well as a userbox if the user is logged in. My html and css are formed like this:
<div id=header>
<div id=leftheader>
<div id=topheader>
[top header]
</div>
<div id=bottomheader>
[bottom head... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert pointer to c array to python array I have a C++ callback function that calls into Python using ctypes. This function's parameters are a pointer to an array of double and the number of elements.
There are a lot of elements, approximately 2,000,000. I need to send this into scipy functions.
The C++ pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.