Reputation: 131
Excellent
- Group:
- Members
- Active Posts:
- 3535 (3.45 per day)
- Most Active In:
- General Discussion (964 posts)
- Joined:
- 03-August 10
- Profile Views:
- 9611
- Last Active:
Yesterday, 04:10 PM- Currently:
- Offline
My Information
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
Male
- Expertise:
-
HTML
CSS
PHP
Javascript
Graphics
Contact Information
- E-mail:
- Private
Topics I've Started
-
Opinions on a RAM Drive?
03 April 2013 - 11:04 AM
Hey guys.
So, yesterday I pretty much decided to say "fuck it" and buy a gaming rig (parts ordered, receiving this weekend).
Part of that was 16GB of Kingston HyperX Beast (overkill, I know, I've been told, but eh). Now, I'm obviously not going to be using all of that; max is probably going to be half if I'm running a virtual machine or something. In any case, that leaves me with a ton of RAM, and I was thinking of using it as a RAM Drive.
For those who don't know what that means, it's mounting some of your RAM as a "fake" drive. It's basically like an SSD but faster. It's RAM, so it's most probably going to be for temporary files (did some research; most people redirect application caches to them to avoid writing to the SSD).
Opinions? Anybody done this before, or have suggestions?
Yes, I realize this is most probably overkill, not particularly useful and ya da da, but yeah.
<3 -
Writing code documentation
05 January 2013 - 02:19 PM
I have the habit of never commenting anything I write, so I was wondering, what's the standard / correct / best way to write documentation?
I'm referring to the comments you'd find before a function, which describes what it does, etc. Do you also have any specific habits or tips regarding this?
This is also in General Programming, so is there anything specific to languages? I mainly use PHP and JavaScript. -
Application Hook System
02 December 2012 - 04:17 PM
Some of you guys might remember a project I had some time ago; iceberg. Well, while it worked okay, the code was horrific, so I decided to rewrite the whole thing from scratch.
One thing I want to change is the hook system. The way I had it set up before was to have a folder containing PHP files, each one named after the hook it represented. For example, you'd have a file calledPreGenerateHook.php
which would be included and called by the script (hook autoloader thing).
I want to have something more flexible this time, but I'm a little lost on how to do it. I've looked into things such as the observer pattern, but to be honest, I'm not too sure how it'd work out. Here's essentially what I want it to have;
- Must be able to be called by the script. For example, I should be able to do something such as
Hooks::run("pre-generate")and it should work. - Naming of hooks. For example, I could have a "post-generate" hook called (unique name)
upload-files
. - Multiple hooks set for the same "event" (let's say, I want to have
upload-files
andcompress-images
hooks, both on thepost-generate
event. - Calling hooks by name should work as well (well, that's the point of naming them).
I've considered things such as scanning the folder at the start of the script, and load all the hooks, but that sounds pretty inefficient. Having it with the system I was using previously, with PHP files being loaded using the hook event won't enable flexibility with the names either.
Anybody got some other ideas? - Must be able to be called by the script. For example, I should be able to do something such as
-
Spam
26 November 2012 - 12:02 PM
-
New Personal Websiteâ„¢
18 September 2012 - 02:52 PM
Not much to say about it, but I'd like some feedback
I decided to go really simply with this one, and I'm pretty damn happy with the result.
http://cyril.so






Cartoon Clouds
Mountains
Sunrise
Clouds
Green Clouds
None
Find My Content
Display name history

Help