I need to get the date in a specific locale using JavaScript - not necessarily the user's locale. How can I do this?
I did some research and found date.getUTCMonth() and date.getUTCDate(). How can I use this or something else to get the date in a certain locale?
I want to show the contents of a file given by a path at a specific state of a git repo. I unsuccessfully tried this:
git show f825334150cd4bc8f46656b2daa8fa1e92f7796d:Katana/source/Git/GitLocalBranch.h
fatal: ambiguous argument
'f825334150cd4bc8f46656b2daa8fa1e92f7796d:Katana/source/Git/GitLocalBranch.h': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
The commit in question didn't modify the file specified. How can I show the contents of a file at a given state (specified by a commit hash) regardless of the involvement of the file in the commit?
Hi I am new as a Iphone developer.
I am wondering how to get the length of a given string under one specific UIFont, WITHOUT line word wrap.
say I have a NSString* lpText = @"a unknon lenght string ..... string" //could be very long
and I am using the "Times New Rome" font for rendering...
Any idea?
Thanks in advance.
Dears,
how can i trigger a prompt (or flash message with links) display (notifying) for one of the logged in agent (specific agent screen) on my web application when receiving a request from a client.
using rails and jquery.
as my application is serving a call center, and the my client request ... when a call coming to the system a prompt appears to an agent this call dedicated to with some info from the call.
With the new ConcurrentBag<T> in .NET 4, how do you remove a certain, specific object from it when only TryTake() and TryPeek() are available?
I'm thinking of using TryTake() and then just adding the resulting object back into the list if I don't want to remove it, but I feel like I might be missing something. Is this the correct way?
Hello! cud anyone help me with a software which installs favourite softwares all at once but giving the option of specific location to be installed.I would like to make sure that my application is installed in the correct location on the hard drive or allow the user to determine the install location. How can I do that?
Thanq
We have a bunch of malformed XML files used in unit tests to check if our application can handle them.
Eclipse marks this XML files with errors, polluting the "problem view".
Is there a way to exclude a specific folder from Eclipse validators?
Is it possible to update a directory to a specific revision without cloning the whole repository (local or on a central server) in Mercurial? This would be great, because to clone the whole repo first takes to much time for me. As example: default and the b2.3 branch from which I want to update.
Thanks in advance! :)
Is there a way to know when a specific process is "stuck" in Java?
I'm running an external application from my java program. Sometimes, this app hangs. I would like to know when this app stops working so I can kill it from my code. I'm thinking of some type of monitoring from a different thread in my code.
Any toughts?
Hi,
What way or which profiler tool I should use to see a specific web page's memory consumption?
Does it make a difference if it belongs to a TAB in an individual browser window?
Thanks
Suppose that I have an object then how could I know if the object is derived from a specific generic class. For example:
public class GenericClass<T>
{
}
public bool IsDeriveFrom(object o)
{
return o.GetType().IsSubclassOf(typeof(GenericClass)); //will throw exception here
}
please notice that the code above will throw an exception. The type of the generic class cannot be retrieved directly because there is no type for a generic class without a type parameter provided.
Our project uses Git as the version control system and recently I needed to review someone's commits. How can I see a list of commits made by a specific user?
How to scroll down / up to the specific position by using JavaScript in BlackBerry web browser?
Are properties like scrollOffset, scrollTop, scrollLeft etc. are supported? If not what code can be used?
Hi,
I'm developing JSP/Servlets App,and I want to execute a service at a specific time , for example :
For each day at 10:00 AM , delete any
attachment from the "attachment" table
in the database where column X== NULL.
How can I do this in JSP/Servlets application ?
I use Glassfish as a server .
Hiya,
I have a simple set of images nested in a div tag, I'm just wondering how I can chose an item with a specific index programatically?
var n = new Array();
n.push(a);
n.push(b);
n.push(c);
n[1]; // b
How do I do this in JQuery?
Thanks
I would like to create an Intent that opens the messages application in a specific conversation.
If a short message notification is clicked Logcat reveals the following:
INFO/ActivityManager(31909): Starting activity: Intent { act=android.intent.action.VIEW dat=content://mms-sms/conversations/3 flg=0x34000000 cmp=com.android.mms/.ui.ConversationList bnds=[0,586][600,682] }
This brought me a little bit further using content://mms-sms/conversations/3 as the data starts up the messages app in the correct conversation. I now only need to find out which conversation a message belongs to.
How can one select a specific sibling of a context node using jQuery? Specifically, given context node myContextNode select the sibling span with class myClass.
document.evaluate("../span[@class='myClass']",
myContextNode, lu, XPathResult.FIRST_ORDERED_NODE_TYPE, null).
singleNodeValue;
Hi,
I've a file that was written on windows with encoding WINDOWS-1256, and I need to write a C program that reads bytes from this file and write them back to a new file with UTF-8 encoding.
How to read a file with a specific encoding in C ??
Is it possible to load a short video file and - once loaded - select a specific frame and display that frame in a view? If there is no native support for this, how about an open source alternative?
Thanks in advance.
-Doug
I have a page with news item titles, clicking each one ajax loads a full news items including a photo thumbnail. I want to attach a lightbox to the thumbnails to show a bigger photo.
I have two options (i think):
.live()
.
$('img .thumb').live('click', function())
add a specific id based listener on callback of the news item click
.
$('div.news_item').click(function(){
var id = $(this).attr('id');
//click
show_news_item(),
//callback
function(){$(id+' .thumb').lightbox();}
})
I need to somehow show the userd that the a specific column in a datagridview is editable. I want to add a fixed3d border only to that coulmn but couldn't find how to. How can I do that or any other creative idea on how to solve this problem - showing the cell can be edited?
I've got a window.location function that redirects to a site that is not programmed by me. When the window is relocated I need it to focus on a specific div tag (with an id) within that page. Is there a way for me to do that if the page is not mine and I do not have access to the code?