text stringlengths 8 267k | meta dict |
|---|---|
Q: What's the best way to implement an application server for smartphone app? I intend to write a multi platform smartphone app (currently only I-phone and android).
Which has to send and recieve information from a web server I intend to create.
The web server will do all the algorithms, and handles also DB connection.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Applying textures to a vertex buffer object primitive How do you apply textures to a vertex buffer object in Android?
ANSWER:
The code works fine, except it is missing a call to
glEnable(GL_TEXTURE_2D);
This and the call of
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
are both required for in order for vertex b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iScroll sensitivity Im using the latest iscroll script for a site viewed on an ipad. It works but you have to pressed down and scroll slowly for it to scroll properly. Is there anything I can change in the iscroll script or settings that would allow for better sensitivity to the touch and the scrolling itself is fas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loading jScrollPane after initializing Facebook Comments - how? Is there an "onComplete" state or similar for the Facebook Comments plugin? I'm trying to add a jScrollPane scrollbar to a content box that has FB Comments inside it. What happens is I get the FB Comments iframe placed on top of the box's content (as if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Defensive code for controlling a service I'm trying to revamp my multi-activity app to use just once instance of a LocationListener which I intend to implement in a service. Prior to doing this I've been experimenting with a stub activity and a stub service to see what happens under error conditions.
I want to see w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using ViewBinder for a custom ListView item with TextView I'm trying to add a background color for an TextView on my ListView using a SimpleCursorAdapter with ViewBinder, but it doesn't work:
listrow.xml:
<TextView
android:id="@+id/catcolor"
android:layout_width="4dp"
android:layout_height="match_parent"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Saving the opened file in particular folder I have a dropdownlist and a textbox. When i write some name and select some options in dropdownlist like word or excel or powerpoint, that particular file opens as an attachment and i should save it in "data" folder which is already present in the solution explorer. My cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Animating a series of images using blocks in iOS 4 I'm relatively new to iOS and I want to animate an UIImageview through a series of images. I would usually do this with code like this:
UIImageView *planetView = // get view I want to animate //
[planetView setAnimationImages: [NSArray arrayWithObjects:image1, imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript page repaint halted during touchmove event I have an element that is moved (via altering it's leftmargin) relative to a user touch on a mobile device (i.e. dragging it around the screen with your finger).
I have noticed that during a touchmove event (which i believe fires repeatedly for the entire time b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I write into Google Chrome Url Address bar using an extention ? Can I create a Google chrome extension to change the URL of Google Chrome URL address bar?
Example : If I wrote in the address bar شةثقثىشغشزؤؤخة by wrong, it detects the letters and convert them into English letter to to : amerenaya.com
A: You c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How Can I Get Context Sensitive He-lp in Delphi to Use Symbolic Names instead of HelpID Aliases? I'm building my help system into my program, and I'm working on my context sensitive help which should bring up the appropriate help page for the active control when F1 is pushed.
On each control, I can set HelpType to h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Stop app window overlapping Windows start bar On my Win7 PC I have the start-bar running vertically, it's about 60px wide. In my win32 application, the created window always appears overlapping the start bar, which looks bad - I just use (0,0) as the top-left position for the window.
How should I be doing it to get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I implement MVVM with WCF? I'm new to MVVM. Currently I'm developing a WPF project in C# that will have a SQl Server backend and I'll be using a standard WCF service to communicate with it. All the tutorials I've seen on MVVM thus far always seem to use some static data repository such as an xml file for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: DotNetOpenAuth WebConsumer with Google Apps domain How can I set the WebConsumer object to utilise the domain-level authorization ? I need this for saving the access token.
I can do this with the OpenIdRelyingParty class, by calling CreateRequest(domain), but could not find a way to obtain the access token this way.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to see if two shapes overlap I'm trying to write a simple firemonkey test app.
I have a form, with a panel (align:= alClient).
On the form are 2 TCircle's.
I have set TCircle.Dragmode:= dmAutomatic.
I would like to drag the circles around and have something happen when the circles overlap.
The question is: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Netbeans project skeleton Is there a plugin for netbeans that will help you create a skeleton project so everytime you are starting a new project you could simply click File -> New Project from Skeleton instead of copying files manually? Or does anyone have any idea on how to do that?
Cheers
A: Here's a link to an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Template based code generation that tracks/merges user changes? Does a template/code generator already exist that tracks user changes to it's output? I'm not even posative this makes sense - but the space cadet in me thinks something like this could be an interesting kind of change tracking that integrates more tigh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pushViewController failing I am trying to do a "list of items" -> "item details" kind of an application.
I've managed to do the list part just fine so far. I've also created a new view for the item detail but here I get a error when I click the item I want to see the details.
- (void)tableView:(UITableView *)tableVi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "Load More" with jQuery + AJAX + XML I'm making a website to show a lot of documents (PDFs and JPGs) in one page, and I'm worried about page load times and server load because there are a lot of files.
I'm storing the file data in an XML file, and am retrieving the data with jQuery and AJAX.
jQuery:
$(document).read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PowerShell Connect Wirless Adapter PowerShell 3.0 has several built-in NetAdapter cmdlets / functions. Is it possible to connect / disconnect a wireless adapter using this new noun? For example:
Enable-NetAdapter
or
Set-NetAdapter
A: You should be able to. I successfully disabled my wired adapter with the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fourier Transform + emgucv Can anybody tell me what is the problem in this code...
Basically I am trying to compute the dft of the image and show it as an image on my screen.
Image<Gray, float> GreyOriginalImage = new Image<Gray, float>(strFileName);
Matrix<float> imageMat = new Matrix<float>( CvInvoke.cvGetOptimalD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Creating a Queue in Scala I am trying to create a Queue in Scala by doing:
import scala.collection.immutable.Queue
val empty = new Queue[Int]
However I am getting an error stating that the Queue constructor is protected. If this is the case, am I missing something? All the Queue methods seem to be defined and work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Create KML file with linestring and placemarks I am building a KML file using an app that I have built. Right now I have it nicely drawing a linestring on the map. But, now I want to add a few placemarks inside the same KML file. When trying to do this it will show either the line string or the place mark, but not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails 3.1 escape_javascript doesn't work as expected I have the following Code:
def link_to_add_fields(name, f, association)
new_object = f.object.class.reflect_on_association(association).klass.new
fields = f.fields_for(association, new_object, :child_index => "new_#{association}") do |builder|
rend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UILongPressGestureRecognizer not working, but swapping it for a UITapGestureRecognizer works fine. Why? I have a UIImageView with a UILongPressGestureRecognizer attached that never seems to detect a long press gesture no matter how I configure the gesture recognizer. However, if I swap it out for a UITapGestureRecog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Deleting multiple records(rows) from tables using checkboxes Trying to delete multiple rows using check-boxes. At first i'm generating table of contents with checkbox column. Then posting data to php side. The problem is, php side returning back to the current page. It means that all done successfully and page retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java repaint() and initializing objects I have a class that is supposed to simulate a firework animation using paintComponent and repaint() the problem that I have detected is that a "Firework" is newly initialized
each time the method is invoked so the projectileTime field of the firework is reset to zero (as spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Coloring compiler diagnostics with SCons I am currently using the colorama package to color messages generated by my build scripts. I have also used scolorizer, which replaces the build commands with custom, colored messages using strfunction() in SCons. This sure makes build output less verbose and warnings easier ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IE 7 Z-Index and IE6 Fixed Positioning I have a vertical scrolling website - It works fine in IE7 aside from a few margin issues and problems rendering some .PNGS - but I have one big problem;
I'm using two fixed positioned menus - one that slides out at an anchor point and one that just sticks to the bottom. Essent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why doesn't get '/foo' work in functional test in Rails 3? Looking at the Rails Guides http://guides.rubyonrails.org/testing.html#integration-testing-examples and this SO question Rails Functional Test of Arbitrary or Custom URLs, the following should work in a test:
require 'test_helper'
class ApplicationController... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: expression tree instead of using LINQ I have a LIST<T> where T:IComparable<T>
I want to write a List<T> GetFirstNElements (IList<T> list, int n) where T :IComparable <T> which returns the first n distinct largest elements ( the list can have dupes) using expression trees.
A: In some performance-critical code I wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python/C Raw Socket Operations using Django, Mod_WSGI, Apache I'm currently writing a web application using Django, Apache, and mod_wsgi that provides some FreeBSD server management and configuration features, including common firewall operations.
My Python/C library uses raw sockets to interact directly with the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to run an sql query from a link with javascript onclick I have a script in a joomla article that goes through the database and lists all entries by a use. Everything is done in PHP with echo statements in it.
At the end of each entry, I added a "delete" button.
For example:
echo "[a href=\"#\" onclick=\"jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: create a CCMenuItemLabel with a custom font file I have a CCMenuitemLabel
CCMenuItemLabel *startGame = [CCMenuItemLabel itemWithLabel:str target:self selector:@selector(startGamefn)];
and I was wondering how I would load a font file as you would do in CCLabelBMFont (example :
CCLabelBMFont *label = [CCLabelBMFo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Optimize MySQL UPDATE Query I'm trying to run this query, and the table that's being updated has about 10,000 rows. The query takes so long to execute that I can't even be bothered to wait for the return.
In a couple hours this table will have 100,000 rows and so, it's going to take 10 times longer than it does alre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use vb to add item and change value of second column of listview in wpf This is the xaml of listview
<ListView Grid.Column="1" Height="auto" Name="ListView1" Width="auto" AllowDrop ="True" >
<ListView.View>
<GridView >
<GridViewColumn Header="File Name" />
<Gri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: If url not equals to specific url then add condition I am a template designer and I have some purchasable templates, but more often than not I find people share my template and redistributing them for free. so I would like a Javascript/jQuery to write that if the current url is not equal to specified url (var url = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In a class that has many instances, is it better to use synchronization, or an atomic variable for fields? I am writing a class of which will be created quite a few instances. Multiple threads will be using these instances, so the getters and setters of the fields of the class have to be concurrent. The fields are m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Total time elapsed for each day CakePHP & MySQL id track_id start stop created
4 7 2011-09-28 22:22:21 2011-09-28 22:22:30 2011-09-28 22:22:21
3 7 2011-09-28 22:22:07 2011-09-28 22:22:12 2011-09-28 22:22:07
Given the mysql structure and data above... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My jquery rendered partial isnt running the javascript inside So Im sending some parameters to my controller (via ajax) in order to retrieve some records, and then displaying the results with javascript by loading a partial. In the partial Im looping through the array of retrieved records and displaying each, but Im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove the white "frame" that occurs when the interface flips? I have a view with a black background, when I flip the device and the interface flips with it a white pixelated "frame" appears around the black view during the animation, and then the frame disappears when the interface settles.
This "frame" seem to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Embedded OS X Bundle Xcode Guidance I'm creating a OS X application that I intend to have a plug-in architecture. The plugins will be loaded dynamically. I wish to have a number of default bundles included in the application package contents but I am at an impasse with Xcode 4.x.
Is it the best approach to create a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java JFrame size and centre I'm working on a uni project which is to create a dice face using 2d graphics shapes. I have got that all done but I have a problem: I want my shape to change size when I adjust the window size, instead of just staying still also so that it stays in the middle.
I thought I could set the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Change IOaddress of a PCI device I would like to change the IOaddress of a PCI device by writing the new (page aligned) address into BAR0/1. When I did that using a BIOS function I could not access the PCI device at the new address.
Is there anything else that needs to be done to get that to work? I am using Assembl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling member function from other member function in PHP? I'm a little confused about the situation shown in this code...
class DirEnt
{
public function PopulateDirectory($path)
{
/*... code ...*/
while ($file = readdir($folder))
{
is_dir($file) ? $dtype = DType::Folder ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is {true} x := y { x = y } a valid Hoare triple? I am not sure that
{ true } x := y { x = y }
is a valid Hoare triple.
I am not sure one is allowed to reference a variable (in this case, y), without explicitly defining it first either in the triple program body or in the pre-condition.
{ y=1 } x := y { x = y } //v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Trying to add ads to my app but its not working? I am trying to ad apps but I'm getting this error and i don't know what to do. The app works but the ads don't come up and i think it might have to do with the issue. I am really new to making apps/programming so any help would be much appreciated! Thank you.
Here's t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update a div tag using Jquery I want to update a div tag(Holder) which contains a pie chart, I send values to the pie chart everytime the page loads (ResponseMetric.aspx). I am using jQuery for that purpose to update only the div tag(holder) but nothing happens, I change the value in the DB so that on page load a ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: getting finding a variable in a string I currently have some code that goes to a URL, fetches the source code, and I'm trying to get it to return a variable from the string. So I created:
changetime = refreshsource.find('VARIABLE pm NST')
But it wouldn't find the area in the string because the word is not VA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to integrate an event-dispatcher in a PHP library? I need to integrate an event dispatcher in my own codebase (custom PHP library), so I looked at what both Symfony2 and Zend Framework 2 are doing.
Obviously, there's no shared interface for dispatching events, because both frameworks have differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Filter all entities based on common property in DynamicData application I have dynamic data site based on EF CodeFirst context (using DynamicData.EFCodeFirstProvider library). Everything works, but all my entities inherit from one "common" entity that has (among others) a "IsDeleted" property. I want to filter items... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change table background image upon mouseover of another link I have this for changing the background image of div.fullscreen:
<div id="swatches">
<a href="http://www-03.ibm.com/ibm/history/exhibits/storage/images/PH3380A.jpg">
<img src="http://www.wmagency.co.uk/wp-content/uploads/2011/04/test.jpg"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby on Rails assets:precompile ownership I have a Ruby on Rails based site, in which I need to run rake assets:precompile to get the correct pre-compiled assets. Whenever I run this command, however, everything in the tmp directory of my application goes back to being owned by root (which is a Very Bad Thing™ as my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL Query to find customers who registered and purchased on the same day I would like to get all the customers who registered and purchased on the same day given a startdate and enddate.
Below is the schema :
Users
--CustId
--PostedDate
Order
--OrderId
--CustId
--PostedDate
How do i write a query to pull same day... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OmniAuth Facebook expired token error I am using OmniAuth to get access to Facebook in my app. I am using the fb_graph gem: https://github.com/nov/fb_graph to post to Facebook. I am running omniauth-0.3.0 on Heroku for this app. The token that I save when the user is created is changed when the user logs in sometime... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does Task.Factory.FromAsync(BeginRead, EndRead) read the entire data block before completing? In my code right now I have something like this:
state.BytesRead += readPacket.Result;
if (state.BytesRead < state.Data.Length)
{
Read(state);
}
else
{
nextRead(state);
}
However, I noticed that the first if state... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery add delay to animation I am trying to add a delay to my Jquery so that once the mouse leaves my div id=test it will wait 3000 ms before closing back up. It doesnt seem to be working however?
I am using Jquery 1.6.min
Thank you in advance for your help and code snippets
$("#test").hover(function() {
$(this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to get two column values in a single query using linq to entities I have a member table with columns
memberid
Firstname( values like john,pop...)
secondname(values like ..david ,rambo..)
i want to get the firstname and secondname in a single query
i want something like this..
john david
pop rambo
i kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Limiting the attributes returned in an LDAP query How do I limit the attributes that are returned in an LDAP query through System.DirectoryServices?
I have been using a DirectorySearcher and adding the properties that I want to DirectorySearcher.PropertiesToLoad. The problem is that this just makes sure that the ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Charting solutions for Yesod Currently I am using hs-gchart do build charts to embed charts in my web application. I have seen that tkyprof uses d3.js. What other charting solutions are being used with yesod? What are the pros and cons of these solutions?
A: hledger-web uses flot. Pro: very easy, featureful, suppor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: cURL in php - I have 2 functions that work seperatly but when combined the second one outputs the results from the 1st cURL call I am trying to get the fastspring subscription payment processing set up.
I have the following file which contains 2 functions. the first calls their API via cURL and gets basic order info... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does a web.config substitute app.config? I wrote a dll project in c#. I added a service reference. A app.config was automatically generated.
In the same solution I have an asp.net project.
If I copy paste the relevant configuration from the app.config to the web.config and change the client url - will it override t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scala or Java Library for fixing malformed URIs Does anyone know of a good Scala or Java library that can fix common problems in malformed URIs, such as containing characters that should be escaped but aren't?
A: I've tested a few libraries, including the now legacy URIUtil of HTTPClient without feeling I found any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Easy to Program WebSocket Server I'm starting to read about websockets, but I can't find a good WebSocket server and easy to program some examples...
I'm a complete beginner, and I don't need a server that supports a big concurrency, I just want something to try some examples...
Any Help??
Thanks!!
A: Keep in mind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Upper bound vs lower bound for worst case running time of an algorithm I am learning about analysis of algorithms. I understand the concept of the worst case running time of an algorithm.
However, what are upper and lower bounds on the worst case running time of an algorithm?
What can be an example where an upper b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: A Very, Very Basic JavaScript Button in Django I know a bunch of Django, HTML, and CSS, but I somehow never got around to do anything in JavaScript (only did a little jQuery).
I want to use this on a simple website for the time being for pressed buttons whose look and relevant database changes without reloading the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can SimpleXML load only a partial of a XML? Is there a way not to load the whole feed but only the first 10 <item></item> tag?
$feed = 'rss file';
$xml = simplexml_load_file($feed); //not the entire feed though
A: No. A DOM parser (such as SimpleXML) can only load the entire document.
But you can use XPath to filt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use if statement in jQuery I want to change background color each time when my_div recive class 'selected'.
So far I've got this:
$(document).ready(function() {
if ($('#my_div').hasClass('selected')) {
$("body").css({backgroundColor: '#111'});
}
});
but it don't work.
What's wrong?
A: I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wordpress issue..CSS nav shifts under a different page When its the homepage, the nav is aligned but when I click to another page, I shifts and only the nav section shifts. Please help!! Thank you!!
Homepage:
http://guntherkoo.com/
Page:
http://guntherkoo.com/portfolio/
Thank you again!!
A: The url for reset.css is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How would I convert C# delegate function to VB.Net? Here there's an old question about this code.
xmpp.OnLogin += delegate(object o)
{
xmpp.Send(
new Message(
new Jid(JID_RECEIVER),
MessageType.cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Should data that is the same across all class instantiations be held in a separate, static class? If I have a class that will be instantiated that needs to reference data and/or functions that will be the same for each class. How should this be handled to follow proper programming practices
Example (in PHP):
class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get a reference to the view at the top of the NavigationController I am in a some UIViewControlle and need to go back to the previous one, I use this code:
NSLog(@"%@", [self.navigationController popViewControllerAnimated:YES]);
// Here I need to reference to the view I am going go to to call some function be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSI navigation bar, highlight selected option I have a navigation bar that I include using SSI in every page of a small site. Something like this:
<ul>
<li><a href="option1.shtml">option 1</a></li>
<li><a href="option2.shtml">option 2</a></li>
<li><a href="option3.shtml">option 3</a></li>
</ul>
In each pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hooking Disk Write Operations ? Win32/64 Is there any way to hook all disk writes going thru the system, and receive the file names of whatever's being modified, using the Win32 API? Or is this something that would require writing a driver?
A: You can't do this in user mode, it needs to be kernel mode and so that m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP Button Count I'm just wondering how to count a unique click - to check the IP (not one person make 1k clicks). I viewed some scripts here and in other websites, but they aren't the specific thing I search for. I search only for script to count the clicks (without connecting to the DB) and than write them in HTML... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Bash on cygwin: No such file or directory commonMongo=s:/programs/mongodb/
dbpath=$commonMongo"data/"
logFile=$commonMongo"log.txt"
mongoProg=s:/programs/mongodb/mongodb/
mongoBin=$mongoProg"bin/"
mongod=$mongoBin"mongod.exe"
a=$1
if [ "$a" == "start" ];then
"${mongod} --logpath ${logFile} --logappend --dbpath $... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: javascript placed inside an usercontrol loads but does not execute inside a user control I have placed:
<script type="text/javascript">
$(function () {
alert("foooo");
};
</script>
This javascript loads into the browser fine, but does not executes. What is the proper way to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JQuery .get and generated PHP. How to bind events? Although I have research this topic I don't really seem to understand how to make it work.
Situation:
The following code is used to show the new_comments Div on my page.
<script type="text/javascript">
$(function(){
$('#lnk_comment').click(function() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python: calling java program I have a tag cloud generator that I would like to call from my python program. How can I do it?
I run it in a batch file
java -jar ibm-word-cloud.jar -C configure.txt input.txt output.png
thanks for your help.
A: The subprocess module is now preferred over os.system(). A simple examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IIS 7 & php big files upload problems I've been trying to upload some avi files by using several methods.
First I've tried using ADOBE's ADDT "UPLOAD FILE" to upload *.avi files, everything was ok, until I've tried to upload a 131.5M video. When the size of the video is less than 40M, there's no problem, but when th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What specific data being sent via HTTP POST could result in an HTTP 504 Error? I've got a site that uses an order entry form and sends a rather decently sized POST request when the form is submitted.
However, when a particular value is passed in one of our form variables (OrderDetail), every time without fail, it ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change the property of component in wpf? This is a very simple case
I want to click on the button, then change the itself position
the visual studio prompt me that is a public property, and the type is double. Why I cannot change the value? And it does not provide any method let me change the top property, so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Really basic C# array/loop confusion I'm doing a basic 2D array in C# and I've got a bit of confusion.
I'm a lot more used to working with 1-based arrays, so 0-based arrays kind of mess up my head if you know what I mean.
blocks = new Block[15, 999];
for (int x = 0; x <= 15; x++)
{
for (int y = 0; y <= 999; y++... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding my flex project to github What to commit and what to ignore when adding a flex project to github?
Keep in mind that I want to share it with others and accept pull requests.
A: I don't use flex, but here are some general rules for all source control:
Commit:
*
*Human written code
*Configuration files
*Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: class design - improving a view_html class This class provides user created content to the page.
The call is made from html like this:
<?php new route('tweets'); ?>
or
<?php new route('bookmarks'); ?>
Route instantiates view_html and passes the paramter along.
What improvments that can be made?
/*view_html*/
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery change of checkbox I'm not sure if the change method is the correct to use. What i want is if the checkbox is clicked(checked) the html of the textarea is var two and if the checkbox is unchecked the html of the textarea is var one. How do i accomplish this?
<script type="text/javascript">
$(function() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to deploy an app that I coded for Android to iOS? I'm using Eclipse to build my Android app using XML and JavaScript. Is it possible to deploy it to the App store without rewriting all the code?
A: If you have coded your app to be substantially made up of a webview, then you can transfer all that par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to Use UISearchBar for Custom Cells in UITableView I'm populating my tableview from an array. And this array is created by SQLite query.
So in my array, I have objects from my user-defined class.
And I use custom cells in my table. Like object.name in one layer, object.id near this layer.
So far everything's goo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Checking if there is an active internet connection iPhone situation I would like to check to see if the user has an active internet connection. This is how I have implemented it. It seems to work fine but the problem is it ALWAYS shows that there is no connection on my iPhone simulator (uialert comes up) even when m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: UITabBar Action in a loop I have created a view loading to it toolbar with few 7 buttons.
I want to add action for each - thus each one will perform different action all of them will load view but according to the user selection of the button I will load to the view different screen i.e buttons etc..
Here is my loop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mysql total elapsed times from two dates If i have two rows
id created start stop
1 28-01-2011 23:00 28-01-2011 23:00 28-01-2011 23:01
2 28-01-2011 23:10 28-01-2011 23:10 28-01-2011 23:11
What query can i run to get the total elapsed time for one date, so for 28-01-2011 the total time was 2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Return a Pretty Zero Value with the Count Property from Get-Process? Compare the three scripts below:
Sample 1
$a = GPS | Where {$_.ProcessName -Match 'AcroRd32'}
$a
$a.Count
If ($a.Count -Eq 0)
{
Echo "Adobe Reader is Off"
}
Else
{
Echo "Adobe Reader is On"
}
# If Adobe Reader is not running, how c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: .NET IoC: Register type instance created during actual program execution I'm still trying to get to grips with IoC, and I suppose I'm actually on the completely wrong track here concerning the way program flow/type resolution needs to be structured.
I have a WinForms application written pretty much "the old way" whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Writing the results from a nested loop into another vector in R I'm pretty new to R, and am struggling a bit with it. I have the following code:
repeat {
if (t > 1000)
break
else {
y1 <- rpois(50, 15)
y2 <- rpois(50, 15)
y <- c(y1, y2)
p_0y <- matrix(nrow = max(y) - m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Chart my Y axis dont show right numbers? chs=800x300
&chxl=1:|10:00|11:00|19:30|2:|Tidspunkt|3:|Kcal|
&chxt=y,x,x,y
&cht=lc
&chco=3072F3
&chds=3735.6
&chd=t:1198,2663,3396
&chxr=0,599,3429.96
&chdl=Energi
&chdlp=b
&chls=1|1|1
&chma=5,5,5,25
&chm=o,000000,0,-1,5|o,000000,1,-1,5|o,000000,2,-1,5
Is what i have.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Interacting with the database using layers of separation (PHP and WordPress) I quite often see in PHP, WordPress plugins specifically, that people write SQL directly in their plugins... The way I learnt things, everything should be handled in layers... So that if one day the requirements of a given layer change, I o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to set streetView in my mapview android application? I have another same questions on Stackoverflow, but the don't show any accepted answers !
How do I set streetView in my mapview ? I am using Google API platform 2.2 ?
A: You can use the setStreetView method and give on as an argument to it.
Check this out:
St... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Customizing an image gallery in android I swear, this control has been the bane of my existance this week. Just FYI, I have pretty basic OO/Java skills, I've mainly been using xml to create layouts, but I need to use the gallery control. I've finally got the sample code working from the sdk, but one thing remains a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working with 1bpp images I have a "performance critical" operation where I need to work with 1bpp images.
Actually I'm using the Bitmap class and I'm doing, each iteration of a graphic update cycle, a copy of the bitmap inside the byte array.
Watching my task manager, this is not that I can keep doing: it uses 2% cp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Conditional link display in rails I have a filter bar on my page. The bar should always be in place, however only when I'm on the detail page I want to show a link <- back to list inside of it. Otherwise the filter bar should be empty. What is the most elegant way of doing this in rails 3 or 3.1?
Thanks
Thomas
A: T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629109",
"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.