Hi, I'm inserting a date in grails using "new Date()" and when I read the record, it's three hours ahead the O.S.'s system time. Is there a configuration to fix this ?
Thanks in advance.
What is the difference between declaring a method in a base type "virtual" and then overriding it in a child type using the "override" keyword as opposed to simply using the "new" keyword when declaring the matching method in the child type?
Hi, What I'm doing is refreshing a <ul> that contains a load of tweets from twitter, is it possible to somehow highlight which items in the list are new since the refresh?
Thanks
I added a new region line to my .info file under /sites/all/themes/[theme] directory. However when I look at the Blocks page, the region is not visible, nor is it a selectable item from the dropdown menus. I've cleared the cache as well. What am I missing?
I have a large table ( 10 million rows) which I am adding new columns and indexes to.
This is taking progressively longer and longer to complete.
I have a powerful server with 16GB of memory available.
What are the best settings in my.cnf to increase in order to speed this process up?
is declaring/initializing primitives the same as creating new objects? from what i know when we create primitives, we also creating wrapper classes for them. im implementing on java btw.
Plese check this:
def foo
f = Proc.new { return "return from foo from inside proc" }
f.call # control leaves foo here
return "return from foo"
end
def bar
f = lambda { return "return from lambda" }
f.call # control does not leave bar here
return "return from bar"
end
puts foo # prints "return from foo from inside proc"
puts bar # prints "return from bar"
Can anybody tell me what lambda is and what is Proc and whats the difference.
I have: http://windows.github.com/
My current project has around 20k files, around 150MB (and not speaking about how slow it is and I cannot do a thing now) it doesn't even let me commit! I get this error: Commit failed: Failed to create a new commit.
That seems that nobody is having.
I've already deleted the folder and cloned again, no escape. What to do?
If I choose to open shell, all this * crashes!
In my item table, I have a itemname column which is currently a dropdown list taking values from DB.
<%= select 'item','itemname' ,
Item.find(:all).collect{|c| [c.itemname]},{:include_blank = 'Select Name'}
How can I add a new value to this dropdown list through the application. Is there a provision to directly add value to the list?
Thanks
Hi
i am trying to add string to Listview
the string contain Tab (or \t) character.
when i do this the Tab disappear.
code:
string text = "test Tab";// The space between the words is "Tab" of course
this.listView1.Items.Add(new ListViewItem(text));
why is this happens?
Hi,
I am using the Apache commons logging library and log4j to generate my log files.
Now I want to create a new file every time I run my program. The current count should be appended to the log file's name.
For example:
program_1.log
program_2.log
program_3.log
Do you know how I could achieve this?
I am really new to GCC and I don't how to use it. I already have a copy of a pre-compiled gcc binaries i've downloaded from one of the mirror sites in the gcc website.. Now, I don't where to go from here... Please give me some tips on the different path to proceed..
C and C++ are different languages, blababla we know that.
But if those language are different, why is it still possible to use function like malloc or free ? I'm sure there are all sort of dusty things C++ has because of C, but since C++ is another language, why not remove those things to make it a little less bloat and more clean and clear ?
Is it because it allows programmers to work without the OO model or because some compilers doesn't support high-level abstract features of C++ ?
<area shape="poly" coords="63,10,64,38,89,37,91,10" class={"strokeColor:'0000ff',strokeWidth:5, fillColor:'ff0000',fillOpacity:0.6}" href="#" id="x1">
There is a imagemap in my html and I want to dynamicly add a new configuration "alwaysOn:true" to the class attribute.
$("#x1").click(function(){alert(8);})
I am newbea I can add click listener to it but cannot figure out how to add config option
How can I do that with jquery?
We've got some kind of groups at our site where group members could put messages. I want to notice the members of each group when there's new entries.
What's the best way to do this?
Hi,
I was looking something similar with winforms like
// in Form 1
this.Hide();
Form2 form = new Form2();
form.Show
// in Form 2
// if button pressed, Form 1 will be displayed, while Form 2 will be Hide.
I was trying my luck for FormEventHandler but doesn't know where to start.
Any suggestions/ideas?
I have a non-disposable class with Open/Close syntax that I'd like to be able to use, so I'm trying to inherit from it, and work the Open into the new and the Close into Dispose.
The second part is ok, but I can't work out how to do the Open:
type DisposableOpenCloseClass(openargs) =
inherit OpenCloseClass()
//do this.Open(openargs) <-- compiler no like
interface IDisposable
with member this.Dispose() = this.Close()
(cf. this question which I asked a long time ago, but I can't join the dots to this one)
I have a View where I can upload an image and the image is also displayed in there like this:
//ResourceStorage is a virtual directory that indicates to the pictures storage location
<img src='<%=Url.Content("~/ResourceStorage/Profile/pic.jpg") %>' alt='pic' />
after I upload the picture, on the hard drive I get the new "pic.jpg" but in the browser I still have the old one (I tried clearing the cache, doesn't help)
Hi,
I am using the Apache commons logging library and log4j to generate my log files.
Now I want to create a new file every time I run my program. The current count should be appended to the log file's name.
For example:
program_1.log
program_2.log
program_3.log
Do you know how I could achieve this?
I'm trying to display an map inside an iframe that has a needle which on mouseover shows some information about a certain company, the thing is once you click the link the page opens up inside the iframe which ruins the experience, so i was wondering is it possible to make the links inside an iframe open up in a new window instead perhaps using jquery or something similiar?
the code i have atm is
http://www.jsfiddle.net/rkd59/1/
How can I add a new page in the webapp directory in lift that can be accessed by users?
Currently only the index.html can be accessed through http://localhost:8080/ or http://localhost:8080/index.html
Say I add a static file newpage.html into webapp dir, then what can I do so users can access it through http://localhost:8080/newpage.html ?
I have a deployment project which will not let me install over an older version. The msi file says to uninstall the program first from Add/Remove programs. This is not a good user experience. How can I do it so that the installer will simply remove the software first and then install the new version?