text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I override some functions in the Queue STL object? I am trying to override the push and pop functions from the STL queue. I think I need to use templates. I get a 'MyQueue' does not name a type (this error is in my main.cpp file) and an error saying expected initializer before '<' token. Here is the snippe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scala passing a reference to this class I have a class, with multiple methods and members. When I create an instance of this class, I create an instance of another class within the first class. Some of the methods in this second class require to know which instance of the first class is running. Currently, I am t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to instruct XmlSerializer to serialize a DateTime instance using a particular date time pattern? I have many types, which are (de)serialized using the XmlSerializer. My problem is that I want the timestamps (DateTime instances) appearing in these types to be serialized to the respective strings using a particula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Overwriting and Extending Prototype I'm not sure why when I overwrite the prototype below with an object(Gadget.prototype = {
price: 100;}, only new instances of Gadget(theGadget) have access to the new properties.
But when extended(Gadget.prototype.price = 100) All instances have access.
function Gadget(name, color... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting an error when uploading the apk to the market " An unexpected error occurred. Please try again later. " is the error that I am getting when
I try uploading my signed apk..
Once I was done with my app, I used Export signed application tool to generate the key.
Why am I getting this error?
A: Try to use a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I use a gradient as the selected color in a box-shadow I would like to make a box-shadow appear darker on one side than another.
I would like to do something like the following:
box-shadow: 2px 3px 6px linear-gradient(90deg, #ccc, #fff);
Is this possible?
A: Firefox, at least, won't let you do this. Firefox on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C/C++ FLAC tagging library Is there any C/C++ FLAC tagging library that work on streams? Wherever I look I only find ones that work on files. It's kinda weird to me - why use something limited like file instead of more abstract stream. Well, maybe I'm just spoiled by managed languages neatness (I'm more of a Java gu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to load not active customers in magento I need to load only inactive customers from magento collection.
$collection = Mage::getModel('customer/customer')
->getCollection()
->addNameToSelect()
->addAttributeToSelect('email')
->addAttributeToSelect('created_at')
->addAttributeToSelect('group_id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Learning Single Responsibility Principle with C# I am trying to learn the Single Responsibility Principle (SRP) but it is being quite difficult as I am having a huge difficult to figure out when and what I should remove from one class and where I should put/organize it.
I was googling around for some materials and c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Global vector emptying itself between calls? I have a vector in a header, like so:
extern std::vector<Foo> g_vector;
In the associated cpp file I have this:
std::vector<Foo> g_vector;
I also have a class Bar, and in it's constructor it will add some stuff to g_vector, like so:
Bar::Bar(/* stuff */)
{
// do thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Most efficient way of reading data from a stream I have an algorithm for encrypting and decrypting data using symmetric encryption. anyways when I am about to decrypt, I have:
CryptoStream cs = new CryptoStream(ms, cryptoTransform, CryptoStreamMode.Read);
I have to read data from the cs CryptoStream and place that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Is it possible to create a motion tween in as2 code Is it possible to make a motion tween with as2 code only ( not with timeline). If it is, then can you please tell me how to do it?
A: There's the Tween class:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/2/help.html?content=00000350.html
But I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Question about mongodb capped collections + tailable cursors I'm building a queueing system that passes a message from one process to another via a stack implemented in mongodb with capped_collections and tailable cursors.
The receiving processes loops infinitely looking for new documents in the capped_collection, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Jquery create array problem with for Hello I have a prboblem with the next code:
function loadOptions(num){
listTabs = new Array();
for(var i = 1 ; i < parseInt(num) + 1 ; i++){
var tabActu = {
'name':'tab'+i,
'src':'urlImatge'
};
listTabs.add(tabActu);
$.each(listTabs,function(ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to asynchronously load underscore templates I'm planning to use backbone.js and underscore.js for creating website, and I will have lots of underscore templates:
<script type="text/template" id="search_template">
<p id="header">
//header content will go here
</p>
<p id="form">
<label>Search</label>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: acts_as_taggable_on find existing tags to suggest from content We're using the (brilliant) acts_as_taggable_on Rails gem, allowing users to add tags to content they write (e.g. blog comment). We auto-suggest on as they type, but would also like to identify tags that we can suggest based on the user's content.
So if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ActiveMQ "Scheduler" Daemon Threads not terminating I'm using ActiveMQ 5.5 with an embedded broker. All messages are non persistent. Producer and Consumer both run within same JVM.
Advisory Support is disabled.
Everything is working fine. My question is about these "Scheduler" threads running as daemon threads an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django user profile form validation problem I'm trying to implement user profile module to my django project, but I'm getting this error:
Form 'SignupForm' could be validated, while 'ProfileForm' couldn't. Please make sure the two classes are compatible. Validation errors were: * user
* Обязательное поле.(can't be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle stylesheet links when local and server directory structures don't match The document root of my website is directly the server webroot (public_html), and not in a separate subdirectory. This creates a problem for me, because my local website is in a project folder (which is required by my editor, NetBe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby gem for writing formulas in xls/xlsx spreadsheets? Is there a Ruby gem that can write formulas to an xls/xlsx spreadsheet? The Spreadsheet gem doesn't appear to allow this, at least not in the latest version. Are there any gems out there that allow this or am I stuck doing it in a csv file?
Thanks,
Ben
A: I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SyncAdapter and wifi color I'm using a syncadapter in my app. I've noticed that the app syncs properly when the wifi icon is green, but fails to sync when it is white, even though there is internet connection available in both cases.
How can I request sync when the wifi is white?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7542100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run a Linux/C program in a customized way? I need to write a program that is to be run as follows: <program_name>_ <space> _<file_name>_ <space> _<stuff to be written into the file>. I am new to Linux/C/Unix programming and so I need your help. From what I can understand, I need to write a program titled <pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Restart Jetty through Eclipse I'm new to Eclipse and Google App Engine development.
I am unable to refresh my localhost to display changes in my code. Clicking Run doesn't seem to rebuild it. I can't find the option to refresh the server in the Eclipse IDE to reflect the changes.
Refreshing the browser / clearing m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show a DIV when sitting a mouse on it using jquery? How to show a DIV when the mouse is over another div (I have multiple divs, when I have the mouse over one of them I want a "info" window appears ) , and keeping it appear until the mouse it moved out of the area of the div.
I want the din to appear in the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: CSS table inside a table? i was trying to put table inside a table like this:
<table>
<tr>
<td>Filename</td>
<td>Size</td>
</tr>
<tr>
<table>
<tr>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Typed dataset codebehind What can you add to the codebehind file of a typed dataset? I thought the dataset classes were generated at runtime. The codebehind file is always an empty partial class.
A: You can probably add anything you like as it is a class but since an autogenerated file could be regenerated again if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: looping text in file python I have 2 files i am trying to put together one has about 300 lines and the other has mabey 85.
I want to have the file with 85 to loop until it adds a line of text onto each of the other files lines.
Here is my code i put together so far
name_file = open("names.txt", "r")
year_file = open... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Perl: how to make variables from requiring script available in required script example
out.pl:
(my|our|local|global|whatever???) var = "test";
require("inside.pm");
inside.pm:
print $var;
I don't want to use packages - it's overwhelming my needs :)
thanks!
A: You are always using a package, even if you don't us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: BG image with Swing without overriding paintComponent I'm currently designing a menu with several screens with multiple buttons on each screen. To use buttons on top of the background image, which is in a jLabel (by default, I can't put buttons on TOP of the jLabel), I used GridBagLayout with two panels/menu screen,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pushing Django updates to production server I need some advice on pushing Django updates, specifically the database updates, from my development server to my production server. I believe that updating the scripts, files, and such will be easy -- simply copy the new files from the dev server to the production server.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Sliding window using as_strided function in numpy? As I get to implement a sliding window using python to detect objects in still images, I get to know the nice function:
numpy.lib.stride_tricks.as_strided
So I tried to achieve a general rule to avoid mistakes I may fail in while changing the size of the sliding wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to split audio encoding across multiple application launches? My app needs to encode a large amount of audio data to an M4A file. I am currently using AVAssetWriter, which works fine, except that it takes a few minutes to encode all the data.
Instead of asking the user to keep the app running until the process ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TCP Window size libnids My intent is to write a app. layer process on top of libnids. The reason for using libnids API is because it can emulate Linux kernel TCP functionality. Libnids would return hlf->count_new which the number of bytes from the last invocation of TCP callback function. However the tcp_callback is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I apply a Style Setter for ListBoxItems of a certain DataType? My WPF ListBox contains two types of object: Product and Brand.
I want my Products selectable. I want my Brands not selectable.
Each of the two types has its own DataTemplate.
By default, anything may be selected:
<ListBox ... >
<ListBox.Resou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: which diagram to use in NoSql (Mcd, Merise, UML) again, sorry for my silly question, but it seems that what i've learned from Relation Database should be "erased", there is no joins, so how the hell will i draw use Merise and UML in NoSql?
http://en.wikipedia.org/wiki/Class_diagram
this one will not work for NoSql?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Moving between XIBs iOS I have a view-based application with three xib files, each with its own view controllers. How do I change from one to another? I use this to move from xib 1 to xib 2, but when I use the same code to move from xib 2 to xib 1, i get a EXC_BAD_ACCESS on the [self presentModal....] line.
MapView ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XAML Binding to Sql Server I have a SQL Server DB with the following tables and relationships:
Jobs which contains many sessions.
Sessions which contains many breaks.
First of all, dont be frightened by the large amount of code posted here. The relevant parts are the highlighted parts dealing with the list, the rest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WSDL XML rendered by 'ADOM XML v4' in Delphi XE2 I have been trying to implement a very simple webservice running under OSX ( and windows) with XE2, but it seems that the XML that 'ADOM XML v4' generates/renders for the webservice is invalid in some way.
The only obvious difference I noticed compared to what is gene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to retrieving a thumbnail of a video placed in a folder excluded from the media scan I'm trying to get a thumbnail of a video. I'm following this answer.
My problem is that the video I want to make the thumbnail is an file in a cache folder with an .nomedia file and for that reason the video doesn't appear in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accurately and seamlessly splitting text into two UILabels I'm trying to create a "wrapping" like effect for text around an image that has set dimensions.
___________
........|
........| image
label.1.|
........|___________
....................
.......label.2......
....................
.................... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cocoa Design Patterns for Authentication After developing for iOS for some time now, I have gotten comfortable with the language and am trying to get better at designing well-structured applications. Initially my focus was on seeing something functional, so I ended up with gigantic view controllers which were horrib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why did the Git "source" change from "refs/heads/qux" to "refs/remotes/origin/qux"? The following commands reveal what I just did:
Z:\www\gg\web\tests\sample-repo-cloned>git log --all --source --graph
* commit ce7ae79a2b993b780002dbc5eac650fa49427df0 refs/heads/qux
| Author: myname <myemail@gmail.com>
| Date: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python: Tkinter Menu entries do not pass correct value I am currently working on a GUI (Tkinter) for my application. I am having problems with creating a couple of dropdown menus that should be used to choose a date. The application that I have written creates the desired menus with labels, however, by clicking any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ruby EventMachine with PostgreSQL I know that for mysql em-mysql exists as an asynchronous interface driver to MySQL and that Active Record, with some modification, can make immediate use of. I believe Sequel has this capability already. I also understand that the pg gem exposes PostgreSQL's native async API.
My qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Find public key from certificate as a xml string i need to find the public key from certificate as xml string. I can take the public key only as a string with this method:
public string CelesiPublik()
{
X509Certificate cer;
cer = X509Certificate.CreateFromCertFile("C://certificate//EdonBajrami.cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Incorrect file permissions when calling C's open() function from fortran I have a fortran program which calls a C function and opens a file using open()
main.f90:
PROGRAM TEST
integer :: oflag, mode
!Set oflag to O_CREAT|O_RDWR
oflag = 66
mode = 600
call test2("test.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: User permissions based MEF components I did my first steps toward MEF few month ago and everything seemed to be okay till now. What I want to do is to use MEF in now of my real applications and load or we can say display UI components based on authenticated users permissions. I am developing patient management syste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Need help converting PRISM Unity Module Init to PRISM MEF Module Init I need help converting the following class for use in a program that I am developing. The original was a demo program from IdeaBlade called "PRISM EXPLORER" based on Unity. I need help converting one part from UNITY to MEF. I handled everything el... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which model is the fastest using linq, foreign key relationships or local lists? Some basics
I have two tables, one holding the users and one holding a log with logins.
The user table holds something like 15000+ users, the login table is growing and is reaching 150000+ posts.
The database is built upon SQL Server (n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use Opencv for Document Recognition with OCR? I´m a beginner on computer vision, but I know how to use some functions on opencv. I´m tryng to use Opencv for Document Recognition, I want a help to find the steps for it.
I´m thinking to use opencv example find_obj.cpp , but the documents, for example passport,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: how do I create list of unique values and systematically store them in localstorage I'm trying to build a history list of clicked clicked page elements and store that list into HTML local storage, to be later displayed back to the user. The main pre-requisite is that the list cannot contain duplicates, so for exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to prevent timer reset on page refresh? I'm using jQuery countdown in a script, but I can't figure out how to prevent the timer from resetting on a page reload. I'm hoping someone knows how or can give me a suggestion? I'm using PHP, so I thought maybe at some point I can add a variable to a $_SESSION, but is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to avoid UAC for autorun app in Program Files? Firstly I want to emphasize that I'm not trying to do anything "nasty" or "hackerish", nor am I trying to hide anything from user here.
During installations (using InstallShield LE) of my application user is prompted by Windows UAC to allow it to run in A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Texture transform matrix in a constantbuffer not working properly I'm trying to clip a texture by hardcoding the texture coordinates through 0 and 1, and then sending a constantbuffer containing a 3x3 texture transform matrix to the vertexshader.
However, the texture is not rendering as I expected it to. I'm not sur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does TFS Record the Parameters to a Build? When queueing a new build, we get the option to change the default parameters. Do these changes get recorded somewhere, either in the TFS Operational Store or in the TFS Data Warehouse?
A: These parameters should be available in the Team Foundation Build Operational Store,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to force usage of custom fonts for text rendering on a given web page? Is it possible to use Javascript or any other technology to force the rendering of text on a given web page with a custom font? Downloading the font as a resource is ok. In other words, one would/should not rely on fonts installed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook Like Button Code won't work in HTML Email I am trying to add the like button code into a html newsletter but it won't display, only displays on the online version. Is it possible to have it display in the email newsletter as well, if so, how?
A: No this is not possible. The best you can do is a static lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: add whitespace on space bar I currently have this function:
if (e.keyCode == 32){
var $cursor = $("#cursor")
$cursor.val("");
this.append("<span class = 'space'>-</span>");
$cursor.insertAfter(".space:last");
$cursor.focus();
}
I was wondering how one would add a whitespace for the span, right ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I determine which JCheckBox caused an event when the JCheckBox text is the same I am working on a program that needs to determine which JCheckBox was selected. I am using three different button groups, two of which have overlapping text. I need to be able to determine which triggered the event so I can add t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Bitmap getPixels returns -1 for the whole array am creating temp Bitmap to draw a Text on it, and the i want to get it Pixels so i can manipulate these pixels (i don't show this image on screen).
this is the code
Bitmap tempBitmap=Bitmap.createBitmap(200, 400, Bitmap.Config.ARGB_8888);//i've tested all Configs
Canva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Buttons like radio buttons I'd like to have the user choose between a set of choices, but rather than a list of radio buttons and descriptions i'd like buttons which have the descriptions on the buttons (looks better and less ambiguous). But there would also be preferably some way to know what the group of but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Boost iterator_facade dereference I'm trying to use boost iterator facade to implement an iterator for a class that stores a sorted vector of elements of type data_t. Currently I'm having troubles with dereferencing it. I only need the iterator for traversal and searching, the iterator doesn't need to change any of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Send fast textinput to another process (Window) I am writing a C# WPF program which sends text messages to another program's window. I have a macro program as part of my keyboard drivers (Logitech g15) which already does this, though it does not send keystrokes directly to the process, but to the currently focused w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are class methods the best way in Objective-C to implement a factory method? It seems like I see a lot of class methods in Objective C that are like +(NSString*)stringWithString:(NSString *)string or +(NSArray)arrayWithArray:(NSArray *)array, etc. I am just starting to consider design patterns and to me these method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: EXC_BAD_ACCESS disappears with zombies enabled I'm getting an EXC_BAD_ACCESS crash at startup and Xcode says the crash is at the NSApplicationMain line in my main.m file. The crash happens 99% of the time and when I run it with zombies enabled the crash never happens. Has anyone seen this before? How can I possibly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: read specific number of bytes from NetworkStream I am trying to read a message of known length from the network stream.
I was kinda expecting that NetworkStream.Read() would wait to return until buffer array I gave to it is full. If not, then what is the point of the ReadTimeout property?
Sample code I am using to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Difference between new and override? I have a base class which I want to provide some 'base' functionality for methods for all inheriting classes.
In my inheriting classes I want to do:
public override void Setup()
{
base.Setup();
}
But at the moment it says I have to use the new keyword.
How to I have it so I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Subversion repository gap I need to fill I have a situation where my main subversion machine died. I have resorted to an older machine.
My latest checkout is version 240, but the old machine is only up to version 200? Subversion won't let me checkin and I need help fixing the gap.
A: You could try this:
1) Check o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Managing Configuration Changes in WCF What is the preferable way to manage configuration file changes in WCF webservices? I know usually in desktop applications people use a FileSystemWatcher to watch for changes in App.config, but how exactly does one go about configuring one in WCF? I tried using something like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is the Flash video fallback for HTML5 video built into the Flash plugin? I understand how to use the HTML5 video tag except for one part: the flash fallback. In order to use a flash fallback do I just simply include the .flv file last in the list of source tags or is there some sort of special flash player I need to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ScheduledAgent and GeoCoordinateWatcher - how to make them work? I'm trying to get GPS position via GeoCoordinateWatcher running in ScheduledAgent. Unfortunately only location I get is some old one, recorded when application was running. How to get current (latest) location in ScheduledAgent?
A: I have come across ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using reCaptcha with Rails 2.3.12 So I'm trying to get reCaptcha to render on a partial form view that uses HAML. I have tried using the :ruby filter and then adding <%= recaptcha_tags %> but that didn't work, neither has anything else that I've found. Is there a way to implement this?
*Revision
Ahem, more speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Active Admin undefined methodgenerate_association_input_name I'm using this active_admin on Rails. I had one model: Page. But then I ran some migrations. When I came back to the login panel on active admin, whenever I would click on the Pages button at the top navigation bar, I get this error:
NoMethodError in Admin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to know if a folder has specified file types I have a loop procedure in VB6 which explores all the folders from a specified file path.
I then need to know if each detected folder contains MP3 files.
I don't want to use the dir command because it takes up a lot of resources.
I've tried doing this using FSO, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can you get access to the firing dom node inside a dojo.xhrPost load? I have an html fragment like the following:
<li>
<img src="/jsafe/gallery/item/83/thumb" />
<span class="tools">
<a href="/jsafe/gallery/item/83/rotate/left">
<img src="/jsafe/img/rotate_left_small.png" alt="Rotate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adobe Air - Self signed certificate I need to generate a self signed Adobe Air certificate. How to do that? (I'm using Flash CS5 - AIR 2.0/2.5)
I came across this tutorial - what stands ADT for and where do I enter the command line?
Thanks.
A: ADT is "Air Developer Tool". You enter the command lines at a command pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: show div on form submit with no redirect I'm using a WordPress sidebar widget to capture email addresses. The thing is, it redirects after form submission. I want the visitor to stay on the page they were on after form submission with just a hidden div giving a successful signup message.
I've tried something with ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i make an mysql id appear on a link? I mean, I'm trying the web link to look like something.com/newpage.php?id=123....
What I have is a form, and a JavaScript function on load that runs this AJAX:
$.ajax({
type: "POST",
url: "postear.php",
data: "addcontentbox=" + addcontent,
success: functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run Pthreads on windows I used to use a mac to write some C programs but it's not working now.
I have to use an old windows laptop for a while.
I installed codeblocks and tested a simple program using Pthreads. Unfortunately it didn't work.
pthread_create(&thrd1, NULL, thread_execute, (void *)t);
It keeps ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: asp.net bug? ResouceManager.GetString(string) when string not found, aspx file is executed twice I tracked down a very weird ... bug...
I found that for some reason, an ASPX page always executed twice.
I tracked it down to this line in a user (asxc) control, I had :
<img src='<%=RS("buildhover")%>' />
RS is just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Center padded, full-width DIV horizontally and vertically using jQuery The following code works wonders to center my div as long as there's no padding or 100% width in the css:
jQuery.fn.center = function () {
this.css("position","absolute");
this.css("top", (($(window).height() - this.outerHeight()) / 2) + ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP strtotime failure after 00:00 am Why does strtotime() failure after 00:00 am? Example:
strtotime("24.09.")
works while
strtotime("25.09.")
does not.
Btw: These are Dates.
My whole script crashed after I got myself something to drink lol.
A: Even 24:00 working is a relatively new behavior. (As of PHP 5.3, ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Import JSON file from URL into R I've been trying to import a JSON file into R for a while using both the rjson and RJSONIO package, but I can't get it to work. One of the variations of code I used:
json_file <- "http://toolserver.org/~emw/index.php?c=rawdata&m=get_traffic_data&p1=USA&project1=en&from=12/10/2007&to=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Problem with Infinitest I'm using infinitest the eclipse plug-in. but sometimes it just do not work.
I have a test for a method a(). The method a() calls method b() which calls method c(). if I change the method b() it runs the test for the method a. but it doesn't trigger if I change the method c().
A: Does b() al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to add a backgroundimage to my box2d app I was wondering how to add a background image to my box2d (cocos2d) iphone app. I have the image I just don't know how to add it to the background without it interfering with my touch events.
A: This will help: http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:basic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails sanitize remove default allowed tags How would I use sanitize, but tell it to disallow some enabled by default tags? The documentation states that I can put this in my application.rb
config.after_initialize do
ActionView::Base.sanitized_allowed_tags.delete 'div'
end
Can I instead pass this as an argument to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mix 2 real webcam into a fake webcam i need to get the streaming from 2 webcams on the same computer, and mix it as a fake webcam (so then i can use the fake webcam on any software).
I have seen that camcamx is for mac, webcamstudio is for linux, but i need a solution for windows and i can't find it, so i was thinki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chrome extension interaction with Java application I am learning to build Chrome extension and I have an idea to build something which requires complex computation (using many java libraries) which seems hard to be implemented by JavaScript.
A general architecture I have in mind is:
Chrome Extension (GE) extracts HT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mysql Foreign Key Dilemma I have a column contactId on one table which is a foreign key, connected to the id of contacts table. I.e, every row in my 2nd table can be connected to a contact.
However, some records don't have to be connected to any contacts. In such cases, the contact Id would be 0. When I try to inse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Thread safety guarantees for Objective-C runtime functions? What are the guarantees about thread safety for Objective-C runtime functions? Are there any? I am talking about the functions declared in runtime.h (e.g. class_lookupMethod, objc_setAssociatedObject).
A: A lot of it is thread safe -- swizzling, and the li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Identifying names and places in literature I have been playing around with Markov Chain Text Generation and Naive Bayes classifiers. I am wondering if there is a way to apply either of those concepts towards identifying certain types of words in a novel. E.G. Last names or place names
I can look through my markov ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xdebug not working with PDT "waiting for Xdebug Session" I am trying to configure Xdebug with Eclipse PDT plugin. I have gone through lots of tutorial in web and also went through stackoverflow.com existing question. But didn't find the answer to this:
i am using Eclipse 3.7 with the latest PDT plugin. Have done cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make default landing tab load a 760px wide app Is it possible to setup a fan page to work as follows?
*
*User lands on my clients fan page
*Sees a "Like me" graphic
*User likes the page
*User is then taken to a 760px wide app
The two parts i am struggling with are:
*
*Creating a separate fan and none fan ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Change margin/padding based on height of total HTML document via JavaScript? I saw a trick on a stack-overflow solution a couple months ago (I can't seem to find it by searching now though). Anyway, it basically said that if you wanted two divs the same height, you could do something along these lines:
<div id="wra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How should I optimize/structure my database for collecting webshop price development? I have a small personal project, which is supposed to collect data from different webshops. What I basically do, is run a cron script every night. This script uses the Simple HTML DOM Parser for PHP to fetch prices for products in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Form working locally, and not in heroku? Rails 3 My form seems to work perfectly fine locally, but gives me a syntax error on heroku. Here is my code thats causing the error:
<%= form_for (@item, {:url => [@company, @item]}) do |item_form| %>
The error is:
syntax error, unexpected '}', expecting keyword_end
2011-09... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What kind of function is this in JavaScript? I saw this on a forum and I was wondering what it was. If I can get anybody's response it would be very appreciated.
var fso = new ActiveXObject ("Scripting.FileSystemObject");
Can you tell me what it does and what browsers support it. Thanks.
A: What it does is give ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I retrieve the full newsfeed of a user via the Facebook API? I would like to retrieve the full newsfeed including historical data of a given user. In principal, this is straight forward using either an authenticated call to the Graph API or to the FQL API.
With the Graph API, I access the me/home endpoint. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Weird~Apache can not find the actually existing "bash" to execute my cgi file~ May be it's too easy for you to answer.
My problem is about cgi and apache web server.
Make it simple, I have a html "form.html" containing a form in it. To access it, typing "127.0.0.1/form.html" in browser.
After clicking "submit" in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to select multi words in window.getSelection How to select multi words in window.getSelection.
In this code, if I choose tweenen paragrap, it will locked word paragraphs and missed `between. And I need select both 2 words.
Or even I choose 3 words dd 2 spa, it will select 3 words add 2 spaces. thanks.
<script ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.