• Questions That Don't Need Their Own Thread v3
    4,068 replies, posted
  • You see those long dashes on the sides of "it costs nothing" How get? [IMG]http://i.imgur.com/xWKUW.png[/IMG]
  • [QUOTE=-Kesil-;35439182]You see those long dashes on the sides of "it costs nothing" How get? [IMG]http://i.imgur.com/xWKUW.png[/IMG][/QUOTE] — [editline]5th April 2012[/editline] [img_thumb]http://img14.imageshack.us/img14/3122/charmap.png[/img_thumb] WinKey + R --> charmap
  • How can I get my site to work with Mobile devices? When I get on k8r from my phone it insists on zooming out so far that I can't see the text. I want the width of my phone to dictate the width of the screen. How does that begin to happen? [highlight](User was permabanned for this post ("Alt of permabanned user Haley" - Gran PC))[/highlight]
  • [QUOTE=-Kesil-;35440297]How can I get my site to work with Mobile devices? When I get on k8r from my phone it insists on zooming out so far that I can't see the text. I want the width of my phone to dictate the width of the screen. How does that begin to happen?[/QUOTE] Make a separate mobile site?
  • [QUOTE=-Kesil-;35440297]How can I get my site to work with Mobile devices? When I get on k8r from my phone it insists on zooming out so far that I can't see the text. I want the width of my phone to dictate the width of the screen. How does that begin to happen?[/QUOTE] Nice to see you got rated dumb for a pretty innocuous question. It's fairly simple in theory - don't use fixed widths, or at least strongly avoid them, use CSS Media Queries when you need to adjust the page style depending on the device (but be wary of needless repetition), and make use of the Viewport meta tag: [url]https://developer.mozilla.org/en/CSS/Media_queries[/url] [url]https://developer.mozilla.org/en/Mobile/Viewport_meta_tag[/url]
  • [QUOTE=-Kesil-;35440297]How can I get my site to work with Mobile devices? When I get on k8r from my phone it insists on zooming out so far that I can't see the text. I want the width of my phone to dictate the width of the screen. How does that begin to happen?[/QUOTE] Apple has also implemented meta tags to control how the page is displayed and how it reacts to events like zooming out. [URL]http://mobile.tutsplus.com/tutorials/iphone/iphone-web-app-meta-tags/[/URL] Good resource for that. I lost the link to the Apple developer documentation for it, sorry. [editline]5th April 2012[/editline] Oh damn it Stinky! (Mine has other meta tag uses though)
  • [QUOTE=-Kesil-;35440297]How can I get my site to work with Mobile devices? When I get on k8r from my phone it insists on zooming out so far that I can't see the text. I want the width of my phone to dictate the width of the screen. How does that begin to happen?[/QUOTE] it's called 'responsive web design' and is quite a hot topic at the moment, look it up
  • Anyone know of any PHP math libraries. I'm looking for Vector3D and Vector2D classes - and I want to check before I write them myself.
  • [QUOTE=Alcapwne;35441592]it's called 'responsive web design' and is quite a hot topic at the moment, look it up[/QUOTE] Tip for -Kesil-: Some people think it's smart to use user agents, don't. [editline]5th April 2012[/editline] [QUOTE=garry;35442844]Anyone know of any PHP math libraries. I'm looking for Vector3D and Vector2D classes - and I want to check before I write them myself.[/QUOTE] Just curious, what's this for?
  • Are browser [B]extensions[/B] written in javascript? or... I notice that the Silver Bird (twitter [B]extension[/B]) works in Mac's Google Chrome and Windows7's Google Chrome. So I doubt that it's written in C or C++. But I also highly doubt it's written in "Chrome Code" simply because I've never heard of it. I wish to make a browser plugin for Chrome and FireFox. Depending on exactly how it is done [[ which I'm thinking there are simply just special javascript handles that each browser has and that's the only difference ]] I might be able to do both. [editline]5th April 2012[/editline] extension* (changed from "plugin") ---------AND SO I WAS GIVEN THIS----------- [url]http://code.google.com/chrome/extensions/getstarted.html[/url]
  • [QUOTE=-Kesil-;35443514]Are browser [B]extensions[/B] written in javascript? or... I notice that the Silver Bird (twitter [B]extension[/B]) works in Mac's Google Chrome and Windows7's Google Chrome. So I doubt that it's written in C or C++. But I also highly doubt it's written in "Chrome Code" simply because I've never heard of it. I wish to make a browser plugin for Chrome and FireFox. Depending on exactly how it is done [[ which I'm thinking there are simply just special javascript handles that each browser has and that's the only difference ]] I might be able to do both. [editline]5th April 2012[/editline] extension* (changed from "plugin") ---------AND SO I WAS GIVEN THIS----------- [url]http://code.google.com/chrome/extensions/getstarted.html[/url][/QUOTE] Firefox extensions are written in Javascript. Don't know about the other ones though.
  • [QUOTE=garry;35443937]never mind.. already made one now :x[/QUOTE] There's not a whole lot of exciting options going on in PHP when it comes to Math-centric development. There's the very basic fNumber: [URL]http://flourishlib.com/docs/fNumber[/URL] and friends. There's the archaic PHP/Math library: [URL="http://www.phpmath.com/build02/"]http://www.phpmath.com/[/URL] And then there's all the icky miscellaneous user-released code mashes. Doing it yourself was probably the fastest and cleanest option, really. Want to share what you came up with?
  • What I did isn't that great - but it works for now. I never realised you couldn't so operator overloads in PHP, that just seems crazy. They really seem militant towards the idea too. I added static functions to replace it, so that $a = $b - $c becomes $a = Vector2D::GetSub( $b, $c ) It's incomplete because I've only filled in what I needed. [php]<?php class Vector2D { public $x; public $y; public static function GetSub( $a, $b ) { $o = new Vector2D( $a ); $o->Sub( $b ); return $o; } public static function GetMul( $a, $b ) { $o = new Vector2D( $a ); $o->Mul( $b ); return $o; } public function __construct( $x = 0, $y = 0 ) { $this->Set( $x, $y ); } public function Set( $x, $y = 0 ) { if ( is_object( $x ) ) return $this->Set( $x->x, $x->y ); $this->x = $x; $this->y = $y; } public function Sub( $v ) { $this->x -= $v->x; $this->y -= $v->y; } public function Add( $v ) { $this->x += $v->x; $this->y += $v->y; } public function Mul( $v ) { $this->x *= $v; $this->y *= $v; } public function ToString() { return "$this->x $this->y"; } };[/php]
  • [QUOTE=-Kesil-;35443514]Are browser [B]extensions[/B] written in javascript? or... I notice that the Silver Bird (twitter [B]extension[/B]) works in Mac's Google Chrome and Windows7's Google Chrome. So I doubt that it's written in C or C++. But I also highly doubt it's written in "Chrome Code" simply because I've never heard of it. I wish to make a browser plugin for Chrome and FireFox. Depending on exactly how it is done [[ which I'm thinking there are simply just special javascript handles that each browser has and that's the only difference ]] I might be able to do both. [editline]5th April 2012[/editline] extension* (changed from "plugin") ---------AND SO I WAS GIVEN THIS----------- [url]http://code.google.com/chrome/extensions/getstarted.html[/url][/QUOTE] do you even fucking google before posting
  • [QUOTE=Silentfood;35449461]Some good, free icon packs?[/QUOTE] I posted some packs a couple weeks ago in [url=http://facepunch.com/threads/1165950?p=34891409&viewfull=1#post34891409]this thread[/url], there are some really nice ones there.
  • I'm having a bit of trouble with Apache and virtual hosting, I've got 2 domains and 1 web server (VPS). I've got both domains with an A record pointing to the IP of my VPS and I've setup the apache2.conf correctly (as far as I know). One domain works fine (adam-wilson.me) yet the other (xenforge.co.uk) only seems to work when I put www infront of it. Here's an image to describe it easier: [img]http://i44.tinypic.com/jrp9ht.png[/img] Anyone have any idea what's going on?
  • [QUOTE=Adzter;35452547]I'm having a bit of trouble with Apache and virtual hosting, I've got 2 domains and 1 web server (VPS). I've got both domains with an A record pointing to the IP of my VPS and I've setup the apache2.conf correctly (as far as I know). One domain works fine (adam-wilson.me) yet the other (xenforge.co.uk) only seems to work when I put www infront of it. Here's an image to describe it easier: [IMG]http://i44.tinypic.com/jrp9ht.png[/IMG] Anyone have any idea what's going on?[/QUOTE] It's been a while since I used Apache. I assume you have the same A records for each domain (@ and www). This is what I used to do IIRC: ServerName domain.co.uk ServerAlias [URL="http://www.domain.co.uk"]www.domain.co.uk[/URL] You might want to split the first domain into it's own document root like you did with the second domain as well.
  • [QUOTE=Sc00by22;35453938]It's been a while since I used Apache. I assume you have the same A records for each domain (@ and www). This is what I used to do IIRC: ServerName domain.co.uk ServerAlias [URL="http://www.domain.co.uk"]www.domain.co.uk[/URL] You might want to split the first domain into it's own document root like you did with the second domain as well.[/QUOTE] Thanks, that managed to fix it.
  • A friend of mine has had his webserver compromised. A bunch of base64 encoded PHP shite was injected into the top of most PHP files, a "n3tshell" PHP shell in the vBulletin 4.1.8 /forums directory, a weird "334or0r.php" or something in another directory with more base64 crap in it. Stuff like that. Obviously the site's been compromised but I'm wondering if there's a quicker way to search for the source of the exploit without me having to audit every bit of his PHP code? The damage seems to spread across multiple directories and I'm having trouble figuring out the source. Looks like the HTTP logs have been wiped too. What would you guys do? I'm not actually sure that this is web development now that I've posted it, but I figure this is the forum where people might have more of a clue on how to find the point of compromise. [editline]7th April 2012[/editline] It looks like this "god_mode_on" virus that's supposedly doing the rounds on some Wordpress sites, however he doesn't host Wordpress so I've got no clue how that's related.
  • Is it shared hosting? Another account might have been compromised and the exploit got spread around. [QUOTE=Adzter;35452547]I'm having a bit of trouble with Apache and virtual hosting, I've got 2 domains and 1 web server (VPS). I've got both domains with an A record pointing to the IP of my VPS and I've setup the apache2.conf correctly (as far as I know). One domain works fine (adam-wilson.me) yet the other (xenforge.co.uk) only seems to work when I put www infront of it. Here's an image to describe it easier: [img]http://i44.tinypic.com/jrp9ht.png[/img] Anyone have any idea what's going on?[/QUOTE] I'm pretty sure you don't need a separate www entry for your website unless you want visitors to have to enter it.
  • [QUOTE=AMD 32;35463039]A friend of mine has had his webserver compromised. A bunch of base64 encoded PHP shite was injected into the top of most PHP files, a "n3tshell" PHP shell in the vBulletin 4.1.8 /forums directory, a weird "334or0r.php" or something in another directory with more base64 crap in it. Stuff like that. Obviously the site's been compromised but I'm wondering if there's a quicker way to search for the source of the exploit without me having to audit every bit of his PHP code? The damage seems to spread across multiple directories and I'm having trouble figuring out the source. Looks like the HTTP logs have been wiped too. What would you guys do? I'm not actually sure that this is web development now that I've posted it, but I figure this is the forum where people might have more of a clue on how to find the point of compromise. [editline]7th April 2012[/editline] It looks like this "god_mode_on" virus that's supposedly doing the rounds on some Wordpress sites, however he doesn't host Wordpress so I've got no clue how that's related.[/QUOTE] how much access does he have to the server, i.e. as the dude above me said is it shared hosting or is it a full server environment?
  • I think it's shared hosting. Bluehost.com. He (and now I) have got FTP and SSH access to the server. I guess it's possible that it could have been another user who got compromised, but how would say, a Wordpress exploit, affect another user? Wouldn't the script only have the permissions of its owner? It looks like one of the projects he was hosting has had extra code added, and it doesn't look automated. Someone added an else clause to a mysql_num_rows==0 check, and included that 33r04.php file or whatever. I'm pretty sure there's at least one SQL injection exploit in the site, but how would you be able to use that to create/download another file (e.g. PHP shell)?
  • A privilege escalation exploit could allow an attacker in one account to gain access to other accounts. These things are mostly automated, but once an attack works it alerts the person behind it to what's going on. My site was hacked through a wordpress exploit, the attacker hid the exploit code in a script I was working on that was entirely unrelated, etc.
  • [QUOTE=AMD 32;35470033]I think it's shared hosting. Bluehost.com. He (and now I) have got FTP and SSH access to the server. I guess it's possible that it could have been another user who got compromised, but how would say, a Wordpress exploit, affect another user? Wouldn't the script only have the permissions of its owner? It looks like one of the projects he was hosting has had extra code added, and it doesn't look automated. Someone added an else clause to a mysql_num_rows==0 check, and included that 33r04.php file or whatever. I'm pretty sure there's at least one SQL injection exploit in the site, but how would you be able to use that to create/download another file (e.g. PHP shell)?[/QUOTE] I've managed to gain root access on a bluehost machine once, I can only assume they're a bit lax on security some times.
  • Can anyone help me out with setting up a small WampServer? I'm still in the process of learning more HTML, as I can only create basic web pages at the moment, so I'm not going to buy a domain/hosting yet. I just want something basic that I can host files on, and share it with friends. I used [url=http://www.wikihow.com/Host-Your-Own-Website-for-Free]this tutorial[/url] to setup a WampServer, followed all the steps, but when I went to load my website on my browser, it said 403 Forbidden, and that I don't have access. I also tried this on my phone and another computer, with the same result. I did a quick Google search, but the only thing I found was someone who said to replace the "Deny from all" with "Allow from all" in the file 'phpmyadmin.conf'. I did that, but the problem still continued. Does anyone know how to fix this, or if there are any alternatives for me? Again, while I'm in my learning stage, I don't want to buy a website or turn to Webs.com or something similar. Thanks! ALSO: Once I've gotten a good amount of skill in HTML, where should I go from there? I've signed up and done a few lessons on CodeAcademy for JavaScript, but I'm not sure what I to really delve into and learn. I've seen a lot of mixed opinions on PHP, some saying it's useful, and others saying it's more harm than good. [editline].[/editline] OK, the WampServer works now, but it's only a local thing. So I guess I'm back to using Webs.
  • [QUOTE=Ninja Duck;35534917]things about WAMP[/QUOTE] If you forward port 80(HTTP) then other people can connect to your Apache server with their browsers using your IP/Domain to see your website. If you just want to learn HTML/Javascript though, you dont need a server. Just make your HTML files and open them in your browser, no server needed unless you want it to actually be online
  • If you have the space there's no reason not to use a normal web server, browsers place certain restrictions on files loaded directly off the hard drive (Which simply aren't there if you use a server)