There's always a need to make method names as concise as possible but without getting too long and waffly.
At what point is a method name far too long to possibly be justified?
I have table "PICKITEM"
PARTID QTY
A 1
A 3
B 11
C 8
D 5
D 3
I need a select statement that will return one line for like PARTIDs and add the qty field to together, yet also return the rest of the lines in the table as is
PARTID QTY
A 4
B 11
C 8
D 8
Probably a newb question, but I am new to SQL syntax and queries. Any help in getting me on the right path would be appreciated!
Does grails have an automatic constraint update. If we change the field in domain class to be nullable by adding constraint, it is not getting reflected in database without schema export. Is it possible to do get grails do this update automatically.
i have included the plugin and written code like
if(page) { $.post(page,{},function(data){callBackFunction(data)}); }
function callBackFunction(data)
{
$('.page_change').html(data);
$('.page_change').effect("bounce", { times:3 }, 300);
$('#submit_show').show();
}
The data change is happening but the bouce effect i am not getting..how do i solve this issue..
I have this code in base class
protected virtual bool HasAnyStuff<TObject>(TObject obj) where TObject:class
{
return false;
}
In child class I am overriding
protected override bool HasAnyStuff<Customer>(Customer obj)
{
//some stuff
if Customer.sth etc
return false;
}
I am getting this error
'''Type parameter declaration must be an identifier not a type'''
What is it I am doing wrong here?
hi,
I have one table of 50k keywords and I am providing the auto-complete feature for these keywords based on count mechanism. But still getting the keywords takes time..
In what way would the database partitions have to be done for fast retrieving....
help me plz.....
I'm replacing a website that was previously HTML only.
I put a GridView on the French and the English page and I'm getting 2 fields: A date and a currency.
For the date, I need to transform it into a long date format. The English part isn't very hard, but when I get to the French page, I can't transform it into a long date format with French words (i.e.:Mardi instead of Tuesday).
Is there any way to format the string with French date words instead?
while inserting into temp table inside a cursor am getting this error
Cursorfetch: The number of variables declared in the INTO list must match that of selected columns.
Can anyone provide me with link to a website/book in which would be well explainded how to use profiler in VS2010 for native code? I tried to search the web but all I'm getting is tutorials from Microsoft and those tutorials use C#.
Thank you.
We use Visual Studio 2008, with visual source safe v8. Lately, I seem to be getting a lot more crashes than usual, mainly when viewing history (comparing, etc.).
I have taken a screencapture of the series of dialog boxes that will always appear, leading up to the crash:
http://img529.imageshack.us/img529/1360/msvscrash.jpg
Does anyone know what could be causing this? Thanks.
I used SystemEnvironment class in java for getting system information.
In that i can get only RAM size, i can't get the specific disk space like c: and D:
code is,
com.sun.management.OperatingSystemMXBean mxbean = (com.sun.management.OperatingSystemMXBean)ManagementFactory.getOperatingSystemMXBean();
System.out.println("Total RAM:"+mxbean.getTotalSwapSpaceSize()/(1024*1024*1024)+""+"GB");
Can i get this using in java program?
hey guys
i have a column in the database(postgresql)
i want to insert the current time in GMT in this column
when getting the current time and inserting it into the DB
it's inserted in the server timezone GMT-5 although that time was in GMT+0
any ideas how to insert this time in the database in GMT timezone ?
Hi,
I have a store model that has many products with a has_many :through relationship.
I have this working with accepts_nested_attributes, but the result is that rails is making duplicate associates.
I don't have anything special going on it is a very simple app.
Any ideas on why duplicates associates are getting created?
I want to retrieve GtkWindow inside GtkEventBox.
So I used event_box-window, it is not giving any error but i am getting error GTK_IS_WINDOW fails.
or do i have to do it in the expose event?
As no one can help me with my UJS ajax problem I am trying "respond_with", but I am getting this error:
RuntimeError (In order to use respond_with, first you need to declare the formats your controller responds to in the class level)
Yet I have declared it in my controller:
class HomepagesController < ApplicationController
respond_to :html, :xml, :js
def index
@homepages = Homepage.search(params[:search])
respond_with(@homepages)
end
Anyone has any ideas why.
I was making multiple remote calls and they are done sequentially and when I am getting a result event back it's triggering calls to all the methods with ResultEvent as an argument . I am supposed to receive the result event only in the method given inthe event listener but it's triggering calls to all the methods with ResultEvent as an argument .
Has anyone come across this kind of problem? Is there any workaround for it?
Please let me know when a call to shmat function can raise a signal 11.
if ((shmId=shmget(shmKey, 0, 0)) <= 0) {
printf( "shmget(0x%x)", shmKey);
return 0;
}
printf( "queueOpen - Key 0x%x gives ID %d", shmKey, shmId);
qh = shmat(shmId, 0, SHM_RND);
I am getting a signal 11 by the code above. Please help
I want to have a url like this:
domain.com/css/site.css?test=234
Rule:
RewriteEngine On
RewriteRule ^([a-z]+)/$ $1.php
RewriteRule ^css/([a-zA-Z0-9]+).css?count=(.*)$ css.php?f=$1&test=$2
But I get every time a 404: Not found (site.css)
If I have a rule like that it works, just without getting the $_GET-Variable:
RewriteEngine On
RewriteRule ^([a-z]+)/$ $1.php
RewriteRule ^css/([a-zA-Z0-9]+).css$ css.php?f=$1
I am getting random quotes in my html see image below, and i cant for the life of me figure out how to get rid of them i have traced it right back to my model and their are now quotes there, i have also compressed all my code and there is still quotes???
Any one had this bug???
heres my php
<ul><?php foreach ($account_media as $value) : ?><li class="span2"></li>?<?php endforeach; ?></ul>
i am using codeignitor
I started a project and added it to hg, but I want to take *.cs file under version control only, so,i have to add bin, obj, sln, suo,_resharper folder etc to ignore pattern, ,how to let hg only monitor certain kind of file like white list? How to do that in Subversion?
I think I'm being a bit silly here, but I keep getting errors complaining about the SERVER_NAME key missing from the env hash, and I can't find any substantial documentation on Rack::SendFile..
so- how do I serve up files?
I have a column in the data table called CurrentDate as datatype string..(12/2/1983)
when I am displaying on the screen this is showing as 12/2/1983 12:00:00AM
I am not sure why I am getting timestamp here?
can anybody help me out?
thanks
There is a VB6 application. It can be run with command line parameters to create some report in a text file.
The problem is that when started from a batch file, application returns control immediately, so the following commands start executing. I need these following commands to wait until the VB6 app finishes its work.
How to achieve that?
I have this code
$("#window").dialog({
resizable: true,
height: 180,
title: titles,
width: 500,
modal: false,
buttons: {
"OK": function () {
$(this).dialog("close");
}
}
});
i am able to get the popup perfectly but the problem I am getting here is..
On the top of the Dialog box I have 'X' I am not able to see that X on dialog popup's but when I resize my window I can able to see..
what I am doing wrong in this?
Thanks for your all help
I have created an array of threads and started all of them. How to know whether all threads have completed work. I don't want to use thread.wait or thread.join.