instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
The following gives some strange "Part" warnings
Clear[f];
f = Function[{x}, x[[1]] == x[[2]]]
However if I execute the second line again, it works without warnings, any idea what's going on?
| stackexchange/codereview |
I am trying to run the following program from the book.
The author claims that the resultant output
" should be "
1000
2000
....
10000
if you run the program on normal processor but on multiprocessor computer it could be
999
1998
...
9998
when using normal increment method (number+=1) but using the intelocked increm... | stackexchange/codereview |
In my Android app, each activity is filled with data from an xml file which is somewhere on the web. The website providing these files has a login mechanism, that works with cookies.
I know how to make a HTTP Request to the login page and receive a cookie. What I don't know is, how I can store it to re-use it in both o... | stackexchange/codereview |
How do programs that edit memory of other processes work, such as Cheat Engine and iHaxGamez? My understanding is that a process reading from (let alone writing to) another process' memory is immediate grounds for a segmentation fault.
| stackexchange/codereview |
I have never used LINQ before, and I am getting an error in an application that does use it. This is a VB.NET (.NET 2.0) project in Visual Studio 2008.
Here is the offending code:
Dim orderedRows = From r In resultRows Order By r.FIELDNAME Select r
And here is the error (names changed to something generic, but otherw... | stackexchange/codereview |
I have text line by line which contains many field name and their value seperated by : , if any line does not have any field value then that field would not exist in that line
for example
First line:
A:30 B: 40 TS:1/1/1990 22:22:22
Second line
A:30 TS:1/1/1990 22:22:22
third line
A:30 B: 40
But it is confirmed that at... | stackexchange/codereview |
When I run a reindexing task(rake ts:reindex), it automatically sets delta value to false.But I definitely want delta indexing working after reindexing. So I want to set the delta value back to 'true'. How can I do that??
| stackexchange/codereview |
I have the following C# classes :
public class Books
{
public List<Book> BookList;
}
public class Book
{
public string Title;
public string Description;
public string Author;
public string Publisher;
}
How can I serialize this class into the following XML?
<Books>
<Book Title="t1" Description="d1"/>
<Book Des... | stackexchange/codereview |
I want to implement the simple following configuration with Simulink,
https://i.stack.imgur.com/39lhT.jpg
For the generator I used
Synchronous Machine SI Fundamental
from the SimPowerSystem Toolbox.
For the load I used
Three-Phase Series RLC Branch
from the SimPowerSystem Toolbox.
If the inductance is zero, the simul... | stackexchange/codereview |
So I have simplified Chinese saved in my database, characters like
故事的背景。
which is 故事的背景。
I have embed the font for simplified Chinese but the chars do not convert. Is there a function is as3 to convert unicode?
Many thanks,
R
| stackexchange/codereview |
I’m trying to stream audio in Mac OS X but I keep getting this error:
gst-launch osxaudiosrc ! audioresample ! audioconvert ! alawenc ! rtppcmapay ! udpsink port=10001 host=192.168.2.10
Setting pipeline to PAUSED …
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: C... | stackexchange/codereview |
In a big corp, they often ask developers to fill in a matrix of what skills they have at what level. It's generally seen as a bit of a pain but is it actually useful, or another way for bureaucrats to try and reduce developers to a bunch of numbers on a spreadsheet?
| stackexchange/codereview |
I want a menu structure with a menu and a submenu, and depending on
what page is currently viewed, I want to highlight items in both menus. Are
there any modules or apps that provide this? If not, what would be the best way
to approach the problem?
| stackexchange/codereview |
Will this code cause a memory leak?
#include <stdexept>
class MyClass
{
public:
MyClass()
{
throw std::runtime_error("Test");
}
};
int main()
{
try
{
MyClass * myClass = new MyClass;
}
catch (const std::exception & exc)
{
// Memory leak?
}
return 0;
}
T... | stackexchange/codereview |
I code for a while now and learned several programming languages. I programmed a lot of little tools and such. I think I master the act of coding itself pretty good so I have e.g. no problems with syntax, I got a pretty good understanding of what is going on under the hood (reasonable assembler knowledge) and so on.
My... | stackexchange/codereview |
I am using cakephp 1.3 and intend to update a <div> in my form (*.ctp) with the information retreived from a mysql table.
Though i have gone through several examples in this site, none of them seem to provide a complete picture. They all seem to assume some knowledge on our part and skip part of the code and give only ... | stackexchange/codereview |
Does anybody have a simple function / store procedure on how to calculate the Manhattan Distance when given two XY coordinate pairs?
| stackexchange/codereview |
In jQuery whenever I encounter something like this:
$("div#MyDiv").....
I generally say to the developer: "Don't bother putting the div in front of #MyDiv, ID selectors are the fastest." I.e.
$("#MyDiv")....
This is because the latter will hook directly into document.getElementById rather than having to scan the DOM ... | stackexchange/codereview |
I've used VS2008 on my development machine for some years now, with windows SDK v7.1.
I've installed VS2010, and it's using the Windows SDK v7.0a, but I need it to use the Windows 7.1 SDK (which I had installed prior to installing VS2010).
When I run the Windows SDK 7.1 configuration tool, to switch the Windows SDK in ... | stackexchange/codereview |
I have some data that I need to analyze. The data is multilined and each block is separated by a newline. So, it is something like this
Property 1: 1234
Property 2: 34546
Property 3: ACBGD
Property 1: 1234
Property 4: 4567
Property 1: just
Property 3: an
Property 5: simple
Property 6: example
I need to filter out th... | stackexchange/codereview |
In my SilverLight app I have a simple entity-model containing one table: [Memo].
The memo table definition/class layout:
pseudo-code-mode
Partial Class Memo
ID [int autonumbering]
Memo [string]
UserID [int]
End Class
For my client I need to see a normal name, and not a [UserID] number in the UI
so we ne... | stackexchange/codereview |
Under the path "\sites\all\themes\fusion\mytheme\", I found that some php file called "taxonomy_term_page.tpl.php", "views-view-fields--product-brand-category--block-2.tpl.php"... will generate some specific content on specific page, how can I configure this php file to specific link/block or whatever?
| stackexchange/codereview |
Im trying to make an app that can put windows 7 to sleep,
I have been looking at WM_Messages, but cant seem to find one that does the jobb.
I can use ether C++ or Delphi to make the app if there it makes any difference.
| stackexchange/codereview |
Hello
I have a binary string length of n.My goal is that all bit in string will be equal to "1".
I can flip every bit of the string that I want but after fliping the bits of the string it does random circular shift.(shift length evenly distributed between 0...n-1)
I have no way to know what is a state of the bit not in... | stackexchange/codereview |
BigInteger bigInteger = ...;
if(bigInteger.longValue() > 0) { //original code
//bigger than 0
}
//should I change to this?
if(bigInteger.compareTo(BigInteger.valueOf(0)) == 1) {
//bigger than 0
}
I need to compare some arbitary BigInteger values. I wonder which approach is correct. Given the above code whi... | stackexchange/codereview |
How to Disable the firefox default image resizing behaviour using jquery.
| stackexchange/codereview |
What are the pros and cons of using the following two JSON serialization methods:
System.Web.Script.Serialization
DataContractJsonSerializer
| stackexchange/codereview |
In the cocoa fundamentals documentary, it mentions about the different compilers. The gcc, LLVM-GCC and Clang. Does anyone specifically know what they do and when to use them?
| stackexchange/codereview |
I'm really scratching my head with this one. I have a mainwindow which opens a dialog. After the dialog closes, the CanExecute method on commands bound in the dialog are still executing. This is causing some serious problems in my application.
Example:
MainWindow has a button with a click handler. This is the click eve... | stackexchange/codereview |
I'm using some load balanced servers and have a requirement wherein all of my admin tasks are relegated to one server. We have determined that the best way to do this is a DNS entry for admin. to point to our primary server.
The problem I am seeing is that all of the custom admin urls are all still magentostore.com/ad... | stackexchange/codereview |
I have this error when running my application on debug mode :
ReferenceError: Error #1056: Cannot create property root on MyClass.
The problem is that MyClass doesn't contain any root property and i don't know how it get it,
I have isRoot property at the Java Class with setRoot setter and isRoot methods,
at the fle... | stackexchange/codereview |
I'm trying to translate the Haskell core library's Arrows into F# (I think it's a good exercise to understanding Arrows and F# better, and I might be able to use them in a project I'm working on.) However, a direct translation isn't possible due to the difference in paradigms. Haskell uses type-classes to express thi... | stackexchange/codereview |
I have an application with an Entity Data Model. I do not completely understand the value of an Entity Data Model. Either way, I know that it connects to my database and interacts with it. I have some C# code from which I want to execute a stored procedure. My problem is, I'm not sure how to do this using the "Entity D... | stackexchange/codereview |
I just installed iReport(Product Version: iReport Professional 3.7.1.1) and try to create exiting crystal report file using iReport to see it makes my life easier.
First bump that I faced was Oracle stored procedure. I found below post and tried to apply it.
1) Set the Query language in the Report Query to plsql
2) U... | stackexchange/codereview |
I am using the following code to change the credentials of a windows service. Before I display the message that credentials were successfully changed, I want to confirm the new credentials have been applied. How can I do that?
using (ManagementObject service = new ManagementObject(new ManagementPath(objPath)))
... | stackexchange/codereview |
I am working on a web start client in java. I need to connect to other servers than from were the client is downloaded from. I thought I need to sign my jars but this (http://download.oracle.com/javase/tutorial/deployment/deploymentInDepth/signing.html) document describes that:
Accessing services on web sites other t... | stackexchange/codereview |
I am using Spring + Hibernate to create and store a record in a MySQL database.
Just before persisting a record I want my system to generate a random-string which will be stored in a field in the entity that is being stored. This random-string of characters will be used later as an access-key to retreive the record an... | stackexchange/codereview |
use strict;
my @array=('f1','f2','f3');
my $dir ='\tmp';
foreach (@array) {
my $FH = $_;
open ("$FH", ">$dir/${FH}.txt") or die $!;
}
foreach (@array) {
my $FH = $_;
close($FH);
}
i got "Can't use string ("f1") as a symbol ref while "strict refs" in use at bbb.pl line 6." error . What is the isuse ?
| stackexchange/codereview |
I am using a dojox.grid.DataGrid to display data and allow the user to select one or more rows to highlight items to do other actions to.
My problem is that the grid uses indexes to remember the selected rows. If I have turned clientSort on, sorting the rows makes the rows change order but the selection changes to the... | stackexchange/codereview |
I'm trying to understand how boost interprocess library works.
I have an Equipment class which holds integer values in a vector container.
In parent parent process;
I constructed Equipment object in MySegmentObject segment, and in the constructor of this object I created the vector in MySegmentVector segment.
Using c... | stackexchange/codereview |
I am trying to find a tool to migrate SVN to TFS 2010. The tools I have found, or have been suggested on this site are fairly expensive (like timely migration) or do not seem to work with 2010 . Does anyone know of a cheaper option or some manual scripting process to accomplish this ?
| stackexchange/codereview |
I have a problem to connect my MySQL Database via Hibernate/ JPA2 on a Embedded Glassfish.
My Environment:
Maven 2
Embedded Glassfish (integrated via Maven Plugin)
Eclipse + M2Plugin
Hibernate 3.5.6
MySQL (@localhost) (runs and can be connected without container via Hibernate Sessionfactory)
Here is my Exception Sta... | stackexchange/codereview |
I wanted to know if in SQL Server there is an equivalent to the Oracle INSTR function?
I know that there is CHARINDEX and PATINDEX, but with the Oracle version I can also specify the Nth appearance of the character(s) I am looking for.
Oracle INSTR:
instr( string1, string2 [, start_position [, **nth_appearance** ] ] ... | stackexchange/codereview |
I am writing a number converter between the (b h d) numbering systems , the program accepts
16 bits binary number , or 4 digits hex. or 5 decimal.
the reading procedure i wrote seems to have a problem when the decimal value is above 65535 (FFFFh) since im dealing with 16 bit registers and it cant contain larger values... | stackexchange/codereview |
I have a list of entities and I need to bind it to a datagrid. One of the properties in the list is a collection and I need to bind that to a combo box within a datagrid. I am new to Windows Forms.
var list = (from p in db.persons
select new person{p.firstname,p.lastname,p.phonenumbers}).tolist()
I need... | stackexchange/codereview |
I have a system with two HID keyboards (actually, one's a barcode scanner.)
I registered for raw input with RIDEV_NOLEGACY to block the system from creating WM_KEY* messages for the barcode scanner, which tediously also blocks the messages from the other keyboard.
My goal is to keep the WM_* messages for any keybaord d... | stackexchange/codereview |
I'd like to take a UITextView and allow the user to enter text into it and then trigger a copy of the contents onto a quartz bitmap context. Does anyone know how I can perform this copy action? Should I override the drawRect method and call [super drawRect] and then take the resulting context and copy it? If so, doe... | stackexchange/codereview |
I know that with TCP each connection creates a new socket. Does UDP also create a new socket for each connection?
| stackexchange/codereview |
I run several XP computers, and just reinstalled one of them. Now, which .NET versions would I need to install on this computer?
On my developing computer I have these versions of the framework:
Compact 2.0 SP2
Compact 3.5
2.0 SP2
3.0 SP2
3.5 SP1
Do I need to install all these, or does some include the previous ones... | stackexchange/codereview |
Uncompressed Adobe's Flash XFL format still keeps a lot of content compressed. Does anybody know specification of these binary *.dat files?
| stackexchange/codereview |
I'm using https://drew.tenderapp.com/faqs/autosuggest-jquery-plugin/options-api to render an autocomplete field:
<h1>Quick Tags</h1>
<div class="fieldset">
{{ vocabularies.vocabulary_1.errors }}
<p>{{ vocabularies.vocabulary_1 }}</p>
<script type="text/javascript">
... | stackexchange/codereview |
I am setting a cookie in js and then checking in php whether it exists or not to determine whether the user has js enabled.
The non-js and js users are then served a different version of certain pages. This is working fine in ff, but not in IE? in IE we are seeing the version of the page as if no js is enabled, but it ... | stackexchange/codereview |
UPDATE : I also found ncache which seems useful and also came to know that stackoverflow uses redis for caching. I also have come across memcached and seems one of the better alternatives.
I have found this but I needed to know what are the ways in which I can cache some of my LINQ queries and use them efficiently. I f... | stackexchange/codereview |
I am currently working on an OpenGL procedural planet generator. I hope to use it for a space RPG, that will not allow players to go down to the surface of a planet so I have ignored anything ROAM related. At the momement I am drawing a cube with VBOs and mapping onto a sphere as shown here.
I am familiar with most f... | stackexchange/codereview |
I've tried numerous ways to get a post-update hook script working through TortoiseSVN, without much success. Apparently a lot of people out there have this issue, but I can't find a solution anywhere.
Platform: Windows XP
Tortoise Version Information:
TortoiseSVN 1.6.7, Build 18415 - 32 Bit , 2010/01/22 17:55:06
Subve... | stackexchange/codereview |
I want to connect Blender (v2.55) to a webpage through sockets.
For the web part, I can use Node.js & socket.io. I've already used a little node.js/socket.io, it's not a problem I think.
Now for Blender, it runs on Python 3.1, so I've already sockets and I can add libraries if needed. I'm new to Python sockets, can I... | stackexchange/codereview |
It's there a way to compile a c/c++ source file to output a .exe file that can be run on other processors on different computers ?
I am asking this for windows platform.
I know it can be done with java or c# , but it uses virtual machine.
PS: For those who said that it can be done just with virtual machines or the sou... | stackexchange/codereview |
I'm trying to setup Hudson on a Windows server.
When I attempt to run Hudson with the command java -jar hudson.war, then I receive an error that the address is already in use for the HTTP listener.
I've confirmed that port 8080 (the default Hudson HTTP port) is not being used. I have also tried starting Hudson on anot... | stackexchange/codereview |
My code-behind looks like this
class Image
{
public string tnImg { get; set; }
public string Name { get; set; }
public string city { get; set; }
public string refPlace { get; set; }
public string refInfo { get; set; }
public string refInfoDynamic { get; set; }
... | stackexchange/codereview |
basically i want to perform diagonal averaging in R. Below is some code adapted from the simsalabim package to do the diagonal averaging. Only this is slow.
Any suggestions for vectorizing this instead of using sapply?
reconSSA <- function(S,v,group=1){
### S : matrix
### v : vector
N <- length(v)
L <- nrow(S... | stackexchange/codereview |
I have few queries regarding iPhone app submission.
1) I have an account and want to make my application available for US.(I have seen the options which allows to select the countries in submission process document). So is it possible to show my application to US users with my india account.
2) I want to show the diffe... | stackexchange/codereview |
So I have two views. One views loads when I start the app. Then when I press a button on that view it loads a another view.
- (IBAction)triggerGame
{
leveldata = [[NSMutableDictionary alloc] init];
[leveldata setValue:@"hide" forKey:@"shootarrow"];
[leveldata writeToFile:[self levelFilePath] atomically:YES];
[leve... | stackexchange/codereview |
How can I install and work with mono on windows xp sp3?
Now I am using mono with the Ubuntu OS on my system.
| stackexchange/codereview |
I'm using matplotlib to plot some data as 2D curves in a 3D axes. I use the ax = axes3d.Axes3D() to define my axes and ax.plot(x, y, zs='z') to plot my 2D curves in the 3D space.
Now I want to add something that looks like what is on this page http://matplotlib.sourceforge.net/examples/mplot3d/polys3d_demo.html, but I ... | stackexchange/codereview |
I have been testing RED5's webcam capture feature. (version 0.9.1)
Videos captured via 'Simple Recorder' app have no sound and do not play over 'OFLA Demo' app. However videos captured via 'Publisher' demo app have sound and play well on 'OFLA Demo' app. When I download the videos with no sound and test with a desktop ... | stackexchange/codereview |
I am playing around with the Netflix odata service to get a better understanding of how to consume odata data.
In VS 2010 I added a service reference to the NetFlix odata service. I then wrote this code which returns only some of the data.
var cat = new NetflixCatalog(new Uri("http://odata.netflix.com/v1/Cat... | stackexchange/codereview |
I'm new to JSF. I am using JSF 2.0.
I'd like to be able to use scripts that use ajax in a classical way, not going through JSF's f:ajax tag.
However, I know that it's easy to mess up with the application's state if you go around JSF features too much. Has anyone done this before? Any ideas on how it should be done? Su... | stackexchange/codereview |
we are currently performing some benchmarks for an open source academic project, Logbus-ng. It basically implements Syslog protocol over UDP (RFC 5426) and TLS (RFC 5425).
We know that the advantage of TLS is reliability (ie. we won't lose messages) but with the drawback of performance.
We have a benchmarking client an... | stackexchange/codereview |
If I put viewport3D inside Canvas my viewport3D is not visible anymore. If I remove Canvas then Viewport3D is visible again. What I'm doing wrong?
<Canvas Width="900" Height="524">
<Viewport3D Name="mainViewport" ClipToBounds="True" HitTestVisible="False">
<Viewport3D.Came... | stackexchange/codereview |
I'd like to monitor a directory for new files from a C app. However, I'm not interested in modified files, only in new files. Currently I'm using readdir/stat for that purpose:
while ( (ent = readdir(dir)) != NULL ) {
strcpy(path, mon_dir);
strcat(path, "/");
strcat(path, ent->d_name);
if ( stat(path, &statbuf)... | stackexchange/codereview |
I am writing an application that uses SSL.
Hence, I have a dummy keystore and a dummy truststore I want to supply to my customer.
Is there any default folder to put them inside my distribution?
e.g. docs, lib, bin...etc. Where is usually the keystore put on the server and where is usually truststore put on the client?
... | stackexchange/codereview |
I have my web application running in iis 7 and C# 4.0, I am getting the user identity as null, I need to get the windows username and password. What I need to do ?
| stackexchange/codereview |
I just started programming so pointers and arrays confuse me.
This program just assigns random numbers from 0 - 9 into array and prints them out
(#include <stdio.h> #include <stdlib.h> #include <time.h>)
int function(int *num[]){
int i;
for(i=0; i<10; i++){
srand((unsigned)... | stackexchange/codereview |
I'm going to be using
setBackgroundResource(R.drawable.background)
in my onCreate() method.
When I create the XML file with the and its colors, what type of resource am I creating? "values", "layout"?
Thanks!
| stackexchange/codereview |
I read this article that explained how to make enumerations in Ruby, and also showed how to them enumerable like:
class Blah
def Blah.add_item(key, value)
@hash ||= {}
@hash[key] = value
end
def Blah.const_missing(key)
@hash[key]
end
def Blah.each
@hash.each {|key, value| yield(key, value)}
end
en... | stackexchange/codereview |
How do you sort dates with time in jQGrid? I looked at the documentation which states that I should use the "AmPm" function. However, I still can't get it to sort when taking into account the AM/PM, specifically in the "Login Date" field.
<!DOCTYPE HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; chars... | stackexchange/codereview |
everyone,in my app i try to write a message to sms inbox like this way ContentValues cv = new ContentValues();
cv.put("thread_id", "111");
cv.put("address", "100000");
cv.put("protocol", "0");
cv.put("body", serverData);
cv.put("read", "0");
... | stackexchange/codereview |
How do you do a switch case syntax using Dwoo template engine.
| stackexchange/codereview |
To put this work in context... I'm trying to filter a database of objects and build descriptions which can be verbalized for a speech UI. To minimise the descriptions I want to find the shortest way to describe an object, based on the idea of Grices Maxims.
It's possible in code by iterating through the records, and ru... | stackexchange/codereview |
Is there any way to configure an nServiceBus endpoint to receive messages from more than one queue?
I am looking into implementing an nServiceBus Saga which takes messages from multiple queues (one per message type). The point of which is to be able to monitor traffic for each message type.
Thanks
| stackexchange/codereview |
When I generate Doxygen documentation in PDF format, I get plenty of different files with a single diagram in each.
Is it possible to obtain a single PDF document, organized as a book, roughly as the HTML version?
Is it possible to get it automatically, i.e. without dealing manually with the latex files?
Thank's!
| stackexchange/codereview |
I have a log folder that contains subfolders with log files of a build server.
Each time a build is triggered, a new subfolder is created with log files.
I want to find the path to the last created subfolder within the main build folder.
Can anyone point me in the right direction?
| stackexchange/codereview |
Is there any example code that shows guava collection features (e.g. Futures, ValueFuture and ListenableFutureTask) ?
| stackexchange/codereview |
I have some source that can compile with MINGW gcc or with VC++ (but isn't in a VS project, it has a makefile that is read by nmake). I compile with nmake and it produces a static lib and I would like to compile the code as a DLL to use with my managed assemblies.
Is it trivial to alter the makefile to output a DLL ins... | stackexchange/codereview |
I am trying to implement a Solr based search for a message thread. Each message can have many replies(The replies can be ONLY one level deep.). I want to retrieve the parent messages with content matching the search key OR replies matching the search key.
E.g:
Hello Jack
Hello Janice
How are you?
..
I am Janice
... | stackexchange/codereview |
I have an access database that uses a continuous subform on a form. The continuous subform contains a date field followed by three check boxes that link to the single date field. The user must be able to enter as many dates as they need to and check the appropriate boxes which will pull in that date into the associated... | stackexchange/codereview |
Is there an issue with replacing the contents of a <span in jQuery.
I have this;
<span class='DimensionList'>
some html
</span>
and
$('.DimensionList').html("<b>This is the new html</b>");
What I'm finding is that in FF the contents of the span are being added to. So the new HTML sits above the old.
In IE6, yes I... | stackexchange/codereview |
i have some jquery code here that works fine in firefox but when i test in ie6, i dont see it working at all (the div is not being shown).
here is my html
<b>Calendar:</b> <select name="CalendarId" id="calendar_list">
<option value="1">Vacation</option><option value="2">Internal Travel</option>
<option value="13">E... | stackexchange/codereview |
I want a simple filter form, and a table below it. When the user changes the option on the select form, the table automaticaly changes. I think thats done with ahah.
I want this (some things can change, like the fieldset containing the table, and other stuff):
But working.. of course..
I'm currently showing that page... | stackexchange/codereview |
What I need to do is like when user click on "English" from the combobox, the text of the button1 will be in English, likewise if the user click on "Japanese" from the combobox, the text of the button1 will be in Japanese.
So i have created a XML file, and imported it to the WPF.
And I have binded the Content of the bu... | stackexchange/codereview |
Take Purchase Order as an example. There is Purchase Order header and one or more rows of Purchase Order details:
+--- PO detail 1
|
PO header --+--- PO detail 2
|
...
|
+--- PO detail n
Assuem the POs are stored in a Core Data database. What's t... | stackexchange/codereview |
I am using JSF 2 and richfaces 3.3.3 for an application hosted on tomcat 6.0.20.
The application crashes as soon as a request is made via the browser (Mozilla and IE).
My web.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.s... | stackexchange/codereview |
The limited stack size of budget PICs is a problem area and I have adjusted my code to accommodate this reality. I currently adopt a rough paradigm of grouping closely related functions into a module and declaring all variables global static in the module (to reduce the amount of variables stored in the auto psect, an... | stackexchange/codereview |
I wish to return a string from a method object that is called by another method in another class. My problem is: when I attempt to assign the returned value to a String in the other class, it cannot find the method object within the class object.
Guessing Game = new Guessing();
This makes the object using the class G... | stackexchange/codereview |
I'm working on a Rails3 app that has a Pages controller, and two pages: pages#main and pages#status. The main page has a link which, when clicked, goes to status. The user already has profile information, and if part of that profile information is not present, I want status to redirect to main. I'm getting a mysteri... | stackexchange/codereview |
I'm making a visualization with processing and opengl. I saw an example on this site: http://blog.blprnt.com/blog/blprnt/just-landed-processing-twitter-metacarta-hidden-data.
Now, I want to use toxi for my visualization. I understand that it's a library. But I don't know how to "set it up." How can I download it (even ... | stackexchange/codereview |
i have a crystal report and there is a field in details section which currently showing for each row. what's the way to set this field to show only once on the very first row?
| stackexchange/codereview |
Imagine that I have a long file of Rebol-formatted data, with a million lines, that look something like
REBOL []
[
[employee name: {Tony Romero} salary: $10,203.04]
[employee name: {Marcus "Marco" Marcami} salary: default]
[employee name: {Serena Derella} salary: ($10,000 + $203.04)]
...
[employee nam... | stackexchange/codereview |
Sorry if this has been answered already, but I could not find an appropriate answer on here.
I've started writing my javascript code in a modular style lately and I have a question regarding how module variable scope works.
The following code gives me a conflicting answer.
I have a module named Base that declares two s... | stackexchange/codereview |
I'm trying to create an AppDomain and attach to its UnhandledException event from F#, and I'm not having much luck. In my event handler I need a reference to the domain that fired the event, as well as the event arguments.
To reproduce this issue, the following code must be run in a compiled application. Running it in ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.