« first day    last day (4931 days later) » 

12:25 AM
your test has failed
 
12:53 AM
Wonder what stackoverflow is written in.
 
64
Q: Which tools and technologies were used to build the Trilogy?

aleembPicking up from the blog, the following is a more complete stack pieced together from a variety of places. Please add any that I may have missed. Return to FAQ index

 
Eww. They use Windows.
Php FTW!
 
Hey
I wonder how this will turn out
 
1:13 AM
I was hoping they was using Python, Php or Ruby.
 
Wen
1:31 AM
hi
 
@Wen 'ello!
 
1:50 AM
I primarily code in PHP, make a living off sites and services I developed with it, but I feel dirty every time I start writing a new file in it
 
 
3 hours later…
4:31 AM
Hello, does anyone know anything about imagecopyresampled() function? I had one question..
 
4:45 AM
I've used it... what's the question?
 
wow
They weren't happy with IRC?
 
@lighthazard Read the faq, specifically, the last bit "Why don't you guys just use IRC, man?";)
 
test
 
Nevermind, I solved it
Anyone here use rackspace cloud servers?
 
is there a minimum skill level requirement to speak in here
 
5:01 AM
20Rep to speak
 
@Curtis Nope, speak you mind!
 
I use Amazon EC2, Linode and Softlayer... Rackspace Email but not their cloud
 
So I've read about a development method where you write tests first, then write the code to fit the tests... wondering if anyone can clarify it for me? A link or explanation of a simplified scenario would help.
 
16
Q: What is Test Driven Development (TDD)?

Brett VeenstraWhat is TDD (Test Driven Development) Please include both benefits and drawbacks, as well as tools for your taste.

 
I've mostly understood what the benefits are but not how you actually code the tests themselves
I read the selected answer on that link
 
5:13 AM
TDD is a methodology, a way of thinking... how you actually put that into use depends on your specific project
What is the language? What development environment?
There are many good unit testing libraries, tools, IDE plugins
 
I'm using PHP, and NuSphere PhpED
 
43
Q: Best way to implement unit testing in PHP

KevinI'd really like to start implementing Unit Testing in my projects. I don't know how viable this is to do in PHP. If anyone has done this, how was it implemented? Did it increase productivity?

 
thank you, I'll look up PHPUnit
ah ha... I found a slideshow in that question you linked that gives code samples, now I'm understanding :)
 
I'm not patient enough for TDD
To make the tests meaningful I'd be writing 10 times more test code than functional code, too slow for my liking
 
I liked the idea of it when I read about it, I tend to code before thinking about what actually needs to be accomplished, this would help me slow down and plan ahead.
 
5:41 AM
hi guys!
 
hi Doug
 
pretty coooll!
What was this chat system built from?
 
@Doug Been seeing a lot of that lately ;)
 
PHP + MySQL?
Haha, hello to you too
 
@Doug No, let me get you the answer, hang on
 
5:43 AM
Stack Overflow's all Windows and SQL Server
I don't imagine the chat would be LAMP instea
 
64
Q: Which tools and technologies were used to build the Trilogy?

aleembPicking up from the blog, the following is a more complete stack pieced together from a variety of places. Please add any that I may have missed. Return to FAQ index

 
Nice
If this chat was built using LAMP, would it be more or less efficient?
 
@Doug That would depend on the code, not the technology
Also, what's your definition of efficient?
 
Well, I guess I should ask, were there any performance reasons or anything else other than preference for WISC over LAMP?
 
@Doug I doubt so, read the blog post if you want more information
 
5:48 AM
Stack Overflow handles 60 million page views every month, each involving multiple unique database queries, with only 5 servers. The Windows stack seems to be plenty efficient.
Digg: 200MM page views, 500 servers. Stack Overflow: 60MM page views, 5 servers. What am I missing?
 
I saw that Digg post, hilarious.
 
Digg post? I saw it before it happened on reddit.
 
@Dan I wasn't saying SO was inefficient, just to be clear
When I said Digg post, I mean that post about Digg
on Reddit as well
 
Oh good
 
BUT MAN
THIS CHAT IS SEXY
 
6:00 AM
@Doug shrug the mods have nothing to do, and also, flagging for mod attention isn't the same as flagging as inappropriate/offensive
 
The mods have nothing to do?
 
Well, it is a chat room
 
You've just paged some poor guy who was out partying with the hottest girls in town on his Friday night, to run to the nearest computer and clean up some chat room
 
"Moderation flags [...] and should be used to indicate serious issues with a message, and other administrative issues."
 
He will now burn out on SO and leave the community entirely
 
6:02 AM
LOL
 
You guys realize we just made a lot of entries that also need to be reported right
:(
 
<?php echo "Uhoh, I think we should enclose all this off-topic nonsense in PHP code so that it becomes on topic!"; ?>
 
<? echo 'You shouldn't use double quotations unless your using a variable' ?>
 
@DanGrossman Eh... flag for mod attention, found on the menu of left side of the menu, is not the same as flag as offensive/inappropriate, found on the right side
 
@Yi Jiang Nobody's saying you flagged the wrong reason, but that flagging itself was wrong.
 
6:05 AM
oh crap, i just made a parse error
 
And a grammar error, and used a deprecated syntax
 
=(
the <? tag?
 
Yes, short_tags is not on by default!
 
deprecated syntax referring to <?
 
I turn it on
:P
 
6:05 AM
I see
 
Isn't it?
 
I always type <?php
A good practice, IMO
Dang, I want to build a chat like this
Well, of course with my own ideas
 
I hope you'll be using PHP to do so
else I might need to flag your post, sir
 
I hope you'll be using node.js to do so
While you're at it, can you write me a good imagemagick wrapper as a node.js module? That'd be quite useful right now
 
@Curtis ぜたい
OF CORUSE
Yo
 
6:08 AM
@Doug wat
 
@Cur
@Curtis of course
 
what language is that?
 
Both the server and client are written in JavaScript
 
@DanGrossman I have only read about node.js, but it seems to be the "next thing"
 
6:09 AM
doesn't it only return hello world
 
Do you see node.js possibly replacing PHP?
 
Maybe, it's not ready to be the "current thing"... it's a bit of a mess, finding working libraries is a pain, lots of stuff you'd find for any other language hasn't been written yet
 
Naw, never
 
You'll find node.js tutorials and libraries not two months old and the code won't work anymore, it's moving too fast right now
 
So double quotes is bad?
 
6:11 AM
@DanGrossman Wow, I am 21 and I barely even know the current stuff right now
I am learning though
 
Double quotes are bad in the same way drinking a glass of water makes you run slower because you're heavier
i.e. in theory, but not relevant in practice
 
@dan
man
I don't want to use the @DanGrossman everytime
 
you don't have to
 
Anyways
DO you have a degree dan?
 
I want to do a chat and imon my site with JavaScript. Not sure if i should make Php & mysql be the backed or node.js.... I do want chat history across pages/sessions tho.
kind of like Facebook chat.
 
6:14 AM
BS and MS in CS
 
Cool
How did you get into the web developing seen?
scene*
 
Well if i do a chat in php, won't Apache have to open up a process for each chat with each user?
 
How does chat work in general? Is every message an addition to the SQL database?
 
On this one, yes
 
I don't know... One of my jqueryfriends told me its a bad idea to use Php and Mysql for a chat backed. My whole site is Php&mysql so far. What is your input?
 
6:17 AM
so I'm off for the night, does this place have a friend's list or similar capability, or is this a permanent goodbye?
 
I'd tell you but it won't load the profile modal overlay
I don't see any friend-sounding links
 
Has anyone here done anything with Php chat rooms?
 
They exist, it's probably not that bad
 
Well I'll be a creep and bookmark your profile for now
 
It's like having all the people on your website hitting refresh every few seconds
 
6:20 AM
Oh. I kind of wanted Push. Like i heard you could do comet pulling.
 
LAMP can handle small, frequent requests well enough... one of my sites gets hundreds per second
 
So does chat work well with LAMP then Dan?
 
Tune your web server for small processes or threads, turn off KeepAlive, keep a good pool of processes waiting
 
that sounds like a No
 
It might not be the optimal platform, but you can make it work
 
6:23 AM
What would you suggest?
Node.js?
 
43 messages moved to Sandbox
 
Honestly, I don't know. Maybe. Maybe even a very small custom written server in C++.
Just to handle the polling and posting, part
the initial page load can run on the regular stack
 
I see
 
See, Yi?
You actually woke up Jeff Atwood himself to move part of a chat transcript at 2AM!
:)
 
I'm all about the PHP. It is the only language that matters, man! :)
15
but seriously moving messages is pretty easy
 
6:26 AM
Well, i really have no idea how it would work. Correct me if I am wrong, but would every message sent by a user by added into the database right away and ajax wuold be used to retrieve the data? If so, wouldn't that mean the AJAX would have to constantly keep checking the database?
 
Yes
That's the way this chat works.
 
I think thats how you would do chat Doug.
 
If you didn't have anything sitting between the database and the web server, yes
 
The server is polled every 2 seconds.
 
You might want to use something a little lighter than a relational database for chat... it's basically a log, pretty flat in nature
But if you have enough memory to hold the entire DB, it'd be pretty fast
 
6:28 AM
Interesting
 
I only have 512Mb of my vps :(
 
I thought there was a more complex way
Yo
I am still using shared hosting
 
512MB is a lot of chat, if you're pruning the old stuff
 
Well i kind of wanted to do like Facebook. Show chat history across the site.
 
Pruning doesn't even have to mean deleting, you can just be moving it somewhere else so the tables holding the active chats can stay in RAM
 
6:29 AM
as you go to page to page.
 
That's all in the front end implementation, it's the same on the back
 
Makes sence.
 
JavaScript land
 
This chat is mad useful
 
Mix of JavaScript and php.
 
6:31 AM
Intersting
Keverw
How are you planning to set yours up?
 
A chat bar.
Kind of like Facebook chat.
 
Do you have like a social website
I should ask
 
Yeah.
 
waht kind of website do you have
 
Not opened yet.
 
6:34 AM
Flash games?
Golf forums?
hint :)
 
Hello fellow PHP developers.. Is this chat accessible using my IRC client?
 
what kind of hosting does everyone use
and from what company
no this isn't irc
 
DreamHost, Shared hosting
 
@DanGrossman 1and1, Dedicated
 
Linode, Vps
 
6:36 AM
hmmm cool
 
Dan, you?
 
1 Amazon EC2 Large instance (2x2 cores, 7.5GB RAM), 2 Amazon EC2 High-CPU Medium instances (2x2.5 cores, 1.7GB RAM), 1 Linode 1536MB, 1 Linode 512MB, 1 real server at Softlayer (Opteron 2212, 4GB RAM)
I played around with VPS on 1and1 and GoDaddy, i dont know why I didn't stay
I just don't trust GoDaddy with hosting I gues
 
So you're saying their VPS are good?
I actually want to get a VPS
But I don't know what fits me and what should I get
 
Linode's my favorite VPS provider
They're cool people, they have actual developers on their support staff, and other developers trust them
 
linode.com - right?
 
6:40 AM
yeah
 
This may sound dumb, but is "Transfer 200GB" the bandwidth?
 
yes
bandwidth is one of those terms hosting companies have abused in their advertising
it means the rate of transfer, while they use it to advertise the total amount you can transfer
 
Oh I see
I actually didn't know that
Thanks for clearing that up
 
I don't even understand why everyone feels compelled to advertise huge amounts of it
unless you're like a streaming video site, it's hard to use a lot
 
Its like how the guys feel compelled to have a big one
 
6:43 AM
lol.
 
Wait, so bandwidth is rate of transfer, so this package says transfer 200gb
Meaning, my total transfer is 200gb, so what is my rate of transfer?
Is that right?
 
if someone visits your website, downloads 500KB of data (HTML + CSS + images) in 1.5 seconds, then you used 333kbps of bandwidth at that moment?
oh geeze, I opened the softlayer page in some window I can't even see anymore, and now I have sales reps popping up live chats
 
Haha
 
If a web host were to advertise bandwidth, they should be saying something like "10Mbps connection"
i.e. maximum rate of transfer available to your server
instead they tell you how much data you're allowed to transfer over the course of a month
 
I see
 
6:46 AM
you can't burst 3gbps through the server's 100mbps network card that 400 other websites are sharing... that's not "unlimited bandwidth"
 
That was my next question
what is "bursting"
 
temporarily using something at a high rate
 
Wait, i'm trying to find an example
 
saves a screenshot of Jeff's comment about PHP
 
Cannot find one atm
 
6:48 AM
I must say - this is pretty slick! Nice interface, etc.
 
You know, I'll ahve to get back to you on that bursting thing
or.. I'll have to come back with the question
@leek its NICE RIGHT?
 
@Doug very nice - can I create my own room to replace Campfire? haha
 
Dan, what roles does the CPU and RAM have in a VPS?
@leek Nope
 
@Doug too bad
 
That's kind of hard to answer... the same as your computer -- programs use CPU time to execute instructions and RAM to store temporary data structures
If you have a high traffic website, and it relies on a database, having more available RAM than the size of the database is optimal
 
6:52 AM
and for CPU?
That's the kind of answer I was looking for :)
 
Depends on lots of stuff, but it's usually not your bottleneck
You'll run out of RAM or disk IO before you max out the processor with most web apps
 
Current room user count somewhere would be nice
 
I see I see
 
You can see a profile icon for each person here in the top right... but yes, it might be nice to not have to count!
 
What is disk IO?
 
6:56 AM
input/output... you can only read and write to the hard drive so fast
 
@DanGrossman Ahh, I thought that was just a sample for some reason
 
I don't know what happens when there are a lot of people in a room, there aren't a lot of people in any rooms right now :/
Actually there's more than what's showing here right now, maybe it's hiding the old idlers
 
i should be working and not on here
 
Where are you that it's working time? :)
 
haha im EST but the work never stops
 
6:58 AM
I see
 
whew storing that will get unmanagable quickly
 
So is there away to measure how much transfer I would use if I installed minecraft on a linode server
 
hah
Looks like you could quickly use up your quota with enough people
 

« first day    last day (4931 days later) »