If you hover over a standard library Java method in Eclipse, you get a hover over dialog. How can you change the color of the text in that hover over dialog ?
Thanks,
Ankur
I am in the process of switching my development environment from sqlite3 to postgresql 8.4 and have one last hurdle.
In my original I had the following line in a helper method;
result = Users.find(:all, :order => "name collate NOCASE")
which provided a very nice case-insensitive search. I can't replicate this for postgresql. Should be easy - any ideas?
Thanks.
Is it possible to detect all the hotkeys registered by the OS as well as software applications currently running? Any native or managed approach on the Windows platform? I know that the RegisterHotKey function returns false if the hotkey is already registered, but what I am looking for is an approach, method, etc. that will give me a list of registered hotkeys. Looping all possible combinations with RegisterHotKey does not sound like a good idea. Anything more efficient?
MATLAB has two ways of organizing classes:
@-directories:
@ClassName\
ClassName.m
Method1.m
Method2.m
Single files:
ClassName.m:
classdef ClassName
methods
% all methods included here
end
end
The first style existed before the new classdef syntax, but seems to be a more structured way of doing things. The second style (everything in a single file) is new.
Which method do you use, and why?
Hi,
i was wondering, how can i extract thumbnail from a flash-video file, then display it in a listbox.
the listbox is suppose to have many videos which i need to extract thumbnails from programatically with actionscript.
the flash-player is going to be on the web, and the extraction must happen when the swf file is loading, therefore, the method must not be too time-taking.
how do i go on about doing so? is this even possible?
tnx in advance
Hi.
Should we use de java.util.Date object in java?
It has so many Deprecated methods that is a little anoying to have to use a complex method to something that should be so simples.
I am using something stupid to emulate getDate() like:
public static int toDayMonth (Date dt)
{
DateFormat df = new SimpleDateFormat("dd");
String day = df.format(dt);
return Integer.parseInt(day);
}
It has to be better way...
I'm integrating with an existing servlet that pulls some properties out of the HTTP header. Basically, I'm implementing an interface that doesn't have access to the actual request, it just has access to a map of k-v for the HTTP headers.
I need to pass in a request parameter. The plan is to use a servlet filter to go from parameter to header value but of course the HttpServletRequest object doesn't have an addHeader() method.
Any ideas?
I want to be able to do Artist.case_insensitive_find_or_create_by_name(artist_name)[1] (and have it work on both sqlite and postgreSQL)
What's the best way to accomplish this? Right now I'm just adding a method directly to the Artist class (kind of ugly, especially if I want this functionality in another class, but whatever):
def self.case_insensitive_find_or_create_by_name(name)
first(:conditions => ['UPPER(name) = UPPER(?)', name]) || create(:name => name)
end
[1]: Well, ideally it would be Artist.find_or_create_by_name(artist_name, :case_sensitive => false), but this seems much harder to implement
Is there any method for setting tick marks for UISlider. NSSlider has something called
- (void)setNumberOfTickMarks:(NSInteger)numberOfTickMarks. But UISlider does not appear to have one.
Is there some sort of exception in Java to catch an invalid Date object? I'm trying to use it in the following method, but I don't know what type of exception to look for. Is it a ParseException.
public boolean setDate(Date date) {
this.date = date;
return true;
}
In Fabric, there is a "sudo" method which allows one to run the sudo command on remote server. How do I run sudo command on local server? Like, should I use the following command?
local('sudo rm -R /home/user1/tmp/')
I tried to use the fabric api sudo() and point to localhost but it doesn't work.
Thanks!
is there a way to get the current UIView object, which i defined in
- (void)viewDidLoad
to use/change them in another method in the same .m file?
thanks
Is there a method to detect what APIs are being called? Say I wanted to detect any application that uses the ReadProcessMemory API for instance. How doable is this in C#?
Hi there,
I have a strange issue where i have a a HttpHandler having its ProcessRequest() event firing twice.
i have nothing else in the class except a pointer to a static method so i'm lost.
I have done some googling to no avail even thought it appears a few people are having similar issues:
Code:
public bool IsReusable
{
get { return true; }
}
public void ProcessRequest(HttpContext context)
{
Common.Tracker.TrackPageView(context);
}
The .NET MemoryStream does not appear to have a .Reset or .Clear method.
I was thinking of using the following code to accomplish this:
ms.Seek(0, IO.SeekOrigin.Begin)
ms.SetLength(0)
What is the proper way to clear or reset an existing .NET MemoryStream?
I'm trying to, inside a dropevent method, find out which widget was just dropped. I tried looking at the docs, but they only have commands for images and text. How do I access both the item just dropped and which widget it was dropped on?(this is drag and drop inside of a QTreeWidget)
Hi!
Is there any library or method to input a String with html code, and which has a return value another String whitout this htmlo code, just the information???
I am watching libraries such JTidy, or HtmlParser, but I don't know how to use it!
Something easier???
Thank you!
Is there a way that I can trace every method, basically a line trace, in an asp.net web site in production environment?
I don't want to go about creating db logging for every line - i see an intermittent error and would like to see every line called and performed by the website per user.
Hello all,
i'm trying to HyperLink images in richtextbox. all i want to know is how to get the index of the selected image or text to be able to insert the hidden text after the selected image as richtextbox.Insert() method requires the index to start inserting from.
thanks
When you have an application and send a select command, the sql server gathers all the data and sends them back to your application and fills your datagrid (for example)
If you performed the same select command in sql management studio, immediately as the query starts running and finding data the results panel would start filling with the data found.
How can I do that for my winforms application?
Is there a technique or a standard method of doing something like this?
Links to good examples would be an immense help.
thanks
(Silverlight 3)
Is there a pre-existing (preferably free, even better if open source) method (either a control or source code) for dragging a "marching ants" style selection on an image in a ScrollViewer or on a Canvas, similar to how it's done in image editing software?
Even better if the resulting selection box has adjustment handles.
Hi folks,
I am using Gmail sender function defined here to send a mail to the predefined mail id. But my problem is that i want to embed more text into the body of my mail... The Gmail sender is only accepting one sting to be embedded into the body of the mail. Can anyone tell me how to embed more strings into the body of the mail... If Gmail sender is not efficient method to send a mail then please suggest me an alternative with an example....
When dealing with a collection of key/value pairs is there any difference between using its Add() method and directly assigning it?
For example, a HtmlGenericControl will have an Attributes Collection:
var anchor = new HtmlGenericControl("a");
// These both work:
anchor.Attributes.Add("class", "xyz");
anchor.Attributes["class"] = "xyz";
Is it purely a matter of preference, or is there a reason for doing one or the other?
I'm looking to have a livechat service integrated within a site where I can create chat rooms on the fly based on participants tied to that specific area... Anyone recommend using a 3rd party service I can install on the server that integrated easily with .NET, or just build one using polling method? I'd like something with socket connection, but not sure what's out there that either cheap or free that I can use.