instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
i am trying to import the content of my blog using BeautifulSoup,using the the syntax as given below
import urllib2
from BeautifulSoup import BeautifulSoup
response=urllib2.urlopen('http://www.bugsandbrains.blogspot.com')
html=response.read()
soup=BeautifulSoup(html)
Every thing worke... | stackexchange/codereview |
how to call a permanent xterm window and it's closed only when user close it?
here's the code that will recreate this problem
import os
from PyQt4 import QtCore, QtGui
from main import Ui_MainWindow
class Main(QtGui.QMainWindow):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.ui... | stackexchange/codereview |
I have a server application that I am rewriting in C++ and this used to use XML to send data to a client/from a client. I have found it to be a real pain to implement XML, even using existing libraries. It seems that it is just counter intuitive at times and the C++ library I've used seems so overly complicated.
I ... | stackexchange/codereview |
I would like to add a user defined column which will auto increment on new record insertion, how should I do this? so that it runs on h2, mysql
@Entity public class Parent {
@OneToMany List<Child> children;
}
@Entity public class Child {
int sortOrder;
}
e.g. Parent1 has Child{1, 2, 3}
Parent2 has {1, 2}
Note:... | stackexchange/codereview |
I admit it, I am learning a lot from Stack Overflow.
After on this question I understood how to make a decoupled background Thread class that returns an integer I am now wondering how to make it more generic.
But how do I need to change this (where "integer" is hardcoded). I use a very long classname just for demonastr... | stackexchange/codereview |
We have a large biztalk EAI setup (+- 70 orchestrations, 200 send ports,...). Almost none of the orchestrations/ports have direct bindings. Every route is configured through filters.
Unfortunately, the time has come to document the integration scenario understandable to non-biztalk techies.
I wondered if there're any... | stackexchange/codereview |
I'm learning c++ right now and I'd like to start interfacing with a graphics card and play with the basics of 3d graphics. I haven't found it in my book or in internet queries, and I actually have absolutely no idea where to start with this. Can c++ code run on a graphics card once it is compiled? I understand that I a... | stackexchange/codereview |
I've being doing some reading up on core audio for ios 4 with the aim of building a little test app.
I'm pretty confused at this point in reseach with all the api's. Ideally what I want to know how to do is to extract a number of samples from two mp3s into arrays.
Then in a callback loop I want to mix these samples tog... | stackexchange/codereview |
I have a drop down. How do I get the selected option, not the value but innerHTML. I want CO from the example. This alert($('#mydropdown').val()); gives me the value 1 but I dont want that.
<select name='mydropdown' id='dd'>
<option value=1 selected>CO</option>
<option value=2>CA</option>
<option value=3>TX</option>... | stackexchange/codereview |
I'm running the below command to show the source code for a PostgreSQL function, but it is difficult to read because there are other columns being shown. Is there any way to show only the source code column? For now, I am copying and paste the output to text editor that does not word wrap. I do not have access to PgAdm... | stackexchange/codereview |
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script>
var str = "{ 'foo': 'bar' }";
var json = JSON.parse(str);
</script>
</body>
</html>
This code throws an error on the second variable statement. Why?
(Chrome says "unexpected token ILLEGAL", Firefox says "JSON.... | stackexchange/codereview |
Is there a way of getting tweets that are not mentions directly from the Twitter API? i.e. Status updates only.
I want this:
StackOverflow rules
This is ok too:
it's cold today @randomUser
But not this:
@randomUser i agree
I've looked at both the REST and Streaming APIs and cannot find a way to filter in this wa... | stackexchange/codereview |
My understand is that specifying variance for generics in C# happens at the type declaration level: when you're creating your generic type, you specify the variance for the type arguments. In Java, on the other hand, variance is specified where a generic is used: when you create a variable of some generic type, you spe... | stackexchange/codereview |
Can I call a Derived Class's method from the base class in C++? If so, how can I do that?
Thank you.
| stackexchange/codereview |
I can create relations/foreign keys in phpmyadmin/mysql. My question is...is it necessary? Is it mainly just for my flow-chart / organization / notes..or does it actually help the database in performance?
Also, when I export the database to an sql file, I don't see mention of the relations anywhere...how would mysql re... | stackexchange/codereview |
I have a website with apache 1.3(SSL enabled) + mod_jk + tomcat 5.5 on Linux redhad setup. Just recently i started having a downtime problem with my web site. Once a day, i get my web site hang on port 80. But if i access directly through 8080 tomcat responses and web site works fine. Both 80 and 8080 ports are access... | stackexchange/codereview |
The Alphabet: a, b, c
I'm trying to define a PDA which accepts
a^n b^m c^p : n + p = 2k for some integer k, m = k, and n, m, p, k >= 0
I think some strings that would be accepted are: #abc#; #aabbcc#; #aaabbbccc#; #abbccc#; #aaabbc# etc
The number of a's, b's and c's are not necessarily equal.
Start the head of the p... | stackexchange/codereview |
I'm getting the following exception while redrawing my DataGridView control:
Unhandled exception : Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
Source : System.Windows.Forms
Stack : w System.Windows.Forms.DataGridView.PaintRows(Graphics g, Rectangle boundingRect, Rectangle clipRect, Boolean s... | stackexchange/codereview |
I'm refactoring for a client an app that should support OpenID, Facebook Connect and custom authentication (email+password).
Suppose that i have:
class MyUser(db.Model):
pass
class Item(db.Model):
owner = db.ReferenceProperty(MyUser)
I was thinking to implement different authentication systems this way:
class ... | stackexchange/codereview |
well i recently installed geany .. the ide is great and worked great for python programs ,
but when i try executing c/c++ programs from the executed button i get an error saying ./geany_run_script.sh: 5: ./rsa2: not found ( rsa is the name of my program )
well i did try googling out but could find a case like mine.... | stackexchange/codereview |
I'm familiar with MySQL but not with Firebird.
I want to change my PHP page, from MySQL into Firebird query, but I have some difficulty during change command FOUND_ROWS(). What is the equivalent function of FOUND_ROWS() in Firebird?
| stackexchange/codereview |
I have a Perl library and want to use SOAP to do the following:
Expose a list of all functions in the library, including the
signature of each function and the perldoc (human-readable
description of the function and its parameters).
Allow people to call a given function and receive an answer in a
SOAP-standard wa... | stackexchange/codereview |
I am having trouble using the link_to_remote method while rendering a layout.
For example in a controller:
def show
render :layout => 'generic_logged'
end
In a view:
<%= link_to_remote 'Delete', {:confirm => "Are you sure?", :url => {:controller => :opinions, :action => :delete_opinion, :id => @opinion.id}}, :metho... | stackexchange/codereview |
Somehow managed to blow this away, and can't figure out how to get it back
Tried un- and re-installing Python 3, but that didn't do it.
Any ideas??
| stackexchange/codereview |
Hi guys wondering if someone can help me, I am using the object literal pattern to organise my code (I'm new to this pattern). I am trying to return the value of a variable from a function but it keeps returning me the whole function - could someone tell me what I am doing wrong here is a snippet from my code -
't... | stackexchange/codereview |
This one's really getting me down! :(
I'm trying to make a nested model form for my User model with a checkbox list in it where multiple Stores can be checked or unchecked to administer the Stores through model Staffing.
class Staffing < ActiveRecord::Base
# Associations
belongs_to :user
belongs_to :staffable, ... | stackexchange/codereview |
First off I confess my ignorance, I've learned everything I know about Objective-C in the few months I've been working on my project. I also find it utterly frustrating how Objective-C seems to complicate what would be simple matters in any other language I've worked with. This question is a case in point...
In the fir... | stackexchange/codereview |
I thought the usual response time has to be something like 30 seconds or something like that, but I actually have a development website running on a Macbook using an MVC framework responding in 45 seconds and all the major browsers won't time out. What is the usual rule of how long before the browsers will time out?
| stackexchange/codereview |
I have a list of customers shown at a top menu where every customername is a menuitem.
Now I want to have the same (same = I do not want to reload my data from database ) customers in another menu.
Both menus are in 2 different UserControls.
In every UserControl you can do stuff on that customer-menu.
How would you de... | stackexchange/codereview |
How do we make a tree grid with pager using jqGrid?
I have checked and try the demos, but it didn't show any pager, even though there is a pager div in the code
How do create the pager ?
| stackexchange/codereview |
I'm trying to build an app for submission to the AppStore..
Each time I try to build it I get a warning during Validate saying:
The dwarfdump binary must exist and
must be executable: /usr/bin/dwarfdump
(-19036)
And Apple doesn't allow me to submit the app binary because of this warning. Does anyone know what's w... | stackexchange/codereview |
I am making a custom view that has 2 elemnts: a background that consists of a Bitmap like a map and a small resource image that acts like a pin, to indicate position on the map. On each gps position change my view get's update and the pin moves in the new position.
First it woks fine, after a while I get this error: ... | stackexchange/codereview |
I want to install python2.5.5 in Ubuntu10.10, since Ubuntu10.10 now just supports python>=2.6, so I download source file from python website and try to install it use
./configure && make && sudo make install, it seems that python2.5.5 has been installed successfully, but when I want to use it, sometimes it says "no mo... | stackexchange/codereview |
I have a json file with contents like this:
{
"aaa":{
"status":"available",
"classkey":"dotnet"
},
"bbb":{
"ccc":{
"com":"available",
"net":"available",
"info":"available",
"org":"available"
}
}
}
Now I want to... | stackexchange/codereview |
Often I could use some tools to statically analyze my code in order to help me making it cleaner. Something like compiler warnings, but those are not enough. Every now and then I dream about writing one (using clang libraries or gccxml), but I guess it would take too much work.
Some things that pop to my mind are:
loo... | stackexchange/codereview |
I am using core-plot sdk and trying to plot a bar chart.
I have RootViewController which extends from UINavigationController, and I am adding my viewController which render the barChart, here is code
RootViewController.m
- (void)viewDidLoad {
[super viewDidLoad];
barChartViewController = [[BarChartViewController... | stackexchange/codereview |
in my users model I have a paperclip setup like this:
has_attached_file :profile_pic,
:styles => {:large => "300x300>", :medium => "150x150>", :small => "50x50#", :thumb => "30x30#" },
:default_style => :thumb,
:default_url => '/images/:attachment/default_:... | stackexchange/codereview |
Anybody has an idea what the hell these characters in below screenshot are? Almost every key I press results in the characters in the screenshot. I get the issue very frequently (can't code 20 lines in a row without having it) and it seems to be triggered by intellisense use...
Seems I got it after installing the lates... | stackexchange/codereview |
I have a view containing a UNION ALL. For example:
CRATE VIEW myView as
(SELECT col1, col2, col3
FROM tab1)
UNION ALL
(SELECT col1, col2, col3
FROM tab2)
These are large tables containing 10s of millions of rows each. If I write:
SELECT *
FROM myView
LIMIT 1;
instead of being immediate, it basically never return... | stackexchange/codereview |
For my application I'd like to use all the built in manipulation possibilities, like e.g. zoom. But if the user presses 3 fingers on the screen I'd like to show a specific UI element. So what is the best way to check if the user has pressed 3 fingers at the same time and next to each other on the screen? (without disab... | stackexchange/codereview |
I want to select only the very first links from "dropdown menu" (the ones with "ONE" text), but :first-child selects them all.
Link:
http://jsfiddle.net/773Xd/1/
Sorry for the mess in the HTML part, but I'm customizing Wordpress theme and it produces so many classes and ids.
The most important thing is at the end of CS... | stackexchange/codereview |
I use a CDN to deliver static files, but I'm wondering if it's possible to use one for pixel tracking. What I'm looking for is a normal CDN, except it has access logs with full HTTP headers. I'm guessing the storage costs, etc. would make this infeasible, but maybe there is something I'm not familiar with.
| stackexchange/codereview |
I have tried to implement the Asset Library and create a Custom Image Picker. Specifically, I am trying to run the code given here: http://icodeblog.com/2010/10/07/cloning-uiimagepickercontroller-using-the-assets-library-framework/
The code runs perfectly well in Simulator 4.1 but when I try 4.0 or 4.2 it gets stuck on... | stackexchange/codereview |
There is a strange difference when binding commands to Ctrl+N gestures in WPF. Some but not all of these gestures are ignored, while the rest are ok. Did anyone else experience this behavior by any chance?
Window XAML structure is very simple: command binding, input binding, and a DockPanel with Menu and RichTextBox. ... | stackexchange/codereview |
i am currently using xslt1.0 and jdk1.6.0_10 for converting xml to html..but i couldnt use some inbuilt-functions of xslt2.0 in xslt1.0.
How to migrate from xslt1.0 to xslt2.0.what are all the change i have to do.
please help me...
Thanks in advance..
| stackexchange/codereview |
Is there idiomatic and/or elegant Python for zipping and applying a list of functions over a list of values?
For example, suppose you have a list of functions:
functions = [int, unicode, float, lambda x: '~' + x + '~']
and a list of values:
values = ['33', '\xc3\xa4', '3.14', 'flange']
Is there a way to apply the ith... | stackexchange/codereview |
I would like the native Flex checkBox to change state only, when the box is clicked. If user clicks the label the state shouldn't change.
The click event cannot be muted as it is utilized in parenting components.
Any ideas how to obtain such functionality? How to detect, that user has clicked the label?
Thanks,
Rafal
| stackexchange/codereview |
I need to change the default implementation within my project for org.w3c.dom.Document.
I followed this link
to change the default implementation for:
javax.xml.parsers.DocumentBuilderFactory
javax.xml.parsers.SAXParserFactory
javax.xml.transform.TransformerFactory
I've created 3 files with the above names with in MET... | stackexchange/codereview |
I want the browser to start by checking if a cookie with the name "yes" exists.
If so, I want to display a message.
If not, I want to display this:
<input type="button" id='approve' value="approve" onclick="a()"/>
<input type="button" id='reject' value="reject" onclick="r()"/>
How do I achieve this? I want it to be cl... | stackexchange/codereview |
In Fredrik's Blog post, he has an example of a C# if statement
@if (WebSecurity.IsAuthenticated) {
<li><a href="/user/login">Log in</a></li>
} else {
<li><a href="/user/logout">Log out</a></li>
}
But in VB I can't seem to figure out how to do the same thing
@If (HttpContext.Current.User.Identity.IsAuthenticate... | stackexchange/codereview |
hi all:
There is an OOM error when I using DIH to execute a full import command, The database is sql server 2008, and only 30k rows data in db, How do I fix it?
Thanks in advance for any help:)
| stackexchange/codereview |
I have an application on Heroku that runs on Rails 2.3.5
it also uses oauth2 gem.
when I deploy the application, it automatically installs the oauth2 gem (as it should because i've stated it in the .gems file) but it installs the latest version of Rack (version 1.2.1) because oauth2 depends on Rack.
since Rails 2.3.5 i... | stackexchange/codereview |
How can I get the current resolution in win32? I know I can use GetMonitorInfo to get the current bounding rectangle of the monitor, but how can I also get the bit-depth? Pretty much, how do I get the DEVMODE struct of a given monitor?
I'm using python and pywin32, so solutions addressing those specifically are nice, ... | stackexchange/codereview |
Does anyone have any ideas on measuring the popularity of an open source project? I thought it would be interesting to create a tools which would compare the popularity of similar open source projects.
The first metric that came to mind was to compare the number of Google results for each specific software, but it s... | stackexchange/codereview |
I am a big fan of keyboard shortcuts. If some function or operation doesn't have shortcut I tend to write a little program and attach Ctrl + Alt + [key] shortcut to it.
Yesterday while coding with Visual Studio I started thinking how well they had assigned the shortcuts. There are enormous amounts of commands and stil... | stackexchange/codereview |
Where can I find the xml schema for youtube xml below ?
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom'
xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'
xmlns:gml='http://www.opengis.net/gml' xmlns:georss='http://www.georss.org/georss'
xmlns:media='http://search.yahoo.com/m... | stackexchange/codereview |
I'm new to KDE development. I wrote a plasmoid that needs to store its data somewhere, namely - ical feeds need to be stored for offline usage.
While I could just write it to ~/.ical/ or some other location I would make up, I'd like to know what is the proper way of doing it - is there an API i can query about the path... | stackexchange/codereview |
In jQuery, how would I descend as far as possible into the HTML tree?
For simplicity, I only have one path going downward.
(related but bonus: how do I find the deepest element with multiple downward paths?)
<html>
<table id="table0">
<tr>
<td id="cell0">
<div class"simple"> I want to chan... | stackexchange/codereview |
i have a string in which a word is like this "#<i><b>when</b></i>". i want only word without any tag. when in striped "#" word became "<i><b>when</b></i>". but when i striped "<i>" word became like "b>when"<b>when</b>"?
| stackexchange/codereview |
my app is nearly finished but a leak has appeared.
After having spent an hour trying to find out how to solve this link, I can't find a solution. I'm sure one of you will help me out :)
Here is the screenshot from XCode
Thanks for your help!
| stackexchange/codereview |
I'm developing a simple application.
I have some views:
-1 for login;
-1 for "mystats";
-1 for post a pictures to a server.
I have some question.
I designed all layout of these Views, and now I need to implement the code.
At the moment, my problem is to pass the username and pass (from the edittext) to server.
Any sugg... | stackexchange/codereview |
I have a http hanlder to provide service to client. Do I need to change if adopting asp.net mvc?
| stackexchange/codereview |
I'm creating a UIView similar to Apple's Scrolling example and I have a question regarding UIImage and caching; I don't know if I fully understand the practical implications of the Apple Documentation.
The docs say:
Discussion
This method loads the image data into memory and marks it as purgeable. If the data is pur... | stackexchange/codereview |
I've got a little problemo. In my CodeIgniter Controller I'm loading the same view many times into an array. Each view is assigned to a value, which in turn is added to the $data array to pass to the view. I'm now having problems getting the data back out of the $data array in the master template view.
Here's how I cre... | stackexchange/codereview |
I've got alot of small files that I'd like to put into s3. My goal is to minimize cost and use the fewest amount of put request's as possible. Is there anyway to stream multiple files onto s3 using only one put request? Currently the code I've implemented uses a put request per file and goes straight from the browser i... | stackexchange/codereview |
I want to apply FedEx shipping method for Canada only and USPS to USA only in magento. is it possible ? if yes, then please, explain in brief ?
| stackexchange/codereview |
I tried enough to find in google & android this question. Also did several trials & errors, but couldn't get this question.
I was learning Android's "Draw Nine Patch" images. One basic I know is that, whatever image you process must be in .png format (if it's already in .9.png then it will be ignored by tool). However,... | stackexchange/codereview |
How do i create a script with a form, and then when the user inputs php code it is being tested? Basically creating an PHP ONLINE TESTER script. Thanks for your help!
| stackexchange/codereview |
I use jQuery and the tablesorter plugin extensively, but with tables of significant size (900-1200 rows), the plugin just grinds Internet Explorer (tried 7 and 8) to a halt.
Yes, I'd like to paginate (can't); yes, I'd like to tell everyone to use Chrome (can't), but I'm wondering if anyone has any other solutions. Perh... | stackexchange/codereview |
I'm trying to lazy load UIWebViews inside a UIScrollView.
Every time the user scrolls, the WebViews frames are updated and new content SHOULD be loaded. And that's exactly where I'm having trouble. The repositioning works well, but the new content (local NSStrings, which are called using loadHTMLString) does not appear... | stackexchange/codereview |
I have a large number of sequential integers i need to do a lookup on, ie I need to get an offset for an serial integer id. The problem is that I'd rather not load the entire table into memory to build a hashtable/dictionary due to memory constraints so what to do?
One solution that might work is to have a file where t... | stackexchange/codereview |
I created a view in schema A using snapshots in schema B. I was trying to assign roles to the view. But it doesnt allow me to. It says there is some error related to access to the tables from the snapshots.
Any ideas?
| stackexchange/codereview |
This code is working in IE and not in Firefox.
Help me
<html>
<head>
<title>jQuery test</title>
<script type="text/javascript" src="jquery.js"></script>
<script type='text/javascript'>
$(document).ready(function() { alert($('#hi').val()); });
</script>
</head>
<body>
<span id='hi'value='10'>This is my name<... | stackexchange/codereview |
How does it come, that the following type checks
{-# LANGUAGE RankNTypes #-}
module Main where
class Foo a where
type FunFoo = (Foo a) => a -> IO ()
data Bar = Bar {
funFoo :: FunFoo
}
setFunFoo :: FunFoo -> Bar -> Bar
setFunFoo action bar = bar {funFoo = action}
but when changing the type signature off setFunF... | stackexchange/codereview |
I am trying to match <input> of type hidden fields using this pattern:
/<input type="hidden" name="([^"]*?)" value="([^"]*?)" />/
This is some sample form data:
<input type="hidden" name="SaveRequired" value="False" /><input type="hidden" name="__VIEWSTATE1" value="1H4sIAAtzrkX7QfL5VEGj6nGi+nP" /><input type="hidden" ... | stackexchange/codereview |
I have the following script, which is in an external file called at the top of my HTML page. The idea is that I have an Ajax request pinging a database, when the database is updated, the Ajax sees this and calls the function below. It works great in Firefox, but doesn't work at all in IE. Any suggestions?
var GoPopUp =... | stackexchange/codereview |
I'm using Emacs 23.2. Here's how I'm loading semantic:
(setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
global-semanticdb-minor-mode
global-semantic-idle-summary-mode
global-semantic-mru-bookmark-mode))
(semantic-mode 1)
So, if I create a simp... | stackexchange/codereview |
Is there any way to use a string on a page using a master layout and calling a section?
So instead of this:
@section SomeSection
I could do this?
@section "SomeString"
Or better
@section SomeClass.SomeConstantString
Reason for this? So that I can use a constant string on the master page for the section name ... | stackexchange/codereview |
is there any Control or Jquery Plugin exist for asp.net Auto Complete DropDownList?
if yes please link a sample here.
I don't want use asp.net ajax control toolkit
| stackexchange/codereview |
How to use LabVIEW Property Node in C#(with Measurement Studio) ?
| stackexchange/codereview |
With ref to design patterns which in your experience are most difficult to master, in the sense they are relatively not that intuitive.
| stackexchange/codereview |
One ViewController is shared by two XIBs, i.e. there are one XIB for horizontal layout and another one for vertical layout. Both XIBs are linked to the same ViewController, i.e.:
HiScoreViewController.h
HiScoreViewController.m
HiScoreViewController-Horizontal.xib
HiScoreViewController-Vertical.xib
The question is how ... | stackexchange/codereview |
I've been looking for this error in several places and the only thing I found is maybe is a wild pointer problem, but don't know how to solve.
The question is c++ connector works fine (after hard working) connects to mysql database, retrieves information, but every time that uses string or sqlstring type it crashes, (s... | stackexchange/codereview |
I have a loop like this:
for $a in local:distinct-nodes($x/input/book[@stat = 'ok'])
let $b:=string($a/../input/@docid)
This returns an empty string($b is empty). So, I am wondering how I can access the parent node in this situation. I do not really want to access it from root (//xxxx) cause the XML file is quite larg... | stackexchange/codereview |
I have a folder on my desktop titled "Stuff" and in that folder I have the following:
Hello.java
mail.jar
And Hello.java imports from mail.jar, so I need to tell Hello.java to look for mail.jar.
From a Windows command line and from a unix command line, how can I compile this and run this?
| stackexchange/codereview |
I am new to Spring and Hibernate. I tried to create a simple application using JSF, Spring and Hibernate. When I am try to run the application through Eclipse, I am getting this error
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AddressBean' defined in ServletContext resourc... | stackexchange/codereview |
What's the difference between
Func<string,int> returnLength;
returnLength = (string text) => { return text.Length; };
Console.WriteLine (returnLength("Hello"));
and simply
string str = "Hello";
Console.WriteLine (str.Length);
Any advantages using one of those?
| stackexchange/codereview |
I am creating a DLL for Windows Mobile 6.x. I need to obtain HMODULE of my own DLL, but so far I haven't been successful. For standard Windows DLLs this seems to be quite simple, as DllMain signature is:
BOOL DllMain(HMODULE, DWORD, LPVOID)
And you can just take the first parameter and save it in a global variable. How... | stackexchange/codereview |
What do the curly braces surrounding JavaScript arguments for functions do?
var port = chrome.extension.connect({name: "testing"});
port.postMessage({found: (count != undefined)});
| stackexchange/codereview |
I have two methods, ProcessQueue and AddToQueue, which happen on different threads. Sometimes I will attempt to Process the Queue before an item is added to a queue, at which point I want to wait for an item to be added to a queue. I also want to make sure that I will never get a situation where I wait, after the Que... | stackexchange/codereview |
I want as I search backwards in the document to do copying (M-x) and then return to the saved mark after a few copying commands and paste the things I copied. What ways are there to do this?
Best,
| stackexchange/codereview |
I have this code:
if (file_exists(CHAL_DIR . $row['filename'])) { // Check if the file exists or not.
if(!include('' . CHAL_DIR . $row['filename'])) { // Include the Challenge's class file.
echo "Include failed.";
} else {
... | stackexchange/codereview |
How to create a true function pipeline using C#? I got some idea like as follows, but it is not a true pipeline
public static IEnumerable<T> ForEachPipeline<T>(this IEnumerable<T> source, params Func<T, T>[] pipeline)
{
foreach (var element in source) {
yield return ExecutePipeline(element, pipeline);
}
}
private ... | stackexchange/codereview |
This is a problem I'm facing in a webapp I'm currently working on.
So instead of cluttering the question with unrelated code, I recreated the problem in an isolated, simplified webapp that only demonstrates this issue.
Hopefully this helps in finding a solution.
I have a web user control with just this as its content... | stackexchange/codereview |
Hi I am doing a small application in asp.net using JQuery
$(document).ready(function() {
var imgPoll = new Image();
imgPoll.src = 'images/red-bar.png';
if ($("#divVoted").length > 0) //Already voted
{
animateResults();
}
else {
$("#rdoPoll0").a... | stackexchange/codereview |
I am using following example to display internet images in my activity.
http://developer.android.com/resources/tutorials/views/hello-gridview.html
In custom image adapter I'm directly loading images from internet and assigning it to imageview.
Which shows images in gridview and every thing works fine but it is not effi... | stackexchange/codereview |
I use code with foreach. If I put the insert query into the foreach I have multiple rows with the same title.
field1|field2
title |content
title |content2
How to write the title on one row and the content to be split with commas ?
Edit:
`foreach(...) {
//INSERT INTO rss(title,content) VALUES ('$title','$content') ... | stackexchange/codereview |
How do I know page size of a unix machine, using malloc()?
| stackexchange/codereview |
I'm doing a little python plasmoid that deals with remote resources.
Here's the code : glpoid
It offers a view of tickets (the default one), a view that let the user filling and sending a new ticket, and a last one to see a ticket detail...
My problem is that i don't know how to "close" the current layout when i'm pass... | stackexchange/codereview |
I want make digital sign in iphone...is it possible in iphone via xcode...
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.