instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I apologize if this question was asked earlier and if its a simple one.
I am trying to download a file from http website onto my unix machine using command line.I log onto this website using a username and password.
Say I have this link (not a working link)
http://www.abcd.org/portal/ABCPortal/private/DataDownload.acti... | stackexchange/codereview |
I'm considering embarking on a new project. The premise of the project is generate a widget on my site, then copy a piece of javascript into your site and viola you have your widget.
It's a new spin on existing services such as polldady.com, twiig.com and addthis.com.
Many of these such services are designed to be publ... | stackexchange/codereview |
Just a quick question. I've created a custom ExpandableListAdapter, both the parent and child have it's own XML layout file. But it's lost the highlight option when you select it (obviously it still selects the row). What option do I need to set to make it highlight like the standard layout would.
Thanks!
| stackexchange/codereview |
In the following table, is there a way to ensure PreviousID always references an ID in a row with a matching ParentID, or, if ParentID is null, it is also null in the referenced row?
CREATE TABLE MyTable (
ID int not null identity(1,1) primary key,
ParentID int null foreign key references MyTable (ID),
PreviousID... | stackexchange/codereview |
I'm creating an inbox system for my website which allows basic communication between users. I'm fetching the results with jquery calling a webservice.
Then I'm using a jquery template engine to render the results to the screen. So far this all works good. but now I want to add some click functions on certain parts of i... | stackexchange/codereview |
I have a complex query I've been wrestling with for 2 days and can't seem to get it to run. I have two querys - The first query works fine but I can't figure out the second
What am I doing doing wrong?
CREATE TABLE `recipes` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(100) NOT NULL default '',
... | stackexchange/codereview |
I have ASP.NET web application which stores information on the session while user goes through pages. Will I have any problems if I deploy such application to Windows Azure?
| stackexchange/codereview |
Honestly, now when we have so many javascript features on the frontend I really wish javascript in the browsers could replace html and css entirely.
We could deal with objects (structure + design + functionality) instead of html elements and css that style these elements.
But since that is never going to happen, I wond... | stackexchange/codereview |
I need to create a dbus object in python with method names that are decided at runtime.
The code I've tried is basically this:
import dbus
import dbus.service
from dbus.mainloop.glib import DBusGMainLoop
import gobject
DBusGMainLoop(set_as_default=True)
gobject.threads_init()
class greg(dbus.service.Object):
... | stackexchange/codereview |
I'm trying to add some Markdown styling to my Rails 3 blog application. This should be something simple, but I can't get it to work.
I have kramdown in my Gemfile:
gem 'kramdown'
I ran bundle install. I have an application helper called kramdown
module ApplicationHelper
def kramdown(text)
require 'kramdown'
... | stackexchange/codereview |
I have a huge table with the following format:
DATETIME NUMBER
--------------------------------------
2009-03-31 16:05:52.000 2453651622
2009-03-31 16:16:12.000 30206080
2009-03-31 16:16:16.000 16890039
2009-03-31 16:16:28.000 2452039696
2009-03-31 16:16:33.000 140851934
2009-03-31 16:1... | stackexchange/codereview |
I am able to do that in IE, but FF doesn't allow to do something like:
$("#txtBox").bind('paste', function (e) {
alert('pasting text!!!!');
alert(window.clipboardData.getData("Text"));
window.event.returnValue = false;
});
I am required to trap the clipboard contents onpaste, ... | stackexchange/codereview |
There are times when didReceiveMemoryWarning gets called, but viewDidUnload does not. In my situation I would like to force viewDidUnload when didReceiveMemoryWarning gets called.
I can say this:
[self viewDidUnload];
But will that really unload the views? There is no self "unloadView".
| stackexchange/codereview |
We have a website which has a decent customer base. We recently started a subdomain which will be used to serve specific content from the website. We need to redirect the users to subdomain when he/she tries to access the designated content from the old domain. For example I have old domain www.marketplace.com and a su... | stackexchange/codereview |
I'm a newbie Android App Developer, also new with xml. I was just wondering if there is an easier way to view xml output other than using eclipse to compile the android application (java + xml) and then see output in the android emulator. Just asking because it takes forever to check my UI through eclipse IDE to turn o... | stackexchange/codereview |
I've been looking at the various ways of constructing lazy lists in Perl 6 and I would like to collect all of the concise ways of describing the Fibonacci sequence.
I will start this off with the three from masak's journal:
my @fibs := (0, 1, -> $a, $b { $a + $b } ... *);
my @fibs := (0, 1, { $^a + $^b } ... *);
my... | stackexchange/codereview |
I tried to make a simple test with facebox_render and rails 3.
Here are my steps:
1.) Installed Jquery 1.4.2 (Jrails)
2.) Installed the plugin
rails plugin install git://github.com/ihower/facebox_render.git
3.) and added the following lines:
in my application.html.erb
<head>
<title><%= yield(:title) || "Untitled" %>... | stackexchange/codereview |
Is it possible to render the editortemplates if a user is logged on and the displaytemplates as a default or do I need to create my own Html helper extension?
| stackexchange/codereview |
I'd like to post on page - throught my site. . I didn't find anything that could help me in documentation. Also none of google results gave mi answer.
function post_facebook($data=null){
$result = "";
require_once (ROOT. "/apps/configuration/models/ConfigurationItem.php");
require_once (ROOT . "... | stackexchange/codereview |
I am developing a Rails 3 app in a largely tabless capacity. I am using savon_model and ActiveModel to generate similar behaviour to ActiveRecord equivalents. Below is my code:
class TestClass
include Savon::Model
include ActiveModel::Validations
# Configuration
endpoint "http://localhost:8080/app/TestService"... | stackexchange/codereview |
I have a method which returns a array of ByteArray:
public byte[][] Draw(ImageFormat imageFormat, ImageSize imageSize);
and I need to write it into a MemoryStream:
var byteArray = instanceName.Draw(ImageFormat.Jpeg, ImageSize.Dpi150);
MemoryStream ms = new MemoryStream(byteArray[0]);
This is working so far because th... | stackexchange/codereview |
I have a deceivingly (at least for me) simple problem. I want to open a file in eclipse FROM Mac's finder. Whenever I try, I get the alert that Eclipse cannot open that file. Yet, from within Eclipse I can open the file, either by double clicking it in the Explorer/Navigator window or going file/Open File ...
At the en... | stackexchange/codereview |
Is it possible to implement or extract batch file in eclipse and debug java project in debug mode. Because without batch file I can't debugging my project and can't set breakpoint.Or some another solution. How to debug my application with use .bat file to start my java project.
| stackexchange/codereview |
Having a problem with the change() event in jQuery:
$("select[name=cmm]").change(function(){
total();
});
For some reason the "total" function isn't being called with the code above. The html code is:
<select name="cmm">
<option value="none">none</option>
<option value="one">the first</option>
... | stackexchange/codereview |
I have been able to create portrait pages, and landscape pages in separate documents, but now require to do this in one document. I am using ITextSharp library and the document.setpagesize seems to apply to all pages. Is this correct?
I was using PDFLib and changing page orientation was not a problem in that library.... | stackexchange/codereview |
I have a rails 3 app that has 2 different UIs that both share the same model but have different UIs. Lets call these retailers and customers "sites". What is the best approach in rails 3 for creating a monolithic application to keep these two apps in one app. Should I just namespace the controllers, and change routi... | stackexchange/codereview |
In my controller I'd like to do something like the following:
@book = Book.find(:all, :conditions = > [" created_at > with in the last 1 minute "]
if @book.nil?
# Just incase we didn't create a book, we'll initialize one
@book = Book.create()
end
@chapters = @book.chapters.build etc.............
* In sum, when t... | stackexchange/codereview |
Here is the code:
$("#inputtxt").change(function() {
var doneflag = 0;
var testname = " ";
var rawinput = $('#inputtxt').val();
var scnt = 0;
var indata = {};
$('#inputtxt2').val("");
$('#lnghost').show();
$('#lnghost2').hide();
// go load some arrays from data in a database
getDBaseData(fnarray,lnarray,flarray);
... | stackexchange/codereview |
I have some T-SQL that generates a nice report giving a summary some stuff by month.
I have 2 questions, is there a way to get the to sort the months by calendar order, not by alpha? And, what i would like to do is add a total line for each year, and a total line for the whole report?
SELECT
CASE WHEN tmpActivity.... | stackexchange/codereview |
I'm reading Scott Meyers' Effective C++. He is talking about traits classes, I understood that I need them to determine the type of the object during compilation time, but I can't understand his explanation about what these classes actually do? (from technical point of view)
| stackexchange/codereview |
Long back, android used to have GtalkService that let applications use Gtalk for various purposes, it was removed due to security reasons.
Do we still have a method of invoking a Gtalk service that let us interact with gtalk from another application e.g. pinging a friend programmatically.
| stackexchange/codereview |
Is it possible to have a self-updating iPhone application?
I believe the answer is no, but I am not sure.
I have a database driven app that is in effect a catalogue of products. I want the database to be on the users iPhone so the catalog is fast to use. However, periodically the content in the database changes.
I coul... | stackexchange/codereview |
i have some trivial question that is bothering me. When i create a new project using "Window-based Application" eg. for iPhone i have its app delegate declared, then for example i want to create one additional UIViewController/nib pair and add it to the main window view as kinda of "entering point view" - i'm trying to... | stackexchange/codereview |
Why the name constant is not recognised in the static function f2() ?
class Foo {
protected static function f1($s) {
echo "doing $s";
}
}
class Bar extends Foo {
const name = 'leo';
public static function f2() {
Foo::f1(name);
}
}
$bar = new Bar();
$bar->f2();
I get the following er... | stackexchange/codereview |
I have a string like so:
(999.08) - (1025.67)
I need to be able to find the range between these two values as a floting point even if they are negative values so (-999.08) - (-1025.67) would also be in scope.
Assume i would need to use a regex and join the two in some sort of array?
| stackexchange/codereview |
I'm building a filters section for my search page and I was wondering what is the best way to go about doing the query strings. My problem is that these links function a lot like checkboxes, so some, all or none can be on. I'd have to loop through each of about 30 or so links, removing or adding that specific link's va... | stackexchange/codereview |
I am trying to manage a few animations in my scene using the following method:
In a loop, create animated
UIImageView, set the on stopped
method. Also, store this UIImageView
in a NSMutableDictionary. The animation ID is the same as the key in the dictionary.
When this animation is stopped, get the animation ID. Use [... | stackexchange/codereview |
Starting from scratch in a new project in which the properties of the default Form1 form have not been altered I drop a SplitContainer on the form and set its properties to:
Anchor - Top, Left
Dock - Fill
Orientation - Vertical
I then drop a second SplitContainer into the left-hand panel (panel 1) of the first Spl... | stackexchange/codereview |
I have a splash screen that implements MainScreen, and I am trying to use Timer to wait 3 seconds to push a new screen.
TimerTask splashTask = new TimerTask() {
public void run() {
UiApplication.getUiApplication().pushScreen(new HomeNavigationScreen());
}
};
timer.schedule(splashTask, 3000);
However, ... | stackexchange/codereview |
In the context of a multi-user business application in a small office, what are the disadvantages of installing the client on each PC and having them connect directly and remotely to a SQL server database on a central server?
This seems to avoid the need to include .Net remoting (or similar) technology and so install D... | stackexchange/codereview |
To find the number of elements in a PHP $array, which is faster/better/stronger?
count($array) or sizeof($array) ?
Edit
Thanks to Andy Lester, I have refined my question to mean from a multilingual perspective. The manual commenters say
"[sizeof] does not mean the same in
many other languages based on C"
Is this ... | stackexchange/codereview |
I can make abstract class equivalent to interface by putting all abstract methods within abstract class. Why did Java's designers choose to provide support for interfaces and single inheritance instead of multiple inheritance and abstract classes. What is the advantage?
| stackexchange/codereview |
How do I define an expression (or any other alternative method) when I want to select a value from a dynamic drop down list?
ex:
drop down list has these values:
Plan A (X)
Plan B (Y)
Plan C (Z)
where, X, Y and Z are all random numbers.
Is there a way where I can define my selection to select the text up to "Plan #" a... | stackexchange/codereview |
I am trying to join multiple arrays of hashes in ruby using a common key. For example:
country_info = [
{country_id: "US", country_desc: "United States"},
{country_id: "AU", country_desc: "Australia"}
]
country_stats = [
{country_id:"US", pageviews: 150},
{country_id:"AU", pageviews: 200}
]
i_want = [
{cou... | stackexchange/codereview |
I'm planning on storing the number of times an article / page has been viewed in a database. This is so that I can have a list of "most popular posts / articles" in Wordpress.
This was a good thread for similar question: How "View Count" is best implemented?
My question is: A person may view an article multiple times o... | stackexchange/codereview |
I tried using the following query:
Query q = getPersistenceManager().newQuery(
getPersistenceManager().getExtent(ICommentItem.class, false)
);
but got:
org.datanucleus.exceptions.NoPersistenceInformationException: The class
"com.sampleapp.data.dataobjects.ICommentItem" is required to be persistable yet no Meta -Da... | stackexchange/codereview |
They have states for things like pressed, focused, disabled, but is it possible to create custom states so it could reflect some of my own custom criteria?
For example, say you have a list of names. Some people fall into a certain category that should be visually represented differently. These people's rows would then... | stackexchange/codereview |
I'm working on an application where the end user defines what columns a database table should have based off column names in an Excel spreadsheet that gets uploaded or just by manually defining them before uploading the spreadsheet.
Is this something that AR and MySQL could handle or am I better off using mongodb or c... | stackexchange/codereview |
So, ruby enterprise documentation states that all the values in the GC settings are defined in slots: http://www.rubyenterpriseedition.com/documentation.html#_garbage_collector_performance_tuning
(e.g. RUBY_HEAP_MIN_SLOTS)
We fine-tuned our app's min slot size and increment for the best performance by trial and error (... | stackexchange/codereview |
Hi
I am trying to write a recursive function which calculates the length of string in Java
I know that there already exists str.length() function, but the problem statement wants to implement a recursive function
In C programming language the termination character is '\0', I just want to know how to know if string ends... | stackexchange/codereview |
I have an asp.net application which has web.config file in every folder of the application. Every folder has many aspx pages in it.I need to assign/deny privileges through coding for every individual pages of folders.The privileges is role based privileges.so some roles will have privileges to only some pages in each f... | stackexchange/codereview |
This is my foo.java file:
/**
* LICENSE blah-blah-blah
* @Version $Id$
*/
public class Foo {
}
This is how the file looks after svn update:
/**
* LICENSE blah-blah-blah
* @Version $Id: Foo.java 396 2010-10-14 06:31:27Z myname@my-very-long-domain.com $
*/
public class Foo {
}
The length of line no.3 is over 80 c... | stackexchange/codereview |
I am using below code snippet to validate my input string with: only capital letters, numbers and two special characters (those are & and Ñ) & without any space between.
var validpattern = new RegExp('[^A-Z0-9\d&Ñ]');
if (enteredID.match(validpattern))
isvalidChars = true;
else
isvalidChars = false;
Test 1: "XAX... | stackexchange/codereview |
i'm looking to call a custom error log/debug function at the end of each function.
example:
i want to call error_log(__METHOD__);
I want to echo $query;
show execution time etc..
at the end of every function for debug purposes without having to call that customized function every time.
much appreciated.
| stackexchange/codereview |
I want to run a part of my loop for a certain time: 60 seconds. Afterwards I set a boolean flag and continue at another point. Does Python have something like a stopwatch? Maybe this is OS specific: it's targeted against a Linux env.
Sleeping a couple of seconds is easy... no question. ;) I want the opposite.
| stackexchange/codereview |
Date Starting Ending
10/01/2010 0 100
10/02/2010 100 200
10/03/2010 200 300
10/04/2010 300 0
the table has only one column that is ending and i need the output similar to one shown above and using sqlserver 2005
| stackexchange/codereview |
I am new to Java and I am creating an application in JSF and Hibernate.
I have a form which has several input fields but only one field that will be an Integer, Age. The rest of them will be Strings. Age is not a required field so the user can enter it or not but my application should insert null or an empty string in... | stackexchange/codereview |
I am looking for a JIT compiler or a small compiler library that can be embedded in my program. I indent to use it to compile dynamically generated code that perform complex number arithmetics. The generated code are very simple in structure: no loops, no conditionals, but they can be quite long (a few MB when compil... | stackexchange/codereview |
I've seen this posted a couple of times but none of the solutions seem to work for me so far...
I'm trying to remove a spurious  character from a string...
e.g.
"myÂstring here Â$100"
..but it should be my string here $100
I've tried:
string.gsub(/\194/,'')
string.gsub(194.chr,'')
string.delete 194.chr
All of these ... | stackexchange/codereview |
Is there a general way to take a list of items and flatten it to depth zero so that they can be spliced into a macro expansion? For instance:
((+ 1 2) (+ 3 4) (+ 4 5)) -> (+ 1 2) (+ 3 4) (+ 4 5)
| stackexchange/codereview |
I just wanted to know if there is a way to host a facebook application in facebook's servers and not elsewhere. is facebook providing hoting for applications?
Thanks
| stackexchange/codereview |
I'm looking to display splash page at the beginning of a site. How can I do this in WordPress?
I have created the static home page by going to admin->setting->reading .. But I need to display one page before that, it will ask the user to click the enter button for entering into the site.
Please someone help me!
| stackexchange/codereview |
Is there an API in CocoaTouch/iOS for detecting wireless networks? I want to write an app that saves a list of networks the phone can see at a given moment.
| stackexchange/codereview |
Because of china Great Firewall has blocked google appengine's https port. So I want to simulate a Secure Socket Layer by javascript and python to protect my users information will not be capture by those ISP and GFW.
My plan:
Shake hands:
Browser request server, server generate a encrypt key k1, and decrypt key k2,... | stackexchange/codereview |
I am using PHP and Mysql for developing an application. we have two copies of database, one at local server(i.e our end) and one at web server. we want to sync both the database so that if any change made in local database should also reflect on the webserver database. is that possible??
Currently we are using PHP scri... | stackexchange/codereview |
In the first load of the page the image have to display:none. But the problem is, when I put display none, the animate function is not working and I already put a .css({'display':'block'}) still not working.
Here is my code
<script type="text/javascript">
$(document).ready(function() {
$("img.fade").hover(f... | stackexchange/codereview |
I have gone over a silly amount of forum posts and questions here. while i would love to take this advice: http://www.cocos2d-iphone.org/forum/topic/2003 I suppose i just don't trust 'them' as much as this community.
so, I ask, is this a 'negligible leak' if it only seems to happen once when i push a view onto the roo... | stackexchange/codereview |
I am solving some examples from Data Networks by Gallager and i didnt quite understand this particular question. The question goes as follows:
Suppose the expected frame length on a link is 1000 bits and the standard deviation is 500 bits
Find the expected time and standard deviation of the time required to transfer a... | stackexchange/codereview |
I have a business requirement, and after lot of googling came to a point that android (as compared to iPhone) would be the platform to go for
I have a requirement wherein lets say an App 'X' that comes built-in with OS (firmware) needs to be replaced with some App 'Y'.
Of course, i understand that there would be someth... | stackexchange/codereview |
I want to create a panel using sencha.i tried the following code.but it doesn't works.
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
onReady: function () {
var main = new Ext.Panel({
title: 'M... | stackexchange/codereview |
Possible Duplicate:
Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
I am working on some code where I initialize an object (in this case a form), which then idles until it either receives a message from someone, or one of its methods is invoked directly.
In my... | stackexchange/codereview |
Is there a way to make this statement into one? The basic idea is to insert a tag name if it doesnt exist and to retrieve the primary key for my next statement. title column is unique.
INSERT INTO `tag_name` (`count`, `title`)
SELECT 0, @title FROM DUAL
WHERE not exists
(SELECT * FROM `tag_name` WHERE `title` = ... | stackexchange/codereview |
I'm trying to build a basic "status" page using php that will tell my users if various services (webpages we use) are at least serving up pages (which isn't 100% guarantee of working but its pretty good indicator)
what i would like to do is something like
www.domainname.com/mediawiki/index.php and make sure that return... | stackexchange/codereview |
I have the following situation: a class Event that has a collection of Participant objects, but the class Participant don't have any reference to event. So, I need to get the first 5 most recent participants of a given event, just could not figure out how to this. I know that after get the query done I just need to lim... | stackexchange/codereview |
I'm trying to setup an ajax-based website that loads a fragment of a webpage when a specific combination of GET variables and HTTP Headers are given.
GET /normal/html/page?ajax=true
X-ajax: true
What I've setup in my controller is:
before_filter do |controller|
if request_by_ajax?
ApplicationController.layout fa... | stackexchange/codereview |
I'm new to learning Python and I've been trying to implement a text to image converter that runs on a web page.
I have succeeded in making the functional code that converts the text into image in Python, using the PIL module (i.e., user enters input text at run time and that gets converted into an image and is stored... | stackexchange/codereview |
I have program which loads an assembly using Asssembly.LoadFrom method. Some time later I attempt to use Type.GetType to create a type from that assembly (using AssemblyQualifiedName), but the method returns null. If I set it to throw exception, it tells
Could not load file or assembly '...'
or one of its dependenci... | stackexchange/codereview |
I am developing a board game. I am wondering how one can use Core Animation or any other technology to design a chess board like (someone else's app):
http://a1.phobos.apple.com/us/r1000/036/Purple/f9/c5/6e/mzl.pakeubcn.320x480-75.jpg
In the picture, the chess boards has a thick border which I am not sure how to model.... | stackexchange/codereview |
I'm experimenting with C++0x threading, partially implemented in gcc 4.5 and I've got a problem, which I can't understand. Let's have a look on this code
#include <future>
#include <iostream>
int main()
{
std::cout << std::async([]() { return 10; }).get() << std::endl;
}
it's quite simple and should work, but... | stackexchange/codereview |
Is there any jquery tooltip plugin that allows to write some values in popup bubble and save that value in DB via AJAX?!
It should also be able to display values from DB
| stackexchange/codereview |
Why I don't get any suggestion when I execute this query agains Solr:
q=%2B%28text%3A%28gasal%29%29&suggestField=contentOriginal&ontologySeed=gasal&spellcheck.build=true&spellcheck.q=gasal&spellcheck=true&spellcheck.collate=true&hl=true&hl.snippets=5&hl.fl=text&hl.fl=text&rows=12&start=0&qt=%2Fsuggestprobabilistic
... | stackexchange/codereview |
Possible Duplicate:
How do I recursively delete a directory and its entire contents (files+sub dirs) in PHP?
How can I delete a directory with other directories and images and php files in it using PHP.
Here is what I'm trying below but with no success.
unlink("./members/9/");
rmdir("./members/9/");
| stackexchange/codereview |
I'm learning MEF and have some problems with understanding it. I have small project with MainWindow and some assemblies which are loaded into catalog.
One of the assemblies need to show a view from other assembly, once at a start and later, if I click the button.
Here is the head part of this view:
[Export("OperatingP... | stackexchange/codereview |
According to MSDN here and discussed here, we can use MSTest.exe to run tests from command line - which is sweet and faster than running within the IDE (especially slow if you are working on a big solution like me).
My question is how can I use MSTest.exe to run all tests in my solution? The command only have the /test... | stackexchange/codereview |
A patricia trie is the well-know, recommended data structure for storing IPv4 allocations/assignments and performing lookup.
Is this true for IPv6 adddresses too? Just a deeper/taller trie to accommodate the extra 96 bits? Is the trie still patricia, or a different radix trie?
| stackexchange/codereview |
This has got me in a pickle, though I'm sure it's probably fairly easy.
I need to get the hash value from the parent window uri, and insert this into the set_value() function. Obviously I can't get a hash with PHP, so it has to be javascript.
parent.location.hash
works but I've no idea how to get it into set_value().
... | stackexchange/codereview |
I've got a list of object files that I want to package in a library.
How do I do this? I thought I could use ADD_LIBRARY
| stackexchange/codereview |
Here was my original code:
#include <stdio.h>
#define IN 1 // inside a word
#define OUT 0 // outside a word
// program to print input one word per line
int main(void)
{
int c, state;
state = OUT;
while ((c = getchar()) != EOF) {
if (c == ' ' || c == '\n' || c == '\t') {
state = OUT;
print... | stackexchange/codereview |
How do I initialize a button as an icon using the JQuery themeroller? I dont want text next to an icon, I just want an icon, and I want to switch between two icons when clicking on it.
| stackexchange/codereview |
Provide sql server 2005 BIDS software to install in my pc. Is there any free download for this software?
| stackexchange/codereview |
I'm trying to install PHPUnit 3.5 on Mac OS X with MAMP. I did install PHPUnit 3.5 via PEAR of MAMP. This is all correctly and phpunit is located /Applications/MAMP/bin/php5.3/lib/php/PEAR/PHPUnit. The executable is located in /Applications/MAMP/bin/php5.3/bin/.
But when I want to execute phpunit it doesn't do anything... | stackexchange/codereview |
I am a little stuck with a strange Problem. I need to control some Hardware via a 3rd Party Active-X typelibrary. My program is written in C#. The Problem is one API / COM call needs a ref to a PVariant - So if I get it correctly a Pointer to a Variant. To make things worse, this is just the first address of an Varaint... | stackexchange/codereview |
I have a database schema like this:
My database schema: https://i.stack.imgur.com/vFKRk.png
To explain the context: One user writes one message. He can send it to one or more users.
I succeeded to get the title of message, the author for one user. However Doctrine, which I use for this project, do it with 2 queries. ... | stackexchange/codereview |
Let's say I have an interface called SocialNetworkService, and three implementations - TwitterService, FacebookService and FriendFeedService.
Now I want, whenever my managed bean (or whatever web component) receives a message, to share it in all social networks. I tried:
@Inject private List<SocialNetworkService> socia... | stackexchange/codereview |
The following groovy script doesn't compile
import java.util.concurrent.Callable
println "b";
Callable<String> callable = new Callable<String>()
{
String call() {
println("C");
return null;
}
};
This is the error:
org.codehaus.groovy.control.MultipleCompilationErrorsEx... | stackexchange/codereview |
How do I get the trace string for a query like this:
var product = _context.Products.Where( p => p.Category == "Windows" )
.SingleOrDefault();
// I can't do this since product is not an ObjectQuery instance
// product.ToTraceString();
| stackexchange/codereview |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<EditText
android:id="@+string/urlText"
android:layout_width="fill_parent" ... | stackexchange/codereview |
I am attempting to override a method declaration within an interface that extends another interface. Both of these interfaces use generics. According to the Java tutorials, this should be possible, but the example does not use generics. When I try to implement it, the compiler shows the following error (I've replaced n... | stackexchange/codereview |
I have a JSP application host in JES 7.0 ,deployed through .war package, but the application can't be initialized due to below exception, could you please help on this ?
there are libs in WEB-INF folder
commons-logging1.1.jar
ejb.jar
jdbc2_0-stdext.jar
jms.jar
jmx.jar
jta.jar
junit.jar
servlet.jar
21/Oct/2010:10:36:2... | stackexchange/codereview |
What can I do to structure my application so the code stays manageable as it gets bigger? I am building an application that will be in a certain state which will change depending on how the user interacts with it, and there will be many different states the application can be in. I've tried looking for tutorials/resour... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.