• Questions That Don't Need Their Own Thread v3
    4,068 replies, posted
  • ^^^^^^^^^^^^^^^^^^^^^^^^^^ <it's sad because even the paid ones suck> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
  • [QUOTE=lkymky;34536417]Oh I understand that, *takes a look around* vbulletin is nice.... :Sigh:[/QUOTE] vB fucking sucks
  • vB4 sucks dick too. If you were going for paid I'd honestly suggest IPB or XenForo.
  • [QUOTE=SEKCobra;34536432]^^^^^^^^^^^^^^^^^^^^^^^^^^ <it's sad because even the paid ones suck> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv[/QUOTE] xF looks like a step in the right direction
  • [QUOTE=swift and shift;34536475]xF looks like a step in the right direction[/QUOTE] Didn't have a chance to test it myself yet, so I can't say.
  • [QUOTE=swift and shift;34536475]xF looks like a step in the right direction[/QUOTE] [QUOTE=jetboy;34536469]vB4 sucks dick too. If you were going for paid I'd honestly suggest IPB or XenForo.[/QUOTE] Wow XenForo looks nice, cheap(er) too. Still 140 its out of our range atm but damn...
  • vBulletin licenses are sold really cheap some places last I looked, dunno if there's a problem with them being legit.
  • [QUOTE=SEKCobra;34536565]vBulletin licenses are sold really cheap some places last I looked, dunno if there's a problem with them being legit.[/QUOTE] even phpbb is better than vbulletin
  • Getting a MySQL syntax error, and I have no clue why. Table 'users' exists, and 'userid' has a type of INT. This is my MySQL class (poorly wrote). [code] class MilkMySQL { private $connection; function safePassword($jumble) { // pointless return base64_decode($jumble); } function selectDB($n_DB) { mysql_select_db($n_DB, $this->connection); } function connect($user, $password, $host) { $this->connection = mysql_connect($host, $user, $password); return $this->connection; } function select($whereTable, $whereItem, $whereValue) { $whereTable = mysql_real_escape_string($whereTable, $this->connection); $whereItem = mysql_real_escape_string($whereItem, $this->connection); $whereValue = mysql_real_escape_string($whereValue, $this->connection); return mysql_query("SELECT * FROM '" . $whereTable . "' WHERE " . $whereItem . " = '" . $whereValue . "'", $this->connection); } } [/code] And I use this in the following code. [code] $mysql = new MilkMySQL(); $mysql->connect('root', $mysql->safePassword(''), 'localhost'); $mysql->selectDB('ufriends'); $personZero = $mysql->select('users', 'userid', '0'); [/code] Now when that's ran, mysql_error() reports the following. [quote] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''users' WHERE userid = '0'' at line 1 [/quote] Any ideas why this may be happening? EDIT: Made it select the database, same problem. EDIT 2: Found the issue, note to self... don't add apostrophes around table names.
  • Alright I have the standard apache config on my server but that doesn't seem quite effective. It is currently running on a 384/768Mb VPS and I wanted to know which settings (StartServers, SpareThreads, ThreadLimit, ThreadsPerChild, MaxClients, etc..) would be the best. The site I'm talking about is [url]http://luacraft.com[/url] which hosts a Forum, Wiki and some filedownloads. If needed I could upgrade the VPS. I hope anyone can lighten me up on this!
  • Trying to figure out how to actually install Ruby on Rails so that I can *start* messing with it. Did the 20 minute 'learn Ruby' tutorial on the site, the coding part of it seems do-able. But I have no idea to put all these files I downloaded, where to install it to if I'm trying to use it on my local WAMP server, where to put .rb files I make so that they run. Anyone have a link to a useful tutorial for just setting the damn thing up?
  • [QUOTE=TheBigS;34541018]where to install it to if I'm trying to use it on my local WAMP server, where to put .rb files I make so that they run.[/QUOTE] Rails doesn't work the same way PHP does. In Rails, your code all runs as part of one cohesive application that is started up and runs for a long time, rather than as a bunch of loose scripts. A good place to start with Rails are the [url=http://guides.rubyonrails.org/]Rails Guides[/url] or with [url=http://railsforzombies.org/]Rails for Zombies[/url]. Also, you probably want to setup a Linux VM if you're keen on doing Rails development. Ruby on Windows is kind of sketchy.
  • I thought Rails was a framework or is more of an extension to the actual language itself?
  • [QUOTE=jaybuz;34542875]I thought Rails was a framework or is more of an extension to the actual language itself?[/QUOTE] yeah it is a framework [editline]5th February 2012[/editline] although rails does include ActiveSupport as part of it which [i]does[/i] extend some of the core classes in ruby so you can do things like: [code] >> 1.hour.to_i => 3600 >> 1.month.ago => Wed, 04 Jan 2012 16:27:05 UTC +00:00 >> 20.megabytes => 20971520 >> "".blank? => true >> "person".pluralize => "people" >> "rails_is_cool".humanize => "Rails is cool" >> 3.ordinalize => "3rd" >> [1,2,3,4].to_sentence => "1, 2, 3, and 4" [/code]
  • [QUOTE=swift and shift;34542906]yeah it is a framework [editline]5th February 2012[/editline] although rails does include ActiveSupport as part of it which [i]does[/i] extend some of the core classes in ruby so you can do things like: [code] >> 1.hour.to_i => 3600 >> 1.month.ago => Wed, 04 Jan 2012 16:27:05 UTC +00:00 >> 20.megabytes => 20971520 >> "".blank? => true >> "person".pluralize => "people" >> "rails_is_cool".humanize => "Rails is cool" >> 3.ordinalize => "3rd" >> [1,2,3,4].to_sentence => "1, 2, 3, and 4" [/code][/QUOTE] That reads quite cool actually, but is it nice to programm in?
  • I fucked up stylesheets for my users and now things won't update for them without manual cache purging and it looks like shit. Any good way to force a reset of their cache?
  • [QUOTE=lkymky;34545274]I fucked up stylesheets for my users and now things won't update for them without manual cache purging and it looks like shit. Any good way to force a reset of their cache?[/QUOTE] Rename the stylesheet or use a query string (doesn't cache properly in some (old?) browsers). [QUOTE]style.css[B]?v=1[/B][/QUOTE]
  • Trying to decide between storing settings in the database versus serializing them in a YAML file or something. The latter might be faster but I could always do database caching. Might be one of those "no one will ever use it enough for you to notice" problems.
  • [QUOTE=Sc00by22;34545600]Rename the stylesheet or use a query string (doesn't cache properly in some (old?) browsers).[/QUOTE] Ill try that query string idea... I kinda remember a somewhat supported meta tag to clear cache but I can't remember/find it.
  • [QUOTE=commander204;34543653]That reads quite cool actually, but is it nice to programm in?[/QUOTE] yeah I love ruby and rails
  • So we have a 12.6 MB .sql DB for our myBB forum And well we are going with the advice given earlier and are going to switch to fluxBB so we need to convert the database but no conversion software exists which means we need to create a macro to do this that can handle semi-complex expressions to format this in any whichway we need to... Suggestions?
  • So I'm going to buy another domain and I noticed name cheap is pretty well, cheap. At $11 for a .net domain I'm pretty sure I'll go with them. Has anyone been with them before? I've heard good things about them but you can never be too sure.
  • namecheap is pretty cool in my book, besides the sometimes useful DNS and stuff oyu get for free, they have awesome support, helped me out when I missed to transfer the ICANN fee once.
  • Anyone have experience of Name.com? I'm thinking of transferring my domains from GoDaddy, but still unsure about where.
  • [QUOTE=Dragory;34557749]Anyone have experience of Name.com? I'm thinking of transferring my domains from GoDaddy, but still unsure about where.[/QUOTE] Name.com is awesome, nice support, cheap prices
  • [QUOTE=Dragory;34557749]Anyone have experience of Name.com? I'm thinking of transferring my domains from GoDaddy, but still unsure about where.[/QUOTE] Haven't had a problem yet. They also have free WHOIS( it was a coupon I used months ago so maybe they took it down) coupon code: FREEWHOIS or something. EDIT: Plus, they make funny videos: [video=youtube;7gnK2lwDZ5w]http://www.youtube.com/watch?v=7gnK2lwDZ5w&feature=plcp&context=C3c4e05dUDOEgsToPDskIwyzN8k6MrZjUhVkp6VNV4[/video]
  • Can someone help me understand why whitespaces affect the triple click? For example: I have this [html] <html> <head> <style> li { display: inline-block; border-color: #ABABAB; border-style: solid; border-width: 1px; padding: 3px; margin: 5px; } </style> </head> <body> <div> <ul> <li> <span>-test-</span> </li> <li> <span>-test-</span> </li> <li> <span>-test-</span> </li> <li> <span>-test-</span> </li> <li> <span>-test-</span> </li> </ul> </div> </body> </html> [/html] Now, if you run that code and try to triple click the first list item, it will select all of them. But if you run this: [html] <html><head><style>li{display:inline-block;border-color:#ABABAB;border-style:solid;border-width:1px;padding:3px;margin:5px;}</style></head><body><div><ul><li><span>-test-</span></li><li><span>-test-</span></li><li><span>-test-</span></li><li><span>-test-</span></li><li><span>-test-</span></li></ul></div></body></html> [/html] then try to triple click the first list item, it will just select the first list item.
  • Ok guys, I need some advice on what to do, basically I was joining random servers, and saw one community didn't have a loadingurl, I offered to help them out made a loadingurl, motd, etc and naturally hosted them on my server so the content couldn't be stolen. Apparently not, they just downloaded it, removed my little copyright nametag in the corner and then hosted it on their website & banned me from their server, I'm not fussed about the server, but having my work ripped off like that is a little disheartening, what would you guys do in this situation, just leave it?, because I don't really think there's anything I can do and what's the best way to prevent stuff like this happening, is there anyway to disable the ability to download, I doubt it thought since they can just copy paste the source.