Jump to content

Friez

Members
  • Posts

    838
  • Joined

  • Last visited

Everything posted by Friez

  1. Journo's rarely double check stuff I can assure you of that! What I want to know is how they manage to recover data after a disk has been wiped a good few times, had loads of zeros written to it, and wiped again. I'm sure that all the sectors of the disk would be re-written to the zeros...
  2. You can't convert text to an image using raw HTML or CSS you will almost certainly need something like ASP or PHP, or if you're REALLY desperate then Java(script) the latter is a seriously gross solution though. Anyway, someones posted about ASP which I don't know much about. If you need a PHP solution here's what you should look up: You will need GD set up on your PHP (Instructions here) And to write text to images you will use the imagettftex function in PHP Syntax and Example code. Here is their example code: // Set the content-type header('Content-type: image/png'); // Create the image $im = imagecreatetruecolor(400, 30); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); // The text to draw $text = 'Testing...'; // Replace path by your own font path $font = 'arial.ttf'; // Add some shadow to the text imagettftext($im, 20, 0, 11, 21, $grey, $font, $text); // Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ?> You can modify that slightly to create a re-usable class. For example if I do this: ImageText.php // Set the content-type header('Content-type: image/png'); // Create the image $im = imagecreatetruecolor(400, 30); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); // The text to draw $text = $_GET['text']; // Replace path by your own font path $font = 'arial.ttf'; // Add some shadow to the text imagettftext($im, 20, 0, 11, 21, $grey, $font, $text); // Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ?> I would be able to do this in html: ImageText.php?text=HELLO! No prizes for guessing what the text says Nifty eh? Tweak as necessary Hope that helps! Edit Hmmm I might not fully understand the question re-reading it. The above is a solution to directly convert some text into an image that displays the said text. For hiding text in-line in the browser you should look into DHTML (Dynamic HTML) which DOES use Javascript, which is probably the only way you could do this if said text has to be written out to the browser in the first place (if you're using a preprocessor like PHP or ASP you should definitely process said text out in advance). Unlike CSS, DHTML will re-write the page once it has already been presented, thus removing the said text from the page (and replacing it with something else completely) rather than just hiding it with CSS.
  3. They're all as rubbish as each other and have no idea what to do. The first party that produces a solid solution as to how to resolve recession quickly and efficiently with proof that it's going to work gets my vote! Given modern technology my camera would be digital, therefore I will be able to take a photo not only at massive resolution, but I will also be able to put on a speed shutter to capture multiple frames at a fast rate should I miss any shots. When I run out of memory on my memory card, it is only a quick switch to put in another. Then I will be able to select the very best of the shots that I have taken and then experiment in photoshop to see if it is better in black + white, sepia or just straight colour. Result!
  4. We name ours like so for Curriculum machines: RoomName-Number e.g. T1-05 or L5-20 Student Laptops: Department-Lap-Number e.g. Science-Lap-05 Staff Machines: JobRole-OptionalNumber E.g. Assitant-Head-02 or Data-Admin Staff Laptops: Staff Initials And Department Initials - Laptop E.g. ABS-Laptop Our PC's in rooms are numbered from the door, clockwise around the room (so we can easily find a machine), if there's an island we count it before we count any on the opposite side. All our network points are also labelled like so: Cabinet Number/Patch Panel Number/Socket Number e.g. 4/3/16 So we can easily identify where the cable goes back to. Essentially, we know where things are As for serial numbers. We just have a spreadsheet with them mapped against, I wouldn't rename any machine to be any arbitary number or tag, a system where you know where things are works a treat.
  5. Yeah you could do it that way (session vars are handy especially for data you want to keep lurking around), or if you don't want to clutter up the session space, just make your YES have a ?somevariable=somevalue on the end to pass it into a $_GET on the page it refers to. Also beyond the functionality of your actual page some tips or pointers! Use POST rather than GET for forms unless it's absolutely necessary. Especially if the form is BIG. This Page describes the difference between POST and GET, but mainly a GET is passed via the URL itself. e.g. hxxp://www.edugeek.net/forums/newreply.php?do=newreply&p=259394 all the stuff after the ? is a GET, the $_GET['do'] is one variable and the $_GET['p'] is another. URLS can only be so long. Imagine if my entire post here was embedded into a GET, it probably won't happen. Make sure you sanitise your Input variables This is important. Imagine if I came across your site and decided to say the reason that I want pupils to access your site was because: '); DELETE * FROM users (Or something to that extent) be sure that everything that goes into your mysql query that's been provided by a user has been thoroughly sanitised. There are functions out there to do this for you. Google for SQL Injection Hack for info on this. Cleanliness! If you choose to go the way of the $_SESSION variable, when you're totally and utterly sure you're 100% done with the variable and don't need it again for that session be sure to unset($_SESSION['somevar']); otherwise you'll end up with a massive $_SESSION variable list. Hope that helps!
  6. Aye post code for sure. Also depends if you're running code across different php pages and/or frames. You can always do this at opportune locations in your PHP script to try and find out where it drops out: print_r($_GET); Will dump out the contents of your $_GET variable. Also make sure you're using $_GET and not the old-style way of just naming variables the same as a normal variable e.g. $_GET['site_address'] as opposed to $site_address, since accessing GET/POST in this manner can cause some security oopsies (should be locked off for the latest versions of PHP anyway). What I think is happening is this (Assumptions Made): You have a page like this: $addy = $_GET['site_address']; Are you sure you want to add this site? Yes No ... and in continue.php database_saving_bits($addy); Which of course won't pass on the GET to the next page (it's not carried across through multiple page reloads, you'll have to do that either via stuffing it into a sessioned page using $_SESSION and all the session_start() hoo-hah or, pass it in the URL as a second GET (like follows) $addy = $_GET['site_address']; Are you sure you want to add this site? Yes No ... and in continue.php $addy = sanitise_all_gets_before_hitting_db($_GET['addy']); database_saving_bits($addy); But that's just pure guesswork (and subtle pseudocodish made-up functions to hint some things) as to what your code looks like. I strongly advise you do the $_GET printing so you know exactly what point things dissappear though! Code would be nice to dissect
  7. Spec provided in above quotation! *rolls eyes* If you're after tiny, tiny PC's Advent (we've played with Advent 4211's) should do the trick, although it might not quite punch through in terms of power (and certainly not screen size), but it's small and costs very little. It'll certainly deal with web browsing, but it depends on how manic your photoshopping is I guess
  8. The plot thickens!
  9. To an extent, I think in breaktimes it's acceptable.
  10. I don't think this is very feasable from an admin perspective tbh.
  11. No, It's not me bashing teachers, It's a BBC article! Anyone else see this? Bit unfair on the woman to be honest, as I can think of a great deal more teachers who "fail to plan" and "cannot manage behaviour".
  12. I'm not that hot on VB, but I code C/C++/C#/Perl/PHP/ASM I'll go over the design/theory of the thing (applies to whatever language you may be using), but I won't list source codes (else I may as well be handing over a copy of mIRC). Firstly, you need to read up on SOCKETS. If it's a windows app, winsock should be right up your street. Sockets are what allow you to do the raw networking stuff. There are two types of sockets: Blocking and Non-Blocking. A blocking socket will sit and wait for data to recv() or send(), whereas non-blocking sockets use select() in order to see if theres data to be written/read and does so asynchronously. There's tutorials on the web for this sort of thing, go google. You need to decide what sort of sockets to use in your program. Additionally, You will want to consider how your app is going to function. Is it peer-to-peer, or is it client-server model? The easiest model to code for conceptually is client-server. At any rate, your network code will be shaped around your design decisions at this stage. If you choose the client-server model you will need to consider making two applications (obviously). The server will need to handle multiple connections (often simultaneously). Thus, a blocking socket would be insufficient. (For example: Server waits infinitely for a line of text from client A, client B sends some text, but server is still waiting for client A, so nobody gets an update until client A talks). To do this you need to do one of the following: Use Select() and non-blocking sockets. Use Multithreading (pthreads or microsoft threads) to spawn a 'worker thread' to handle that client exclusively (using a blocking socket), the thread provides "simultaneous" processing power as to prevent the other users from being blocked. Threads of course require you to be careful with design to ensure you don't end up causing deadlock or causing issues (resources are shared in the program, so writing to a variable not intended exclusively for a thread will change for ALL other threads, causing inconsistency if it's not policed). Now that you know what sort of tech you're looking at, you now need to design your app. Yes, design. At the least, make a finite state machine for your program(s) designing what states your program can get into. You will also need to design your networking protocol. It's quite likely you'll use TCP/IP for this (UDP is unreliable, but faster/less overhead, chances are you'll want the reliability of TCP for an app like this since it is quite lightweight, unlike a game). Ontop of that layer of the OSI model (go google) you'll be writing your own protocol. This is to handle the message interaction between client-server and server-client. E.g. Client sends message like so: [0][uSERNAME] - the first byte (0) indicates user is logging in/renaming to subsequent bytes in [uSERNAME] [1][MESSAGE] - the first byte (1) indicates user is sending a message to everyone in the chat [2][uSERNAME][1][MESSAGE] - the first byte (2) indicates the user is sending a whisper to a user. The username is specified up to the binary value of 0x1, and then the message is listed up to the end of transmission. As you can see, you need to put a lot of thought and design into this, plus have a decent understanding of network programming. Topics for you to research: Finite State Machines OSI Model Sockets / Winsock Multi Threading TCP/UDP Good luck!
  13. For Dance Music I highly recommend: imodownload.com and beatport.com
  14. Haha one of the photos in that game is actually on a road literally a stones throw away from where I work O_O
  15. IMHO your best bet is a switch in the other building connecting to a fibre line that routes back to one of your switches in another building, at least if you want reliability. WiFi to connect two buildings sounds like it could end in tragedy. But then surely the electricity that goes to my house, to the local power station is also physically connected to another building that connects to all the neighboring houses. Hmmmm. Isn't phone line also copper? I don't know! Seems unlikely, but what do I know? I'm no legal expert. At any rate, fibre will give you better bandwidth and reliability than wifi could ever achieve, and while you're at it, string a few through for redundancy measures, to save you digging it all up again. That's the ideal solution if money is no object!
  16. We've been on this proxy for quite a few months, it's a royal pain in the ass but hey-ho, life must continue. Seems we were thrown on early because we needed to change IP ranges (they changed our proxies while they were at it).
  17. Thanks for the research, quite a sneaky one too. Definitely one to look out for, especially with the number of students/teachers that can't follow instruction and put URL's straight into google.
  18. That's very interesting indeed! And it must be picking up specific referrers too, as we've clicked through on some other search engines and it's a-ok.
  19. Good finds, still confused as to how the search engines are linking the hi-jacked connection/virus but totally displaying info regarding the genuine site right down to the url you link to instead... Plus now we get inconsistent results with being through a proxy or not, so I'm not convinced the proxy has any bearing on it at all. Sometimes we get through to the proper website via clicking a google link, but we ALWAYS get through to the proper site by putting it into the web-address bar. What's more funky is to view the google cache, looks like executable code!
  20. DISCLAIMER DO NOT CLICK LINKS IN THIS THREAD UNLESS YOU'RE SURE YOU'RE TESTING IN A 100% SAFE ENVIRONMENT! With that over... Here is a pure funky issue we've come across and we would like your assistance please (although please be careful!) We had a report that our students were going to a legitimate school resource website and were instead being redirected to that nasty XP-Antivirus 2009 virus website. So off we go and dutifully investigate. The website we were going to is: (DISABLED TO PREVENT CLICK) www(DOT)sense-lang(DOT)org/typing/ If we enter the URL in the web browser directly, it goes through to the site just fine. However, if we go to google.com and search for "sense lang" and click the link there we get redirected to the antivirus-virus site. It redirects to antivirusonlivescan.com DANGER! - Browsing to this page may infect! Now, we were thinking at first it was a DNS attack, but no! If it was, it would surely go to the wrong site if we typed the url straight. So it must be something with the link. Google itself actually links straight to the site, and the site seems clean when directly going there. The URL in the bar actually changes which indicates it's not a DNS attack. It's very odd. Even more strange is that if we go unfiltered, we don't suffer this problem. This made us think it was a problem with one of our proxies/filters. There are two proxies/filters in our path: { Internet } -> SWGfL Proxies (staffproxy.swgfl.org.uk / proxy.swgfl.org.uk) -> Smoothwall -> { Us } We connected via both the staffproxy and the standard proxy and eliminated Smoothwall from the equation (as we were still having the problem if we were on the SWGfL proxies). To me, it seems like something has hijacked the SWGfL proxy. We tried a few other search engines, and made our own web-page which linked to sense-lang and some of these were safe. Our own link was clean, as was live.com and a few minor search engines. But using yahoo, altavista or ask.com returned virii infected links. If anyones brave enough to set themselves up a virtual machine session and test with proxies (even better if you're on the SWGfL) to see if you also suffer the same conditions to get erroneously linked off to said virus site. I for one am totally baffled as to how the redirect is happening. As for our machines, they're clean and have nod32 installed. We also deny exe files from being downloaded from every proxy in the pipeline. We are certain there isn't another virus sitting at our end. I'll be interested in peoples results, and please be careful! Thanks!
  21. Fixed.
  22. As silly as it sounds I dread picking up the phone if it is reception calling. 99.9% of the time it is spam, and we have too much on to spend time telling random salespeople that we don't have any money for their junk
  23. It's quite likely fault finding with a PC or maybe they will ask you to install some hardware.
  24. edudoodles are becoming the in thing! This needs a salute smilie, instead I'll just echo what everyone else has said
×
×
  • Create New...