instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm using a Lisp MIDI library for a small project I'm working on. Just to get started, I'm trying to write a simple MIDI file that plays middle C. However I can't seem to get this to work and can not find any documentation on how to do this sort of thing. Here is my code:
(defun make-track ()
(list
(make-instan... | stackexchange/codereview |
this is my manifest.json file
{
"name": "My First Extension",
"version": "1.0",
"description": "The first extension that I made.",
"background_page": "background.html",
"page_action":
{
"default_icon": "icon.png"
},
"permissions" : [
"tabs"
]
}
This is the background.html
<html>
<head>
... | stackexchange/codereview |
I need some custom MACROs in my NDK projects
however I have no ideal how to add and I found no answers
Could anyone please help?
Many thanks!
| stackexchange/codereview |
Hey guys,
I know there are a lot better ways to send email with PHP. However, for this purpose the easiest solution is perfect. Only thing: I can't find out why, my validation is not working!
I get the email address, however the validation is not working, I'm able to send a completely empty form. Any ideas?
<?php
//Ema... | stackexchange/codereview |
I am trying to use jquery to grab the contents of a div and pass it to a php script that emails it. So I need to use a $('#div').html() and send that to a $_POST[''] value. Any ideas?
| stackexchange/codereview |
I am using GWT 2.0.4 and want to perform the trivial operation of replacing string.
Something which can be done using java.lang in java, and since GWT doesn't support Java libraries and I want to avoid writing a JSNI, is there a way to do a string replace, Is there anything i am missing or might not knw?
Latest versio... | stackexchange/codereview |
When I try to compile my VSTO Outlook addin, I get this error:
Reference to class 'RibbonBase' is not
allowed when its assembly is linked
using No-PIA mode
Can't seam to find a solution to it online.
Any idea?
Thanks!
Mojo
| stackexchange/codereview |
This is my code snippet:
final ListGrid subscriberGrid = new ListGrid();
subscriberGrid.setWidth(500);
subscriberGrid.setHeight(224);
subscriberGrid.setShowAllRecords(true);
subscriberGrid.setSelectionType(SelectionStyle.SIMPLE);
subscriberGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX... | stackexchange/codereview |
I have set in css the height of an image to a certain value and the width modifies automatically so that the aspect ratio is preserved. I'm using the .width() jquery function to get the width of the image after the css resized the image. in Firefox and internet explorer this works great but in chrome and safari the wid... | stackexchange/codereview |
For my BlackBerry application, I am using a single thread to retrieve images from the server one at a time. My application has a number of images and it takes too long to load all the images. How can I speed this up?
| stackexchange/codereview |
i want to create xmpp server using JSO :: JABBER Stream Objects..
i have alreasy written some small code to test JSO..
but didnt get much out of it...
| stackexchange/codereview |
I have a class and serialized into XML on hard disk.
Then I add one new parameter into that class.
Can I still able be de-serialize from old xml into new class structure by default de-serializer?
Any things else might affect serialization?
Rename parameters ?
Delete parameters ?
| stackexchange/codereview |
We use echo or print_r to get value of variables while debugging PHP code.
But, object of DOMXPath or DOMDocument are not captured in echo or print_r.
How to get values from above objects while debugging PHP code?
| stackexchange/codereview |
Im trying to run Selenium RC with Nagios3.
Everything works ok up to 3h... then selenium engine takes sometimes even 1.4G RAM and stop responding.
I'm starting selenium by:
java -server -Xss64k -Xms512m -Xmx1024m -Xverify:none -XX:+UseAdaptiveSizePolicy -XX:+PrintGCDetails -XX:MaxPermSize=160m -XX:+UseParallelGC -jar... | stackexchange/codereview |
I'm programming in C. I'm getting the following error:
ctc E208: ["..\..\ECB\Include\ecb.h" 4/11] syntax error - token ";"
inserted before "u8_vTeethBeforeMissingTeeth1"
Here is what I have in the .h file:
#ifndef __ECB_H__
#define __ECB_H__
extern u8 u8_vTeethBeforeMissingTeeth1;
extern u8 u8_vTeethBeforeMissingTee... | stackexchange/codereview |
Visual Studio code coverage produces a .coverage binary file which can be converted to xml. Is there an xsl transform available that can convert that xml to a formatted report similar to the one produced by emma coverage tool for java. Any other transformations that would produce a meaningful report are also welcome.
| stackexchange/codereview |
I am using a session to maintain some variables between different pages on my site. While it works fine when I move from www.example.com/a to www.example.com/b, the session variables are lost if I move from example.com/a to www.example.com/b
Any idea how I can make sure the session is maintained irrespective of www or ... | stackexchange/codereview |
how can i add .a file in my xcode
| stackexchange/codereview |
I'm trying to find a rich text editor which i can use in c#, but not on a server.. i want to use it locally..
I'm making a newsletter "system" for a client and I think that besides me making the header and the footer, the easiest way for him to input the content is via RTE... I would create it on his web server, but it... | stackexchange/codereview |
$("#contact-us-form").submit(function () {
var nameVal = $("input[name=name]").val();
var companyVal = $("input[name=company]").val();
var titleVal = $("input[name=title]").val();
var emailVal = $("input[name=email]").val();
var phoneVal = $("input[name=phone]").val();
var messageVal = $("input... | stackexchange/codereview |
Our UI exposes user input as strings. All of them, including dates and numbers, are coming as strings. The question is: is it better to convert these to the appropriate type (datetime, int, etc) in the UI (and then pass converted var to the BLL methods), or in the BLL itself?
| stackexchange/codereview |
How is an anonymous Spring bean useful?
| stackexchange/codereview |
I have streamed audio from url,but when the call or sms comes i need to pause the song and when the call ends again i am gonna resume the song...
How to do this?...
| stackexchange/codereview |
I have written this class-methods for .net 2.0 to create objects from '|'-separated strings and vise-versa.
But the problem is, they are not giving right results in case of Inherted types, i.e. inherited properties are coming last and the sequence of the data supplied in the form of a '|'-separated string is not workin... | stackexchange/codereview |
How do I find what string is to be put in my ASP.NET application config file in the 'driver' attribute for the dataAccess node? So here is the node to be clear:
<add name="somenamehere" driver="I want to know what goes in here???" connectionStringName="somenamehere"/>
Its a MS SQL Server 2008. I am sorry if this has b... | stackexchange/codereview |
Sometimes I need to insert some similar lines in a file which differ only in a sequence number. For example,
print "func 1";
print "func 2";
print "func 3";
print "func 4";
print "func 5";
Using vim, I end up copy pasting the first line using [yypppp] and then changing the last four lines. This is really slow if you h... | stackexchange/codereview |
Is it possible to send Java Applet through SMS.
The requirement is to download a Java applet through SMS to a mobile. Later install it.
| stackexchange/codereview |
I need a very weird thing I admit. I hope you'll be able to help me.
My current situation (all in one solution VS2010):
I have the Silverlight assembly with
user-control (basically a drawing of
kind)
I have a WCF service to
provide the images (hosted in the
website project)
I somehow need to:
when someone requests ... | stackexchange/codereview |
I'm trying to perform a redirect using cURL. I can load the page fine, that's not a problem, but if I load say google.com non of the images load and the site does not work (obviously because its just printing the HTML and not actually doing a redirect).
Is there any way to perform a redirect using cURL? Sort of similar... | stackexchange/codereview |
I want to read the name entered by my user using C programmes.
For this I wrote:
char name[20];
printf("Enter name: ");
gets(name);
But using gets is not good, so what is a better way?
| stackexchange/codereview |
Our current setup is SVN, AnkhSVN, CCNET. I have read most of the SVN+TFS posts out here, and I still need some more information (this is not duplicate).
Our current setup is that we have 8 braches at any given time that are working on the same code base.
Main Trunk --> Project 1
Project 1--> Project 2
Project 1 --> ... | stackexchange/codereview |
I'm working on this alerting service in Rails. And really, all I need to do is, when a user signs up, send a confirmation email to the user. And upon confirmation from the user, activate the user. I tried playing around with Matt Hooks' Authlogic email activation tutorial, but its really leading nowhere. So , any ideas... | stackexchange/codereview |
Update: Albert D. Kallal has kindly started the discussion off, and to get some more opinions I'm adding a bounty.
This is a nontrivial question about maintenance of a legacy application myself and two other developers support. We are not the original developers, and the code base is 300,000 lines of MFC and business ... | stackexchange/codereview |
Let's say I have a class box, and a user can create boxes. How to do it? I understand I create objects by className objectName(args); but how to do it dynamically, depending on the user input?
| stackexchange/codereview |
I have few sites, and they all have identical setup on a single server. Now, instead of the separate configuration file for each of them in sites-enabled directory, I want to have a common file.
Idea is this:
www.abc.com should have /var/www/abc as DocumentRoot,
www.xyz.com should have /var/www/xyz as DocumentRo... | stackexchange/codereview |
I've made a log in script for my site, the session stuff basically look like this.
if($_SESSION['loggedin']=="Yes"){
//user online stuff
}
For all other users the session is set
$_SESSION['loggedin']=="No";
How can i display active session that are set to yes or no? should i work anything with mysql tables and use ... | stackexchange/codereview |
I have a folder with sequentially named images (a0001, a0002, a0003, etc.) and I was wondering if there was a way to delete every 3 files without touching the others.
So for example, I have: a0001, a0002, a0003, a0004, a0005 a0006, a0007, a0008, a0009
And after I would like to have: a0001, a0005, a0009
| stackexchange/codereview |
Do there exists any Standard Syntax for Describing the Transition Table for an NFA or DFA ?
| stackexchange/codereview |
I need to build a Win 7 desktop widget, that would display a single value from a certain web page. To view the page you need to login first(with POST form), get session id, and proceed to the page. Then i'll download it and parse, no problem here. I also probably need cookies support for this. So, are there any tools f... | stackexchange/codereview |
I know little about sql server access, and all googled out for sql server accessing are using
C# or php like language.
Is there a good step by step about how to set up sdk and write an start program in c
to access sql server database?
| stackexchange/codereview |
I want to add events ,ie add remainders to the calendar in android.
Is that possible?
| stackexchange/codereview |
An import was performed on my database which wasn't done so well. It's resulted in some fields being empty where they shoudln't, etc...
What I need to do now is move all the data from one column in one table into a column in a different table. Both tables have an ID which is a link to each rows.
For example:
Table1
id... | stackexchange/codereview |
I am running a test server locally that is also broadcasted (for education purposes) on a Mac. I ran a software called acunetix from another computer and it was able to detect the technologies used on the server.
How can I prevent others from viewing the technology my server is running?
| stackexchange/codereview |
Possible Duplicate:
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
#include <stdio.h>
int main(){
struct word1{
char a;
int b;
char c;
};
struct word2{
char a;
char b;
int c;
};
printf("%d\t%d\n", sizeof(int), sizeof(char)); //Output : 4 1
printf("%d\t%d\n", sizeof(struct word1)... | stackexchange/codereview |
You can call me marcus. I'm currently studying in a polytechnic in singapore and i'm doing my final year project. And my task is to create a application which is able to connect to my own server. Well, before i start off with anything, i did my research and came across a website, Building Your First Windows Phone App w... | stackexchange/codereview |
I am in ruby 1.9.2, rails3.
So My website has some structures,
and I want to put menu in a middle of my webpage.
I am doing something like (within application.html.erb file)
blahblahblah
<div id="menu">
<%= yield :menu %>
<div>
blahblhablah
I have a file menu.html.erb which has menu structure for the site.
What can... | stackexchange/codereview |
I am using the Event Subscription Tool, which sits on top of the bissubscribe.exe tool to create some custom alerts. I need to query against some custom work item fields, but I'm not sure how to reference them in the code.
Here is how you reference a system field (this works):
CoreFields/StringFields/Field[ReferenceNa... | stackexchange/codereview |
I'm looking for the correct version of this class for Caliburn.Micro
public class WebServiceResult : IResult where T : new()
The above signature is from the ContactManager example in the full Caliburn framework.
It does not cut and paste directly into a Micro-based project. There are too many missing classes to use thi... | stackexchange/codereview |
Possible Duplicate:
print_r to get object methods in PHP?
How can I show what all the objects' methods and properties are?
That is, including the property's values?
| stackexchange/codereview |
I have quite a common problem, I guess.
I have an Activity and inside it I need three screens. The problem is, they can/should be scrolled in both ways (horizontally and vertically). Since embedding a HorizontalScrollView with a normal ScrollView is usually discouraged and typically causes more problems than it solves... | stackexchange/codereview |
Possible Duplicate:
Call ASP.NET function from JavaScript?
"Can you call a C# function from JavaScript?" was asked by an interviewer. Is it possible? If yes, then how?
| stackexchange/codereview |
I have the following function to display the infowindow with tabs on google map using GInfoWindowTab ,the default infowindow is displayed with two tabs ,my question is how can i change the size ,background color and styles of the infowindow and can i add videos into one of the tab in infowindow.
function createMarker(... | stackexchange/codereview |
I'm working on an an app that updates both a UITableView and a UIScrollView. I like how UITableView updating works. As I add, remove, or update items, I call insertRowsAtIndexPaths:withRowAnimation:, reloadRowsAtIndexPaths:withRowAnimation:, and deleteRowsAtIndexPaths:withRowAnimation: as appropriate. However, updating... | stackexchange/codereview |
I came across [check revision history for link] and surprised by its clean design. I am particularly interested in how the site implement the "Add Comment" popup when you click any of the "Add Comments" link under a deal.
My JS knowledge for popup is still at the .. level. Yet this site is using < a class="addcomment">... | stackexchange/codereview |
Let say that I want to create a variable set of <rich:tab> elements within a <rich:tabPanel> component. So I tried to do that way:
<rich:tabPanel switchType="client" ...>
<ui:repeat value="#{myBean.myTabs}" var="tab">
<rich:tab name="#{tab.name}" label="#{tab.label}"/>
</ui:repeat>
</rich:tabPanel>
But... | stackexchange/codereview |
I'm trying to transform a 3D array into a matrix. I want the third dimension of the array to form the first row in the matrix, and this third dimension should be read by row (i.e., row 1, then row 2 etc... of dimension 3 should make up the first row of the matrix). I've given an example below, where the array has dimen... | stackexchange/codereview |
I have a webservice (RestEasy) returning a JSON object containing a List<..> element. I am trying to parse the results in a Javascript for loop. If the List<> element has 2 or more elements, all is well. If the List<> element has only one element, the Javascript loop breaks.
This is because the JSON respresentation act... | stackexchange/codereview |
I am trying to monitor drives a local PC. I am interested in two events: when the drive is connected (USB drive, CD-ROM, Network Drive, etc.) and disconnected. I wrote a quick proof of concept using the ManagementOperationObserver and it partially works. Right now (with the code below), I am getting all sort of events.... | stackexchange/codereview |
Does anyone know how to play music from youtube in my c# .net 4.0 app ? I've installed all the apis and sdks from google but i can't seem to find a tutorial that lets me play music in my desktop app .
regards,
Alexandru Badescu
| stackexchange/codereview |
Possible Duplicate:
What's the difference between <b> and <strong>, <i> and <em>?
The purpose of "bold " i.e bold to make the text bold. Then what is the purpose strong tag in html? I have used strong tag to make the text bold.
So what is difference between both the tag.
What are places where i have to use "strong... | stackexchange/codereview |
I moved from Windows to Mac and now I'm experiencing a problem with the file input/output classes: ifstream & ofstream.
In Windows when you run with g++/Code Blocks
ofstream out("output.txt");
out << "TEST";
out.close();
A new file "output.txt" will be created in the same directory.
However in MAC OS X, this file is ... | stackexchange/codereview |
I have some simple data stored in series of text files. Once line per record, but number and type of fields can vary per record.
The files contain almost the same data.
The exists an "ideal" data file to which these must be compared. Some fields can vary, but some need to match. I also need to now if any records are... | stackexchange/codereview |
Hey friends
i need to know how we can do the following?
like i am having the following links
client 1
client 2
client 3
client 4
client 5
while i place my mouse pointer over client 1 under the client 1,the following should be show as edit/Replace/Delete.same as client2,client 3,client 4.and client 5
how can we do this... | stackexchange/codereview |
I need to have both earlier and later versions of App I write in Eclipse.
What do I need to change (activity name?) to upload new version of the app to my phone without overwriting the old one? Any fast way to do it?
| stackexchange/codereview |
I have a question regarding the speed of pointer dereferencing. I have a structure like so:
typedef struct _TD_RECT TD_RECT;
struct _TD_RECT {
double left;
double top;
double right;
double bottom;
};
My question is, which of these would be faster and why?
CASE 1:
TD_RECT *pRect;
...
for(i = 0; i < m; i++)
{
... | stackexchange/codereview |
We need to generate a unique URL from the title of a book - where the title can contain any character. How can we search-replace all the 'invalid' characters so that a valid and neat lookoing URL is generated?
For instance:
"The Great Book of PHP"
www.mysite.com/book/12345/the-great-book-of-php
"The Greatest !@#$ Boo... | stackexchange/codereview |
I was profiling the performance of my web application using Google's Page Speed plugin for Firebug and one of the things it says is that I should 'leverage caching' — "The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources". W... | stackexchange/codereview |
2 Questions:
str field is shared between two instance of A type [line 2]
What's implications according to following code ?
class A implements Runnable {
String str = "hello"; // line 2.
public void run(){
Synchronized(str){
System.out.println(str+" "+Thread.currentThread().getName());
... | stackexchange/codereview |
i have a class name X, what is the difference between "const X a" and "X const a"
| stackexchange/codereview |
Anybody know any good resources for touch interface in AS3? Maybe with example downloads of simple user interface examples such as swiping lists etc. I could write code that reacts to the mouse events but I was wondering if their is a more a intuitive way of doing it using the native touch events class? Thanks. I also... | stackexchange/codereview |
I've a several columns in CSS, with float:left property to align them horizontally. But as it float in the left side, I can't center all the divs.
So I found that if I wrap my columns with another div with display:table property, all works perfectly... but not in IE7 (idd, this property is not supported -.-).
Does any... | stackexchange/codereview |
I have a website which hosts large PDF documents, as well as some other file formats.
How can I open up a download-dialog box in javascript so that the user can save the document to their computer?
| stackexchange/codereview |
I have made a helper class called Navigation that gets used on every page because it does stuff to my main navigation menu. So in order for this to work I have included the helper in my pages controller like so:
var $helpers = array('Html', 'Javascript', 'Navigation');
however when there is an error like a missing view... | stackexchange/codereview |
I had a response on a question yesterday about sending POST data to the same page with the Post-Redirect-Get pattern like this:
if (isset($_POST['Submit'])) {
// prevent resending data
header("Location: " . $_SERVER['PHP_SELF']);
}
Someone replied: sending data to same PHP page from Javascript, no AJAX or form... | stackexchange/codereview |
Is it possible to get the (first?) match of a regex and output it within a select? It looks like the REGEXP function only return whether there has been a match or not. I want to be able to extract information out of a varchar column without having to use complex SUBSTRING-LOCATION nestings.
Any ideas?
| stackexchange/codereview |
I have this situation (two classes with two different header files):
b.h
#include "a.h"
class B {
friend void B* A::create(void);
private:
int x;
};
a.h
#include "b.h"
class A {
public:
void B* create(void);
...
};
basically class A creates "B" objects. I want to give the creation function... | stackexchange/codereview |
I was browsing through the code of Vosao CMS, an open source CMS hosted on Google App Engine (which I think is an awesome idea), and I stumbled upon the following code inside the CurrentUser class:
/**
* Current user session value cache class. Due to GAE single-threaded nature
* we can cache currently logged in user ... | stackexchange/codereview |
My goal is to remove all hover feedback from the UI. The motivation is for testing touch interface prototypes and not wanting users to have the queue of interactivity when the mouse hovers which they won't have with a touch interface.
I have a partial solution but it has two problems:
Requires an event handler on each... | stackexchange/codereview |
I'd like to test my app on the ipod touch. But in Xcode I don't see a simulator for this (I only see a simulator for iphone 3gs, iphone 4, and ipad).
Do you know if there's a way to run an ipod touch simulator?
| stackexchange/codereview |
We have a basic data entry app we want to develop using QT as the development platform. There appears to be Qt Mobility and QT Web Kit. The goal is to have the app run on as many mobile phone platforms as possible.
What is the recommended approach?
| stackexchange/codereview |
Quick question on how to get even more out of PredicateBuilder. It works as per below:
IQueryable<Product> SearchProducts (params string[] keywords)
{
var predicate = PredicateBuilder.False<Product>();
foreach (string keyword in keywords)
{
string temp = keyword;
predicate = predicate.Or (p => p.Descript... | stackexchange/codereview |
The line of code below displays a dialog box with two buttons: Yes and No. I want those two buttons to be at least 3 times the actual default size. I understand I can create a customized JFrame and add button and set the Size but I have scores of dialog boxes; does not seems practical.
JOptionPane.showConfirmDialog(nu... | stackexchange/codereview |
I have a page 'foo.html' that populates a table via AJAX 'ajax.html?options=option1'(accesses a database.)
'foo.html' has a css linked to it that makes the table from ajax.html look nice. However, I'd like to have ajax.html also look nice with a css if it is directly accessed. if I add <link rel="stylesheet" type="tex... | stackexchange/codereview |
Games like FroggyJump for iPhone figure out the rotation of the iphone. I'm getting confused with the acceleration values. How do I calculate the level of rotation? I suppose I need to consider when the iphone isn't perfectly upright.
Thank you.
I'm also wanting to use the new Core Motion framework with the "Device Mo... | stackexchange/codereview |
Does anybody know any php alternative to coldfusion's cfusion_encrypt?
Currently cfusion_encrypt is still used via curl and its trouble since the cf server keeps going down. It would be a lot better if anyone could give me a php alternative to this function.
Thanks.
| stackexchange/codereview |
When I try to open my site on IE (development, environment, or online), it crashes every time. This is my server readout upon entering the home page (it actually crashes on any page view after this):
Rendered shared/_footer.erb (0.0ms)
Rendered welcome/index.html.erb within layouts/index (179.0ms)
Completed 200 OK in 2... | stackexchange/codereview |
I can't understand org.eclipse.draw2d.Triangle's api. There are some fields for manipulation:
protected int direction
The direction this triangle will face. Possible values are PositionConstants.NORTH, PositionConstants.SOUTH, PositionConstants.EAST and PositionConstants.WEST.
protected int orientation
The ori... | stackexchange/codereview |
I have the following data
data A = C1 String | A :@: A
deriving(Show)
app inp = case inp of
a1 :@: a2 -> (C1 "a") :@: (C1 "b")
_ -> C1 "c"
Why does the case return the input instead of (C1 "a") :@: (C1 "b")?
*Test> app (C1 "c") :@: (C1 "d")
C1 "c" :@: C1 "d"
Works fine if i'll change A :... | stackexchange/codereview |
I've written an API and currently am looking at what is the best way to provide logging for the system.
We want to be able to have an overview of the calls being made, if particular calls are being hit very often and such.
What is the best way to log and present all this information simply?
Simply wondering if there ar... | stackexchange/codereview |
We are trying to figure out a way to modify WCF service behavior to catch all exceptions and instead of returning faults to the client, it will populate a custom return object with exception data and return that. So far, we haven't had much luck. I found this example: Catching custom faults
However, it doesn't return c... | stackexchange/codereview |
Please explain the use of the interface Supplier(in Guava) with a suitable example .
| stackexchange/codereview |
I am getting "Object Does Not Source Automation Events "
on the following VB 6.0 line
Public WithEvents conn As Connection
Please Help
| stackexchange/codereview |
My app icon of my application is not working in 2g version of the iphone (icon.png). only appear white icon with application name and also problem in default.png. can any one help me
| stackexchange/codereview |
I'm trying to use "auto wiring" between request attributes and a bean with
<jsp:useBean id="cib" class="(fqn).CarInfoWebBean" scope="request">
<jsp:setProperty name="cib" property="*" /></jsp:useBean>
but the setter of the (only) property doesn't get called.
The bean property is of type long, and the property ... | stackexchange/codereview |
how to access this paramvalue in controller..?
$router->map('Company', 'Company', array(
'controller' => 'companies',
'action' => 'add',
'paramkey' => 'paramvalue',
'anotherparam' => 'anothervalue'));
Plz help me
| stackexchange/codereview |
Hey I have signed up for the google custom search and its working reasonably well.
So basically it generated a Javascript code for me to use.
I was wondering how can I get it to work by also accepting a value from querystring ?
Cheers
| stackexchange/codereview |
I want to validate a phone number entered by user according to his/her country which I know.
I am using PHP/Javascript/MYSQL in my site.
OR
have anybody list of mobile number format for all countries i.e. area code,country code, minimum and maximum length??
| stackexchange/codereview |
Apparently, I am using params[:category] (from routing...) to categorize some articles within same table, and I just want to set the category column of an article to be params[:category]. I tried just saying
class Article < ActiveRecord::Base
has_many :comments
belongs_to :article_category # this is the model that... | stackexchange/codereview |
I'm developing a small application on Grails 1.3.5 and I run into this very strange problem.
My domain classes feature some boolean typed fields. None of these fields is persisted when creating a new instance (and saving it of course).
For example, I have this domain class "Employee", defined as follows (simplified):
c... | stackexchange/codereview |
I looked at several related answers, and determined that I can programmatically clear the selection by setting lstData.SelectedIndex = -1; However, when I do it right after setting the data context on startup, somehow it never works and gets set to select the first element in the list.
I also tried adding the setting t... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.