sebastian-thomas

1

votes
2

answer
4.4k

views

.htaccess to enable loading of js and css files

i was enabling clean urls by editing .htacces with the following code RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([a-zA-Z0-9]+)/(.+)/$ index.php?page=$1&option=$2 [L] RewriteRule ^([a-zA-Z0-9]+)/(.+)$ index.php?page=$1&option=$2 [L] RewriteR...
Sebastian Thomas
1

votes
2

answer
1.1k

views

How to show error state for wrong password on Firebase Simple Login email password

I'm using Firebase's Simple Login as an admin login for a blog format site. The correct email and pw combo gives write access to the db on Firebase. Following the documentation I have created separate chunks. The auth var: var chatRef = new Firebase('https://fiery-fire-291.firebaseio.com/'); var au...
Sebastian Thomas
6

votes
1

answer
6.1k

views

Process.Start(“explorer.exe”); won't bring back taskbar

As of right now, I am working on a mock up OS via WinForms to use as a prop for movies. Upon running the application, it kills explorer.exe so that you can't accidentally have the windows task bar show up during a shoot. The issue is, upon closing the mock OS I would like for explorer.exe to be star...
2

votes
2

answer
3k

views

How do I fix connect.router?

I'm working my way through Node for Front End devs, and as people on SO have already pointed out, Connect no longer has a module for routing. Some people have advised using Express, but I'm unsure of the exact syntax. The example I am working through is hosted here: github.com/garann/node-for-fronte...
Sebastian Thomas
1

votes
3

answer
4.1k

views

create an array of class instances in java

I am pretty new to java. I want to have an array of a class whose length may vary during run time code: class Num { ...... ...... } if Num is my class , how will i create new instances. My current code is pretty similar to: Num n[ ]; int length=0; . . . n[length++]=new Num(); from this code I'm ge...
sebastian-thomas
3

votes
0

answer
361

views

What is the best way to mix clickable SVG polys and divIcon markers in Leaflet.js?

I have a map which pulls in GeoJSON polygons and points. I represent these using the standard Leaflet methods to create SVG and html markers respectively. To get an idea: http://i.imgur.com/GSJSZIc.jpg SVG = blue, markers = green. Leaflet creates 'panes', div.leaflet-overlay-pane for the SVG, and...
Sebastian Thomas
3

votes
4

answer
7.2k

views

UNET Client Cant Send Server Commands, Host Can

So as the title suggests, I'm having a problem where commands being sent by the client are not triggered. The basic functionality I'm trying to get working is that when an enemy is in front of the player and I click, that player will be momentarily stunned. Works fine if I'm host, and both sides pe...
2

votes
2

answer
298

views

Broken MIDI File Output

So, I'm currently trying to implement my own single track MIDI file output. It turns an 8 x 8 grid of colours stored in multiple frames, into a MIDI file that can be imported into a digital audio interface and played through a Novation Launchpad. Some more context here. I've managed to output a file...
2

votes
1

answer
1k

views

Leaflet: How to get pixel position of a lat lng after zoom, before zoom begins

I want to transform:translate an SVG group to a latLng pixel position, and maintain that position after zoom. I've tried: map.on('zoomend', function(e) {...}); http://jsfiddle.net/L8dnsrnk/15/ But obviously that only fires after the zoom, so the SVG doesn't move as fluidly as, say, the marker does....
Sebastian Thomas