Good morning,
I find myself participating in a hack day, but have no idea I'm sure about.
Anyone has an idea to propose :-/
Mostly something to do with Javascript, front-end. Some command line stuff can be thrown in.
But really I can use whatever platform I want - it's just that my experience and the environment is more like web and open source.
Thanks in advance for any answers.
I'd love to see a way to install putty as a php script that can be downloaded to your server and start using it right a way. This will facilitate connecting to any server world wide even if you are behind a proxy connection.
venam wrote
TheStunMan wroteI'd love to see a way to install putty as a php script that can be downloaded to your server and start using it right a way. This will facilitate connecting to any server world wide even if you are behind a proxy connection.
A php shell.
It's widely used for "destructive" purpose in inclusion exploits such as RFI and LFI.
Interesting how can we make it more like this (Run Putty from your browser with no installs.).
php shell as i understand is kinda the same thing but it acquires you to have good background on "php scripting shell" which is not what i'm looking for. I just want to have a putty simulator to be run on "http://mywebsite.com/putty.php" which i only have access to it (easy with .htaccess) and then i could use all same functions of regulator putty ssh etc..) on my browser. Because in most places (colleges/work/wifi hotspot) using ssh is forbidden.
There have been PHP shells since PHP became wide used, a while ago already.
I'm not sure they work on most hosting setups now.
I ended up trying to do a ping pong simulator. Very ambitious project and I had already lost lots of time. I ended up drawing a 3d ping pong table using HTML and CSS (perspective and translate), well just the upper part. It was hacky as I could not understand how these CSS properties affected the 3d, but I just kept changing the numbers until I got something that I liked.
I also did some work on a node server, but here again only very basic stuff.
I could continue work on it as a project.
Screenshots?
Joe wroteScreenshots?
Okay :) well it's more like a proof of concept, not even that.
I will push it to a repo and have it running on my server, as I would like to continue developing this idea. No need for screenshots, as it's all based on web technologies for the moment. Soon, I'll be back with a URL.
My HTML/CSS ping pong table :) (with a ball in the middle).
That thing on the left was supposed to be a building in the background.

rolf.technology/ping-pong

PS: Looks best in Chrome. Looks a bit warped in Firefox. No perspective at all in Safari, and untested in IE.
Sweet. Have you tried moving the ball on the table?
Joe wroteSweet. Have you tried moving the ball on the table?
The ball is just an absolutely positioned div, so it is easy, but it also needs perspective correction applied to it.
I am looking into canvas or webGL.
HTML/CSS could work too if I have a perspective correction calculation function in JS, and use an image for the table, or find a cross-browser way to apply perspective to divs.
I don't know how to begin applying perspective corrections :(
i'm sure its a simple math equasion. maybe applying a transformation to an xyz (3d coordinates) matrix, and can be looked up. not sure if i should go down that road, or just patch some libraries together.
6 days later
Update: studying ball physics.
http://weknowtoomuch.com/ping-pong/ball.html
Press space for pause/resume, and +/- (next to backspace on your keyboard) to slow down/accelerate
It's just a simple "study", using no libraries, just canvas and some javascript (product of my intuition).

This is what I want simulated:
- gravity (obviously)
- static wind resistance
- random wind deflection
- spin (affecting collision with table, bat, and ball trajectory)
- collision and rebound (obviously)

I'm looking into libraries such as physics.js. Here is an example that might be of use: http://jsfiddle.net/wellcaffeinated/KkDb6/
There is a Gihub repo if anyone is interested, but you can see the code in the HTML as well there is no server-side magic happening (yet!).

Note: I'm planning for the game to be 3D, but at the moment I'm only experimenting on 2 dimensions.