instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've just started using GitHub. I've set up my public key and and have git installed on OSX. I know the commands etc. from when I studied it at university.
What I want to know: Is there any "conventional" file structure that most GitHub members use? I notice a lot of people use 'src', 'test', etc. Does anyone have more... | stackexchange/codereview |
there are some actions I would like to globally specify on Ajax.BeginForm. (For example, user clicking any button should be disabled till we hear back from the Ajax request - OnComplete event). How should I efficiently accomplish this in one single place instead of hijacking OnBegin and OnComplete of every single inst... | stackexchange/codereview |
I have a class library project in .net say "A" which when built will create a dll namely "A.dll". I have another project say "B" and this project contains the reference of the dll "A.dll". What exactly happens when I add the reference of A in B? Can anybody please tell me what happens both during compile time as well a... | stackexchange/codereview |
I am wondering whether it is possible to change the action of a Facebook like button on an Ajax event.
What I am trying to do:
I display an article when the page was loaded. At the end of the article I have a button which loads the next article via Ajax. Additional I have the following Facebook like button:
<fb:like hr... | stackexchange/codereview |
I am working on PDF viewer on iOS, calling [TiledLayer setNeedsDisplay] invalidates display region well in iOS 3.X version. The same code doesn't work on iOS 4.0 onwards. I searched thru forum, None of them helped me.
Could anyone point some clue to resolve this issue?
| stackexchange/codereview |
google no found...
I want two solutions:
1) How to remove an element in a for..in.. loop for a list?
2) How to remove all the elements in the list?
| stackexchange/codereview |
Hey I'm trying to get the date from the CallLog.Calls in Android. I'm doing like this:
import org.apache.http.impl.cookie.DateUtils;
import android.database.Cursor;
Cursor cursor = getContentResolver().query(
android.provider.CallLog.Calls.CONTENT_URI, null, null, null,
android.provider.CallLog.... | stackexchange/codereview |
#!/usr/bin/env perl
use warnings;
use 5.12.2;
my $c = 'f'; # could be a number too
if ( $c eq 'd' || $c == 9 ) {
say "Hello, world!";
}
What is the best way, to avoid the 'Argument "f" isn't numeric in numeric eq (==) at ./perl.pl line 7.'-warning?
I suppose in this case I could use "eq" two times, but that doe... | stackexchange/codereview |
I have two files, in the following formats:
field1, field2, field3
field4, field1, field5
A different field number indicates a different meaning.
I want to join the two files using Hadoop Streaming based on the mutual field (field1 in the above example) so the output will be field1, field2, field3, field4, field5 (oth... | stackexchange/codereview |
I'm trying to make a program (client) which kan send a message to a server upon request from user. Stripped down code follows:
Client:
int main(int argc, char **argv) {
struct sockaddr_in servaddr;
int sock = socket(AF_INET, SOCK_STREAM, 0);
memset(&servaddr, 0, sizeof(servaddr));
servaddr.sin_family = AF_INE... | stackexchange/codereview |
Is it possible to extend the gap between spoken words when using text to speech with SAPI5 ?
The problem is that esp. with some voices, the words are almost connected to each other, which makes the speech more difficult to understand.
I'm using python and pyTTS module (on windows, since it's using SAPI)
I tried to hook... | stackexchange/codereview |
My ISPs server uses MySQL.
I have a table which has a field with 2000 characters in it, I show about 20 records at a time on most pages and this I think causes the site to be slow.
I'd like to limit the characters to 450, I can do this in PHP, but I was wondering if I could do it in the query instead, e.g. left(english... | stackexchange/codereview |
When performing a search of shops and paginating the results (10 per page) on the left hand side of the page I need to show the list of employees (without duplicates) that work in all the shops currently displayed.
In the view I have the following but it doesn't feel like the most efficient and it shows duplicate emplo... | stackexchange/codereview |
I'm new to Objective-C and iPhone SDK development. I want to call a method in the same class:
- (void) setFilePath:(NSString *) p
{
[self methodCall];
}
- (void) methodCall
{
fileContent.text = @"Test"; //fileContent is a UITextView
}
If the property "filePath" is set, the method "setFilePath" is called. Then the... | stackexchange/codereview |
In sql server database, I have column name Image which has urls like http://www.xyz.com/1009/image1.jpg
Now I want to display it on my datalist. But it is not showing any image. It is might be the case because it is expecting the Image URL to be ~/Folder/abc.jpg
Then how to show the image on the asp.net page when I hav... | stackexchange/codereview |
this is my first post on this forum. So hi!
I have a problem. I've created an online tool for mystery shoppers to encode and validate visits they have don all over europe. So far, my automatically generated forms based on php and mysql data works great. I have one recurring problem. The forms works great in ie (all ver... | stackexchange/codereview |
used a script to rename a column which has caused a problem...
sp_RENAME 'products.isvalid' , '[_is_valid_system]', 'COLUMN'
Now I have a column name with square brackets in, and I can't access the column to resolve the problem.
Column Name:
[_is_valid_system]
An attempt to repair the issue like so fails because of t... | stackexchange/codereview |
I have a field defined in my model-
languages = models.CharField(max_length = 30, choices=LANGUAGE_CHOICES, blank = True, null = True)
The choices are simple-
LANGUAGE_CHOICES = (
('English', 'English'),
)
I define a ModelForm on this model and override the field-
languages = forms.MultipleChoiceField(choices... | stackexchange/codereview |
Problem statement : How to parallelize inserts in SQL Server (2008)
I am performing massive numeric computation for scientific research in C# multithreaded workers that basically do one thing : Test thousands of possible configurations (matrix combinations) through a time period (in days) and store the results into an ... | stackexchange/codereview |
I'm using Views in Drupal.
I have an issue with the trimming functionality. I've set the trim to 240 characters in order to avoid the content to overlap the next section.
However, if there are spaces, let's say the customer adds 2 empty lines, this doesn't work anymore.
How could I solve this ?
| stackexchange/codereview |
Both FMDB and TouchXML are outside fraweworks. But we need to add -libxml2 flag while implementing TouchXML and we don't add any flag while implementing FMDB. Can anybody explain this to me ?
| stackexchange/codereview |
Something like this. I want to brute force all characters with word of 10 size
lookup = map(chr, range(32, 127))
for i in lookup:
for j in lookup:
for k in lookup:
for l in lookup:
for m in lookup:
for n in lookup:
for o in lookup:
... | stackexchange/codereview |
Hey all,
I have a Segmented Controller which displays a framed(cgrectmake) UIview containing a UITableView.
I addSubView to display the tableview and this is fine. But inside the tableview in didselect method i want to push a different viewcontroller.
But it fails to appear when i do this, it does register the touch e... | stackexchange/codereview |
function getSelectData(id) {
var value='';
// set value to be the current selected value
value = jQuery(id+" option:selected").val();
// change value whenever the box changes
jQuery(id).change(function () {
value = jQuery(id+" option:selected").val();
});
console.log(value);
return value;
}
Thanks to @Hogan... | stackexchange/codereview |
Im looking to populate drupals form api fields with records from the database.
with:
function mytopfive() {
$form['mytop_header'] = array(
'#type' => 'markup',
'#value' => t('<h2>Your favourite Jobs</h2>'),
);
$result = mysql_query('SELECT * FROM topfive WHERE uid = 1 ORDER BY order_value ASC');
... | stackexchange/codereview |
I have a .dll file.I want to add this file to my program and use the component of its.(in C# & winforms)
How do I can do this?
Thanks.
| stackexchange/codereview |
9 times out of 10, simply using Map and Set behave like I expect they would, but occasionally I am unexpectedly hit with
error: type mismatch;
[INFO] found : scala.collection.Set[String]
[INFO] required: Set[String]
As an example, from the REPL:
scala> case class Calculator[+T](name: String, parameters: Set[Stri... | stackexchange/codereview |
I've never created a script before and am looking for a tutorial on writing a script for OSX 10.6. There is a terminal command that can show all hidden files. It's
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
Changing TRUE to FALSE will hide system files. I want to make a script that checks ... | stackexchange/codereview |
I revised this post. I am new to programming and do not know if the functions are set up correctly or even how to allow the selection of packages. Below is my objective.
I have a class assignment to write a C++ program that will calculate a customers monthly internet bill. It would input a customer name, which package ... | stackexchange/codereview |
This warning pops up when I bring up the AVD Manager in Eclipse (3.5) on a Mac with OSX 10.6.4. Any ideas of what is causing this?
| stackexchange/codereview |
This is relating to mysql query with AND, OR and NOT and also mysql has all values I have solved the AND part of the problem, but Now I also now need to solve the OR and the NOT.
Just to confirm the below statement gives me all articles that have each topic 1, 2 and 3
SELECT x.*
FROM Article x INNER JOIN
(SELECT t.art... | stackexchange/codereview |
So I am having problems getting NHibernate intergated in my MVC project. I therefore, installed the NHProfiler and initialized it in the Global.asax.cs file (NhibernateProfiler.Initialize();).
However, all I can see in the NHProf is a Session # and the time it took to come up. But selecting it or any other operations... | stackexchange/codereview |
I am having difficulty retrieving a comma separated list from MSAccess using SQL. It is very easy to do with SQL Server and I have accomplished it there. But the MSAccess solution seems to elude me.
DECLARE @EmployeeList varchar(100)
SELECT @EmployeeList = COALESCE(@EmployeeList + ', ', '') +
CAST(Emp_UniqueID... | stackexchange/codereview |
I am developing a website and I want to implement caching to improve its performance.
If I use
<@ OutputCache Duration="20" VaryByParam="None">
where will my page be stored? On the client side or on the server? If it's stored on the client side, where is it stored?
Can I cache a master page?
| stackexchange/codereview |
I'm working in C++ enviroment and:
a) We are forbidden to use exceptions
b) It is application/data server code that evaluates lot of requests of different kinds
I have simple class encapsulating result of server operation that is also used internally for lot of functions there.
class OpResult
{
.....
bool succeeded... | stackexchange/codereview |
I need to store some data in a MySQL-database using Jpa 2/Hibernate 3.5.1. For legacy reasons the table I want to store data in has a compound primary key. The first part of the primary key is of type INTEGER (auto-increment-value), the second part is of type BIGINT (Long in Java-code - to be set manually before persis... | stackexchange/codereview |
I have a HABTM-relation between the models "Snippets" and "Tags". Currently, when i save a snippet with a few tags, every tag is saved as a new record.
Now i want to check if a tag with the same name already exists and if that´s the case, i don´t want a new record, only an entry in snippets_tags to the existing recor... | stackexchange/codereview |
after assigning loaded XML data to an array of objects, i would like to remove the XML from memory, or at least available to the garbage collector. however, doing so also removes the assigned object values in the array.
rather than calling XMLdata = null;, i'm calling System.disposeXML(XMLData); as directed by the doc... | stackexchange/codereview |
I am trying to find out any methods to retrieve quality parameters like BER and CIR. The only thing I was able to find in Google and in Android Developer website was getGsmBitErrorRate(), but it seems to show -1 for all the time. So is there any way to get quality parameters in other way? Or may be I am just doing some... | stackexchange/codereview |
Today I discovered that something I had assumed about VB.NET for many years was not true (worrying!). I assumed that a variable declared within a loop had a lifetime of the iteration it was declared in, but in fact it seems it has a lifetime of the whole procedure.
For example:
For i As Integer = 0 To 1
... | stackexchange/codereview |
If a user clicks the browser's back button, then I want a prompt to appear and ask for confirmation. If the user clicks 'OK', then it should navigate to xx.html. If the user clicks 'Cancel', then it should prevent the navigation. How can I do this?
Note: Already I tried the onbeforeunload method, but it is working for... | stackexchange/codereview |
I have a WPF application which maintains a set of virtual 'folders' (organizational concept), and I'd like to hook into something like the Folder Browse Dialog to select a folder (as a parent to some other kind of operation).
These are NOT denizens of the filesystem - what I need to do is be able to programmatically te... | stackexchange/codereview |
I'm using WindowsAuthentication in my silverlight application
Here is the setting that I have done in web.config
<authentication mode="Windows"/>
<basicHttpBinding>
<binding name="ServiceBinding" maxBufferSize="2147483647" maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647">
<readerQu... | stackexchange/codereview |
I am trying to create CLLocation object by using both init methods but its not creating and giving the error. Below is the lines of code:
CLLocationCoordinate2D locCor = userLoc.coordinate;
CLLocation *locloc = [[CLLocation alloc] initWithLatitude:userLoc.coordinate.latitude longitude:userLoc.coordinate.longitude;
Belo... | stackexchange/codereview |
Does anyone know why the search text remains on the bottom of screen (as shown in image below). Steps to get there:
Choose to search for location
qwerty keyboard comes up
auto complete bar appears above qwerty
hit "Done" and the auto complete text remains on screen and relocates to bottom, but search is called
.... | stackexchange/codereview |
I am working on a Windows application.
I have a form with labels like
HOST:
UserName:
Password:
How I can declare the connection string in the app.config file so that it takes the initial catalog, userID and password as variables that I can use in further to check the user whether which database the user wants to get ... | stackexchange/codereview |
In SP Designer, How do I change the default text in the button. Like OK--Submit and Cancel--Go Back.
Can I change it, If yes what where does the mapping goes ..
Thank you..
| stackexchange/codereview |
I'm looking to change the popovers border. It's just a solid flat color, so no image required.
Is there a property that I can tap in to, or will I have to subclass?
| stackexchange/codereview |
Does anybody know how make a SOAP Request that support cross-domain with JQuery.
I searched for it, but I did find a clearly example about how do it.
Thanks.
| stackexchange/codereview |
Has anyone had luck with this combination?
So far I've gotten the message:
ERROR: could not load library "C:/Program Files/PostgreSQL/9.0/lib/plperl.dll":
The specified module could not be found.
...to go away by making a copy of perl512.dll and renaming it perl510.dll. Now I'm having issues installing some modules ... | stackexchange/codereview |
So the univ operator. I don't exactly understand it.
For example this:
foo(PredList,[H|_]) :- bar(PredList,H).
foo(PredList,[_|T]) :- foo(PredList,T),!.
bar([H|_],Item) :- G =.. [H,Item],G.
bar([_|T],Item) :- bar(T,Item).
What is this doing? This looks to see if another predicate is true. I don't understand what the ... | stackexchange/codereview |
I need to hide/show (actually slideDown/slideUp) an 'add to cart' button underneath each table column.
My markup is a pretty basic table and the buttons positioning isn't causing any trouble either but what I cannot figure out is how to attach an event handler to the 'hover' event of a table column that will show the b... | stackexchange/codereview |
I am developing an app that tracks the user's position. I do not know how to read gps location data from the BlackBerry.
| stackexchange/codereview |
I'm trying to setup a (I thought) fairly simple versioning system for static html pages on a site. The goal is to keep previous versions of the content, then restore to them if needed (I guess basically creating a new version that's a duplicate of an old one), and optionally to toss out data older than X versions ago.
... | stackexchange/codereview |
I have a function for writing ppm files (a picture format) to disk. It takes the filename as a char* array. In my main function, I put together a filename using a stringstream and the << operator. Then, I want to pass the results of this to my ppm function. I've seen this discussed elsewhere, often with very convoluted... | stackexchange/codereview |
How could I make population unsigned?
def self.up
create_table :cities do |t|
t.string :name
t.integer :population
t.float :latitude
t.float :longitude
t.timestamps
end
end
| stackexchange/codereview |
I've written a vary basic shell script that moves a specified file into the dustbin directory. The script is as follows:
#!/bin/bash
#move items to dustbin directory
mv "$@" ~/dustbin/
echo "File moved to dustbin"
This works fine for me, any file I specify gets moved to the dustbin directory. However, what I would l... | stackexchange/codereview |
I'm currently working my way through the facebook-iphone-sdk and the MGTwitterEngine and I'm wondering why this all has to be so hard.
I'm not planning to access any data from the two social networks, just allow the users of my app to post a message as their status/update.
Now after I installed the facebook-iphone-sdk ... | stackexchange/codereview |
I need to have three columns in all my tables to reflect these as per requirements:
Create date/time -> Date and time the
row was created. This value should
never change forever.
Modified date/time -> Date and time only
portions of the row was last modified.
This value will always change if any
detail in the row is c... | stackexchange/codereview |
I've problem with validating all text boxes in PlaceHolder.
I made PlaceHolder and I've no idea how to check that all textboxes have integer numbers as a text. Any ideas?
public void Made_Matrix (PlaceHolder Matrix, int Size){
for(int row=0; row < size; row++){
for(int col=0; col < size; col++){
TextBox TB = New TextBo... | stackexchange/codereview |
I have a multi-module project where the parent POM specifies (in a profile) the configuration and use of the maven-jarsigner-plugin to sign the jars that the project produces.
<profile>
<id>sign</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
... | stackexchange/codereview |
I use Tortoise SVN and I have one repository called "First". My SVN Location is C:\SVN.
Now, I created a new project in repository "Two".
The current structure is
C:\SVN
-> First
-> Second
I have few classes in First that I want to use in Second. Earlier, I just used to copy the files and modify it in second, but now s... | stackexchange/codereview |
in my app i am having an Activity that launches another Activity ontop of it. The second Activity is meant to provide controls like next and previous for the first activity.
How can i pass button events between the two activities that are visible at the same time without closing the Activity with the controls?
| stackexchange/codereview |
I'm writing a PHP application and in my code i want to create create and return images to the browser. However, sometimes i'm getting some weird results where the image cannot be created since the file does not seem to exist.
Here is a sample error message I get and the code in a nutshell. I do know that the image exi... | stackexchange/codereview |
Suppose I have a value of 15.7784514, I want to display it 15.77 with no rounding.
var num = parseFloat(15.7784514);
document.write(num.toFixed(1)+"<br />");
document.write(num.toFixed(2)+"<br />");
document.write(num.toFixed(3)+"<br />");
document.write(num.toFixed(10));
Results in -
15.8
15.78
15.778
15.7784514000
... | stackexchange/codereview |
The following code is part of a webkit transition for an Ipad app:
#canvas {
-webkit-transition-property: -webkit-transform;;
-webkit-transition-duration: 1s;
-webkit-transition-timing-function: ease-out;
position:absolute;
z-index:1;
}
...
var containerTrsfrm = window.g... | stackexchange/codereview |
I got this textfield in Rails, I entered this in edit:
Lifts 09:00-00:45 mid-Jun-Aug (final
ascension to top 23:00, to other
levels 24:00), 09:30-23:45 Sep-mid-Jun
(final ascension to top 22:30, to
other levels 23:00), Stairs
09:00-00:30 mid-Jun-Aug (final
admittance 24:00), 09:30-18:30
Sep-mid-Jun (fina... | stackexchange/codereview |
I want to create a special kind of selection, in which the image darkened and in part which user is selecting, the real Image is shown. You can see an Example:
I found two approaches for implementing this:
Implementing a control which show the darkened image.
When user drag an ellipse over this control, an ellipse co... | stackexchange/codereview |
I am using AUtomapper which I am very impressed with however, I have a complex object with many nested collections. I'm using Telerik OpenAccess and it returns the 1400 records fast but when I pass it to Automapper and it slows to a ridiculous crawl. Here is my code for reference:
List<DAL.Event> query = httpCo... | stackexchange/codereview |
I have just 2 objects and simple query to retrieve the data.
The result of query which is stored in array ccList according to debug output is:
(
CustomThree__c:
{
Name=cusmei3 2,
customOne__c=a005000000IwnOPAAZ,
Id=a025000000FsFGQAA3
},
CustomThree__c:
{
Name=cusmei3 1,
custo... | stackexchange/codereview |
I'm trying to parse GCal's recurrence field. Usually, it looks like this:
DTSTART;TZID=Europe/Kiev:20101111T140000
DTEND;TZID=Europe/Kiev:20101111T150000
RRULE:FREQ=DAILY;UNTIL=20101112T120000Z
BEGIN:VTIMEZONE
TZID:Europe/Kiev
X-LIC-LOCATION:Europe/Kiev
BEGIN:DAYLIGHT
TZOFFSETFROM:+0200
TZOFFSETTO:+0300
TZNAME:EEST
DT... | stackexchange/codereview |
I am inexperienced with anything related to domain administration, so I am at a pretty big loss, but here is our problem.
This company has a situation where they own a domain through netsol.com, so they have full access to the domain.
However, they have email hosting through their ISP - the domain is forwarded to the ... | stackexchange/codereview |
What I want to do is to have ability to link any work item to few projects. Let's imaging I have "ProductA" and "ProductB" projects that communicate to each other. There is issue linked to communication error between few components of both projects... I would like to have some kind of repository like "Projects" and add... | stackexchange/codereview |
I have Silverlight Sketch project, and I`m using muliticolumn listview to simulate datagrid.
<Style x:Key="ListBox-Sketch" TargetType="ListBox">
<Setter Property="Padding" Value="1"/>
<Setter Property="Foreground" Value="#FF000000"/>
<Setter Property="HorizontalContentAlignment" Value="Left"/>
<Setter P... | stackexchange/codereview |
Let me demonstrate with a simple example:
class A
{
public:
A() { cout << "A::A()" << endl; }
A(A const& a) : _a(a._a) { cout << "A::(A Copy Const)" << endl; }
A(A& a) : _a(a._a) { cout << "A::(A Copy)" << endl; }
template <typename _T1>
A(_T1& v1) : _a(v1) { cout << "A::(T conversion)" << endl; }
~A() { ... | stackexchange/codereview |
I'm just getting started using Resharper with VS-2008, and one of the 'errors' it gave me was to localize a Label's text in the code-behind. I've worked with Localization before to Localize a website from english into french, but I don't understand what the benefit is to localizing beside that usage.
| stackexchange/codereview |
Using the boost::test framework, is there a way to detect if an exception (of some type) has been thrown from a function?
| stackexchange/codereview |
I'm working on an ASP.Net webpage which will use the jQuery Dropdown Checklist (http://code.google.com/p/dropdown-check-list/). I'm fairly inexperienced with JavaScript and completely new to jQuery.
What I want to do is collect the values of the selected items every time a checkbox is checked/unchecked.
Here's what I ... | stackexchange/codereview |
I read that Io language has Futures which can detect deadlock automatic. I know nothing about it and have seen some syntax. How does Io language detect deadlocks with this?
| stackexchange/codereview |
I've read somewhere that events of ASP .NET are based on View State of ASPX page. The values of submitted controls are matched with their value of view state and if any difference is found then the corresponding event is called up.
But my question is:
"When events are really based on view state than why events are fire... | stackexchange/codereview |
Currently, I'm developing a rails app that are heavy generating xml
for restful webservice. My xml representation of web service use
nokogiri gem to generates xml format that match expected format from
client. But the problem is data is quite big around 50, 000 records to
pull out from the table(millions records). ... | stackexchange/codereview |
How do I forward declare HANDLE? I don't want to include all of windows.h in this particular header.
| stackexchange/codereview |
Besides the rather short Google provided style guide, here are my thoughts on naming Google Protocol Buffer messages.
Use "Message" at the end of message types names.
This makes it easy to see in source code that a class is a protobuf generated class. This also has the advantage that if I have a rich domain specif... | stackexchange/codereview |
I have a controller which has a lot of options being sent to it via a form and I'm wondering how best to separate them out as they are not all being used simultaneously. Ie sometimes no, tags, sometimes no price specified. For prices I have a default price set so I can work around with it always being there, but the ... | stackexchange/codereview |
Thanks to StackOverflow, I managed to get the following code working perfectly, but I have a follow up question.
$.get('http://example.com/page/2/', function(data){
$(data).find('#reviews .card').appendTo('#reviews');
});
This code above enabled my site to fetch a second page of articles with a Load More button in ... | stackexchange/codereview |
I have a form submit when pressed in which I am showing a small jQuery dialog with a spinning wheel. When I press escape, the dialog closes which is interrupting my form submission. How do I overcome by the user when they press ESC key. How do I prevent the user exiting when the ESC key is pressed for jQuery dialog?
| stackexchange/codereview |
When we display a jQuery modal dialog in IE8, the parent window area shows vertical and horizontal scrollbars - how can you avoid this?
| stackexchange/codereview |
i have a database that has a few hundred tables
i need to find a specific string in any of the columns in all of the tables.
how would i approach this problem>??
| stackexchange/codereview |
I have a fulltext index created on a varbinary(max) filestream column. I have both PDF's and XML's being stored in this filestream, and consequently both are being indexed. However, I really don't want to index the XML files, because I'm afraid that over time they'll bloat my index and slow it down. So what I would rea... | stackexchange/codereview |
I am using beautifulsoup for scraping data from the html page. Till yesterday every thing was fine. But Now i am getting the error:
'ascii' codec can't encode character u'\xa9' in position 86700: ordinal not in range(128)
i am using the code:
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlop... | stackexchange/codereview |
In Windows Workflow Foundation under .NET 4.0, is there a way to correlate operations based on the InstanceId (GUID) of a long-running persisted workflow?
For example:
Operation 1 creates workflow instance, returns workflow instance ID to client
Client may later query InstanceStore database to retrieve InstanceId from... | stackexchange/codereview |
I've got an archive file containing multiple audio files in .mp3 format.
I can seek to a specified file and retrieve that file in blocks.
I'd like to play several of these files in succession. It seems like this should be a simple thing to do, but I'm having difficulty finding a solid example of how to do this.
I've tr... | stackexchange/codereview |
Is there a way that I can host a light weight version of LDAP on my developer box, so I can test out scenarios like creating a new domain account when a new employee is hired.
I am building an IT Service using NServiceBus that subscribes to a "NewEmployeeHired" message. When an employee is hired I need to be able to cr... | stackexchange/codereview |
I was wondering if it was possible to add a fadeIn effect when an attr is changed for example I have this code working, when the user clicks on img2 imgmain's src is changed to img2's like this:
$('#img1').click(function() {
$("#imgmain").attr("src","img1.jpg");
});
$('#img2').click(function() {
$("#imgmain").... | stackexchange/codereview |
I've been working with LINQ To SQL for some time now, and what I usually do in a solution is the following:
In a project I create a dbml schema.
In another project I create a simple DataAccessLayer (DAL) that knows my first project, and instantiates a DataContext.
In the 3rd project (Business logic) I instantiate my D... | stackexchange/codereview |
As you know Cappuccino implements the dispatch mechanism of Objective-C / Smalltalk to send messages to objects (~call their methods) in a special method called objj_msgSend.
[someObject someMethodToInvocate: aParameter];
Obviously this introduces some overhead and therefor speed-loss. I'd like to know if somebody ca... | stackexchange/codereview |
So I have a Codeigniter application which uses Curl to retrieve an XML file from an external source.
This works fine. I have set up log_message() so I can view the logs(tail -f) when the XML has been received. After this I load the view with a message to show the XML has successfully been retrieved. This is also logged... | stackexchange/codereview |
I have the following model:
+--------+
| Folder |
+--------+
| 1
|
| *
+----------+ +---------+
| WorkItem |---------| Project |
+----------+ * 1 +---------+
I need to retrieve a list of Folders with the current count of WorkItems.
If I have specified a Project, then I only want the count... | stackexchange/codereview |
I'm using jeweler to create a gem for Rails 3. The gem contains a rake task and one of the things it does is wiping the DB, so I'm using 'database_cleaner'.
I'm specifying the gem dependency inside the gem's Gemfile
gem 'database_cleaner'
And in the Rakefile
Jeweler::Tasks.new do |gem|
...
gem.add_dependency 'data... | stackexchange/codereview |
I want to add a column to one of my tables in SQL Server. I don't want it to be at the end of the column listing in the table...I actually want it to be somewhere else (location wise) in the table. Is there another option besides dropping and rebuilding (populating) the table to accomplish this? I obviously don't wan... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.