Javascript Proxy support in Babel

Javascript Proxy support in Babel

I'm using babelify version 6.3.0 set to stage 0. ES6 / ES7 are working great. However when I try to use Javascript's proxy functionality:set product(product={}) { this._product = new Proxy({}, {})}I get:ReferenceError: Can't find variabl

CSS very thin font? [closed]

CSS very thin font? [closed]

How do I create very thin fonts with CSS, like at http://www.google.com/landing/newgadgets/ ?Right now I'm using this, but I'm on a mac and I don't think "Helvetica Neue" is supported on windows.h1{ font-size:64px; font-family:Helvetica N

Browser specific CSS padding for firefox field

Browser specific CSS padding for firefox field

I have a dropdown list in my application whereby in order to center it I must add padding-top 10px while on Mozilla Firefox but on google chrome it does not need the padding. How can I target the select list to set this browser specific. I

Why does Visual Studio disable the media buttons?

Why does Visual Studio disable the media buttons?

I've got iTunes running and the media buttons on my computer work with it. I've installed mmkeys.dll which has been recommended for making iTunes work with media keys in the background and it works fine with all apps - firefox, thunderbird,

How to call a controller method from a button in rails 4

How to call a controller method from a button in rails 4

So I feel really stupid right now, but I can't seem to find an answer.So I have a method which needs to be called EXACTLY once, and since this is only the experimental phase, I decided that a simple button should suffice. However, I can't s

“too many automatic redirections were attempted” error message when using a httpWebRequest in .NET

“too many automatic redirections were attempted” error message when using a httpWebRequest in .NET

I am attempting to request a page like "http://www.google.com/?q=random" using the webrequest class in vb.net.we are behind a firewall, so we have to authenticate our requests.I have gotten past the authentication part by adding my credenti

Assigning 'wrap_content' or '-2' to dimension

Assigning 'wrap_content' or '-2' to dimension

I want to create a dimension that would be equal to 'wrap_content' constant.So according to developer.android.com Reference I write:-2But ADT says: Error: Integer types not allowed (at 'horizontal_border_height' with value '-2')Asigning 'w

Set default value on Datetime field in symfony2 form

Set default value on Datetime field in symfony2 form

I have a form containing several fields. One of them is a Datetime field. How to define a default value for that field? I've tried setting a value on the related entity, in controller, in constructor and __construct :$myEntity = new MyEntit

Read XML file in android

Read XML file in android

I have an xml-file that contains data that I want to read. The code works in a desktop environment but I can't figure out how to store and read the file from an android device. Ideas? 1:Put the xml file in the assets folder and fetch it

Response.Redirect occasionally ignores URL encoding

Response.Redirect occasionally ignores URL encoding

In the website I'm currently building we need a large number of dynamic redirects, in order to maintain flow through parts of the site.I'm currently using response.redirect to achieve this, with the redirection URL being dynamically generat

Accessing asp. net development server external to VM

Accessing asp. net development server external to VM

Guys, been knocking my head against the desk (instead of the mac) for hours. I'm running VS 2008 in a parallels VM. I can access the development server in the VM if local host is used, if I use the designated ip for the VM or try to access

stream music with java

stream music with java

I am currently coding some chat program and now want to play music via a client command like:/music http://somewebsite.com/somesong.mp3So the link would be send from the client that sent the song, to the server. The server should then witho

Javascript Named Function Expressions in Internet Explorer

Javascript Named Function Expressions in Internet Explorer

Why does the following code not work in Internet Explorer (I've only tested in IE8 so far):(function(){ this.foo = function foo(){}; foo.prototype = { bar:function(){ return 'bar'; } };})();var x = new foo;console.log(x.bar())

Calculate initial velocity to move a set distance with inertia

Calculate initial velocity to move a set distance with inertia

I want to move something a set distance. However in my system there is inertia/drag/negative accelaration. I'm using a simple calculation like this for it:v = oldV + ((targetV - oldV) * inertia)Applying that over a number of frames makes th

Generic version control strategy for select table data within a heavily normalized database

Generic version control strategy for select table data within a heavily normalized database

Sorry for the long winded title, but the requirement/problem is rather specific.With reference to the following sample (but very simplified) structure (in psuedo SQL), I hope to explain it a bit better.TABLE StructureName { Id GUID PK, Na

How to apply row virtualization for a table / list in HTML/CSS/JS? [closed]

How to apply row virtualization for a table / list in HTML/CSS/JS? [closed]

I would like to create a custom HTML table/list with a lot of rows. I need row virtualization, but I'm not sure what's the best way to achieve this.By row virtualization I'm referring to the concept where the rows of the table/ul/div are n

WPF ToggleButton IsChecked Trigger

WPF ToggleButton IsChecked Trigger

This is driving me batty. I have a simple WPF toggle button, with two triggers for IsChecked. One for the value being true, and the other for the value being false. It works fine when the button is not checked, my style for false is appl

Filter for android ListView - Space Character

Filter for android ListView - Space Character

I want to filter my listView using an EditText box and using the adapter getFilter() function. It works just fine until I put a space character in the text box. Edit: It's a SimpleAdapter not ArrayAdapterIf my list contains these words: {"A

Delete user in active directory using c#

Delete user in active directory using c#

I've written some code but not works it throws Exception "An operations error occurred."code -DirectoryEntry dirEntry = new DirectoryEntry("LDAP path", "admin-username", "admin-password");dirEntry.Properties["member"].Remove("username-delet

Excel won't open/launch VSTO AddIn when running in debug mode of Visual Studio 2010

Excel won't open/launch VSTO AddIn when running in debug mode of Visual Studio 2010

I had previously installed the VS11 beta, and had some issues with my Visual Studio 2010 instance, which you can see here how they were resolved: Excel AddIn Click Once deployment issue.Now I have a code base which compiles/builds a vsto, w

iOS app crashes on resuming

iOS app crashes on resuming

(SEE UPDATE AT THE BOTTOM)Recently I've started getting a weird and rare crash of my iPhone app when it returns from background. The crash log consists of system calls only:Exception Type: EXC_BAD_ACCESS (SIGSEGV)Exception Codes: KERN_INVA

iOS Animate Dashed Rectangle Border

iOS Animate Dashed Rectangle Border

I have a UIImageView displaying an image. I want to "highlight" a portion of the image by drawing a rounded rectangle outline. I would like to have the outline drawn with a thick, dashed line that "animates" by continually varying where the

IOError: [Errno 22] invalid mode ('wb') or filename:

IOError: [Errno 22] invalid mode ('wb') or filename:

I keep getting the following error. IOError: [Errno 22] invalid mode ('wb') or filename: 'C:\\Users\\Viral Patel\\Documents\\GitHub\\3DPhotovoltaics\\Data_Output\\Simulation_Data\\Raw_Data\\Raw_Simulation_Data_2014-03-24 17:21:20.5450

C: Passing variable number of arguments from one function to another

C: Passing variable number of arguments from one function to another

So, here's a small problem I'm facing right now -> I'm trying to write a function that will accept a char* message and a variable number of arguments. My function will modify the message a little, and then It'll call printf with the message

Strange error in selenium after upgrading to chromedriver 2.28 needed for chrome 57

Strange error in selenium after upgrading to chromedriver 2.28 needed for chrome 57

After being forced to upgrading to chromedriver 2.28 to use selenium with chrome 57, I get the following error message:[0313/100022.689:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMainAny