instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
On Ubuntu with REE 1.8.7, with nginx 0.8.53 manually compiled with the
Passenger 3 module doc installed as per the docs, I get an error in
the nginx error log when nginx starts:
Unable to start the Phusion Passenger watchdog because it encountered
the following error during startup: Unable to start the Phusion
Passenge... | stackexchange/codereview |
Why Eclipse gives me a dead code warning in the fourth line of the following method? How can it not be reachable?
private void writeToSequenceFile() {
try {
CustomFileWriter nBatchWriter = new CustomFileWriter(sequeneceFileName, CONFIG_RESOURCE_NAME, "outputFile");
// The line below is a dead code?
lineBui... | stackexchange/codereview |
My source is as follows
OSPID OSPNAME RELATEDOSPID
100004 LEVEL4 100003
100003 LEVEL3 100002
100002 LEVEL2 100001
100001 LEVEL1 0
100009 LEVEL4 100008
100008 LEVEL2 100007
I need the result as
L4OSPID L4OSPNAME L3RELATEDID L3OSPNAME L2RELATEDID L2OSPNAME L1RELATEDID L2OSPNAME ROOTNODE
100004 ... | stackexchange/codereview |
This is a annoying problem and I have no idea what is causing it. java and projects are two svn repository directories in /home/svn.
drwxrwSr-x 6 svn svn 4096 2010-10-19 19:36 java
drwxrwsr-x 6 svn svn 4096 2010-10-18 17:20 projects
They have the same permissions and files inside them have same permissions as well, w... | stackexchange/codereview |
Hello I have been recently working on Django search forms recently and have tired to edit one myself. Here is a search form that is supposed to find Clients. However When I type in a clients name, it does not display that client's name. So I am wondering What I am doing wrong.
#model.py
class Client(models.Mo... | stackexchange/codereview |
I have a clickable accordian as seen at http://intelligentstudios.co.uk/SimpleHosting/ however I want to have it so after lets say 5-10 seconds it automatically moves onto the next slide. I'm not 100% sure on how to do this, I looked up the animate function but it seems to just break it.
Any help?
Steve
| stackexchange/codereview |
HI all,
i'm trying to use google chart API to make some charts in a website using ajax (don't what to reload the page). But i'm having a problem. I have to use POST to make the requests but i don't known if ajax allow this. For example:
var xmlhttp=new XMLHttpRequest();
xmlhttp.open("POST","http://chart.apis.google.co... | stackexchange/codereview |
i am making a music player in winforms. i have a progress bar and when i click on a position along the progress bar, i want to get the int for that position ( from 1 to 100 , i.e. for when i want to get to a certain point in my song ) . How can i do that ?
Regards,
Alexandru Badescu
| stackexchange/codereview |
I'm trying to attach a single NetStream Object to two separate Video objects instead of pulling redundant streams from the server. The expected behavior would be for both Video's to display the same content. However, it seems that the last video I attach the NetStream to is the only Video that will display the content.... | stackexchange/codereview |
From a C program I want to call a shell script with a filename as a parameter. Users can control the filename. The C is something like (initialization/error checking omitted):
sprintf(buf, "/bin/sh script.sh \"%s\"", filename);
system(buf);
The target device is actually an embedded system so I don't need to worry ab... | stackexchange/codereview |
I Have a ComboBox and I would like to bind to two different properties, one in the ComboBox and one in the ListBox. The properties are named Summary and Description. How can I accomplish this?
I Currently have this
<ComboBox x:Name="comboBox"
ItemsSource="{Binding}"
DisplayMemberPath="Summary"
... | stackexchange/codereview |
I'm new to Silverlight and I'm having trouble understanding how to properly navigate between pages, especially when I need to pass data around.
Classic example: I have a list of People on one page, and when I click on a person in the datagrid I'd like to go to the details page and load that data. I need to pass the Pe... | stackexchange/codereview |
This might seem weird, but I'm interesting in creating an electric heater out of my computer, that is program an application, that heats up my PC, and I need some help.
I currently made an application, that runs infinite loops on the GPU (using a little shader), and on the CPU cores, however I'm interesting in getting ... | stackexchange/codereview |
Trying to integrate the following Perl one-liner into a shell script. This code works within a Perl script but not as a one-liner executed from a shell script.
I've tried replacing $host with a real hostname with no luck.
#!/bin/ksh
hosts="host1 host2 host3"
PERL=/usr/bin/perl
# Check to see if hosts are accessible.... | stackexchange/codereview |
I am unable to get document.execCommand('SaveAs', false, "/home/prakash/temp/log.html") to work in either Firefox or Google Chrome, any ideas ? Am I doing something wrong ?
| stackexchange/codereview |
I am trying to figure out a simple way to use jquery to have a list of 5 items and then hit an arrow down and it shows 5 more items and so on and so on. If the up and down arrows fadeaway when it reached the top and bottom that would be a plus. Any help would be greatly appreciated.
| stackexchange/codereview |
Not much to add to this. Have an example?
| stackexchange/codereview |
I was trying to get a ballpark idea of how much slower Flash is at pure pixel-pushing 2D graphics than doing the same thing in SDL or other native library. For instance if I have a Flash/Flex app on a modern PC which each frame does a 2D loop and directly reads/sets every pixel, what equivalent PC would give the same p... | stackexchange/codereview |
I am just starting with rails and I have a very simple case. I have a "home" controller. There is one action 'index' defined in this controller. When I go to ~/home I get an error msg saying:
uninitialized constant HomesController (I noticed the singular/plural thing).
That's the first thing I don't get (I thought it ... | stackexchange/codereview |
I am using QT Creator to develop a small GUI app. I have a GraphicsView component which spans the entire window. My question is, how can I place other widgets (such as transparent buttons) ontop of it in each of the four corners of the application. Also, how can I make sure that the lower right hand components get resi... | stackexchange/codereview |
Ok, I have 1 custom toast (xml layout) and it works great:
LayoutInflater inflater = getLayoutInflater();
View layout = inflater.inflate(R.layout.custom_toast, (ViewGroup) findViewById(R.id.toast_layout));
ImageView image = (ImageView) layout.findViewById(R.id.logo);
image.setImageResource(R.dra... | stackexchange/codereview |
I need some code sample which shows how I can validate a xml file against a schema. Below is my XML document:
<birthdate>
<month>January</month>
<day>21</day>
<year>1983</year>
</birthdate>
The schema against which I want to validate the above XML is:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">... | stackexchange/codereview |
I want to ask that is that possible do in android catch the in the touch mode catch the scrolling direction ? When user touch on the screen left to right, can I catch the change ?
If it is possible which listener can ı use ?
I found some of the methods and listeners but I 'm not sure that therse are represent my requir... | stackexchange/codereview |
I'm working on a WP7 demo app and have gotten my popup working with static resources wich I earlier had problems with. Now when this is out of the way i got a new bug wich regards my use of Bing Maps.
When using bing maps in my default WP7 Silverlight pages (panorama or regual) the maps show up fine, but when using a b... | stackexchange/codereview |
In oracle, Can i run index rebuild in parallel , all indexes belonging to same table.
We have a dyanmic sql procedure for rebuilding indexes, so can call that procedure in parallel for 3 indexes belonging to same table.
Regards,
Shi
| stackexchange/codereview |
What is wrong in this query running on MS Access 2003 database.
It works fine if fields are not empty, but when any of the fields is empty it results empty string.
SELECT CustomerName,IIF(Address1="","",Address1)+IIF(Address1&
Address2="","",",")+IIF(Address2="","",Address2)+IIF(Address1&Address2&
Address3="","",",")+I... | stackexchange/codereview |
I want to create a game, that will use a level system. So i want to store my levels and to be able to change them during the game (to save the state). So i decided to use XML for storing levels. I found NSXmlParser class for reading from XML, but i can't find a writer to save the level state. In my game the level state... | stackexchange/codereview |
I have the parent movieClip with multiple children in it.
How do i resize the parent without effecting the children movieClip?
Memo:The children must stay with the parent.
import flash.display.MovieClip;
import flash.events.MouseEvent;
/*The parents*/
var motherFather:MovieClip = new MovieClip();
motherFather.graphics... | stackexchange/codereview |
In my SL4 App I have a Parent Page where I'm displaying a datagrid.
I open the ChildWindow when the user selects a particular Row in the grid and clicks on Open button using the following code.
cwEditProduct ChildWin = new cwEditProduct(productId);
ChildWin.Closed += new EventHandler(ChildWin_Closed);
ChildWin.Show();... | stackexchange/codereview |
I am using OpenFlow in my iPad application. I want to display my UIView's instead of images - to allow the user to flick through different 'detail' views?
Does anyone know how to do this?
| stackexchange/codereview |
I do not understand how the following unit test instruction
string links = ((HtmlHelper)null).PageLinks(2, 3, i => "Page" + i);
maps to actual code as follows:
<%= Html.PageLinks((int)ViewData["CurrentPage"], (int)ViewData["TotalPages"], x=> Url.Action("List", new { page = x})) %>
The part that confuses me is that how... | stackexchange/codereview |
Making an image draggable does some pretty wacky things when the image is larger than the container... Does anyone know a way around this?
Here's my code...
<script type='text/javascript' src="scripts/jquery-1.4.2.js"></script>
<script type="text/javascript" src="scripts/jquery-ui.js"></script>
<script type="text/java... | stackexchange/codereview |
I'm a bit stuck in a project.
I was writing some code to get a JSON file and store it in an NSString before parsing it into a NSArray.
But I get an error:
2010-10-27 20:59:44.813 GeraldKervyn[21752:207] -JSONValue failed. Error trace is: (
"Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Unrecognised leadi... | stackexchange/codereview |
I am working on ASP.NET 3.5, c#, visual studio 2010. I have made a master file and a default page that uses this master file. I have placed a couple asp:contentplaceholders in the master and corresponding code in the page that uses this master. I have also inserted JavaScript like this in the content page (and not the ... | stackexchange/codereview |
I'm just getting started with OpenGL ES 2.0, what I'd like to do is create some simple 2D output. Given a resolution of 480x800, how can I draw a background texture?
[My development environment is Java / Android, so examples directly relating to that would be best, but other languages would be fine.]
| stackexchange/codereview |
I'm writing a bitmap editor. Each document consists of about 3 bitmap layers and documents are, at the moment, saved as a custom file with a .bme extension. These files can be converted to standard jpg/png files by rendering each bitmap on top of one bitmap and saving the latter.
I need some way for the user to be able... | stackexchange/codereview |
I tried to upgrade PHP from 5.2.12 to 5.2.14 (FreeBSD 7) (by make install), but after installation 'php -v' in command line shows '5.2.14' and phpinfo() shows '5.2.12'. How can it be?
Now I'm trying to install PHP patched with PHP-FPM, but get an error that says 'make deinstall' before.
How can I properly install PHP n... | stackexchange/codereview |
basically, here is the address... http://opentools.homeip.net/dev-tools-for-upnp
they are the recommended dll's to use for upnp as they implement the standards better then microsofts upnp.dll - but the intels open source upnp tools have absolutely no documentation, not on their website, not on any other website. is the... | stackexchange/codereview |
I want on all pages BUT ONE (header.jsp) to include-coda like in this code:
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<include-coda>footer.jsp</include-coda>
I just don't get how I can limit the Pattern to exclude header.jsp
| stackexchange/codereview |
HI I am writing a sample application to insert and retrive datetime format . The Insert i did was sucessfull but dont know why it fails when i query to retrieve it . .
My insert goes like this..
string SqlQuery = "INSERT into BenchMarking Values (" + i + " , 'XXXX','This is a testing','M','2010-05-05 05:06:01')";
... | stackexchange/codereview |
here's a short question that my googling failed to deliver any clues on.
It seems to be pretty commonplace to use the word "res" for one of the indexes in function arguments. Its existence appears to be agnostic to whatever programming language you look at.
What does it stand for? A simple guess would be, "resource", p... | stackexchange/codereview |
I am newbie into MAC objective Programming. I developed a simple class with few functions.
The files are something like follows.
myClass.h, myClass.m and main.m.
I am getting the linker error : Duplicate Symbol _OBJC_METACLASS_S_myClass. I tried all possibilities like removing/adding header and .m files. But is not goi... | stackexchange/codereview |
I am running into a bit of a problem with ByVal in VBScript. Here's a quick sample script that I wrote to illustrate the issue:
<%
Option Explicit
dim PublicDict
Set PublicDict = createobject("Scripting.Dictionary")
PublicDict.Add "MyKey", "What's up doc?"
response.write OutputStringFromDictionary( PublicDict ) & "<... | stackexchange/codereview |
I would like to use a several Span elements inside a TextBlock and have the content of the spans set by binding. I don't think this is possible, but wanted to double check here first.
| stackexchange/codereview |
Trying to write a Lua script for Scite (something like lua-users wiki: Scite Comment Box), and when I write the following piece of code:
fchars = string.sub(line, 1, 3)
if fchars == "//" or fchars == "##"
print "got it"
end
... the compilation fails with "attempt to call a string value".
I have tried different v... | stackexchange/codereview |
I have an Activity which extends ListView
The ListView that I use is an extension of ArrayAdapter and each row of the ListView primarily consists of a WebView
The problem is that touching the WebView does not call OnListItemClick.
Any thoughts on how I can be able to touch the webview and call OnListItemClick?
Or is th... | stackexchange/codereview |
When I design a RDLC-Report and change the FontSize of a text-box to a smaller value, the height of the text-box is not adjusted automatically. If I try then to adjust the height manually, it's very difficult to find the right height.
Is there a simple possibility to adjust the height corresponding to the font size (i... | stackexchange/codereview |
I need to call a virtual method for all classes derived from a given base base class right after the construction of the derived object. But doing so in the base class constructor will result in a pure virtual method call
Here is a simplified example:
struct Loader {
int get(int index) { return 0; }
};
struct Base... | stackexchange/codereview |
I am using an afterFind function to modify data from a find function. It works fine. If I move the afterFind function into a behavior (in a plugin) it still works, but only when the model of interest is the primary model, i.e. it isn't called when the model belongsTo another model. Is there any way round this? I'm usin... | stackexchange/codereview |
Oook,
I'm wanting to mock a callback that I know my service will call. For example:
public interface ITestMe { void TestMethod(Action<int> callback); }
In the application, when calling 'TestMethod' I would pass the callback method to hit after it has run, which will do something based on the parameters. Typically, in ... | stackexchange/codereview |
I found a few Zend sample applications but all of them use Zend_DbTable. Does anyone know of a full Zend example application built with Propel to learn from?
| stackexchange/codereview |
I want to display String Array values inside a for loop. I need to display the each value to each TextView. How can I create TextView dynamically corresponding to the size of Array? How can I specify ID for each one ? Please give me the solution... Thank You..
| stackexchange/codereview |
I am confused about the advantages of using the the
bool_<true>
and
bool_<false>
types against simply using const bools in the context of template metaprogramming.
The boost::mpl library clearly prefers the first approach, and defines helper functions like and_, or_ to help manage such bool_. Conditional metafuncti... | stackexchange/codereview |
How to check if a scroll (vertical or horizontal) is currently shown in WPF DataGrid? HorizontalScrollBarVisibility and VerticalScrollBarVisibility are used to set the behaviour and they are set to Auto.
| stackexchange/codereview |
I have form for my word press website which user can enter some information. In my form I have captcha image which user has enter manually. The problem is when user enters wrong captcha the form data which he filled also losing. Is there is any way to refresh the captcha with out losing the form data? Help me out... Th... | stackexchange/codereview |
In LINQ, you can write a manual SQL query, take the results from it and have LINQ "map" those into the appropriate properties of your Model classes (or at least, I'm pretty sure I read you can do that).
Is it possible to do something like that in Entity Framework?
I have an web app that's using EF, and it's CPU usage i... | stackexchange/codereview |
I am creating a library for Android projects.
The activity is declared in the library project, as it will be reusable in different projects. This activity is using images which are project specific. I have added those images in the main project.
How can I access resources from the main project in the library?
| stackexchange/codereview |
I am creating an application which lists the available WiFi connections. Then user can select the appropriate WiFi connection for any network communication.
I saw plenty of links but nothing is useful. One says that using the HotspotClient class can get available networks. But I can't find any useful methods in that c... | stackexchange/codereview |
I'm trying to build an rspec test that sends JSON (or XML) via POST. However, I can't seem to actually get it working:
json = {.... data ....}.to_json
post '/model1.json',json,{'CONTENT_TYPE'=>'application/json'}
and this
json = {.... data ....}.to_json
post '/model1.json',json,{'Content-Type'=>'applic... | stackexchange/codereview |
when I include some projects in my solution and change the references to Project References, some times it is still loading the wrong assembly because there is something else that is calling it FIRST, and that thing is not included in my solution. when number of projects increases it gets harder and harder to find out... | stackexchange/codereview |
I have div which has an onlcick event. Now when i click the div i want to change its onlick function with .click attribute of jquery. I am able to change it dynamically, but when i apply it the new event also gets fired. Is there any work around so that the new is not fired but just applied to the div with new function... | stackexchange/codereview |
im working a project lately to get download progress info remotely when im away.
i googled a bit but i couldnt find any useful info. on this issue
im using Internet Download Manager.
please help :/ i appreciate any suggestions
im thinking about making software with python but Also C is Ok. if there is a solution
| stackexchange/codereview |
Good morning
does anybody know what is the daily data transfer limit when we are not using an API key for Google Maps embedded in your website?
Thanks in advance
I saw google map api documentation and there is a property called :
google.maps.GeocoderStatus.OVER_QUERY_LIMIT -> indicates that you are over your quota.
Whe... | stackexchange/codereview |
Ok, I have this ship object which the user controls using the arrow keys.
if (aCurrentKeyboardState.IsKeyDown(Keys.Left) == true)
mAngle -= 0.1f;
else if (aCurrentKeyboardState.IsKeyDown(Keys.Right) == true)
mAngle += 0.1f;
if (aCurrentKeyboardState.IsKeyDown(Keys.Up) ==... | stackexchange/codereview |
Possible Duplicate:
XML validation using Java Code
Hi,
I need some code sample which shows how i can validate a xml file against a schema...
Below is say my XML document.. "a.xml"
<?xml version="1.0"?>
<birthdate>
<month>January</month>
<day>21</day>
<year>1983</year>
</birthdate>
Say the schema agains... | stackexchange/codereview |
Does JBoss ESB Action has life cycle like Servlet does (init, service, destroy)?
I am writing dozens of ESB actions that requires the same initialization and destroy business logic. So I am thinking of putting this common init and destroy code in one parent class.
| stackexchange/codereview |
How to retrieve the records those character star starting with A OR B OR C ,
I just tried this query
SELECT * FROM `test_tbl` WHERE Left(cus_name, 1) = 'a'
---> display all customer name starting with character a
AND I added one more condition, That is
SELECT * FROM `test_tbl` WHERE Left(cus_name, 1) = 'a' or Left... | stackexchange/codereview |
I've been trying to figure out exactly what message-oriented middleware is, but haven't been able to find any non-enterprise real world examples that make sense to me. Can anyone give me a clear and easily understandable explanation of what MOM is, and possibly some simple examples of how it's used outside of enterpris... | stackexchange/codereview |
Can anybody suggest which is the best way for using NSArray as two-dimensional array to store data for filtering data based on field.
Thanks in advance
Regards,
sathish
| stackexchange/codereview |
I have a php file which prints an xml based on a MySql db.
I get an error every time at exactly the point where there is an & sign.
Here is some php:
$query = mysql_query($sql);
$_xmlrows = '';
while ($row = mysql_fetch_array($query)) {
$_xmlrows .= xmlrowtemplate($row);
}
function xmlrowtemplate($dbrow){
re... | stackexchange/codereview |
I'm using the AnythingSlider tool and am having some trouble with the css and js on this. Basically, the slider has a number of navigation tabs that help jump from slide to slide. I want to change this so that when a coldfusion conditional runs, certain tabs will either remain in a default state or become inactive (c... | stackexchange/codereview |
I generate a login url using:
$facebook->getLoginUrl(array('canvas' => 1, 'fbconnect' => 0, "display"=>"page", 'next' => APP_URL, 'req_perms' => 'email,publish_stream,offline_access'))
However, when user clicks the link he is redirected to the page with a Facebook logo and a message 'Go to Facebook.com' underneath it.... | stackexchange/codereview |
This question already has an answer here:
Is there ever a reason to not use 'yield return' when returning an IEnumerable?
There are several useful questions here on SO about the benefits of yield return. For example,
Can someone demystify the yield
keyword
Interesting use of the c# yield
keyword
What is the yield k... | stackexchange/codereview |
I am new to CouchDB/Cloudant and CDN (CloudFront).
I am about to build an application using CouchDB as database.
This web application will handle a lot of files.
I know that CouchDB can store files in the database as attachments. But then I have heard about leveraging CDN to store and distribute the files all over the ... | stackexchange/codereview |
I have the rotatePics jquery script in my webpage:
$(document).ready(function(){
rotatePics(1);
});
function rotatePics(currentPhoto) {
var numberOfPhotos = $('.photos img').length;
currentPhoto = currentPhoto % numberOfPhotos;
$('.photos img').eq(currentPhoto).fadeOut(function() {
// re-order the z-index
... | stackexchange/codereview |
We have a grid with datatype json.
We have the following custom formatter:
function opsFormatter (cellvalue, options, rowObject){
'<a title=MA href=javascript:showDialog(' + rowObject[5] + ')>MA<a>' + ' ';
}
Instead of rowObject[5] is there any object notation where we can specify the actual column nam... | stackexchange/codereview |
I have a batch file that executes three Maven commands, one after the other. Each command can be successfully executed in the script - by itself!. But when I add all three commands to the same file, only the first one executes before the script exits. Any idea why?
mvn install:install-file -DgroupId=gdata -DartifactId=... | stackexchange/codereview |
I'm trying to setup an exit survey so that when a user leaves our checkout page they are prompted asking them why they're leaving.
Is this possible?
I've spent some time on Google but it appears as though the only solution is a simple browser-controlled confirm-like prompt. Is this true?
update
The following confirm d... | stackexchange/codereview |
When using the Django ORM from an external shell, using a model with a ForeignKey field an ImportError is thrown when assigning to it.
And here is a paste of my shell sessions both from ./manage.py shell and from normal python shell.
bradyrj@machine:~/workspaces/django/shellgame$ python manage.py shell
Python 2.6.6 (r2... | stackexchange/codereview |
I have the following ASP classic function:
function get_children(n)
dim local_array
dim parent
dim path
if n.hasChildNodes() then
for each child in n.childNodes
local_array = array_merge(local_array, get_children(child))
next
else
set parent = n.parentNode
while isobject(parent)
pa... | stackexchange/codereview |
I'm using Rails 3, Uploadify, to send images to S3.
Right now all the images being upload have the MIME: application/octet-stream
I'd like to fix that but I'm getting the following error:
NoMethodError (undefined method `original_filename' for #<ActiveSupport::HashWithIndifferentAccess:0x107c81998>):
app/models/photo... | stackexchange/codereview |
I have been trying to figure this out for a week now so I've come here.
I have a function that I want to clone a list item after an image has been clicked and append the list item elsewhere...
this is working, but i am having trouble doing the opposite... I have it wrapped in a toggle function but i can't seem to remov... | stackexchange/codereview |
I understand that if we want to setup clustering between servers.
Is there any systematic way to check if any objects are not serilizable?
Because currently we use functionality testing to check if got any exception encountered related to serialization
Thanks
| stackexchange/codereview |
I have a colored texture work as a menu button. Sometimes I want to gray it out when it's disabled. How to do it without creating a new grayscaled texture? Can glBlendFunc do this for me? Thanks in advance.
| stackexchange/codereview |
I want to put a timer onto my gallery rotation script. This timer is a circular animated gif. i want it to start again when a new image loads..
I would have thought that this would work but apparently not.
// Loader needs to be a Global
loader = new Image();
loader.id = "loader_graphic";
loader.src = "images/loader.gif... | stackexchange/codereview |
Can anyone suggest a good MYSQL optimization tool which helps in finding the bottlenecks in a long query and hence help in optimization?? I am looking for a query profiler.
thanks...
| stackexchange/codereview |
I am building a GPS-related application that displays the coordinates amongst other calculations. My demo code is setup to fire the events every second.
Whenever I update the main page UI (say, a textbox with the calculated Latitude), it works fine.
The problem is if I try to "flick" from one side to the other side, t... | stackexchange/codereview |
I have a string that looks like this...
"
http://www.example.com/
example.pdf"
I need to remove the whitespaces and linebreaks. How do I do this? My result should be
"http://www.example.com/example.pdf"
| stackexchange/codereview |
If sendto fails according to the manpage
"On success, these calls return the number of characters sent. On error, -1 is returned, and errno is set appropriately."
I know that with TCP that is definately the case and you should really attempt to send the remaining data as pointed out in Beej's guide to network programm... | stackexchange/codereview |
I'm trying to install some Gems and need to run the following command:
gem install mongrel mongrel_service mysql ruby-postgres oniguruma
ultraviolet libxml-ruby --no-ri --no-rdoc --platform=mswin32
However, that --platform=mswin32 at the end of it bothers the hell out of me. I mean, my platform is x64 as it's suppose... | stackexchange/codereview |
I have this method:
Private Sub SetIfNotNull(ByVal input As Object, ByRef destination As Object, ByVal ConversionType As ConversionType)
If input IsNot Nothing AndAlso input <> "" Then
Select Case ConversionType
Case DealerTrackConnection.ConversionType._String
de... | stackexchange/codereview |
I have (or not) a variable $_GET['myvar'] coming from my query string and I want to check if this variable exists and also if the value corresponds to something inside my if statement:
What I'm doing and think is not the best way to do:
if(isset($_GET['myvar']) && $_GET['myvar'] == 'something'): do something
My questio... | stackexchange/codereview |
I have written two scripts Write.py and Read.py.
Write.py opens friends.txt in append mode and takes input for name, email ,phone no and then dumps the dictionary into the file using pickle.dump() method and every thing works fine in this script.
Read.py opens friends.txt in read mode and then loads the contents into d... | stackexchange/codereview |
http://www.example.com?foo
What's the term for the foo part of the URL?
| stackexchange/codereview |
I'm downloading zip files and place them in isolated storage on Windows Phone 7. Is there an API or library that allows me to unzip the files?
| stackexchange/codereview |
I want to know how to create a simple desktop environment, such as KDE, Gnome and LXDE, for Linux, or specifically, Ubuntu/Kubuntu, but I do not know how to begin and how complex it is.
I want to create a simple, efficient and lightweight desktop and to reproduce some good features from KDE, Gnome and Windows XP. I do ... | stackexchange/codereview |
Anyone released any Silverlight 4.0 out-of-browser app yet? does it compare to AIR 2.0?
Question about Silverlight 4, it has some webview-like control where I can write HTML+CSS right? What rendering engine does it use? What ver of CSS does it support? IE? IE7?
Planning to learn either Adobe AIR or Silverlight, but... | stackexchange/codereview |
I need a renderer/parser in Javascript or Java for MediaWiki syntax which supports mathematical symbols and formulas.
| stackexchange/codereview |
how can I get my .exe path because if I copy my .exe I can get my new path ?
| stackexchange/codereview |
I know this is a very common question, but I tried googling and got no helpful result.
I'm trying to make a jar out of my "Main.class" file (made in NetBeans, but I'm not trying to make the jar with it)
I ran this command:
D:\NetBeans\trovanum3\build\classes\trovanum3>jar cf trovanum.jar *.class
And a .jar file spawne... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.