instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a php script running on server A that takes like 15mins to finish. I run the script through the web browser and it sends out output to the browser in blocks (as some php commands finished). See below for example of the blocks. The script creates DB2 database and it requires few steps in total.
Now I run the same... | stackexchange/codereview |
Basically, I was wondering if it's necessary (or better) to use the Microsoft Async CTP if you plan to use Prismv4. I know when I was skimming over the features of Prismv4 I found something about Asynchronous binding, but I wasn't sure if it was something baked into Prismv4 or the old way of creating threads and the su... | stackexchange/codereview |
I working through the Ruby-on-Rails Tutorial book and I've got a perplexing problem that I can't figure out. I got rspec up and running with spork and it seems like a great system. However on the first test I've ran into something that is just crazy. The book says to create some static pages called home and contact,... | stackexchange/codereview |
I've that in my Adapter :
public View getView(int position, View convertView, ViewGroup parent)
{
ViewHolder holder;
if(convertView==null)
{
convertView = myInflater.inflate(R.layout.list, null);
holder = new ViewHolder();
holder.text01 = (Tex... | stackexchange/codereview |
Connecting to database...
Creating database table...
Filling database ... This will take a
few minutes. Even longer for dial-up.
Warning:
file_get_contents(http://localhost/cbmall/xml/marketplace_feed_v1.xml)
[function.file-get-contents]: failed
to open stream: A connection attempt
failed because the connect... | stackexchange/codereview |
I just ran
svn add myfolder/*
To add all the files in there to my repo. It added the .pyc files too. I'm looking at my svn:ignore now and it says:
*.pyc
*~
Should that not have prevented those files from being checked in?
| stackexchange/codereview |
I'm building a review site that will allow users to submit reviews which will be stored in a MySQL DB. Reviews will be manually reviewed by me for content, and then displayed on my site. Here's my custom function for cleaning the data (every item on the form is passed to this function):
function cleanDataForDB($data) {... | stackexchange/codereview |
I am running Ubuntu. I have a folder "Project", and in that folder I have a bunch of sub-folders. In each of the sub-folders I have either a .c file, a .jar file or a .py file. I want to iterate over all the files, and for each file, compile it, and run 5 times with different input it using the "time" command to time t... | stackexchange/codereview |
Hope someone can help. I really dont have a clue as to why its doing this.
From what Ive read it happens when the file you are calling is external to the site. My ajax call is local. i also read that it could be to do with the case of directories. WIndows ignores case whilst Linux doesnt. However ive checked and re-che... | stackexchange/codereview |
Do you know of any linux program, that would monitor accesses to directories and files in the filesystem? I would like to able to produce some report of how many times certain files were accessed in some period?
| stackexchange/codereview |
All,
Which one do you prefer when it comes to proper design & cleanness as well as query performance?
Option A: (bidirectional reference)
class Country(models.Model):
name = models.CharField(max_length=128)
capital = models.ForeignKey('City',related_name="country_capital", null=True)
class State(models.Model)... | stackexchange/codereview |
The code look like this
sum += array[j] + array[j+1] + array [j + 2]+ ... array[j + n];
how do I replace the j+n inside the bracket to improve the timing?
| stackexchange/codereview |
Why C# allows:
1.0 / 0 // Infinity
And doesn't allow:
1 / 0 // Division by constant zero [Compile time error]
Mathematically, is there any differences between integral and floating-point numbers in dividing by zero?
| stackexchange/codereview |
Is it possible, using JQuery, to redirect to a different index.html based upon the users screen resolution? So for example, screens upto the size 1024px wide go to 1024.html, and all others go to the normal index.html?
Id preferably like to use jQuery for this. Any help would be greatly appreciated!
Thanks!
| stackexchange/codereview |
I have a computer (Mac) that is authorized to play music through iTunes which I want to disable. But, I only have ssh access to the machine. Is there an applescript I can run remotely (eg via the terminal) that I can use to de-authorize the machine?
I know that I can unauthorize all the machines I have authorized, but ... | stackexchange/codereview |
How do I remove the default date that a documentclass{article} adds in LaTeX?
Thanks
| stackexchange/codereview |
I have a MKMapView with scrolling and userInteraction disabled within a UITableViewCell. The desired effect (effectively a static image of the map in a certain position) works really well but when the MKMapView drifts on and off screen (scrolling) it reloads the map, which occasionally causes the app to crash. I have l... | stackexchange/codereview |
When i execute the df command i can see that tmpfs is mounted on /. What i need is to create a directory in /etc, say tmp and then mount another tmpfs on /etc/tmp. Can i do it by adding another entry in /etc/fstab saying tmpfs should be mounted on /etc/tmp.
| stackexchange/codereview |
There is unfortunately no TabControl.SelectionChanging event (Selector.SelectionChanging), I am struggling to implement this behavior so I can cancel the changing request.
I tried to handle the TabControl.Items.CurrentChanging (the Items property is and ItemCollection) event setting e.Cancel (of the CurrentChangingEven... | stackexchange/codereview |
I'm looking to start a new programming language and for my first task I want to overlay some text on another applications window, similar to the guy in this post:
Overlay text on some else's window - HUD
Clearly from that post, this can be done in VB.NET, and extrapolating from that, I can probably safely assume that C... | stackexchange/codereview |
Trying to figure out how to apply a common class to jQuery Hover but only for a single item at a time even if there are multiple items with the same class on a page.
i.e. HTML
<div class="button">Button</div>
<div class="button">Button 1</div>
<div class="button">Button 2</div>
JS
jQuery('.button').hover(function () ... | stackexchange/codereview |
When I use the following in a webmethod:
string mysqlsPath = Server.MapPath("applog.txt");
command.CommandText = "LOAD DATA LOCAL INFILE '" + mysqlsPath + "' INTO TABLE numbers FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'";
command.ExecuteNonQuery();
connection.Close();
I get E... | stackexchange/codereview |
I'm developing a camera app to snap photo when the volume button is pressed.
I used AudioSessionAddPropertyListener(kAudioSessionProperty_CurrentHardwareOutputVolume, audioVolumeChangeListenerCallback, self); to successfully get notified when a volume button get pressed before my camera started. However, after I start... | stackexchange/codereview |
I'm working on this code for a certificate program, I tried to get some help from the instructors but they don't seem familiar with Google Map Apis and the requirement is to display multiple markers from addresses stores in an XML file once a search is performed, i.e I look for John, I get his markers in addition to ma... | stackexchange/codereview |
I poked around StackOverflow and Google, but couldn't find anyone who has put together a comparison of authentication gems or plugins for Rails (I'm looking for something for Rails 3). What authentication solutions are available for Rails 3, which are most popular, and what are the differences between them?
| stackexchange/codereview |
I'm trying to strip my mac os x application of all unneeded symbols. If I do this on my linux app using "--strip-unneeded" the symbol table on my application is empty and returns nothing.
On Mac OS X, I am seeing symbols related to the typeinfo and vtable entries for my classes, as well as some function. As best as I... | stackexchange/codereview |
I checked out quite a few SSL librarys tonight. OpenSSL looks good but lacks documentation, as most of them do. I thought I hit the jackpot when I found NetSieben's SSL C++ Library (http://www.netsieben.com/products/ssh/index.phtml) but after hours, I am unable to get it to compile. It says it needs Botan's lib, but ab... | stackexchange/codereview |
I am developing an asp.net mvc 2 application and am using a Html.TextAreaFor to display a textarea where the user can enter a text which is then stored and sent if needed.
The view which displays this functionality is strongly typed (typeof(Message)). The message has a sender, reciver, subject and message body. The cod... | stackexchange/codereview |
I accidentally put the opening brace of my function definition after the return statement
int id(int k) return k; { }
But GCC answered with a weird error message
error: named return values are no longer supported
Can anyone please explain what that weird feature might be? I've never heard about it.
| stackexchange/codereview |
Alright, this is about the tenth time this has happened to me.
I bumped some hotkey in Eclipse and it "word-wrapped" ALL OF MY CODE!!!
Example (notice the plus signs all on new lines):
// Split the formula into two parts: bit/byte range, and formula.
try {
formulaParts = formulaAndBitPositions.split("... | stackexchange/codereview |
This is perhaps a little bit vague, but I'm hoping that in amongst all the people on SO there will be some who have ran into this type of issue before.
Background
Our application is a C# / .NET service that controls train orders. We use LINQ-to-SQL to store the state of the rail network and train orders in a SQL Server... | stackexchange/codereview |
Can somebody help me in suggesting some good tutorial where I can start.
I want to build a simple application with a dashboard and a login screen. For the first time user is asked for a log-in screen. login check is carried out via a POST call to a remote PHP script. Once the user is logged in he/she should be redirec... | stackexchange/codereview |
I've been trying to make this work forever.
I want to execute a module in another workbook from the current workbook, wbCntl.
The exactcode works in one application but not in another.
sSignalInProcess and wbSignalInProcess are defined correctly. The idea is to either open or create the sSignalInProcess file on the f... | stackexchange/codereview |
I have been playing around with some debugging and wrote some C code that does a lot of pointer related operations (as a Valgrind tool) that runs on top of Valgrind. In the last one hour I changed something as a result of which the program executes fine but then stops responding to Ctrl+C when I try to terminate it.
I... | stackexchange/codereview |
I am attempting to create a "behavior tree" using C#.
For anyone who doesn't know, a behavior tree is basically a framework that you can construct an AI around. There are Sequencers, Selectors, Decorators, composite actions, and other things.
I have found a single library that has implimented a "behavior tree" in C#, l... | stackexchange/codereview |
Hey,
How can i call a page method after a usercontol finished his method / fire a parent page method from inside the user control insted?
| stackexchange/codereview |
I am using Silverlight 4 and have a datagrid that allows users to sort the rows. On the sort column event the SelectionChanged event gets fired and the initial first row in the datagrid is selected. Is there anyway to not have the SelectionChanged event fired or is there away to have an onSort event to set the select... | stackexchange/codereview |
I have a dialog based program. It has a edit box where I get input from user. I have to write the input unicode string to registry in 2 forms, in string form using REG_SZ and in binary form(utf-8 HEXA) using REG_BINARY. How can I do that?
| stackexchange/codereview |
I am trying to use Selenium RC but i keep getting this error whenever i start the server.
"HTML suite exception seen:
java.lang.RuntimeException: sessionId 7643 doesn't exist; perhaps this session w
as already stopped?"
The command I use is
java -jar C:\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-serve... | stackexchange/codereview |
When I do mvn clean install, I get this error:
annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)
But where do I put this -source 1.5 command? I tried all permutations with mvn clean install and couldn't get it to work. So I tried putting compilation in my pom, like this:
<build>
<plu... | stackexchange/codereview |
The script works however in Dreamweaver, I keep getting a syntax error. I'm not sure how to fix this and still make the script work.
http://jsfiddle.net/tBptU/
According to DW the syntax error is on line 21 after return false;
| stackexchange/codereview |
I have a windows forms application that I am adding a request support form to, and would like the user to be able to input the values and hit a button. Once the button is pushed I can either:
Open a new mail message and auto populate the message. (Not sure how to do this)
Submit the request via a http form on my websi... | stackexchange/codereview |
Is there a way to launch an IPython shell or prompt when my program runs a line that raises an exception?
I'm mostly interested in the context, variables, in the scope (and subscopes) where the exception was raised. Something like Visual Studio's debugging, when an exception is thrown but not caught by anyone, Visual S... | stackexchange/codereview |
I use Memcache on my server to store some useful query results. And I have a problem with performance of my server. I started investigating it and it's some kind of lock issue.
My first guess is that is Memcache.
I use it in this way:
$memcacheRT = new Memcache;
if (not open) $memcacheRT->connect('localhost',... | stackexchange/codereview |
I have a table created using the query
CREATE TABLE branch_dim (
branch_id numeric(18,0) NOT NULL,
country_name varchar(30),
island_name char(30),
region_name varchar(30),
branch_name varchar(30),
region_manager varchar(30),
marketing_manager varchar(30),
branch_manager varchar... | stackexchange/codereview |
I'm building a templated web control for an asp .net web forms application. Most of it runs fine, but one problem I’m stuck with is that all the controls inside my template are null at runtime.
For instance if my control is marked up like this:
<fscc:CollapsiblePanel runat="server" ID="cpExample1" ImageControlId="image... | stackexchange/codereview |
I have this question;
jQuery Cross Domain Errors
I was wondering whether changing the "post" to a "get" would solve the XSS issue.
| stackexchange/codereview |
How do I to tell what context an application is running under?
That is, user context, system context, etc... Is there some code I can run to tell? P/Invoke or something?
| stackexchange/codereview |
I'm trying to generate a formatted string based on a list:
[{"Max", 18}, {"Peter", 25}]
To a string:
"(Name: Max, Age: 18), (Name: Peter, Age: 35)"
| stackexchange/codereview |
My Doctrine 1.2 is integrated inside CodeIgniter as a hook and I know that my char-set is utf8 with collation utf8_unicode_ci.
I have two YAML files, one for creating the DB and its tables and one to load some test data. My data can contain French accents (çéïë...). In my schama.yml I have correctly specified the coll... | stackexchange/codereview |
Hello I have site where I show/hide divisions that are loaded by default at start. But the problem is that when I refresh page it is always going back to main division. Is there any way I can do something like mysite/#news mysite/#about?
Code that I have:
$('a#btnNews').click(function()
{
$(... | stackexchange/codereview |
I have an application that I'm wanting to use ClickOnce to deploy. Here are some of the files that I'll need:
MyProgram.exe (medium size)
MyProgram.exe.config (small size)
MyMenu.xml (small size)
Shared.dll (medium size)
ThirdParty1.dll (X-large size)
ThirdParty2.dll (X-large size)
ThirdParty3.dll (X-large size)
Other... | stackexchange/codereview |
I have developed a server app that uses Excel 2007 COM automation to convert some xls files. It is started as a service on a Windows Datacenter instance, running under its own user, and I had to change DCOM security settings ("launch as interactive user") to make it work.
The problem is, when I log off (via RDP), it st... | stackexchange/codereview |
I want to make a page that displays some data from a DB, so I have created some functions that get that data from my DB. I'm just a newbie in Node.js, so as far as I understand, if I want to use all of them in a single page (HTTP response) I'd have to nest them all:
http.createServer(function (req, res) {
res.writeHe... | stackexchange/codereview |
I have menu with tabs:
<div class="section">
<ul class="topnav">
<li><a href="#">First</a></li>
<li><a href="#">Second</a></li>
<li><a href="#">Third</a></li>
</ul><!--//topnav-->
<div class="tabbox">
Tab here
</div>
<div class="tabbox">
Tab here
</div>
<div class="tabbox">
Tab here
</div>
</div><!--/... | stackexchange/codereview |
I have a task which I schedule to run periodically via ScheduledThreadPoolExecutor.scheduleAtFixedRate(task, rate, ...). A user can cancel this task manually, which invokes ScheduledFuture.cancel(true). For some reason, perhaps depending on when they cancel this task, the worker thread (which the executor used to run... | stackexchange/codereview |
I'm looking for a good tutorial on this effect: http://chrismahon.com/themes/wook/portfolio/
When you hover over a portfolio image, the opacity changes and a icon is revealed.
If anyone could help that would be great, as I dont really want to steal the code.
Thanks
| stackexchange/codereview |
I'd like to get the fully qualified method name. I can see how to get the method name on its own with the following:
System.Reflection.MethodBase.GetCurrentMethod().Name
but this only returns the actual name. I need everything, like:
My.Assembly.ClassName.MethodName
| stackexchange/codereview |
What is the absolute path of the assets folder? I need it to reference some images saved in this folder from a html file saved in the memory device.
| stackexchange/codereview |
<?php
if(isset($_POST['pic'])){
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpg")
|| ($_FILES["file"]["type"] == "image/pjpeg")
|| ($_FILES["file"]["type"] == "image/png"))
&& ($_FILES["file"]["size"] < 300000))
{
if ($_FILES["file"]["error"] > 0)
{
echo "Return Cod... | stackexchange/codereview |
<html>
<head>
<script type="text/javascript">
// jquery and javascript functions
</script>
</head>
<body>
<fancy-jquery-ajaxy-html-section>
</fancy-jquery-ajaxy-html-section>
<noscript>
sorry you came to the wrong place - this site is all jquery... | stackexchange/codereview |
I have a huge list of mp3 files, the names of which I want to process neatly and efficiently.
First, I want to remove spaces in file names. I am using tr -d ' '. Is there any situation where this might fail?
Second, a lot of file names start with a number or a bunch of numbers. For instance, 01-filename.mp3 or 02_fil... | stackexchange/codereview |
I am having a brain freeze on f#'s option types. I have 3 books and read all I can but I am not getting them.
Does someone have a clear and concise explanation and maybe a real world example?
TIA
Gary
| stackexchange/codereview |
I have a few DependencyProperties defined in some custom user controls. I'd like for Visual Studio (and Blend as a bonus) to list these properties under the "Visibility" category instead of "Other" or "Miscellaneous".
How can I add some metadata to these properties to make this happen?
Edit: To clarify my question, I g... | stackexchange/codereview |
I going through a simple tutorial to create a very small android app in eclipse. The tutorial is here: http://mobile.tutsplus.com/tutorials/android/android-sdk-development/.
Now that I have it compiling, what should I do to get it on my phone? Do I need to export the app to some sort of exe? can i just copy and paste t... | stackexchange/codereview |
Some code may be reused in various environments including Java EE Application server. Sometimes it is nice to know whether the code is running under application server and which application server is it.
I prefer to do it by checking some system property typical for the application server.
For example it may be
jbo... | stackexchange/codereview |
I am familiar with tracking file downloads using this method:
<a href="http://www.example.com/files/map.pdf" onClick="javascript: pageTracker._trackPageview('/downloads/map'); ">
But now I need to track a file download using this code:
<asp:HyperLink ID="HyperLink3" runat="server"
NavigateUrl="~/Protected/Downloa... | stackexchange/codereview |
I'm trying to add rows to a TableLayout in Android and the orientation property doesn't seem to work. Basically I need to create a TableRow, add multiple TextViews to it, and the add to the TableLayout and have the TextViews stacked vertically instead of horizontally.
The XML looks like this:
<TableLayout android:id... | stackexchange/codereview |
I need to change the tray icon, so that it would notify users about the number of unread messages.
How to do this with Java?
| stackexchange/codereview |
Ok right now I have an object containing 3 strings, along with setters and getters. Now I have two questions -
First, I'm new to C# is there any way to optimize the following methods and make them more efficient?
void getSearchResults(object sender, RoutedEventArgs e)
{
string baseURL = "http://api.sea... | stackexchange/codereview |
I have a type that I build with TypeBuilder to match an interface, like this::
interface IFoo
{
int Property{get;}
}
My code builds the get_Property method. If I cast my built object as an IFoo, everything works. However, when I use the object as a dynamic the the code complains that my IFoo does not implement ge... | stackexchange/codereview |
Basically I have a fully functional ogl program (2D game) in opengl es 1.1, everything works fine except for one problem: glcolor
I'm trying to set some of my texture to half transparent and I would like to do it as follows;
gl.glColor4f(1f, 1f, 1f, .5f);
obj.draw(gl);
...
gl.glColor4f(1f, 1f, 1f, 1f);
I'm using VBO ... | stackexchange/codereview |
I'm attempting to implement what can best be described as "an FTP interface to an HTTP API". Essentially, there is an existing REST API that can be used to manage a user's files for a site, and I'm building a mediator server that re-exposes this API as an FTP server. So you can login with, say, Filezilla and list you... | stackexchange/codereview |
I'm having some trouble creating a "super object" (similar to that of CodeIgniter) for a framework project I'm working on.
I want to make a super object that all of my other classes will run through. I did that, but it seems I am unable to use my super object's object in each of my classes without using the global keyw... | stackexchange/codereview |
I'm quite new to ObjC and its mutable arrays. This is driving me crazy ;-)
I do the following:
mColumns = [NSMutableArray array];
for( int i=0; i<5; i++ ) [mColumns addObject:[[MyColumn alloc] init]];
After that code my array "mColumns" contains 5 elements. But each of them is a NULL-Pointer! (Or at least that's what ... | stackexchange/codereview |
Is it possible to embed a video via javascript like vimeo & moogaloop, but for blip.tv?
Their documentation seems unclear about how to do it, they have no example and I couldn't find any by googling for about 40 minutes..
Thanks, S.
| stackexchange/codereview |
I have the following test case:
include_once('../Logger.php');
class LoggerTest extends PHPUnit_Framework_TestCase {
public function providerLogger() {
return new Logger;
}
/**
* @dataProvider providerLogger
*/
public function testAddStream($logger) {
$this->assertTrue(false... | stackexchange/codereview |
I have a linearlayout A containing a imageview and scrollview. The scrollview contains a second linearlayout B
The idea is to have a fixed header while the linearLayout B contains multiple views that match exactly the height of the scrollview. See it as a tabview where all tabs are after each other in a scrollview.
<?x... | stackexchange/codereview |
Is there any validation library in JavaScript? I'm looking for something small, simple and basic.
Example 1
var email = "steve@jobs.com";
if ( validate(email, "email") ) {
// Success
}
Example 2
var email = "steve@jobs.com";
if ( validate(email, {
"length": [0, 12],
"characters": ["a", "b", "c", "d", "e", ..... | stackexchange/codereview |
I'd like to be able to show chords above the lyrics in music using CSS. This is what I'd really like it to look like:
C F
This line has a C chord, and it also has an F chord
so that the chord changes are shown in the right places. In HTML it looks like this:
<span class="chord... | stackexchange/codereview |
I am trying to create a heavily formatted word document in C# using Word Automation. I am having trouble finding the syntax for many of the operations I would like to accomplish. I have tried using Word's ability to build macros, and then use the resulting code to create what I need, but because the macros are writte... | stackexchange/codereview |
I'm working on an ASP.Net usercontrol and I'd like to include a jQuery DropdownChecklist (http://code.google.com/p/dropdown-check-list/). Does anyone know if that is possible?
So far, when I place the usercontrol on a page, it displays the basic list and not the styled DropdownChecklist, so I know something isn't rig... | stackexchange/codereview |
For BlackBerry OTA installation what content-type should be used for jad and cod files?
| stackexchange/codereview |
I have to use form elements generated with ID's in two parts of the site.
the problem is ID's are being doubled and W3C shows errors
is there a way to ommit that problem?
| stackexchange/codereview |
I have a Money struct that has currency and amount. I would like to be able to sum an List by using linq.
public struct Money
{
public string Currency { get; set; }
public decimal Amount { get; set; }
public static Money operator +(Money m1, Money m2)
{
if (m1.Currency != m2.Currency)
... | stackexchange/codereview |
How to free Transaction log space in SQL SERVER 2005:
I have Transaction log size = 70 GB and there four transaction logs 1,2,3,4 in different drives.
Through DBCC SQLPERF(LOGSPACE) I found that the transaction log is Full (uses 100 %) and I want to free up the space in transaction log and I don't want T-log backup. I ... | stackexchange/codereview |
I have a web page with 16 textboxes arranged in a 4x4 grid. The idea is that a user will type precisely one character into each textbox (specifically, a letter). You can see this page online at http://fuzzylogicinc.net/Boggle/EnterBoardClientSide.aspx
What I want to happen is the following:
When the page loads the upp... | stackexchange/codereview |
When I'm sending, for example, "1234", the server, which is C++ using SFML library reads "1234╠╠╠╠╤lσ╝╝√=♦↑עσ". When sending from C++ SFML clinet to the server it's all OK. The original client written in Onj-c with Async Socket library. WTF? (All TCP)
| stackexchange/codereview |
I have a IV (initialization vector) and key, also a cryptogram. I need do decrypt the cryptogram. From the internet i found DCPcrypt Cryptographic Component Library v2.
So, now i've reached to coding.
procedure TForm1.Button1Click(Sender: TObject);
var
key:Ansistring;
ivector,indata,outdata:string;
begin
key := 'abc... | stackexchange/codereview |
I am trying to figure out what I am doing wrong here. I am attempting to use a Binary Reader to ease getting an initial four bytes from a stream into an Int32 value that tells me how long the rest of the data is to be expected.
static void Main(string[] args)
{
MemoryStream stream = new MemoryStream();
BinaryW... | stackexchange/codereview |
I'm attempting to use NAudio to decode mu-law encoded audio into pcm audio. My service is POSTed the raw mu-law encoded audio bytes and I'm getting an error from NAudio that the data does not have a RIFF header. Do I need to add this somehow? The code I'm using is:
WaveFileReader reader = new WaveFileReader(tmpMemStrea... | stackexchange/codereview |
Is there a tool/system or module that I can use for team collaboration that interacts with Git? I'm looking for something I can track tickets, maybe a wiki, and most importantly a git repository browser. Ideally I could plug these pieces in to an existing site, but either would work.
Thanks in advance!
| stackexchange/codereview |
When I change the orientation of my screen in Android, an OnItemSelectedListener from a Spinner is called.
It's not just the emulator, it also happens on a physical phone.
How can I stop this from occurring?
Cheers.
| stackexchange/codereview |
In the list of sources for dependency property values, along with the relative precedence, a local value is highest precedence for determining the base value.
Immediately after the local value are template properties from the templated parent--e.g. the parent ControlTemplate for a control that was created in the contex... | stackexchange/codereview |
I have a very simple example thus far, I'm basically trying to rip the path to a logo from a website dynamically.
var sys = require("sys"),
request = require("request"),
$ = require("jquery"),
uri = 'http://www.stevelacey.net';
request({uri:uri}, function (error, response, context) {
if (!error && response.... | stackexchange/codereview |
Machine is defined as public enum Machine{...}
_machines is defined as private Machine[] _machines;
Don't know why this doesn't work:
_machines = {Machine.a, Machine.b};
error message:
illegal start of expression
Thank you guys!
| stackexchange/codereview |
function Entity() {
this.a = {a: 4};
this.b = 5;
}
function Thing() {}
Thing.prototype = new Entity;
var thing1 = new Thing;
thing1.a.a = 3;
thing1.b = 4;
var thing2 = new Thing;
console.log(thing2.a.a); // prints 3 instead of 4. I would like 4.
console.log(thing2.b) // prints 5 as wanted
I'm having difficul... | stackexchange/codereview |
Is it possible to use @EJB inside another EJB? I'm trying to do this now, and my EJB is ending up null. I'll outline my problem in an example.
@Stateless
@LocalBean
@Local(LoginServiceLocal.class)
public class LoginService implements LoginServiceLocal {
public void createLogin(String email, String password) { ... | stackexchange/codereview |
I am writting a small app to export and import data from database using .NET DataSets and XML and as part of that I am doing the following.
StreamWriter sw = new StreamWriter(file);
sw.Write(xml.OuterXml);
sw.Close();
The problem is that the close method closes the FileStream (file parameter passed to constructor) but... | stackexchange/codereview |
I'm trying to use activeSupport's blank method in a script and getting the error "undefined method 'blank?' for "blah":String (NoMethodError)". Ruby doesn't have an issue with the require statement but I can't use the library.
require "rubygems"
require "active_support"
if "blah".blank?
puts "blank!"
end
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.