instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
We have inherited an ASP.Net site with two search forms on it, one with validation, one without. Each form has its own button -and its own events.
When the page is left open (idle) for about 20 minutes and then submitted using the form without any validation, the page posts back but the events aren't fired. I know that... | stackexchange/codereview |
I have a textbox AND 3 checkboxes; checkbox1, checkbox2, checkbox3
In textbox we have 1,2,3
If I type in textbox1 = 1,2 then
checkbox1 and checkbox2 will be checked and checkbox3 will remain unchecked.....
How to do this in vb.net
| stackexchange/codereview |
My Joomla article uses Jumi to include a php file.
The php file uses $document->addStyleDeclaration It all seems to work, except that the added style is commented out by the method! The new style is surrounded by HTML comments.
Joomla 1.5.21. Suggestions appreciated!
php file:
<?php
defined('_JEXEC') or die( "Direct ... | stackexchange/codereview |
This is not a question about writing a web-app Vs a desktop app. It's a question about allowing a bespoke application to run in a browser though use of a custom plugin, effectively using the browser just as your render-window.
QuakeLive does this - it's a C++ application with some extra code to run through a browser. U... | stackexchange/codereview |
I'm trying to create a style for my textbox, however when I add this template to the style the vertical scrollbars disappear.
<Style x:Key="MyTextBoxStyle" BasedOn="{x:Null}" TargetType="{x:Type TextBox}">
<Setter Property="Foreground" Value="{DynamicResource BlueForegroundBrush}"/>
<Setter Property="Bo... | stackexchange/codereview |
I feel silly asking such a trivial question but, oh well, it's been bugging me for a while.
I have a form that's properly styled. When the user submits, if there is errors, the form will render again, but this time, the fields that have errors are but in between a <div class="field_with_errors">
Know the problem is thi... | stackexchange/codereview |
I'm currently studying the Inheritance chapter of a C# book. I'm unable to understand the following line.
Interfaces enable you to separate the definition of objects from their implementation so that the objects can evolve without the risk
of introducing incompatibility in existing applications.
Could anyone help ... | stackexchange/codereview |
Over the years I have had a few of the websites I have developed submitted for penetration testing by clients. Most of the time the issues that are highlighted when the results return relate to the default behaviour of ASP .Net such as possible cross site scripting attacks etc.
Are there any good articles on which vuln... | stackexchange/codereview |
I have been trying to install a drupal site inside another drupal site subdirectory. but I get page not found errors for the inner site.
Example I have www.drupalsite.com point to folder-------->public/
and I have another drupal installation www.drupalsite.com/drupaltracker point to folder------>public/tracker/
However... | stackexchange/codereview |
How can I write the following jQuery-not…
$(".hover").not(".selected");
… in pure JavaScript?
| stackexchange/codereview |
Isn't there a trick that may help me show a component inside a grid by using X,Y coordinates ?
Thanks in advance
Miloud Bel.
| stackexchange/codereview |
I use GAE and struts. When I input htpp://localhost:8888, it will autoload index.jsp.
What I need is for it to process an action immediately.
For example, when I input htpp://localhost:8888, it will autoload action "index.a" instead of autoloading the index.jsp page.
I tried using struts without GAE and it worked corre... | stackexchange/codereview |
I'm writing an OpenGL program that draws into an Auxiliary Buffer, then the content of the Auxiliary Buffer is accumulated to the Accumulation Buffer before being GL_RETURN-ed to the Back buffer (essentially to be composited to the screen). In short, I'm doing sort of a motion blur. However the strange thing is, when I... | stackexchange/codereview |
I want to achieve the following in a Crystal report, please let me know if they are possible:
Hide/Unhide a certain field based on an input parameter
Change the content of a certain field in the page header and in the details sections based on an input parameter.
I am using Visual Studio 2008 and C# 3.5
Thanks in ad... | stackexchange/codereview |
I have to run TCL code written for version 8.5 with the interpreter of version 8.3.
I am having problems with eq. Seems 8.3 doesn't recognize it. A simple code:
% expr { "a" eq "b" }
returns an error message like:
syntax error in expression "a eq b"
I am trying to fix this by adding an interp alias before everything ... | stackexchange/codereview |
How can you pass all parameters to a controller action?
# instead of:
<%= link_to mylist_url(id: params[:id], se: "true", st: params[:st], re: params[:re], li: params[:li]) do %> ... <% end %>
# something like:
<% link_to mylist_url(params: :all, se: "true") do %> ... <% end %>
| stackexchange/codereview |
I need some help to build routes for my product catalog. I whant to have urls something like this:
/products/electronics/14
/products/electronics/computers
/products/electronics/computers/laptops/4
Last numbers in urls shows current listing page number.
| stackexchange/codereview |
I am presenting data retrieved from the database using Gridview. The data is of the following form: clientCode order#
So any given client can have several orders. Is there a simple way to make sure that ClientCode is not repeated on every GridView row? I know I can programmatically compare each row to see if the client... | stackexchange/codereview |
I'm working on a C++ project using Xcode with another developer. Every time he opens the xcodeproj, his version of Xcode adds developmentRegion = English; to the project.pbxproj file inside the xcodeproj. Every time I open the xcodeproj, my version of Xcode removes the developmentRegion = English; line from the project... | stackexchange/codereview |
I can't seem to understand is_paged() but I have used is_page() before. If possible please provide an sample page. :-)
| stackexchange/codereview |
When I run "ported" Mercurial on GAE (from http://bitbucket.org/durin42/mercurial-appengine/), I meet:
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
handler.get(*groups)
File "/base/data/home/apps/yt-source/1.3... | stackexchange/codereview |
I simply thought I could use jython for developing Android App.
But it was not easier than I thought.
I created android sample project and added jython.jar into the project.
After soon I encountered with "Conversion to Dalvik format failed" error msg.
So I googled almost every pages about that msg.
However I could not ... | stackexchange/codereview |
On a website, http://imgthis.com/blog/?p=34, I have two JavaScripts that load inside an iframe with an image gallery, one is lytebox which is a Light Box 2 slimmed down clone for image gallery pop ups and the other is a show only one div in a stack of divs. The lytebox script works until the show only one is invoked, f... | stackexchange/codereview |
When the user POSTS to my server, should I store the picture in the body of the queue, and then have the "worker" servers pull it out and resize/upload to S3?
The reason I'm using a queue is because resizing/uploading 20 images to S3 takes a long time.
| stackexchange/codereview |
i am using below code to show google map in asp.net MVC2:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
$(function () {
... | stackexchange/codereview |
as said on the dm-rails gem site (https://github.com/datamapper/dm-rails) i m doing
*rails new project_name -m http ://datamapper.org/templates/rails.rb -d mysql*
the problem is the "-d mysql".
everything works in sqlite.
but with mysql i get
[BUG] cross-thread violation on rb_gc()
(null)
Abort trap
I m on Mac snow le... | stackexchange/codereview |
In my application user upload movies and the size of movies can be around 100MB or more. For this reason im doubtful that if any user have a slow connection it could take hours and if it takes so much time then my application session will be expired. What should i do to cater this issue? My application is on ASP.Net MV... | stackexchange/codereview |
I have ~200K named properties and ~25K files. I extract whether the properties hold or not for each file using Python as a set of properties that hold, one set for each file.
To do this extraction I might run hundreds of individual python extraction scripts on a compute farm, in parallel. Each leaving behind some repre... | stackexchange/codereview |
How can I find the duration of a mp4 file to hours and minutes. I have tried loading the URL in a MPMoviePlayerViewController and use the duration property which I then convert the nstimeinterval to a string but it always results in 0. Is there any method to do this?
Thanks,
Kevin
| stackexchange/codereview |
I am attempting to generate all possible combinations of a set of objects with specific properties. The issue is that these objects can only be combined in certain ways and that when you "validate" the object combination as a whole it must meet certain conditions.
The object data is stored in a SQL Server database (tha... | stackexchange/codereview |
For example, in situations like below, I do not want to change the value of $infilename anywhere in the program after initialization.
my $infilename = "input_56_12.txt";
open my $fpin, '<', $infilename
or die $!;
...
print "$infilename has $result matches\n";
close $fpin;
What is the correct way to make sure tha... | stackexchange/codereview |
I need to show a "grid" or "table" of data in a pop-up dialog box on Android.
Basically, a column listed down the left with rows of names, for example, then multiple columns to the right of the names with values in columns.
Is this possible?
| stackexchange/codereview |
I'm trying to read a text file with multiple lines and then display it in a textbox. The problem is that my program only reads one line. Can someone point out the mistake to me?
Imports System.IO
Imports Microsoft.VisualBasic.FileIO
Public Class Form1
Private BagelStreamReader As StreamReader
Private PhoneStr... | stackexchange/codereview |
Why this code works fine:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableVie... | stackexchange/codereview |
Is there a .NET event that fires at a specific time (eg. at 19:00) as opposed to timer which fires when the countdown finishes? It can be used as a scheduler to call certain method.
| stackexchange/codereview |
I have a file test.php in that i want to add a PHP script in such a way that whenever test.php is being exceuted/opened it should copy itself to a directory /copies/test.php
How do i do that ? and it would be better if i could rename it.
| stackexchange/codereview |
I'm experiencing "null reference exception" when I'm attempting to return a value from a structure.
here is the code:
AssetItem item = new AssetItem();
item = initModified();
bool found = false;
int index = getIndex(barcode);
string modifiedFile = filepath + "Modified\\" + dir + "\\" ... | stackexchange/codereview |
I'm woking on the tool that allows user to erase areas on canvas element. I used globalCompositeOperation="copy" and rgba(0,0,0,0).
It works well in modern browsers but not in IE. I also use excanvas.js but erasing doesn't work at all.
Are there any way to implement erasing in IE?
| stackexchange/codereview |
Why my wampserver taking too long time to response when I'm connected to the internet?
But when I disconnected the internet, It's work fine.
| stackexchange/codereview |
in this link :
http://visamastercard.ir/uploads/VisaMaster/print.php?id=162
i want to print a visa request form in A4 size, when i want to print it via different resolutions it will corrupted! i want the Terms and Conditions section and sections before it in this print to be on page 1 and 3 next sections on page 2.not... | stackexchange/codereview |
How to avoid redundant second query to database with using MVVM pattern on view model:
public class DataFormViewModel : INotifyPropertyChanged
{
private int companyId
public int CompanyId
{
get { return companyId; }
set
{
companyId = value;
RaisePropentyCha... | stackexchange/codereview |
I'm fairly new to Python and Django, and I'm working on a webapp now that will be run on multiple servers. Each server has it's own little configuration details (commands, file paths, etc.) that I would like to just be able to store in a settings file, and then have a different copy of the file on each system.
I know ... | stackexchange/codereview |
In our company we write a simple serializer/deserializer in Java. Does anybody know what is the best way to serialize a null value?
| stackexchange/codereview |
I have created a simple JSP file that I want to deploy in Jetty 7.2. Jetty is running and I can see the default web page at http://localhost:8080/. I started Jetty with the java -jar start.jar command.
I saved my simple JSP file jsp_test.jsp at <my_jetty_directory>/webapps/jsp_test.jsp and then I tried to access that f... | stackexchange/codereview |
Is there a way to make all lines in a multi-line edittext underlined?
I want all lines to show the line, even if there's no text on it.
| stackexchange/codereview |
I have been making regulate backups of my forums database each and every day. Today I had to revert the forums to an earlier backup.
Command I use to backup my databases:
mysqldump --opt -hMY_HOST -uUSERNAME -pPASSWORD DATABASE_NAME 2> error.txt | gzip > DATABASE_NAME_2010_11_06_14_38.gz 2> error.txt
I used phpMyAdmi... | stackexchange/codereview |
In Python it is pretty easy to display an iterable as comma separated list:
>>> iterable = ["a", "b", "c"]
>>> ", ".join(iterable)
'a, b, c'
Is there a Java way that comes close to this conciseness? (Notice that there is no "," at the end.)
| stackexchange/codereview |
i'm trying to make a program that when i press a hotkey it concatenate a certain text to a selected text from a window. for example: i have the text "capture a text selected with the mouse", i select the word "text" with the mouse and now when i press a certain hotkey it copies me to clipboard the following : xxx+text... | stackexchange/codereview |
I have a multithreaded C# application, where the core logic sits in a Timer.Elapsed event handler. The event handler contains 2 for loops which executes a maximum of n * n = 5 * 5 = 25 times.
The application performs well on my PC. I ran VS 2010 Profiler against the application and CPU usage averages at 20%.
The compa... | stackexchange/codereview |
Please help me .I have developed a site in asp.net mvc 2.0 and uploaded to the go daddy server.upto now it is working fine .Beu i have uploaded a simple view by downloading from FTP and edit some thing.after if i will open the website in the internet ,my site is not at all running.It shows the following error,
Server E... | stackexchange/codereview |
I developed an office tool and it works perfectly in my computer. But when i port the code to another computer the code doesn't work. It shows different error message different time. I created an installer and the office.dll, excel.dll and powerpoint.dll was exported with my exe but it doesn't work. My computer has off... | stackexchange/codereview |
I am trying to port a codebase which uses the "compiler" module from 2.x over to 3.1 ; I get an ImportError at
import compiler
as the module does not exist in Python3.x ; Has the same functionality been integrated into another module within the standard library?
Or has it been completely removed?
[EDIT]
I require an... | stackexchange/codereview |
Does anybody know if there is a port of the SproutCore Ace theme to jQuery UI?
link:
http://www.sproutcore.com/
| stackexchange/codereview |
I would to know, Is there any method in StringBuilder class in C#, which can remove string characters without changing other character of same value within different index?
Like for a string like "5002", what if want to remove character in first index to "3"?
I'm using StringBuilder's remove method for the specified st... | stackexchange/codereview |
Want to know algorithm (if exists) that will match the results in both Objective-C and Java.
Objective:
Ojective-C will send the encrypted data and need to validate with the details that are encrypted in Java.
So need the common algorithm where encryption output value is same.
i.e. EncryptionInObjectiveC(NSString *) = ... | stackexchange/codereview |
Hi there
I've made this animation using the Raphael framework. I want the star (logoStar) to spin indefinitely but it only runs once. Can anyone help? Thanks
window.onload = function () {
buildLogo();
}
var buildLogo = function () {
var logo = Raphael("title",800,236);
var logoStar = logo.path("M12.245 131.05... | stackexchange/codereview |
Why, if I write
int main()
{
//...
}
do I not need to write return 0; at the end of the main function? Does the compiler do it for me?
I use GCC / C99.
| stackexchange/codereview |
I'm having some problem with screen resolutions in Android.
I found the problem when I first ran my application on a VGA AVD and the application's images did not occupy the % of the screen I was expecting them to. I tried to run it on HVGA and QVGA and found out that they all occupied the exact same % of the screen, a... | stackexchange/codereview |
This is an ASP.NET MVC website.
Following domain driven design, we have a service layer. Our controllers ask application service classes to perform various tasks and then route the results to views.
Business logic is carried out by the service classes.
So for example, I may have an AccountTasks class which is respon... | stackexchange/codereview |
When I use editurl property in my jqgrid, the controller action gets called after I hit submit button on adding a new row. But how do I get all the grid rows there? Which parameter should I read from my controller action method in order to get the grid data?
Grid code:
$("#list1").jqGrid({
url: '/CMS/GetCus... | stackexchange/codereview |
If I include some automatic properties like this:
@property (nonatomic, readonly) NSInteger test1;
@property (nonatomic, readonly) NSInteger test2;
@property (nonatomic, readonly) NSInteger test3;
@property (nonatomic, readonly) NSInteger test4;
But I DON'T declare any iVars for... | stackexchange/codereview |
I am trying to make my app alive. And bring it to foreground from background.
But this is not happening.
I have used operURL concept for achieving in application will enter background method but it is not helping me out.
I have also attempted [UIApplication specialLaunchApp:@"com.companyname.appname"];,
but this is als... | stackexchange/codereview |
I recently installed rubygems 1.3.7. When I try to install rails by typing :gem install rails I get an error like this:
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
| stackexchange/codereview |
how to save the screenshot programmatically in Ipad with image name taken from the user?
i've found a snippet which works but doesn't asks for the name of the image.
UIGraphicsBeginImageContext(self.view.frame.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetIma... | stackexchange/codereview |
This is a homework problem. Let A[] is an array of integers and integer K -- window size. Generate array M of minimums seen in a window as it slides over A. I found an article with a solution for this problem but did not understand why it has O(n) complexity. Can anybody explain it to me?
| stackexchange/codereview |
I have a Silverlight 4 ListBox with a created DataTemplate attached to it that correctly shows the items I want.
I would like to be able to have each Item in the list display differently according to a value in the object that is represented by the DataContext. I was originally looking at altering the DataTemplate on a... | stackexchange/codereview |
Present value is the value on a given date of a future payment or series of future payments, discounted to reflect the time value of money and other factors such as investment risk. Present value calculations are widely used in business and economics to provide a means to compare cash flows at different times on a mean... | stackexchange/codereview |
I'm trying to list the files from a ftp address using FtpWebRequest class
private IEnumerable<ResourceInfo> EnumerateResources(Stream stream)
{
StreamReader reader = new StreamReader(stream);
string line = null;
while ((line = reader.ReadLine()) != null)
{
yield retur... | stackexchange/codereview |
What am I doing wrong here? :(
I open Instruments.app, create a new UI Recorder template, select my application's .app bundle from the Target -> Choose Target menu, hit Record, open a couple of documents, type some stuff on them, close the documents, quit the app.
At this point UI Recorder stops and the Record button c... | stackexchange/codereview |
(i'm new to java)
I need to start a process and receive 2 or 3 handles: for STDIN, STDOUT, (and STDERR), so I can write input to the process and receive its output, the same way command line pipes behave (e.g. "grep")
in Python this is acheived with the following code:
from subprocess import Popen, PIPE
p = Popen(cmd,... | stackexchange/codereview |
Is it possible to make the color scheme of GVim to exactly match the one in the command line version Vim? I like the colors of Vim more than the white-backgrounded GVim, but I still want to use GVim because the shift key doesn't map well on the command line version.
| stackexchange/codereview |
MFC seems to have a severe lack of layout managers/sizers. Hard to believe any self-respecting UI library would lack sizers but there you go. I've found something that will take care of the usual box layout just fine, but what I haven't found is a sizer that will help when you need things to be aligned both verticall... | stackexchange/codereview |
I recently received an assignment in my Java programming class to analyze a (what I would guess is a very small) dataset. I really enjoyed the assignment and the use of a 'tokenizer' etc which was a new concept to me. The dataset we got to work with was pretty boring, as it only contained dates.
What I'm looking for is... | stackexchange/codereview |
I'm experimenting with this method "users lookup" from the Twitter API. Is there any way I can directly type the url in the browser and see the results? I am logged into Twitter, but I get the error message "basic authentication is not supported" when I type
http://api.twitter.com/1/users/lookup.xml?user_id=12863272... | stackexchange/codereview |
I am trying to display a modal view controller containing a NavigationController. I can't figure out where to release the controllers, though. Normally, I would just release the controller after displaying it, but that won't work here; presumably that has something to do with the navigation controller. Any help wou... | stackexchange/codereview |
I have a situation where I need to make sequential AJAX requests represented by an ordered list (<ol><li>..) on the page. I use jQuery.
Requirements:
Each request has to wait for the previous one to complete with a successful status.
The success or error message needs to be appended to the corresponding list item.
The... | stackexchange/codereview |
I'd like to achieve the following and was looking for a sample/tutorial but couldn't really find anything:
I have C# Winforms application, which has multiple Forms within the same process. I'd like to be able to drag & drop items within and between forms and would like to provide some custom painted visualization of th... | stackexchange/codereview |
Say I want to work with a linked list in java. I thought that the best way to create one is by:
List list = new LinkedList();
But I noticed that this way I can only use methods on the list that are generic. I assume that the implementation is different among the different data structures.
So if I want to use the speci... | stackexchange/codereview |
I've been experimenting with Ajast and it's very useful for getting remote URL sources etc. In the below example it bypasses same-domain-policy and gets "Hello World !", but I cannot recreate this when I change it to google.com.
<html>
<head>
<script type="text/javascript" src="http://ajast.org/ajast/ajast.js"></... | stackexchange/codereview |
I would like to implement a generic Linq query on a DataGridView.DataSource to retreive a row whith an idField. I did search MSDN, StackOverflow, etc... but didn't quite find what I'm looking for. Does anyone have an idea on how I could implement it ?
This is the non-generic code, but I would like to make it work wha... | stackexchange/codereview |
I'm sending custom header from Silverlight application to the WCF service over HTTPS. Through the custom header, I'm sending client's CultureInfo to the WCF service and expecting the response from service in the language of the culture I have sent. I have applied custom behaviors to both client and service ends correc... | stackexchange/codereview |
I'm working on an RSS reader app for Android. I have it to where I snag the RSS feed and parse the messages. When the user touches a title, I pass off the contents of the post to another activity, which displays the contents of the post in a standard text layout. However, the posts come back with images that are in ... | stackexchange/codereview |
I'm trying to use the Web One Click Publish feature in VS10 to push my asp.net app to IIS. I have some .resx files and another folder for uploaded images, none of these got copied to IIS. How do I tell it to copy the specified files and folders
Thank you so much,
Ray.
| stackexchange/codereview |
Recently I decided to work with Rx (Reactive Extensions) for Windows Phone 7 and I encountered some weird behavior.
For example, I have this piece of code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://whatismyip.org/");
request.Method = "GET";
var x = from c in Observable.FromAsyncPattern<WebResp... | stackexchange/codereview |
I'm trying to do animation around View that changes size due to setVisible on it's child.
I've got View like that:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:background="@drawable/roundedtable_filled"... | stackexchange/codereview |
I'm running:
CentOS 5.5 x86
cPanels-11.26.20 RELEASE
Apache 2.2.16
PHP 5.3.3 "--with-mysqli=mysqlnd"
MySQL 5.1.51
When I connect to the database, I use "p:localhost" for the hostname to establish a persistent connection.
Yesterday I was using my app no problem before leaving the office. Today I tried using it again an... | stackexchange/codereview |
I have a linked list of structs each of which contains an integer and a pointer to the next struct. Before populating this struct by a sequence of new commands, I note down the memory used (say Mem_1) by this program in Windows Task Manager under "Mem Usage". The actual linked list creation occurs next. (See void popul... | stackexchange/codereview |
I have this query in a table with about 100k records, it runs quite slow (3-4s), when I take out the group it's much faster (less than 0.5s). I'm quite at loss what to do to fix this:
SELECT msg.id,
msg.thread_id,
msg.senderid,
msg.recipientid,
from_user.username AS from_name,
to_use... | stackexchange/codereview |
I was wondering if there is any difference in performance/memory use between movieclip symbol and graphic symbol?
| stackexchange/codereview |
I am trying to understand what perforce “jobs” provide over an external bug tracking system and just putting the bug ID in the check-in comment.
I was hoping that "job" could help with How do I see if a branch contains a bug fix in Perforce?
| stackexchange/codereview |
I have a button on the currently navigated to viewcontroller, connected to an IBAction.
In the IBAction I create a UIActivityIndicatorView as usual, with [self.view addSubView], then load some pictures.
I've tried setNeedsDisplay on the indicator view, the view controller, and the window, but it still loads the picture... | stackexchange/codereview |
I wondered if this would be possible. I'd like to centralize my cakePHP core files at 1 location, and want my several applications to use the same core. One reason is when updating I just need to update one core. Nowadays I always upload the whole cakephp package with each application.
But my applications are not all o... | stackexchange/codereview |
This is a school project:
Objective:
Ask the user to input 2 number
A random number will be print to the user.
Must catch if input isn't Integer.
I have check online source, which i copied the code and use it.
Min + (int)(Math.random() * ((Max - Min) + 1))
The code work fine except if I input any integer less than 10.... | stackexchange/codereview |
So I have a method that takes an NSString as an argument, and I would like that method to basically decompose that sting into individual characters and store them in an array(NSArray).
I other words I would like to read each character in the string and store the individual characters in an array and in the same order, ... | stackexchange/codereview |
I have a large number of facts within my program, listing developers and designers in a company, as well as previous projects, like so..
% project(Project Name,Year)
project(efnet, 2007).
% designer(Project Name, Name, Role)
designer(efnet, jane_cole, lead).
% developer(Project Name, Name, Role)
developer(efnet, alex_t... | stackexchange/codereview |
There is readily available a lot on info on how to do analysis and design of standard CRUD applications, or at least, applications more geared to the traditional windows application - having a couple of windows, where you click on buttons and then things happen. In the backyard there is some sort of repository where yo... | stackexchange/codereview |
I have this snipped in my page:
$('#category_sorting_form_save').click(function(){
var elements = $("#category_sorting_elements > div");
$.each(elements, function(key, value) {
console.info(key," : ",value);
console.info("cat_id: ",value.attr('cat_id'));
});
});
And when it is executed, I g... | stackexchange/codereview |
/**
* Converts linked list into a sentence (a single string representation).
* Each word pair is separated by a space. A period (".") is appended after
* the last word. The last link represents the first word in the sentence
* (and vice versa). The partialResult is the partial string constructed
... | stackexchange/codereview |
I'm using the sh function from the clojure.java.shell command to read the very large output of a command. The output is around 60meg of data.
I keep getting java.lang.OutOfMemoryError. Is there a way to open a sort of pipe that would let me read the output and parse it into a vector . Like a lazy sequence for the outp... | stackexchange/codereview |
Sorry for long POST:
Is it possible that I can call a Stored Procedures from another
Stored procedure in MySQL.
For example:
I have two tables (test and testcomp):
With the structures below:
-- Table structure for table test
CREATE TABLE IF NOT EXISTS `test` (
`t_id` int(11) NOT NULL AUTO_INCREMENT,
`name` var... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.