Decaflon

Welcome to Decaflon! Where the geeks hang out: Signup or Login Here
Decaflon is proudly hosted by (mt) Media Temple.  We recommend them for your web hosting needs.

montoya's Activity Stream: Page 1 of 1 « FIRST  ‹ PREV  NEXT ›  LAST »

» How do you capture screen shots?  ...  Last Reply: 1 year ago by Chris24.

When I take a SS, I want the site only, no app corners, so I use ScreenGrab!:
http://www.screengrab.org/

5

Why did they have to call it "Javascript"?

Programming Community — Posted: Nov. 8, 2007  ...   Last By: posure @ 1 year ago

Me: "... whether you care if it uses Javascript or not ..."

Them: "I don’t particularly care if it is in Java or not. I just want it to work."

Gah!!! If they had just called it something like "Awesomescript," I would never have this problem.

» Do you use Facebook applications?  ...  Last Reply: 1 year ago by cpoteet.

Cappuccino: You can add me on Facebook: http://www.facebook.com/srch.php?nm=christian+montoya

If anyone wants some invites to cool apps I've built, let me know... via Facebook message, that is.

Abi: That's great that you mention that, I'm making a list of things apps SHOULD NOT do.

» Please explain Facebook to me  ...  Last Reply: 1 year ago by Michael.

Facebook has privacy, which means it's not public information that you can get there... my friends on Facebook have access to my cellphone number, my e-mail address, my work info, hobbies, interests, personal photos I'll never post on Flickr, etc.

Facebook has way more "to do" now than MySpace with all the applications. If you don't use Facebook applications, you are missing out.

29

Do you use Facebook applications?

Web Community — Posted: Nov. 1, 2007  ...   Last By: cpoteet @ 1 year ago

I've been working on Facebook applications and I would like to conduct an "informal poll" with the 9rules community. To cut to the chase, please respond with either:

  • I don't use Facebook
  • I use Facebook, but I don't like Facebook apps because they are:
    1. Stupid
    2. Not worth the time
    3. Clutter-riffic
    4. Some other reason
  • I do use Facebook apps (and let me know if you've ever developed any)

Also, please do share any ideas you have about the things Facebook apps shouldn't do, like forcing you to an invite page or putting a bunch of spam on your profile. I'm thinking of writing an "app manifesto" for things that app developers should agree to and I could really use ideas. Thanks in advance!

» Facebook apps - made one yet?  ...  Last Reply: 1 year ago by montoya.

Scrivs: If you ever want to get into making an app, let me know. I've made quite a few (all with PHP & MySQL).

» Anyone Installed Leopard Yet?  ...  Last Reply: 1 year ago by greghickman.

If you haven't installed Leopard yet, you are not a true Mac fan.

» Multiple sites on one server or one site per server?  ...  Last Reply: 1 year ago by montoya.

Ozone: Hmm, that's some food for thought right there. That's the kind of numbers I needed to hear too. The sites I'm talking about are seriously lacking in optimization, but maybe if I can improve them, I'll be able to scale down the number of servers we have, or at least free up a lot of resources for new ones. Thanks for the advice.

» Multiple sites on one server or one site per server?  ...  Last Reply: 1 year ago by montoya.

My thoughts were (just to provide a little more background):

- If each site is on its own server, it doesn't have to compete for RAM or CPU processes and if one site has issues, it won't affect the other two.

- If we get a big server that can more than handle these sites, then we can scale a bit better since we can add more sites on that server and still not have problems. (but this might not be true).

- I really can't tell the performance difference between the specs the one big server has and the specs of the smaller servers... I just want each site to be fast and handle all the traffic and then some.

3

Multiple sites on one server or one site per server?

Programming Community — Posted: Oct. 25, 2007  ...   Last By: montoya @ 1 year ago

I've hit a roadblock due to the fact that I don't know much about this problem so I'm looking to see if people with more experience can give me some advice:

What's better? I've got three sites, one gets 40k hit/day, another 15k, another 10k. They are not very well optimized but I'm working on that (adding caching, etc.). Say I could move all three sites to one very powerful server (2x Quad Core Xeon, SAS Drive, 2G RAM) or move each site to a separate "pretty-good" server (Dual Core Pentium D, SATA Drive, 1G RAM). All the other features are the same, OS setup, Fast CGI, APC/Cache::Cache, etc. These are Perl/PHP sites with MySQL backends.

Any advice?

» What screen saver are you using?  ...  Last Reply: 5 months ago by RightOn.

Lancer, Alvin: I'm using uniqlock too! I love it.

Another good one is Polar Clock if you are into the visual clocks.

I wish I could find more animated screensavers like uniqlock, it seems like most screensavers are just slideshows which I hate. If anyone has any recommendations, let me know!

» Server gurus, please help: too many processes  ...  Last Reply: 1 year ago by montoya.

Ozone: That's not an issue here, but I know what you mean.

The sites are doing much better today, which I'm guessing might be a combination of the MySQL indices and some caching that's being added.

I also discovered that PHP & Perl are running as CGI, *just* CGI, so I'm having Fast CGI installed. Can't believe it wasn't already there. That should double the speed alone.

» Server gurus, please help: too many processes  ...  Last Reply: 1 year ago by montoya.

Ha, update: I just discovered that our 2 MySQL databases didn't have any indexes. Considering that all the queries we ever do are of the form:

SELECT ... FROM ... WHERE field = 'unique constant'

That's kind of a big deal.

Anyway, they have indexes now.

» Server gurus, please help: too many processes  ...  Last Reply: 1 year ago by montoya.

jsmart: That's what I'm beginning to think... I want to get my employer off this "managed ds" crap and get a server with root access so I can figure out what the problems are and do some optimizations on the setup.

The host said that the scripts consuming the most memory are the ones making MySQL queries, but I'm thinking it's just a combination of things.

Also, I know the PHP/Perl/SQL coding is crap... I didn't write it. I just started working here so I "inherited" all this legacy code and it's terrible stuff. I want to update all the code but that would take months. Plus, these sites were working fine yesterday so that's why I am very suspicious about the whole thing.

Here's to the possibility that we'll be using a new host soon =/

5

Server gurus, please help: too many processes

Programming Community — Posted: Oct. 18, 2007  ...   Last By: montoya @ 1 year ago

I can't mention the parties involved here but my employer is having a hell of a time with their hosting company and since I'm the lone developer, I have to figure out the right solution.

We were moved to a new server last week because the old server we were on was occasionally crashing, more than once each week. The host said it had hard drive issues so they moved the sites. This server has 3 sites that all receive very high traffic.

Since we moved we started seeing issues with the sites running slow. There were lots of things that happened during this time so it's hard to tell exactly where the problem was. I'll try and lay out the different issues:

- one of our sites doubled in traffic. it is a PHP/MySQL site and has zero caching. It was developed externally and I told the developers to cache the pages. It should be done by next week.

- we moved to a new advertising service and to make the management of adds easy, I wrote some scripts with PHP to use a MySQL database and serve up the ads. At first this slowed the server down a lot so I cached all the scripts so that they wouldn't have to do any queries. These files currently look like this:

if(file_exists...)
include('xxx');
exit;
?>

2 of our sites use these scripts, they make up about 80% of the traffic.

- I added a feature to one of the sites that meant an extra database request on some of the highest-traffic pages for that site. We then had some issues with performance so as an extra measure I implemented Perl's MemoryCache module (this is a Perl/MySQL site). So I was caching some of the results of various functions in memory and these caches were set to last for an hour. I was also auto-purging every hour.

Last Monday our server had 1 gig of RAM. the host recommended we increase that... now we have 3 gigs. We were at 90% memory consumption when we had 1 gig. Today, with 3 gigs, we suddenly hit 99% consumption. The sites have been slow all day.

In the morning the host was saying that it was MySQL eating up all the memory. In the afternoon, however, they said we had too many PHP and CGI processes running. They recommended upgrading to a server with a more powerful CPU.

I can't do much on my end to verify any of this because we have a "managed" dedicated server, which means I can't do much on the command-line. It's very frustrating, and the host's support is not very good.

So, um, what do I do? Is this thing about the PHP/CGI processes really true? I know the server doesn't have a very good setup (no FastCGI). Would changing the ad system to use static HTML files improve things (since most pages have on average, 3 iframes, each running a separate PHP file)? Should I just assume that our host is problematic and look for hosting elsewhere (I'm leaning toward this right now)? At least if we were on a better server with root access, I could setup PHP/CGI better and get more performance.

I'm just looking for any advice here... this whole mess is keeping me from doing *real* work.

p.s. this is an Apache Linux server.

» Are MySQL Temporary Tables bad?  ...  Last Reply: 1 year ago by Scrivs.

brandon: already read that, thanks anyway.

Scrivs: It's for creating a small table with data from three other tables that are then used in three different queries. It seems like they are sacrificing some memory consumption to save the trouble of large queries or storing the data in large arrays. Unfortunately, memory is at a premium for us, not processing power. Right now the pages are running slow and I was thinking that making three separate queries that don't generate any temporary tables but maybe just use arrays might be better. The contractors are making an alternative script so we'll see.

4

Are MySQL Temporary Tables bad?

Programming Community — Posted: Oct. 12, 2007  ...   Last By: Scrivs @ 1 year ago

A contractor we are working with is using a MySQL temporary table to fetch some data from three different tables in our database. Our sites are already memory intensive and it seems to me that using a temporary table is too costly, but the contractor insists that it greatly improves execution time so it's a good idea. Who's right here? Has anyone used temporary tables before?

» The Worlds Best (free) Feedreader!  ...  Last Reply: 8 months ago by kostas.

I use the one I made: feedmeplz.com. I like to just have the headlines and actually read the posts at the various sites. It needs some more work though.

0

Any Perl people can point me to some info re: Cache::Cache?

Programming Community — Posted: Oct. 11, 2007

I've been learning Perl's Cache::Cache module today and I'm having a really tough time with Perl's syntactic niceties. I'm especially having trouble returning a bunch of variables to a single array and then setting that array into the cache and accessing the members of it. I've been able to cache other functions where I'm just dealing with one scalar but things get so confusing with arrays. Unfortunately I can't find any tutorials or documentation online so I'm hoping that someone on here knows Perl and might point me in the right direction. Otherwise I can post the code that isn't working and maybe you can tell me what I'm doing wrong.

» Which code editor do you use?  ...  Last Reply: 8 months ago by corenominal.

I use Notepad++ for everything, except occasionally I use Firefox Web Developer Extension to do some live CSS editing.

» Most Useful PHP Functions  ...  Last Reply: 1 year ago by evhan.

ob_start() for buffering output... always super useful.

» PHP Eats Rails for Breakfast  ...  Last Reply: 1 year ago by Nobes.

I'm really sick and tired of people comparing "Rails" to "PHP." Those who do don't know what the difference is. Rails is a framework based on the language "Ruby." PHP is also a language. You can compare Ruby to PHP or you can compare Rails to Cake, Symphony, or any other framework out there, but please DON'T compare apples and oranges. There's nothing to gain from comparisons like that.

» Why is Ruby on Rails better than PHP?  ...  Last Reply: 8 months ago by VisVires.

APPLES AND ORANGES!

I'm sure it has been said before, but look:

RUBY is better than PHP, because Ruby is a far more elegant programming language.

However, I do NOT think RoR is better than CakePHP or another PHP framework, because PHP is far better supported by servers. CakePHP is even compatible with PHP 4.

Done.

montoya's Activity Stream: Page 1 of 1 « FIRST  ‹ PREV  NEXT ›  LAST »

All Of montoya's Decaflon Activity:

  • New Notes: 6
  • Comments: 17
  • New Clips: 0
  • Total Clip Votes: 0
  • Positive Clip Votes: 0
  • Negative Clip Votes: 0
 

Decaflon is part of the Chawlk Network of sites.

9 Great Places To Visit, Hang Out, & Meet New People

What's new and interesting at other Chawlk Network sites: