How do you get a timestamp in JavaScript?

How do you get a timestamp in JavaScript?

How can I get a timestamp in JavaScript?Something similar to Unix's timestamp, that is, a single number that represents the current time and date. Either as a number or a string. 1:var timeStampInMs = window.performance && window.perform

Simple way to transpose columns and rows in Sql?

Simple way to transpose columns and rows in Sql?

How do I simply switch columns with rows in SQL?Is there any simple command to transpose?ie turn this result: Paul | John | Tim | EricRed 1 5 1 3Green 8 4 3 5Blue 2 2 9

Troubles with changing the font size in UITableViewHeaderFooterView

Troubles with changing the font size in UITableViewHeaderFooterView

Here is the problem,I subclass a UITableViewHeaderFooterView and want to change the font size:- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { // Initialization code self.textLabel.textC

Text was truncated or one or more characters had no match in the target code page including the prim

Text was truncated or one or more characters had no match in the target code page including the prim

I'm trying to import a flat file into an oledb target sql server database.here's the field that's giving me trouble:here are the properties of that flat file connection, specifically the field:here's the error message: [Source - 1894297910

Unable to post message to http://www.youtube.com. Recipient has origin https://www.youtube.com

Unable to post message to http://www.youtube.com. Recipient has origin https://www.youtube.com

My app at http://beta.billboard.fm is producing errors in my normal browsing session after playing a single song.If i reload the page in incognito, the app works fully. I only recently starting experiencing these issues. I have completed cl

Programmatically change title of UIButton whose title was set in IB as attributed

Programmatically change title of UIButton whose title was set in IB as attributed

I have changed titles of UIButtons before using:- (void)setTitle:(NSString *)title forState:(UIControlState)stateBut I've run into a situation where the UIButton I'm using has a mult-line title and will only center the text properly if chan

JavaFX TextField Auto-suggestions

JavaFX TextField Auto-suggestions

I want to make this TextField have suggestions feature just like in Lucene. I've searched all the web and I just find it for ComboBox.TextField instNameTxtFld = instNameTxtFld();private TextField instNameTxtFld() { TextField txtFld = new

xcode - How do I keep views locked into portrait mode, but still allow one view to rotate?

xcode - How do I keep views locked into portrait mode, but still allow one view to rotate?

I'm having a problem with device rotation. Except for ONE view, where I show a company splash screen, I want to lock all the remaining app views into Portrait display. In the project settings the supported orientations are Portrait and La

Python - Can I access the object who call me?

Python - Can I access the object who call me?

If I have this:class A: def callFunction(self, obj): obj.otherFunction()class B: def callFunction(self, obj): obj.otherFunction()class C: def otherFunction(self): # here I wan't to have acces to the instance of

Add a Windows Shell context menu entry for a specific extension (not file type)

Add a Windows Shell context menu entry for a specific extension (not file type)

To add a Windows shell context menu, let's say for .txt files - if the .txt extension in HKEY_CLASSES_ROOT (or in HKEY_CURRENT_USER\Software\Classes, doesn't really matter) has the default value (file type) txtfile - you add the command to

Avoiding HTML document reflows

Avoiding HTML document reflows

I have several hundred "row" elements like this: I need to get their clientHeight after they have been rendered on the page already. I know that the "clientHeight" property forces a reflow and this kills my performance since there are

Setting AVMutableComposition's frameDuration

Setting AVMutableComposition's frameDuration

I'm playing with the AVEditDemo project, from Apple's WWDC 2010 sample pack, and I'm trying to change the frame rate of the exported video. The video is exported using an AVMutableComposition on which the frameDuration is set like that:vide

Angular ng-show not working if parent has ng-if

Angular ng-show not working if parent has ng-if

I have a view where a parent div has ng-if on it, and some child element has ng-show on it. It seems that the ng-show isn't working correctly when nested under an element with ng-if on it. Is this an Angular bug or am I doing something wr

How to Prevent dialog (Basic Authentication prompt) during call of Webservice

How to Prevent dialog (Basic Authentication prompt) during call of Webservice

In a delphi program (running as a service) i need to call some webservices.The calls works fine if basic Authentications is not requerired. The calls also works fine if Basic Authentication is requerired and username/password is provided (i

WCF, Metadata and BIGIP - Can I force the correct url for the WSDL items?

WCF, Metadata and BIGIP - Can I force the correct url for the WSDL items?

We have a WCF service hosted on ServerA which is a server with no-direct Internet access and has a non-Internet routable IP address. The service is fronted by BIGIP which handles SSL encryption and decryption and forwards the unencrypted r

Adding the “ok glass contextual voice menu” within an immersion activity

Adding the “ok glass contextual voice menu” within an immersion activity

Is there a way to insert the "ok, glass" trigger into an immersion activity on Glass? I want to make the launch of my application as seamless and quick as possible. Making an immersion application seemed to be the way but I can not find a w

Composer: how to install `dev` packages in Symfony 2.3?

Composer: how to install `dev` packages in Symfony 2.3?

Trying to install the KnpGaufretteBundle in a Symfony 2.3 project, I'm having no luck. The problem is:minimum-stability:stable (in composer.json);the bundle I require is dev-master version still.Reading this in the Symfony docs was frustrat

Set up user permissions for Team Foundation Server 2010

Set up user permissions for Team Foundation Server 2010

We have installed TFS 2010 with success but wonder how to set the users permissions.We are small projects with five developers, a manager and a secretary. Each developer is working itself with one or more projects, we have no cooperation be

Changing content type in jax-rs REST service

Changing content type in jax-rs REST service

Forgive me, but I may not be familiar with all the lingo necessary to ask this question properly. I'm working on a fairly simple REST web service in Java using the org.apache.cxf.jaxrs.ext implementation of jax-rs. The method header is lik

In Java, is it safe to change a reference to a HashMap read concurrently

In Java, is it safe to change a reference to a HashMap read concurrently

I hope this isn't too silly a question...I have code similar to the following in my project:public class ConfigStore { public static class Config { public final String setting1; public final String setting2; public f

Jinja2 in Google App Engine

Jinja2 in Google App Engine

I have started using Jinja2 as my templating engine on Google App Engine (in Python).My question is this: Will bytecode caching work in production? It is working very well on the development server, but I read somewhere that bytecode cachin

Responsive css styles on mobile devices ONLY

Responsive css styles on mobile devices ONLY

I'm trying to make my responsive CSS styles work only on tablets and smartphones. Basically I have a style for desktop, a style for mobile: portrait and a style for mobile: landscape. I don't want the mobile styles interfering with the desk

Composite primary key in django

Composite primary key in django

I have a legacy db table which has composite primary key. I don't think I will be able to change the structure to include a surrogate key, as there is some code written that uses that table. And in django, I cannot use that table, as it doe

How to update elements of D3 force layout when the underlying data changes

How to update elements of D3 force layout when the underlying data changes

I'm using one of the force layout examples (http://bl.ocks.org/1153292) to show a network on my web site.I allow the user to choose which type of links to see at any given time. I notice that when I choose to see link type A, then add link

Git untracked files list is wrong

Git untracked files list is wrong

Somehow, git got it in its head that I have an untracked file (A directory that has been in my repository for quite some time, ~17 months). At any rate, I can't seem to convince git that this is not an untracked file. Furthermore, I can't r