instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have 2 table variable @Data and @DateTable
@Data conatains the following:
Company Date Type Select
Altec 12-1-2010 d 2
Altec 12-1-2010 a 2
Alect 12-3-2010 d 3
@DateTable contains the following:
Company Date Type Select
Altec 12-1-2010 a... | stackexchange/codereview |
Is there any way to create HTML markup in YUI like:
<div id={DivId}>
<p class={pClass}>
<span class={spanClass}> {Content} </span>
</p>
</div>
| stackexchange/codereview |
I have trouble getting it to copy file from src to destination.
var asMsg_path:String = fileRef.nativePath;
var origFileLoc:File = File.applicationDirectory.resolvePath(asMsg_path);
var newFileLoc:File = File.applicationDirectory.resolvePath("/java/"+asMsg);
launch an AIR app in debug mode. I need to copy a file from ... | stackexchange/codereview |
What does this expression mean in JS?
Value |= this.value
| stackexchange/codereview |
I have just developed a facebook application. Most of it works fine but the multi-friend-selector does not show up on internet explorer.
Although Firefox and Google Chrome working fine it does not appear on IE. Also there is not any error messages.
Here is my code for multi-friend-selector:
<?php
// Prepare... | stackexchange/codereview |
i used netbeans IDE 6.9.1 for practice EJB and JSF, i don't know why, when i add one Library primefaces it can't deploy Primefaces to server ?
I copy jar file of Primefaces to WEB-INF/Lib and re-deploy, Glassfish delete jar file on server , and i copy it to folder build/web/WEB-INF/Lib, once again when server deloy EJB... | stackexchange/codereview |
I have 3 pages. Page 1 is search criteria, page 2 is list, page 3 is details.
If I go to page 2 from page 1 I want to call a web service and load details onto the page.
If I go to page 2 from page 3 (ie using the back button) I don’t want to reload the data as I already have it.
To determine what to do when page 2 is a... | stackexchange/codereview |
I want to call an action of controller file from a .ctp file in cakephp. is it possible? yes, than how? please help. for e.g.
I have an action in controller.
users_controller.php
<?php
class UsersController extends AppController {
function get_category() {
....
}
}
?>
I want to call it from /question... | stackexchange/codereview |
I'm trying to understand the concepts of polymorphism and overloading. I have the following code as a sort of experiment. I cannot figure out, however, why this program does not run (it fails because of mobj.foo(str). mobj is defined using polymorphism, and from what I can gather, should be of type MyDerivedClass. If t... | stackexchange/codereview |
How can I subtract an older date 2010-10-18 07:44:53 from a newer date using PHP?
| stackexchange/codereview |
I have a Silverlight application that is using a navigation frame.
I am trying to write a unit-test for that application using the Silverlight testing framework, however when I execute the test method I get the following error:
InvalidOperationException
No XAML was found at the location '/Pages/LoginPage.xaml'
The uni... | stackexchange/codereview |
We have a simple interface to tag a particular question
(e.g. entry has 1..many tags and each tag entry has a foriegn key pointer back to the entry table)
1. What is the current production version of the jdk? (Tags: jdk6 jdk-6 jdk java)
2. In what version was java.util.spi package introduced? (Tags: jdk-6, jdk7... | stackexchange/codereview |
Does anyone know how I should layout my app for phones with the same screen as the Samsung. My app displays perfectly on small and normal densitys but for some reason the buttons are slightly higher on hdpi screens and I have to tap above them to get them to work... its very annoying.
Im trying to find out what the DPI... | stackexchange/codereview |
I'm running Python 2.6.1 and Django 1.2.1 on Windows XP SP3. I'm using JetBrains PyCharm 1.0 to create and deploy my Django apps.
I'm relatively inexperienced with Python, and I'm starting to learn Django by following along with "Writing Your First Django App" from the web site - the poll application. I'm stuck on pa... | stackexchange/codereview |
Can someone please explain to me why I keep getting this PLS-00905 error for the below simple procedure? Thank you.
create or replace procedure copy_table(
table_name IN varchar2,
database_link IN varchar2,
suffix IN varchar2,
table_owner IN varchar2)
IS
begin
execute immediate 'create table ' ||... | stackexchange/codereview |
I've a text file with following contents:
"abc","def","ghi"
The following works to read the file contents properly:
int main()
{
char name[1024] = {0};
FILE *file = fopen("file.txt", "r");
while(1)
{
if (fscanf(file, " %[\",]s ", name) == EOF)
break;
if (fscanf(file, " %[a-... | stackexchange/codereview |
Snoop allows you to look inside the application and change element properties.
Its a great asset for developers, but can be a security issue in some cases, like when we have users who like to look in places where they shouldn't be looking. Is there a way to do something to block applications like Snoop from "snooping" ... | stackexchange/codereview |
import java.util.Arrays;
import java.util.*;
class Main {
public static void main(String[] args) {
}
}
class List {
private static final int NUMINTS = 10;
public List(int numints) {
int list[];
list = new int[NUMINTS];
}
public void fillWithRandom(int list[]) {
Random r;
r = new Random();
int i;
... | stackexchange/codereview |
I am migrating from Maven's jetty plugin to the Cargo plugin (cargo-maven2-plugin) because Cargo will happily run WARs from dependent Maven modules. Within out web-app we have taken great pains to externalize all configuration through JNDI. These JNDI definitions are web-app specific and therefore are placed in a jet... | stackexchange/codereview |
I have an HTML table column containing integers. What's the most efficient way to get the minimum value using JavaScript or JQuery?
| stackexchange/codereview |
I have criteria query that, when executed, results the following exception thrown:
java.lang.IllegalArgumentException: org.hibernate.QueryException: illegal syntax near collection: id [select generatedAlias0.permissions from temp.package.commons.user.Role as generatedAlias0 where generatedAlias0.id=2L]
at org.hibernate... | stackexchange/codereview |
How do I change the JRE (for example, to go from a from 64bit to 32bit version) that is used to run ant from inside eclipse?
| stackexchange/codereview |
I have a char * with a date string I wish to parse. In this case a very simple format: 2010-10-28T16:23:31.428226 (common ISO format).
I know with Boost I can parse this, but at a horrible cost. I have to create a string-stream, possibly a string, and then copy data back and forth. Is there any way to parse the char * ... | stackexchange/codereview |
I got a text file with LOTS of names.
I want a list of all the strings(lines) that is either
1) Different in CASE (i.e audi vs AuDI)
2) Different by more than 1 character ie (mygoo VS my-goo)
Any ideas ??
| stackexchange/codereview |
Is it possible to apply a filter to the geometry data that is to be rendered using Compute Shader and then use the result as an input buffer in the Vertex Shader? That would save me the trouble (&time) of reading back the data.
Any help is much appreciated.
| stackexchange/codereview |
I understand that I can query system time of my machine like this:
from datetime import datetime
datetime.now()
Is there a way to query the system time of another machine on the windows network?
Eg of \\mynetworkpc.
| stackexchange/codereview |
I'm using Struts2 w/ SiteMesh. In my CSS I have the following line:
#top_nav {
background: url('../images/menu_tile.png') repeat-x 0 0 ;
height: 36px;
padding-left: 8px;
}
When I login to the site my browser gets redirected to /url/menu_tile.png. The only place I can find menu_tile.png in my site is in ... | stackexchange/codereview |
I'm trying to use the timeit module but I don't know how.
I have a main:
from Foo import Foo
if __name__ == '__main__':
...
foo = Foo(arg1, arg2)
t = Timer("foo.runAlgorithm()")
print t.timeit(2)
and my Class Foo has a method named as runAlgorithm()
the error is this:
NameError: global name 'foo' is not de... | stackexchange/codereview |
I have a layout I want to reuse, it looks like:
<LinearLayout .. >
<Button />
</LinearLayout>
It is in a file called "reuseme.xml". Now I have an activity layout, which like the following, how can I incorporate the layout above into it?:
<LinearLayout>
<TextView />
<TextView />
<ReuseMeLayout /> // How do we a... | stackexchange/codereview |
My first two view are Navigatinbased table view controllers. The third view is a tab bar with tabs based on selected row.
My problem is I am using TabBar based app so for first two view I have used presentModelView, but when user select a row I should open Tabbar view with same transaction(animation) as we have in navi... | stackexchange/codereview |
My use case is that I have two images (photos) that are almost identical but do have some differences throughout. They won't be perfectly aligned, but they will be pretty darn close to each other. As a rough estimate, I'd expect to find a half dozen or less differences scattered randomly throughout a pair of 640x480 ... | stackexchange/codereview |
Update3: If you like this posting please don't upvote me but upvote the genius answer by DVK below.
I have the following subroutines:
use warnings;
#Input
my @pairs = (
"fred bill",
"hello bye",
"hello fred",
"foo bar",
"fred foo");
#calling the subroutine
my @ccomp = connected_component(@pairs);... | stackexchange/codereview |
Let's say we've got a web application or web service on an application server supporting JDBC connection pooling.
Should I be grabbing a new Connection on a per-thread or per-query basis?
Thanks!
| stackexchange/codereview |
I am using Hibernate over SQL Server for a web application. I was using the "increment" generator class till now and recently ran into ConstraintViolation exceptions.
So, I changed the generator to "identity" and I am getting the following error -
Cannot insert the value NULL into column 'assessment_administration_id... | stackexchange/codereview |
I want to call a web service from my SQL code, but it cannot be using CLR code.
Can this even be done?
| stackexchange/codereview |
Every time I click on "Discussion" and "Live Support" on my site http://riskeraser.com/ firefox pops up a "Live Bookmark" subscribe box. These links are wordpress pages, not feeds.
Both IE and Chrome work fine, it's just firefox (3.6.12) giving me problems.
| stackexchange/codereview |
I have the following array:
array(3) {
["status"]=>
int(1)
["statusmsg"]=>
string(2) "Ok"
["acct"]=>
array(43) {
[0]=>
array(23) {
["startdate"]=>
string(15) "10 Nov 01 02:46"
["plan"]=>
string(10) "high_Basic"
["suspended"]=>
int(0)
["theme"]=>
string(2) "x3"
["shell"]=>
string... | stackexchange/codereview |
I got a $(document).ready() handler in my aspx page that fires twice. I trapped it to the follwing line of html (this line is part of the itemtemplate of a listview):
<img src='Images.ashx?Url=<%# Eval("Url")%>&Type=3' alt=''></img>
Seems that using the images.ashx is causing my problem, putting a 'normal' url as ... | stackexchange/codereview |
[WebMethod]
public static void SetTheme(string theme)
{
Guid studentIdentifier = SessionData.LoggedInUser.Identifier;
Student student = (Student)ItemFactory.GetItem(studentIdentifier);
student.Theme = theme;
}
And I want to change the cookie that is also named "theme", at the end of this WebMethod. Ho... | stackexchange/codereview |
The netTcpBidning has a reliable property, but the documentation doesn't state what it does.
For instance: Do it send keep-alives over the connection? Do it reconnect if connection is lost?
| stackexchange/codereview |
At the moment I have to migrate a web-application (ASP.NET 2.0 with Masterpages) from IE6 to IE7/IE8. Where can I find hints and guidelines for this topic? The webapplication looks fine in IE6 but completely awful in IE7 and IE8. In IE8 I cannot see the compatibility button.
| stackexchange/codereview |
table 1: id1, name, surname
table 2: id1, id2, value
id1 is a foreign key for table 2
What is the fastest query to find the table 1 records that do not have a record in table 2 with value = c ?
| stackexchange/codereview |
Like several other people, I'm having problems serializing Entity Framework objects, so that I can send the data over AJAX in a JSON format.
I've got the following server-side method, which I'm attempting to call using AJAX through jQuery
[WebMethod]
public static IEnumerable<Message> GetAllMessages(int officerId)
{
... | stackexchange/codereview |
I am new to programming. In my textbook, the problem presented it to write a program that asks a user for the rainfall for three months and calculates the average.
I used the cin.getline() function to read the user input into an array. The text states that there is no worry of the array being overflowed using the cin... | stackexchange/codereview |
I just downloaded the Microsoft.Web.Helpers package from nupack and added linkshare to my site using @Linkshare.GetHtml() syntax. It works extremely well - except the icons for social sites are tiny. Does anyone know of any way to increase these to a larger size? Looking at the API I don't see anything but perhaps ther... | stackexchange/codereview |
I'm having trouble with an upgraded 2008 build. I'm using the Upgrade template.
Everything builds fine, but when I get to GetImpactedTests it crashes.
Anyone experienced something similar?
Can I turn off GetImpactedTests? Can't find a property for it.
TF270015: 'MSBuild.exe' returned an unexpected exit code. Expected '... | stackexchange/codereview |
I am plan to code a blog, and I have never wrote feed before, I heard some feed types before but I have no idea of which is better or should I support all feeds.
| stackexchange/codereview |
from my android client i am sending a json to string object.but the .net client is getting it as empty string. here is my code.
HttpPost request = new HttpPost(SERVICE_URI+"/save");
JSONStringer json = new JSONStringer()
.object()
.key("cno").value("2000")
.key("cname").value("HI")
.key("cmail").value("HI")
.key("cp... | stackexchange/codereview |
I have code for get part of anchor:
function _get_part(queryString, name) {
var match = '&' + name + '=';
var i = queryString.indexOf(match);
if(i < 0) {
match = name + '=';
if(queryString.slice(0, match.length) == match)
i = 0;
}
if(i > -1) {
i += match.length;
return queryString.slic... | stackexchange/codereview |
Is there any public RTP repo where can I download a lot of RTP traces (in addition to the ones in example wireshark traces)? Any suggestions are welcome.
| stackexchange/codereview |
I would like to know how much physical memory is available on the system, excluding any swap. Is there a method to get this information in Ruby?
| stackexchange/codereview |
I am using a bunch of custom static libraries to build a test app. However, I keep getting the following linker error: "_OBJC_CLASS_$_<MainClassOfMiddleLevelLibrary>", referenced from: objc-class-ref-to-MainClassOfMiddleLevelLibrary in lib<HighLevelLibrary>.a(<HighLevelLibrary>.o) However, when I build the (HighLevel... | stackexchange/codereview |
I have two table like below
CREATE TABLE IF NOT EXISTS `countries` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=196 ;
ANd ANother one
CREATE TABLE IF NOT EXISTS `students` (
`id` int(11) NOT NULL AUTO_INCREME... | stackexchange/codereview |
My app is a standard casino game where you bet casino chips. When the user taps a chip that chip gets added to the chip pile being used for the bet. I do this by adding a UIImageView on top of (slightly offset to give the appearance of a stack of chips) the other chips (also uiimageviews).
UIImageView *addChip = [[UIIm... | stackexchange/codereview |
I am working on an application which allows the user to perform input via international keyboard on a Mac. However, the Composition window displayed by the Mac OS for the user to type in the characters is located outside my application's view. I need to move the location of the composition window so that it overlaps th... | stackexchange/codereview |
When running mapreduce on Google App Engine, I occasionally come across a key reference that is invalid. I'd like to make an efficient method that I could run across any model using mapreduce to verify that all the key references for each entity are still valid. What would be the most efficient way to do this? Here is ... | stackexchange/codereview |
I am implementing drag and drop in a cocoa application and I am using the following method from the NSDraggingSource Protocol:
- (void)draggedImage:(NSImage *)draggedImage movedTo:(NSPoint)screenPoint{
The NSPoint is given in screen coordinates and I need it in window or view coordinates. If the method was called with... | stackexchange/codereview |
I can understand what upcasting is but downcasting is a little confusing. My question is why should we downcast? Can you help me with a real world example ? Is downcasting that important?
| stackexchange/codereview |
I'm not sure why this is, basically when I insert a row using the following function:
public bool CreateUser(string username, string password, string email, int age = 0)
{
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString = "Data Source=localhost\\SQLEXPRESS;" +
... | stackexchange/codereview |
I have implemented customised registratio page by extending the membership provider using profile provider.I successfully registered the user .Now i want to validate the fields of registration page.Built-in Registration page has builtin validation messages.
Bu in my coding i am not passing model to the registration act... | stackexchange/codereview |
I have created a windows service which allows communications via namedpipes.
This code worked fine when I wrote some unit tests to spin up the pipes and test the communication, but now I have installed the same code in my windows service I get the following error:
Exception Info: System.IO.IOException
Stack:
at... | stackexchange/codereview |
If I have a treeview being imported into my main program from a dll event. How can I think assign this full Treeview to aTreeview control within my app?
I have the Treeview object from the dll, but I can't figure out how to assign it to the control?
Thanks.
| stackexchange/codereview |
I am trying to figure out if how I can accomplish the following and none of the answers I have found so far seem to fit:
I have a fairly static and large set of resources I need to have indexed and searchable. Solr seems to be a perfect fit for that. In addition I need to have the ability for my users to add resources ... | stackexchange/codereview |
I have to store the one String object at the application level and have to access it in the JSP page. How to do this?Please give me some sample.
| stackexchange/codereview |
is it possible to check if pdf is password protected using ghostscript?
what would be the command?
I know you can strip pdf password using ghostscript,
but all I want to do is just checking if PDF is password protected or security enabled.
| stackexchange/codereview |
i have come into quite a funny hole here. i can't seem to be able to create a 2nd database table to my existing one. i basically want them to be of the same structure and the same of columns, in other words a copy of my existing table. my goal is to copy the values from my first table to the second table. The first tab... | stackexchange/codereview |
We have an idea for an framework or library that will be very helpful for any iOS developer. So we're seriously thinking about switching from app development to framework/library development.
But when we want to charge for the library/framework, we must protect the code somehow. How can we build a framework in such a w... | stackexchange/codereview |
I need to retrieve some information from a Liferay server with Javascript.
I build a service in Liferay so I can generate SOAP requests to the wsdl file and retrieve the data I need. That works well with a SOAP client.
What is the easiest way to generate these SOAP requests in Javascript?
I already tried to use the Jav... | stackexchange/codereview |
When i run my script like so:
C:\>perl script.pl -f file
It works fine. But, if I just do:
C:\>script.pl -f file
then I don't get any errors but getopts doesn't assign anything to $opt_f
This works just fine on perl 5.8 Windows XP, but it doesn't work on perl 5.12 on Windows 7.
There aren't any other versions of perl ... | stackexchange/codereview |
Morning all,
I'm running SQL Server and there are a whole lot of tables in there. I have taken one column from one of these tables using SELECT, and it gives me the list of IDs. I need to use these IDs as the lookup point to get the data for that ID from another table. Is it necessary that I do a CREATE TABE manouvre?... | stackexchange/codereview |
Is there a tool that allows me to profile the memory usage for my Windows Mobile Application.
My app has a section of code that is right up against the limit of the total memory. I have tried to setup my code so that the references to large objects go out of scope before new references are needed.
But I need a way to ... | stackexchange/codereview |
I keep getting errors that the function (renamed) does not exist for the given object. Is there a release or setting or something to make it work?
| stackexchange/codereview |
I don't know if this is possible or not, I have an image host that I've made myself. I need some last tweaks with it.
Whenever an image has been deleted or is an invalid image url, it should replace with an 404 image, so for example if someone adds this:
http://imagehosturl.com/i/34njk5n.jpg
But it's an invalid link,... | stackexchange/codereview |
I'm trying to implement what seems to be the standard UI replacement for comboboxes in Windows Phone 7. This is the TextBox + Navigate to New Page with Listbox approach you can see in the settings page of the Emulator.
I got the following issues while trying to implement this approach, speficically related to the TextB... | stackexchange/codereview |
I am using django-friends and django-messages.
I have modified my custom compose form to pull the following information, myfriends and also display their fullnames instead of just usernames.
One problem I have is that I cannot seem to access myself as a signed in user, to complete the query, I have to hard code it.
cla... | stackexchange/codereview |
Hi
I want to read an XML document but it may have some of the node missing and if so I want to use a defualt value for the missing nodes.
XDocument xmlDoc = XDocument.Load(Path.Combine(Application.StartupPath, "queues.xml"));
var q = from c in xmlDoc.Root.Descendants("Queue")
select new Queue... | stackexchange/codereview |
I need to create an uncompressed avi from a compressed video (.mpg). How do I do that using ffmpeg?
Thanks!
| stackexchange/codereview |
Given a large scale-free graph (a social network graph), what's the best way to sample it such that the sample retains an acceptable abstraction of the properties of the original?
I have a large graph (Munmun's twitter dataset, if you know it). But I need a connected sample of that graph with a reasonably large diamete... | stackexchange/codereview |
I was curious as to how is cache performance measured. Can you do it programmatically or do you need specialized tools for this purpose? Does the programming language being used matter?
| stackexchange/codereview |
HI,
I have a cron that calls a basic API URL. The output is xml so I use php's file_get_contents() to get the data to process.
My question is, Does the output format of the xml make a difference in the transfer time from one server to another? The cron is running every ten minutes and I don't want the crons to overlap ... | stackexchange/codereview |
I want to build an iPhone app that is really a wrapper around a wiki. Specifically, I have some static reference content that can be represented by a hyperlinked set of pages and want to build an app that will provide a nice interface over this content, including search, bookmarking, and annotating. I'm wondering what ... | stackexchange/codereview |
I'm looking for a tool which will split a file containing multiple C# classes, so that each class is in its own file. Does such a tool exist?
| stackexchange/codereview |
I have a time stamp in my form results script, but the time stamp is ahead 1 hour. Can anyone tell how to adjust the time stamp to be accurate? or is this just on my pc?
Here is my current code:
$Body .= date("Y-m-d H:i A e");
| stackexchange/codereview |
I'm working without InterfaceBuilder.
I've an instance of MKAnnotationView with setDraggable on YES,
In My MKMapView my annotation view is displayed and I can drag and drop it.
How can I execute an method when the drop action is performed?
In this method I need the new coordonates of my annotation view.
| stackexchange/codereview |
I'm looking to possibly use IronRuby as the primary language for development of a Silverlight 4 application. I know there's the "IronRuby in the Browser" stuff that uses Gestalt, but I would like to build a standard Silverlight Applicatin using IronRuby and XAML that gets compiled into a XAP file, just like you can in ... | stackexchange/codereview |
After creating settings for each dll, a .dll.config file is generated. If that dll be part of an asp.net application, how to keep this configurations separate for each dll and don't merge them into web.config ?
Example:
I have a GMailSender class library (DLL) which sends email via GMail servers. All you need is an ins... | stackexchange/codereview |
In Visual Studio, nupack adds a power-shell window called the Package Manager Console. I am thinking that this would be a good place to run source control commands (I'm using Mercurial). However, the default working directory is my users folder, so I need to navigate to my code folder every time I load a new project.
I... | stackexchange/codereview |
I'm trying to learn more about the codeigniter framework by porting an existing website to it -- something that's not too complex, or so I thought.
Currently the site is replicated for its users and presents personalized data based on the url, for example, Joe might have his site at:
www.example.com/joe
www.example.com... | stackexchange/codereview |
Im brand new to Android Application development and I am working on an application that will get an RSS feed from a specific url that returns JSON data , what I am wondering is what is the best way to translate this from JSON to populate the list ,
I was thinking of making objects to hold the individual posts and then ... | stackexchange/codereview |
For a description of the data structure see
http://www.flipcode.com/archives/The_Half-Edge_Data_Structure.shtml
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/HalfedgeDS/Chapter_main.html
An half-edge data structure involves cycles.
is it possible to implement it in a functional language like Haskell ?
are m... | stackexchange/codereview |
I am looking to create an editor template for Object.cshtml to change the behavior of the Html.EditorForModel() method. I can't find any example of this using Razor. I have seen this example using MVC2 and WebForm view engine but don't know enough about razor to convert it. Even a simple example would be very helpful.
| stackexchange/codereview |
I got this issue figuring out how to build a regexp for verifying a netbios name. According to the ms standard these characters are illegal
\/:*?"<>|
So, thats what I'm trying to detect. My regex is looking like this
^[\\\/:\*\?"\<\>\|]$
But, that wont work.
Can anyone point me in the right direction? (not regexlib.c... | stackexchange/codereview |
In a PHP file:
<script type="text/javascript">
function click(input){
img = new Image();
img.src = '/click.php?id=' +input;
}
</script>
<a href="http://www.out.com" target="_blank" onclick="click('IDinmysql')" >outlink</a>
click.php updates mysql after I click this link.
It works for Chrome, but not for IE, wh... | stackexchange/codereview |
I have found an odd anomaly with HTML text boxes and JavaScript that I have narrowed down to being a html/javascript peculiarity and I'm hoping someone can educate me on.
I have downloaded and implemented a calendar plug-in that creates a simple layer with a calendar and on selection, passes the selected date back to t... | stackexchange/codereview |
i have a custom module with a form
I have implemented form hooks like this
hook_form()
hook_form_submit($form, &$form_state)
When i have a print statement in _submit it doesnt show on the screen , but which works fine in mozilla firefox . In IE _submit is only not getting called , am using drupal_render to render each... | stackexchange/codereview |
I am using zend_form in my project. In a form i want to disable a text box. Here is the code:
$personal_information = new Zend_Form(array(
'method' => 'post',
'elements' => array(
'first_name' => array('text', array(
'required' => true,
'filters' => array('StringTrim'),
'validators' => array(
... | stackexchange/codereview |
I'm a newbie following the RailsTutorial.org program and have installed/setup rvm, ruby 1.9.2,rails, curl, git and created my first app and pushed it to github (so the SSH key is fine).
The next step is deploying to Heroku, which is killing me:
gem install Heroku
works fine but I get this error after "heroku keys:add"... | stackexchange/codereview |
I have a ListActivity; and for each item in the ListView there is a checkbox.
When you touch a list item, another Activity launches.
When you use the trackpad/trackball to highlight (read: select) an item and click the trackpad, it essentially simulates touching the item. This causes my other Activity to launch.
I wou... | stackexchange/codereview |
Ive got a simple Nunit runner for a rake script i have:
module NUnitRunner
@NUnitPath = "#{RootDir}/tools/nunit/nunit-console.exe";
def self.RunTests(testFile)
system("\"#{@NUnitPath}\" ? \"#{testFile}\"")
end
def self.RunTests(testFile, runArgs)
system("\"#{@NUnitPath}\" ? \"#{testFi... | stackexchange/codereview |
I need help finding the best method for networking in a multiplayer game. I want to connect to a phone and maintain the connection until the game is over, hosting the game on one of the phones. There are other threads, but none of them really explain how to connect or use the networking, only saying to use such-and-s... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.