Jump to content

Friez

Members
  • Posts

    838
  • Joined

  • Last visited

Everything posted by Friez

  1. The only thing that I can really think of straight up: Make sure session_start() is the first thing that is called and nothing else gets output to the browser (including any header() calls).
  2. Windows actually comes with a tool for shutting down computers, I'm still amazed at the amount of 3rd party solutions out there http://www.microsoft.com/windowsxp/using/helpandsupport/learnmore/ballew_commandline.mspx Examples: shutdown -m \\somecomputer -s -t 120 -c "All systems are shutting down, please save your work." This will shut down the machine after a 120 second countdown with the message supplied. We usually run this to give straggling users a chance to save their stuff before we force them off. shutdown -m \\somecomputer -s -t 1 We simply reduce the time to 1 second if we're pretty sure we want the machines off in next to no time shutdown -m \\somecomputer -r -t 1 Restarts the specified machine immediately. shutdown -m \\somecomputer -a Abort a shutdown after it has launched (provided you get in on time) Throw some of this into a batch file (say: entire rooms) and you have yourself one powerful offswitch and no additional software needed Of course if you want to do some stuff like locking pc's e.t.c. thats a different kettle of fish (and will need tools as mentioned by others above), but you don't need anything more if you just want to shutdown/restart things.
  3. The only problem with linux/unix deployment is the DBMS behind it. Oracle is insanely expensive, so if they want to save a few bucks they will have to use some other product. MySQL has yet to be proven for extremely high volumes of data although I am sure it can handle it, although it would be interesting to see some benchmarks of the two DBMS' side by side. Comparitively the cost of windows / sql could potentially be cheaper than the cost of oracle (although linux is free!) which is probably what motivated them to do the switch. However, it seems they have sacrificed reliability in favour of reduced cost so the people who made the decision to switch SHOULD be kicking themselves for trying to save (comparitively) a few bucks by moving away from unix/oracle as it cost them dearly in the end. But HEY! The stock market is a game of chance isn't it? People buy and sell millions every day, should be loose change right? RIGHT?
  4. THE easiest way is to use TCP sockets. Google for winsock if it's a windows app (since its slightly different to your standard unix sockets). Short of that, there's various other routes to use such as named piping and god forbid even having a file sat in the middle of the two apps (not recommended) but sockets are the easiest method to grasp.
  5. It's not a bug, it's a setting. Right click the 'Zebra Crossing' or whatever it is on the Dock and click Dock Preferences... From there you can change various settings, the one you describe is the Magnification Slider. Adjust that to your liking and the icons will enlarge when you mouseover them. Enjoy!
  6. Several! sort Sort an array rsort This function sorts an array in reverse order (highest to lowest). asort Sort an array and maintain index association arsort Sort an array in reverse order and maintain index association ksort Sort an array by key krsort Sort an array by key in reverse order And if you want to roll your own: uasort Sort an array with a user-defined comparison function and maintain index association uksort Sort an array by keys using a user-defined comparison function usort Sort an array by values using a user-defined comparison function
  7. No prob, maybe I'm talking nonesense (just glanced over the code, not really tried it out). It looks like it's been obfusicated a bit, either that or he uses really horrific naming conventions so it's not that easy to pick apart in a rush (although I could probably totally figure it out if I sat down and actually looked at it).
  8. Ah right, didn't spot that. I would simply traverse the array starting from the other way around. Without actually installing or testing it I'd say you need to re-arrange the loop: for(var i=a;i Also while this is a nice little script, variable naming is pretty ugly and I cannot be bothered to decypher it. O_o You'dd need to make the predicate become the intialisation i=_files.length + _dirs.length and the addition become subtraction: i-- and i>0 but not sure what the i Thank god I rolled my own piece of PHP for doing this sort of thing :] Edit: Actually, from delving a little more seems he's already rolled a sort function for different fields (name, size, date e.t.c) in there. Why do you actually need to modify anything? or does it need to be descending by default? o_O
  9. Errr, this relating to what? arrays? mysql? the ini file? some code snippet might be handy?
  10. Hehe congrats, I got a mac not too long ago (need it for some of my game development work). Came to: Two 2.8GHz Quad-Core Intel Xeon 2GB (2x1GB) RAM 1TB Disk NVIDIA GeForce 8800 GT 512MB Apple Cinema Display (20" flat panel) ... and the usual peripheral gumph. No applecare though, don't need it. I should get logic on there too since I also semi professionally produce dance music too and chances are my m-audio card would work on the mac. Coincidentally, if anyone out there does maya as a hobby and would like to have a crack at working on a game as a pet project get in touch, I've got way too much work on my hands
  11. Is PHP installed for IIS is the obvious question? Acid test: <?php phpinfo(); ?>
  12. When I read this thread title I thought it was going to be scientology round 2.
  13. Depends what the line of business they're in imho. I for one wouldn't find the music industry, movie industry, game industry, or other various different media related industries 'boring', and these are all part of the commercial world. But if you enjoy working with animals you could always work in a research lab.. errr I mean zoo.
  14. Escaped prisoner snake eh? Probably on a fight out of the country already!
  15. Health and Safety fieldtrip. Could've ended much worse.
  16. Indeed! Disliking the summer look, reminds me of what I *could* be doing. Oooh new smilie just for me?
  17. The very thought of Internet dating quite frankly freaks me out. I dunno, I guess I just like to know the person in real life before I make any kind of romantic advances or anything, the idea of picking a random person off the interweb and hoping for the best just seems surreal to me. Met my girl at a bus stop when I was at uni and we've been together for over 6 years
  18. Always nice to know that someone out there is thinking of us
  19. I had the webpages get tacked onto my job as 'feature creep'. So effectively I get paid £0 for it.
  20. Likely something ridiculously small, like a dongle or something.
  21. That is such an ignorant statement it's not even funny. I try and save as much as I possibly can. Hopefully I can get a house one day (current estimated house buy date = when I'm 70 odd). Many others end up having to spend MORE than they earn because they have bills e.t.c. that outstrip their income.
  22. I got myself CDJ's and the Technics, mainly because it is far cheaper for me to burn a CD of my own stuff and mix with it than pressing a vinyl / getting a dubplate cut. I can mix reasonably well with both although they both have their different feel. The real advantage of using CDJ's (beyond being able to copy your own music) is portability. It's far easier to smuggle two CD's onto a plane for a 'quick' gig in Japan than a bag full of 12" I've not used any Pioneer mixers, use vestax ones myself. Depends what you want out of a mixer, do you do a lot of scratching? Do you need effects? What are your requirements? Anyway, still don't know what they're trying to acheive, they might not even be wanting to mix at all
  23. I've used Numark TTX1's and they randomly sped up / slowed down the records when I used them (like as if I had moved the pitch slider waaaay up and back down again). This happened to me in the middle of a mix and threw me into a major clang, never used them again. I did say that anything with the torque of Technics or better can be used for scratch DJing, I didn't say they're the be all and end all. But as far as reliability goes I have yet to find a pair of turntables that are more solid than Technics. That said, I've not tried Vestax 150's so will reserve judgement on them!
  24. To be honest, I'm not that much impressed by any of the PC DJ setups due to synch issues and whatnot. I would recommend a pair of Pioneer CDJ's with a couple of burned CD's. It's really easy to hook up a real mixer (and you can get them pretty cheap) into a PC line-in, and the CDJ's into the mixer. Most clubs are also kitted with the same CDJ's (Pioneer CDJ 800 are the most common), although some clubs kit cheaper (and worse quality -- CD's skip e.t.c.) stuff. As for Vinyl Turntables (Which I don't think they want, sounds like they want to play/mix mp3s?) Nothing beats Technics SL's. NOTHING. If they're out of your budget, get anything that is *DIRECT DRIVE* because belt drives are horrendus for mixing with, and generally sloppy at keeping their pitch (you will know this if you try mixing with them). Don't forget the other essentials for Vinyl turntables: The Stylus and Slipmatts! I've messed around with a few other decks and they all have their different quirks. If you plan to do *scratching* you're pretty much gonna need something that has the Torque of an SL or better, plus a very sleek mixer to boot (generally with a replaceable crossfader and adjustable crossfade curve). In terms of CDJ Scratching, the Pioneer CDJ's have incredible vinyl emulation that I've just NOT seen in ANY PC package (it doesn't sound quite right when you speed it up / slow it down during scratching, IF it can keep up at all). As for those people suggesting to plug in a turntable STRAIGHT into a PC: Don't do it! All Vinyl is actually recorded with the bass EQ'd low this is because with bass heavy tracks if the bass was recorded straight into a record the grooves would become so large that the needle would jump from groove to groove messing up the song. Therefore a Turntable will always output the bass several dB lower than normal. When you route it through a mixer or a hi-fi's Phono, they make up for this bass loss by bringing up the bass by the same amount of dB. If you record a vinyl turntable straight into a PC it will sound VERY bass-lacking. Put it through a mixer first. Overall though, if all you want to do is mix CD Audio or Mp3's, a couple of Pioneer CDJ's WILL be the most reliable piece of kit money can buy today. In my spare time I produce dance music and I mix myself, my setup consists of 2x Technics SL Mk2's, 2x Pioneer CDJ 800's and a Vestax mixer: Pretty much an industry standard DJ Setup. But then, you haven't really specified your purpose for the turntables, but at least you now know what the best of the best is
  25. Regardless of who they are or their situation, I salute them! The head teacher can clearly see that BSF will damage their IT provision and as a knock-on effect damage the education of their children. They have the right way of thinking, and it is good for them to stand up to the bullies that are our government.
×
×
  • Create New...