instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Does some analog of C# MemoryStream exist in Python (that could allow me to write binary data from some source direct into memory)? And how would I go about using it?
| stackexchange/codereview |
I would like to have a git repository for my wordpress plugins directory and I would like it to pull from each plugins own repository and be easy to update when a plugin is updated. How is this possible?
| stackexchange/codereview |
I have a dataset and i am trying to get all the Ids of the datset into a datarow to finally save it in a int array. Its not working for me. It says "Cannot implicitly convert from type int to int[]"
Dataset ds = new BusinessLogic().Getsamples(MerchantID);
Datarow dr = ds.Tables[0].Rows[0];
int[] SampleID = Convert.To... | stackexchange/codereview |
I'm battling the old "Error creating window handle" fun. My application has a center area that hosts whatever control the user is currently working on. When the user loads a new control, I destroy the old one. Or at least I try to. When I run the task manager, I see in horror as the number of GDI objects is not red... | stackexchange/codereview |
I am aware of SQL Server Migration Toolkit for MySQL. But I want to migrate the schema to SQL Server CE. Is there any way to do with Migration Toolkit. Or alternatively, if I first migrate to SQL Server then how to replicate the schema changes to SQL Server CE?
| stackexchange/codereview |
I need to compare two string in Bourne shell of the same fixed length. I need to compare each character against the place holder in the opposite string and find out how many differences there are. Does anyone have any suggestions on how to go about this?
I am just after a way of the number of differences i.e. if I comp... | stackexchange/codereview |
I want to capture Intents with a specific Uri pattern that uses the http scheme. I DO NOT want the chooser dialog to pop up.
The Android API advertises filtering of intents based on pattern matching of the path part of the Uri:
http://developer.android.com/guide/topics/manifest/data-element.html
However, when I try to... | stackexchange/codereview |
how can i find the mac address of DNS server?
| stackexchange/codereview |
Situation:
I have a multithreaded program written in C. If one of the threads forks, the child process is replaced by another using exec() and the parent waits for the child to exit.
Problem:
After the child process is created by fork() there are a few lines of code that compile the arguments to be used in the follo... | stackexchange/codereview |
I have read through Scott Hanselman's post on this topic. I found another article that seems to be a simpler approach. The second of which I decided to try.
However, the first portion in creating the EditorTemplates is not working for me. I copied DateTime.ascx and TimeSpan.ascx has the author had them written. Then I ... | stackexchange/codereview |
I want to add a library that I wrote to a Rails app (and to other Rails apps later). I tried putting it in /lib which seemed logical...
[RAILS_ROOT]/lib/my_lib/the_main_file.rb
[RAILS_ROOT]/lib/my_lib/some_other_file.rb
Then...
require 'my_lib/the_main_file'
That works fine.
But is that a great way to do it?
Now I ha... | stackexchange/codereview |
Mostly it comes handy that C# delegates already store the object together with the member function. But is there a way, to store -- and pass as parameters -- only the member function itself, just as the good old pointer-to-member-function in C++?
In case the description is less than clear, I give a self-contained examp... | stackexchange/codereview |
I am developing an Android app and using Google Maps and Directions API. I was able to successfully get directions in XML for all supported modes. However, they all come back with HTML markup.
Does anyone know if there is a way to omit the markup when making a request, so that I don't have to remove it locally in the ... | stackexchange/codereview |
I'm looking to send a mouse click to a specific position on a screen without affecting the mouse cursor's location.
I've scoured and have tried everything under the sun with mouse_event (which is supposed to do this)
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, X, Y, 0, 0);
However this ends up only sending ... | stackexchange/codereview |
I trying to make a simple image gallery, where I have several radio button groups to filter the search results.(I am pretty new to jquery, and started learning it today, so please be patient.)
1)I have tried this code to create an associative array, but the array comes up as blank. Any ideas?
$('input:radio:checked').e... | stackexchange/codereview |
I've been having a looksie at the .NET CLI spec, and although it mentions you can have a default constructor constraint on a generic type paramter, it doesn't specify anything you can then do with such a generic type to actually create it. What's the official 'spec' way of actually creating an instance of a generic typ... | stackexchange/codereview |
i have this sql clauses:
CREATE TABLE IF NOT EXISTS `culture` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` char(6) NOT NULL DEFAULT 'it',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
CREATE TABLE IF NOT EXISTS `nations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`culture_id`... | stackexchange/codereview |
what's the best way to generate a word-processor file (ideally as platform-independent as possible, but native Word formats will do), with images in it, from the statistical language R?
| stackexchange/codereview |
I inserted a function in one of my function libraries (which are referenced in the test's resources settings). It looks like this:
Public Function NWRecoverOnRunStep (AObject,AMethodName,AArguments,AResult)
Print "NWRecoverOnStep MethodName='" & AMethodName & "' Result=" & AResult
End Function
(Obviously, I am in an... | stackexchange/codereview |
Given an example such as ..
public interface IInterface { }
public static void Insert<T>(this IList<T> list, IList<T> items) where T : IInterface
{
// ... logic
}
This works fine, but I was wondering if it is possible to use an Attribute as a constraint. Such as ...
class InsertableAttribute : Attribute
public stat... | stackexchange/codereview |
currently I have
$('document').ready(function(){
$('input').keyUp(function(){
$('#output').text($(this).text());
});
});
What I want to do is,
When a keypress is registered wait 500ms,
if a key is pressed again within that 500ms,
wait 500ms from that keypress.
once the 500ms has gone by,
run the $('#output').t... | stackexchange/codereview |
when I run
git diff FETCH_HEAD
it lists a load of expected changes, since I fetched the updated version from my remote.
BUT....
when I run
git merge FETCH_HEAD
it tells me all is up to date!!
Where am I going wrong?
| stackexchange/codereview |
How would you solve the following problem:
I have a semi-large file with text (about 10 pages) and I want to find duplicate content in this text. To be more specific, given a string, find the two longest strings that are identical.
I've been looking at the Longest common subsequence:
http://en.wikibooks.org/wiki/Algor... | stackexchange/codereview |
on my site project I want the user to be able to change the banner image they have for their profiles. So far I am able to have them upload an image and it automatically be applied as a background to the header, I also have 3 radio inputs that lets them repeat-x, repeat-y, and no-repeat the banner.
My next step is to f... | stackexchange/codereview |
The monthly_connections table contains columns calling_party, called_party, common_neighbors, neighborhood_overlap
So the table describes which users are connected. One of the measures for user similarity is neighborhood overlap which is defined as following:
neighborhood_overlap = (number of
nodes who are neighbors... | stackexchange/codereview |
I'm using Easy68k to make a simple program that includes a while loop.
Assume the register A0 is pointing to my data, which are words.
Why does this not work?
MOVE.W (A0) , D3
MOVE.W (A0)+, (A0)
MOVE.W (A0) , D3
If A0 points to the number 2 initially, and after that the number 4, the result I want is that af... | stackexchange/codereview |
There is a program that generates hundreds or thousands of moving particles onscreen at once. After several hundred are displayed, slowdown occurs. Performance was analyzed using netbeans profiler and about 80% of the time was spend in the jpanel's paint method...so algorithm optimization seems unlikely to make a notic... | stackexchange/codereview |
I know how to catch exceptions in delphi (try..except/finally and e.message) but I want to know if there exists an exception handling mechanism which can raise the exception and also the name of the routine which raised it. by example
procedure/function bla();//this can be in a unit/class
begin
code....
an error is ... | stackexchange/codereview |
Is there any way to use ParamArray ByRef? Barring that, it there a workaround that accomplishes the same thing?
I could do some overloads, but I am trying to avoid the clunkiness.
Background: Porting over some old code, and trying to keep the same structure as much as possible.
EDIT
A specific example of what I want:
... | stackexchange/codereview |
I have .net solution with many projects and classes. To understand it I want to get a graphical scheme of classes. How to get it? Are there any programs or tools to do this?
| stackexchange/codereview |
What is the difference between ServletConfig and ServletContext interface?
| stackexchange/codereview |
I have a base class that has the following property:
public virtual Dictionary<String, int> activity
{
get;
set;
}
A derived class overrides this as such:
Dictionary<string, int> myActivity = new Dictionary<string, int>()
{
{"result", 5},
{"total", 6}
};
public ov... | stackexchange/codereview |
Please see the link below.
http://itunes.apple.com/app/id383298204?mt=8
There are screen shots of showpick application. In that there is a collect button which is some what impossible to implement under ui tab bar. Can someone help me to figure it out how they have implemented it? Is that an actual UITabBar?
Thank you... | stackexchange/codereview |
There are three methods to connect to mysql from php. mysql_connect,mysqli,PDO.
Which is best one to use a stored procedure in my application?
Please guide me
| stackexchange/codereview |
Hello i am new to Kernel Programming and i would you to answer me how and how much it could take me to get started with confidence to play with the code and the meanings.
I am listing some Questions that they are also my Goals.Please answer any of them if not all.
1.I would like to evaluate myself on "how much" C i kn... | stackexchange/codereview |
I have a javascript function called confirm() that that uses the JQuery UI library to open dialogs.
For example:
jQuery('#confirm-popup').dialog('open');
This opens up and renders a div with id confirm-popup. I would like to switch to fancybox as it has an elastic effect that I need. So I was hoping that the followin... | stackexchange/codereview |
I have been playing around with webkit.net in a c# win forms project, and love how easy it is to call JavaScript functions from within the C# program with:
browser.Document.InvokeScriptMethod("functionName", new object[]{"parameter1", "parameter2"});
Now the question is how to do this the other way round... Is there so... | stackexchange/codereview |
Am using i5_command for copying a file from one location to another using i5 command
CPYFRMIMPF
Am getting CPF0006 error , with error code 9.
What is the correct format of executing command.
What are the Minimum requirements for running an i5.
i5 command for connectivity is done succesfully.
rtv user profile also wor... | stackexchange/codereview |
$query="SELECT file_date,application,language,loc FROM table1 WHERE language!='total' AND module_id=306 ORDER by file_date";
return(get_data($locdb_handler,$query));
}
function get_data($handler,$qry){
$result=mysql_query($qry,$handler);
while($row = mysql_fetch_array($result)){
$data['data'][$row[0]]['d... | stackexchange/codereview |
Background
A customer is running our web app. over HTTPS and are running into the (fairly well know) IE8 "file cannot be written to cache" error when they try to view a PDF/Excel/word file because the response contains the HTTP Cache-Control:no-cache directive. The thing is, it is not our app (or its config) that is a... | stackexchange/codereview |
I have a SSRS report, and I'm trying to sum up rows conditionally. I have:
11/15/2010 12:14:43 AM | Current Rate | Current Speed | Amount used in that minute (Speed*Rate/60)
etc etc etc
I am trying to add all the rows that happened in an hour, so that my report will show:
11/15/2010 | 12 AM - 1 AM | Amount used for th... | stackexchange/codereview |
I'm doing some optimisation on a site Ive recently taken over. I've found a script I don't recognise:
http://static.ak.fbcdn.net/rsrc.php/zo/r/V95Lkt_uLNB.js
It could be a facebook thing, and there's some key logging going on (that Im not too keen on)
It is without a doubt the largest file being requested on a page loa... | stackexchange/codereview |
We're using Javascript to draw polylines on a <canvas> element, based on some spatial and time coordinates. Specifically, each point in the line has the following properties:
* point.x
* point.y
* point.time
meaning that at the time point.time we extend the polyline with an additional segment to point.x/point.y. Being... | stackexchange/codereview |
How do i scroll to a panel within an updatepanel after i load the content
| stackexchange/codereview |
I want to define a set of error messages so that when validation errors generate codes, those codes pick up the corresponding error message and print them.
For the sake of learning, and to develop an extendable web app, I'd like to follow the proper i18n path, though I only need to define one (english) set of messages ... | stackexchange/codereview |
I've seen references on how to SET system colours, but I need to find out how you GET them - how do you find out what they are?
On the Samsung Galaxy S for example, the tab views, ListView highlights when you select an item, and the Summary text line on the preference screen are all blue.
There are many apps which immi... | stackexchange/codereview |
In my app, I wrote these lines of code :
- (void)viewDidLoad {
[super viewDidLoad];
UITapGestureRecognizer *tapper = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapped:)];
[mybutton1 addGestureRecognizer:tapper];
[mybutton2 addGestureRecognizer:tapper];
[mybutton3 addGestureRecognizer:tapper]... | stackexchange/codereview |
i will pass the value generated by this calendar_date_select to the controller. onchange code needs modification to do so. any suggestions?
<%= calendar_date_select_tag "meeting_date_1", @time,
:embedded => true,
:time => true,
:minute_interval => 15,
:onchange => "$('dv').update($F(this));" %>
| stackexchange/codereview |
I have written a paging system for sql server. and it works great but i am trying to return how many pages there are in total
Hence if there are 5 records and 2 records per page then the total is 3 pages
this is what i have
SELECT @TotalPages = ( (SELECT COUNT(*) FROM #TempItems) / @RecsPerPage )
and my output para... | stackexchange/codereview |
What are some options for testing Sinatra web services? Is RSpec still ideal? Cucumber? What are some of the current popular tools for testing Sinatra?
| stackexchange/codereview |
I am trying to build an application that can inform a user about website specific information whenever they are visiting a website that is present in my database. This must be done in a browser independent way so the user will always see the information when visiting a website (no matter what browser or other tool he o... | stackexchange/codereview |
I am trying to display a hidden div in colorbox using an <a> link's onclick
The fiddle -> http://jsfiddle.net/hSp3m/1/
Here is my markup,
<style type="text/css">
.lightbox-content{ display: none }
</style>
<div class="panel yellow">
<h4 class="font">Title</h4>
<a title="View now »" class="learnmore" href... | stackexchange/codereview |
On my website the goal that I want to track is actually attached to an AJAX call rather than a specific URL. Is there anyway to track that in Google Analytics?
Note: I am using JQuery.
The only solution that I can think of at the moment is having a tiny iFrame somewhere on the page and loading the Goal URL into that fr... | stackexchange/codereview |
I've heard of the Roo DBRE add-on and I think it is a great feature provided by Roo. However I couldn't find any documentation on Google about Roo DBRE. How do I use this feature?
I have also checked this JIRA ticket
https://jira.springframework.org/browse/ROO-1685
and it said the documentation is created so where can ... | stackexchange/codereview |
I'm looking for a free / open source tool which will allow me to set up easily tasks manager integrated with SVN repository and auto-deployment tool (so that each commit is autodeployed to the http server). It need to integrate tasks users with SVN users etc.
Must run linux!
What are your types?
| stackexchange/codereview |
I am trying to find how to take a crash dump of a .Net managed executable and then open the resulting .dmp file in Visual Studio 2008. I want to see where in the source code the exception is thrown, the call stack and the value of variables in functions on the stack.
To simplify the problem, I've written a mini-app tha... | stackexchange/codereview |
I have a form with multiple input fields, but only want to use one input from the form. What is the proper way to check field validity and get cleaned data for the one field?
thanks !
| stackexchange/codereview |
I want to develop facebook applications and I have bought some books from amazon. But this books contents are for old facebook APIs. (2008-2009).
Can I develop applications with old api? Or I have to use new version?
| stackexchange/codereview |
I'm using Data Dynamics Active Reports to generate some reports on our website.
Action: User runs a report on user accounts (this contains an email field) and Exports to an excel file.
Issue: If the email is relatively long, extra white space is added in the field.
Has anyone else had this problem? If so, what did yo... | stackexchange/codereview |
I'm using memcached for some caching in my Rails 3 app through the simple Rails.cache interface and now I'd like to do some background job processing with redis and resque.
I think they're different enough to warrant using both. On heroku though, there are separate fees to use both memcached and redis. Does it make sen... | stackexchange/codereview |
So I am working on a CouchDB Gui Toolbox for easier maintaining an setting up CouchDB on Android, as Futon is quite uncomfortable on a small mobile device.
I wanted to stick to the "org.apache.http.client.*" packages for this which was working out quite well until I wanted to setup administrators..
With the commandlin... | stackexchange/codereview |
Below is my code that I want to run. I want to call the same function that user choses from the combo box. Please advise how it can be managed.
Public Class Form1
Private Sub One()
MsgBox("One is called")
End Sub
Private Sub Two()
MsgBox("Two is called")
End Sub
Private Sub Three()
MsgBox("Three is calle... | stackexchange/codereview |
hi i am working on SVG.... I want to Read the nodes of an element, which are in a lot of numbers, but the nodes which i am going to read are of irregular shape, and i have to apply the restriction also on it...Can anyone help...Thanks in Advance..!
| stackexchange/codereview |
In my application(C#) i need to filter emails based on their content. If an email is a double-opt in need to send it to a specified email address if it's a normal email i should send it to another email address.
I looked at the emails that come in and made a list of common words that appear in the subject for the doubl... | stackexchange/codereview |
<script type="text/javascript">
function test() {
alert('<span>blah<span>');
}
</script>
<a href="#" onclick="test();">First</a><br />
<a href="#" onclick="alert('<span>blah<span>');">Second</a><br />
Third: <span>blah<span>
Demo: http://jsfiddle.net/LPYTZ/
Why is... | stackexchange/codereview |
Is there a tool that allows you to upload and maintain images as individual entities, but allows you to reference them in an image map as sprites?
Maintaining image sprites is a real pain in the butt.
Thanks!
| stackexchange/codereview |
Does there exist a package like WAMP, but with SQL Server instead of MySQL? I'd be happy to work with either ASP or PHP, but PHP doesn't always play nice with SQL Server and ASP doesn't work with WAMP...so I'm doubtful on this.
I need this because I'm developing an IMS and it will eventually be hosted on an apache ser... | stackexchange/codereview |
Chapter 19: Physical Tiers and Deployment on MSDN describes "Distributed Deployment" (see figure 2). All well and good.
In my experience we've always deployed our web based systems as per what they describe as "Nondistributed Deployment" (figure 1). My understanding is that in the Microsoft world the "Application Ser... | stackexchange/codereview |
I understand Subversion/AnkhSVN very well at all! Any time I do anything outside of updating and committing, everything blows up in my face.
These are my beliefs -- which must be incorrect, because I can't get Ankh to ignore anything.
svn:ignore is a tool to make your Subversion client always leave certain files or di... | stackexchange/codereview |
Anyone seen this happen?
$ rails s
/Library/Ruby/Gems/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle: This installation of RMagick was configured with ImageMagick 6.6.4 but ImageMagick 6.6.5-0 is in use. (RuntimeError)
from /Users/bhellman/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:i... | stackexchange/codereview |
This is a very simple script that should load jQuery. I can see in the Firebug Scripts tab that jquery is loading but I get '$ is not defined" errors when I try to use it. Can anyone help me understand what's wrong?
//function to add scripts
function include(file)
{
var script = document.createElement('script');
... | stackexchange/codereview |
I have lost a branch accidentally. I guess it is in reflog list, but it's too difficult to check every one in it. I remember that there was a folder created in that branch with some files in it, so it should be possible to find my branch by finding all the lost commits that affects the folder. So the question is: how c... | stackexchange/codereview |
Is there any extension method available for resolving cross thread exception in windows forms like the one which is there for wpf forms.or any general pattern..
http://www.codeproject.com/Articles/37314/Useful-WPF-Threading-Extension-Method.aspx
| stackexchange/codereview |
Can one application access the path of a file from another application on the iPhone?
| stackexchange/codereview |
I have a pretty newb question, about a many-to-many relationship I've created, and pulling the correct data from the child.
What I have is 2 Models, one called Order and another Status. I have a migration named CreateOrdersStatuses to join the two tables.
In the ruby console, I'm having difficulties pulling information... | stackexchange/codereview |
I would like to be able to join two models by a column which is not unique in either one.
class Ctystate(models.Model):
ctystate_id = models.IntegerField(primary_key=True)
zip5 = models.IntegerField()
[...]
class Addr2zip(models.Model):
addr2zip_id = models.IntegerField(primary_key=True)
ctystate =... | stackexchange/codereview |
I have to consume data from axis2 webservice. I added it's URI to Service References folder in my .NET client and I can view all methods and fields of this webservice in Object Browser tab. But when I am trying to use it's method i recive error:
"There was no endpoint listening at http://my_service_url that could accep... | stackexchange/codereview |
I am using Unix Language for scripting. I am in need of Unix Commands for FTP particular folder & its contents.
Main Folder Contains many Sub-folders & Sub-folder contains many files inside.
I need to FTP Main folder (with its Sub-folders & it's contents) to Local server using Unix Language.
Or Suggest Command to FTP P... | stackexchange/codereview |
This might be a trivial question for some, but I could not find the answer myself yet.
If I understand correctly APC does two things. Keep the PHP pages in byte code so they are delivered faster. It can also cache data so we can query them faster.
I'm interested in the byte code feature, which if I understand correctly... | stackexchange/codereview |
I am converting a string into a date object with this code.
NSDateFormatter *formate = [[[NSDateFormatter alloc] init] autorelease];
[formate setDateFormat:@"yyyy-MM-dd"];
NSDate *date = [formate dateFromString:@"2010-11-17"];
But I am getting wrong date in the output. It gives me - '2010-11-16 18:30:00 GMT'.... | stackexchange/codereview |
What is the correct syntax for lambda expression for a bool value comparrison?
The example below shows rsp.InputOutput which is a bool value. However I get a compiler error when I try to do this. I know its something small, any help appreciated.
In this examplem I want to select all rulesetparameters which have an Inpu... | stackexchange/codereview |
We're trying to determine the physical layout of text and images in a div.
The div has a certain width and so lays out the text according to its word breaking rules.
How can we get the result of the layout, i.e. which text and images are on which physical lines?
Is there a DOM standard for doing this, or is this brows... | stackexchange/codereview |
I have a listview that displays categories from my server. It works fine but when i change orientation it reloads it...
What should I do to avoid reloads ?
Thanks.
| stackexchange/codereview |
i want to start a new activity from ab activity that (extends from Linearlayout) .. but this code is not right
Intent i = new Intent(SearchResultForm.this, MainActivity.class);
startActivity(i);
...
...
public class SearchResultForm extends LinearLayout{ ...
and i get this error ..
No enclosing instance of the type... | stackexchange/codereview |
When I add two connection strings in the web.config, an error appears that tells me I can't add two connection strings in the web.config.
I want the upper job because I have 2 databases and I want transfer data from another to the other one.
Would you please show me a way for doing that?
| stackexchange/codereview |
I need to write a select query for a network diagram. There are two tables;
select * from node;
num | node
-----+------
1 | a
2 | b
3 | c
4 | d
select * from edge;
e1 | e2
----+----
a | b
c | d
a | c
I need a select statement which would give me the edge values in the form of numbers like this;
1... | stackexchange/codereview |
I've seen this being used within big software companies where they had their own system to implement this. The developer who wanted to make a checkin would first create a self-extracting "pack" that other developers could open on their systems and see what the changes to the system would be (keeping in mind the "base" ... | stackexchange/codereview |
I am trying to make webpage that acts as jukebox, to use for parties. I want the webpage to load Grooveshark with a transparant overlay(or whatwver it takes) that traps double clicks, to prevent people from forcing their song in the front of playlist.
I other words, all clicks are passed on to Grooveshark except double... | stackexchange/codereview |
I am looking to standardize the processing of ajax #anchors at the server side, using MVC.
Before a controller action is invoked I want to convert every request with ajax anchors into a request without ajax anchors, so that the controller code does not know there were anchors in the request:
For example:
1) /user/profi... | stackexchange/codereview |
I know you can set orientation using android:screenOrientation statically and setRequestedOrientation programatically. However the problem is that if I use either of these to set the screen orientation I do not get to choose which landscape or which portrait I want. To wit, flipping the phone 180 degrees does not rot... | stackexchange/codereview |
I am having an Android Phone (Motorola Quench XT3) running version 2.1.
I have installed android SDK (including the USB driver) in my Windows XP OS.
I enabled USB debugging in my phone and connected it to the computer.
The phone is recognized and the SD card gets mounted in my computer.
When I launch the DDMS tool fro... | stackexchange/codereview |
I'm struggling with renderaction, the problem is that it calls the wrong action method on my controller.
On my "Users" controller there are two action methods called edit, one for get and one for post requests:
public virtual ActionResult Edit(int id)
{
//return a view for editing the user
}
[AcceptVerbs(HttpVerbs.P... | stackexchange/codereview |
I have SQLite DB query which returns me one record at a time.
This is the query:
rawQuery("SELECT id, category_id, title, text FROM customer WHERE (reads = (SELECT MIN(minReads) FROM categories)) AND status = 'a' ORDER BY rating DESC, rand_index DESC LIMIT 1 ",null);
If I want to fetch next record as we are applying ... | stackexchange/codereview |
As an exercise with accessibility and a personal challenge to myself I decided that I'd like to write a relatively simple app.
The app would show an MKMapView of the United States and when you tap anywhere on it, it uses an MKReverseGeocoder to show you the locality, state and country where you tapped. This works fi... | stackexchange/codereview |
I am programming using R in Linux and each time I want to edit a function by typing
fix(FunctioName)
The VI editor is used and for me, it is not that handy, I want to change it and make it an other one for example nano.
I am connecting to our school server so I have only shell, no graphical interface.
Thank you in ad... | stackexchange/codereview |
So I'm trying to write a perl script to read in a file encoded in Latin-1. For some reason, this just isn't working out. When I try to do a simple search for a character that I know is in the file (it's in the first line), nothing shows up. I'm using use encoding "iso 8859-1"; below, but I've also tried binmode(STDI... | stackexchange/codereview |
I made an app that plays back audio files, and has an option to switch the audio path between the headset, speaker, and a BT headset. However, I can't figure out a way to have the app detect if there is a BT headset connected. I can check if BT is enabled or disabled, and I can check if there are any devices paired, bu... | stackexchange/codereview |
I'm using OpenRasta 2.0 to build a REST API and its extensibility is fantastic - we've managed for instance to plug-in OAuth authentication using DotNetOpenAuth fairly painlessly.
However I've come to the point now where I need to define our responses for error conditions. We're adopting the standards regarding HTTP er... | stackexchange/codereview |
I have these two tables (simplified) :
Website:
columns:
user_id: { type: integer, notnull: true }
domain_name: { type: string(30), notnull: true, unique: true }
WebsiteLanguage:
columns:
website_id: { type: integer, notnull: true }
language: { type: string(5), notnull: true, countr... | stackexchange/codereview |
I have a ASP .NET Repeater data bound to a DataTable. Everything works fine where I can add rows to the DataTable & Bind() and the Repeater will gracefully show the newly bound data and delete from the DataTable and Bind() and the Repeater will remove the data.
However a strange problem exists where when rows are been... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.