Well, I Survived Cancun
Thursday, March 20, 2008 - 11:12 AMAfter a few days in the sun and a whole lot of alcohol I made it home safe and sound. Cancun is an awesome place but I was disappointed how "Americanized" it was. In the "normal" parts of town it was classic Mexico but where the resort areas are, it looks like the vibrant section of any major American city. Lots of bars/clubs, restaurants (T.G.I. Fridays, wtf!), etc.
I have lots of photos that will go up on my Flickr account soon. There were lots of hot chicks and it turns out that it was spring break week down there so a lot of college kids were floating around. Some of the things I saw were quite.. well.. "amazing". The details would make even a dark skinned man like myself blush.
In any case, I am back and it's back to business as usual! I was able to keep my composure and the only time I broke my marriage vows was in my head ;)
Technorati Tags: cancun, hot chicks, mexico, spring break, vacation
Off To Cancun...
Thursday, March 13, 2008 - 10:29 PMQuick note that I will be out of town for the next few days. I am heading off to Cancun with my business partner and some of his sales guys. Sort of a reward for them and all their good work the last few months. So I may take me a little longer to respond to email, etc. You know, due to being intoxicated and/or hung over most of the time.
See ya next week!
Technorati Tags: cancun, email, mexico, vacation
Million Dollar Goal - February Update
Thursday, March 6, 2008 - 6:32 PMMy head has been stuck in a washing machine. That's the easiest way for me to summarize the month of February. Looks like March & April aren't going to be very different either. In any case here is a quick update on the status of my making a million smackers this year.
Business
It was a bumpy month business wise. For being the tiny company that we are some people found us and decided to start attacking us, apparently in an DDoS style attack. After a little bit of kung fu I was able to get that under control. We did have noticeable trouble for about 2 days though. Nothing looks worse then 2 days of degraded service on a 2 1/2 month old company. Luckily our customers understood it was out of our control and we were trying our hardest to rid ourselves of the issue.
The month wasn't only bumpy because of the attack. Once thing you have to remember when involved in a partnership is that you have a partner. A few heated exchanges took place but when the dust settled we were better off because of it. It can be tough to compromise on issues you feel strongly about, but it is needed to keep a happy and productive environment.
During the next month's update I will finally give out the company name, website. Also early next month will be the launch of a new product we are working on. It is a tool designed to help users convert their website visitors into buyers. Obviously those in the affiliate marketing world would be a little bit interested. The product will be launching at a seminar here in Los Angeles next month.
My affiliate marketing progress has really been hampered due to the amount of work I've had related to the businesses. I do need to find some time to sit down and really find what needs changing, where to tweak and strategically plan out the next few months. Otherwise I am afraid I will lose the momentum and progress that I've made so far.
Personal
Well I have been dieting more and making good progress. The real real motivation for this progress is below (keep reading) ;) I've been making it a point to do cardio exercises at least 3 times a week. My knee has been bugging me and I need to make a decision soon. Lighter squats or go buy some strong knee supports. Probably going to go with the supports as I couldn't see myself killing the progress I've made by not pushing heavier weights.
March Goals
Well, on the 14th I am taking off to Cancun (the motivation I mentioned earlier). I am only going for a few days but it will be a blast! Sort of a mini break from work because the next few months I will be glued to my MacBook. So a big goal for me is to finish up fixing any bugs in our new products user front end before the trip. I don't want any of that on my mind while I am out there. No work this time, all play!
As if I didn't have enough on my plate, I was tapped to coach my youngest daughters soccer team for the spring season. Not enough coaches for the spring and if people didn't start stepping up, a lot of kids wouldn't have been able to play. Oh, and just my luck... One of the kids on my team has parents slugging it out in a very nasty divorce. We've only held 2 practices and I have already been asked for a document stating their child hasn't been to practice — for the judge!
Business wise I want to continue to grow this company and have a successful launch of our new product. Both of them will help me reach my goal this year. It's so close I can taste it, but still just slightly out of reach.
Wrapping Up
This post is more of a rambling than anything. Trying to finish it before the train comes (see future post on commuting via train/subway in LA.. oh boy!). All in all, the year is on track and I still think I have a shot at hitting my goal!
Technorati Tags: cancun, partnership, business, millions, make money online
Fortune & Fame ... Becoming A Rock Star
Tuesday, February 26, 2008 - 10:35 PMEver wanted to be a rock star? I think we all have at one point. I mean, what's not to love about it. They rock on stage, party all night and have their pick of the hottest ladies at the show. Sure that all seemed great when we were younger but what about becoming a modern day rock star?
What is a modern day rock star?
Good question. That could probably be defined as any one who truly stands out in their industry. For instance, Michael Arrington could be considered a rock star in the blogging world for the huge success he has seen from TechCrunch, the blog he started in 2005 that covers internet startups and has achieved behemoth status in the blogosphere.
Examples from the affiliate marketing world would include John Chow, Zac Johnson and Neil Patel. These 3 guys are recognized as experts in their industry and have been able to build up a solid reputation and a large following. Whether or not these guys are actual experts I have no idea and I don't know any of them personally. What I do know is that I read their blogs every day and find a great value in their writings a lot of the time.
Point is that they have been able to build a (cult like) following and are able to leverage that into large profits while attempting to help people in the process.
How do you become a rock star?
What the hell are you asking me for? Seriously though I don't have an answer to that question. I don't know that there is a specific formula but I am sure it is a mixture of charisma, experience, hard work, education and a degree of transparency.
If you can figure out a way to give away value — actual or perceived — for free and do it in a way that is magnetic, chances are you will slowly build a large following. As your following grows, so can your profits.
There are many ways to pass value to your following. Obviously blogging is a slam dunk but there are many other methods. Before blogging was so popular there were forums, which provided an excellent vehicle for users to interact with each other as well as the "rock stars" of the community. Look at the success of Fark — it all started with a niche and a forum.
Are you a rock star?
Everyone has some rock star qualities about them. Well, nearly everyone. Not everyone has the over all mixture that is required to really stand out. That's OK because you don't need to be a rock star to be hugely successful. If you want to be a rock star then I suggest you get started right away. Throw yourself out there and see how it goes. Don't let self doubt or other hang ups stop you.
Bottom line: you never know until you try.
P.S. Yes, I realize how corny the "rock star" thing is...
Technorati Tags: rock star, cult, profit, value, blog
Super Tuesday - Go Vote!
Tuesday, February 5, 2008 - 8:49 AMFor those of you in the US, today is an important day. It is our national primary (essentially) and will decide our candidates for the presidential election later this year. Just wanted to post a reminder for everyone to go out and vote today!
Technorati Tags: history, super tuesday, vote
Superbowl 42
Monday, February 4, 2008 - 7:15 PMSuperbowl Sunday came and went. What an amazing game it turned out to be. I personally had no stake in the winner and I didn't bet anything on this game. Either way it went, it made for a great story and a shining moment in NFL history.
Patriots win and they secure a perfect season; done only once before. Of course they were heavy favorites coming into the game. The point spread 2 weeks ago was 13 points!
Giants win and it may be the biggest upset in NFL history. This is a great underdog story and is a source of motivation.
Obviously by now everyone knows the Giants pulled it off with their 17-14 victory. FoundRead had an interesting article using the quotes Eli Manning (Giants quarterback) gave after the win. The post applies his comments to modern day business and how: "Sometimes it takes a slightly larger challenge to draw the high performance out of you." This is very true!
Of course, the commercials were a big source of discussion as well. Pretty lame commercials this year in general (imho) but there were a few that stood out to me. My favorite was the Godfather spoof commercial for the Audi R8. Mainly because I am a huge Godfather fan but I did find the commercial funny; regardless of the unoriginality of the premise. Using Moe Green as the actor didn't hurt either. Jason Calacanis graded the commercials as well and agrees with me on this one.
The game itself was so well played that I was glued to the couch the entire time. OK, part of that was because I had a very late night on Saturday and didn't have the energy to do anything but sit around and watch TV. Oi.
Technorati Tags: commercials, football, godfather, motivation, superbowl
My Ears Were Burning
Tuesday, January 15, 2008 - 11:43 AMI woke up this morning at about 3:15 AM when my oldest daughter came into my room complaining about her cough. She hasn't been feeling good so I had her come to sleep with my wife and I. I couldn't fall back asleep.
I laid there thinking about everything going on in my life right now. It's a very busy and exciting time for me. I lay awake for nearly 2 hours, just me and my thoughts. I've had a lot on my mind lately and I didn't realize that I had won a very prestigious award yesterday.
Chris Bloczynski had bestowed upon me the coveted "Fan of the Week" award!
I really was shocked to see my mug being shown in my Google Reader as I made my way through my daily RSS feeds this morning.
The picture that I use of me across the web is a funny one to me. I'm laid out on my buddies beat up couch at his bachelor pad. Stained carpets, mini fridge full of beer (in the living room) and 2 day old pizza in the oven. A real bachelor pad.
Anyways, thanks to Chris for the post about me. I'll have to see what else I can do to win more cool stuff!
Technorati Tags: award, blog, chris bloczynski
Happy Holidays
Sunday, December 23, 2007 - 1:16 PMJust a quick note to wish everyone a happy holiday season. Enjoy your time with your friends and family, because they really are the only people who matter!
I, once again, made the journey to Albuquerque to spend the holidays with my mother, brothers & in-laws. My dad stayed behind in LA. It is good to see everyone again. I even had a chance to run into old friends. Some of them I haven't seen in 3-4 years so it was nice to catch up with them.
I've been thinking about my new years resolution and it will involve this blog a lot. I will post about that before the new year and give a little more detail.
Anyways, everyone have a fun time this season. Next year we go back to life as we know it...
Technorati Tags: albuquerque, holidays, travel
Beating Up 5 Year Old Kids..
Monday, December 17, 2007 - 11:30 AMThis is just great. What's YOUR score?
25
Technorati Tags: 5 year olds, beathing up children, fight
No More MingleNow
Friday, December 7, 2007 - 9:43 AMMingleNow is a social network built around the night life of major metropolitan cities. You can find events, view photos, etc. They usually have their photographers at the events snapping photos of the crowd and singling out the hottest chicks. You know, the usual. The difference was that their events were usually quality events. When I wanted to find something to do I would always check MingleNow to see what was going on that night. I always found something fun to do whether I was here in LA or in San Diego or Vegas...
Well, according to this post on the MingleNow blog they are shutting the service as of Jan. 7th, 2008. Yahoo recently purchased a company called Blue Lithium, which happened to own MingleNow. In the MingleNow post they sort of push you to use other services in place of MingleNow; All them owned by Yahoo.
Now I am all for business. I assume that Yahoo has a good reason to shut down MingleNow (again, assuming that this was Yahoo's decision). But the alternatives offered are not up to par with MingleNow.
For one, MingleNow has everything I was looking for in one place. Now they are suggesting I use Flickr, Upcoming and 123out.com; Are you kidding me?
I am willing to bet that most MingleNow users will not head over to those services for their nightlife adventures. Another service will pop up and take MingleNow's place at some point. Maybe sites like ClubPlanet will eat up it's user base.
It's also a good guess that maybe MingleNow just wasn't turning a profit. It's very possible that all their ideas didn't pan out and the "gods" decided it was time to pull the plug.
I don't know. I just felt like ranting about this. So long MingleNow, I'll miss ya.
Technorati Tags: minglenow, nightclubs, nightlife, party
Thanksgiving Getaway
Monday, November 26, 2007 - 10:26 AMSo we snuck away for Thanksgiving. We ended up going to Big Bear Lake, Ca. It was a little cold but not too bad. The best parts were our hikes. It's fun to see my 4 year old tackle a 7 mile hike, that's rated "moderate to difficult", with ease. We've pretty much gone through all of the hikes up in Big Bear (that the kids can do) so we need to start hitting some of the harder trails in Malibu or some other place relatively close.
One thing that was a nice surprise was a little restaurant called Cowboy Express. I had the Tri-Tip steak and it was freakin' awesome! It's no Mortons or Ruth's Chris, but it was an excellent steak. Definitely on my must visit list when I go to Big Bear in the future.
You can see the photoset on my flickr account here.
Technorati Tags: big bear, family, mountains, thanksgiving
No Country For Old Men - Review
Wednesday, November 14, 2007 - 9:50 AMSo last Saturday I went and saw the movie No Country For Old Men by the Cohen Brothers. It was in limited release and being in LA, it was obviously being shown here. Word was out on this movie and I didn't have an easy time getting tickets but I finally scored some for an 11pm showing. Movie was sold out but we got awesome seats, which means we stood in line for nearly an hour just to be seated. It was worth it.
The general premise is that a hunter stumbles upon the aftermath of a drug deal gone wrong. Bodies (human and dog) everywhere, huge load of heroin in the back of a trunk and 2 million dollars in a brief case. The hunter, a fairly savvy Vietnam veteran, naturally took the money. He got off scott free when in the middle of the night, his conscious got the best of him. He decides to head back to the scene and it ends up being the worst decision of his life. It sets off a huge chase through out north west Texas and even Mexico.
The villain of the movie is a character named Anton Chigurh. This guy is a psychopathic killer who feels he needs to kill anyone who crosses him. Of course, he has no problem crossing people himself. Only when he crosses someone, he makes sure to kill them so they can't return for revenge. He's very cold, very smart and manages to stay a step ahead of the police while close on the heel of the hunter. I don't want to go too much into it because it's hard to do so without giving spoilers.
This movie was actually filmed in New Mexico, a place I called home for many years. I immediately spotted the locations in the city that were actually filmed in Albuquerque. It's funny, how well I actually know the city. Albuquerque is one of those "little but big" cities, but it's very easy to map the entire place in your head. Sorry, getting nostalgic. As much as I put down the city for being too slow or not enough to do, a part of me does miss it.
The ending of the movie did leave me with a lot of questions. I guess the story is wrapped up, but so much more is left for me to wonder about. Maybe this was on purpose because the next day I bought the book and I am reading it now hoping to find answers to my questions.
I definitely recommend the flick! A lot of violence, blood and coin flipping... Call it!
Technorati Tags: movies, new mexico, no country for old men, violence
AhCabron.com - Now Powered By Django!
Monday, October 8, 2007 - 8:52 AMAhCabron is a very NSFW website that I have worked on and off on for years. The name "Ah Cabron" (spanish) basically translates into "You Ass!". I know the owner and am more than happy to help him out when I can. I have helped with engineering and development in the past and am sort of the "go to guy" when technical issues arise. Certainly I present a bill for my services; after all... we are not Communists. <insert laughter here> (Sorry, Godfather moment..)
Little history... The site started so people can upload images of their boyfriends/girlfriends and get feedback on their looks. It was originally run using the open source coppermine gallery software. It quickly turned into people uploading adult natured images and soon it was 99% adult only content being submitted. Not one to turn away perfectly good images, the owner kept up with it.
Soon he realized that coppermine was too limited for the changes he wanted to make. That's when I entered the picture. I originally wrote a brand new system from scratch using Python and Mod Python. It was a basic system using the mod_python.publisher, mod_python.psp system for templates and my own sql wrapper for database access. For about 2 years this software has been running the site and doing a great job. It has been a bit of a hit, as it pulls in over 8M page views per month which is respectable traffic.
The time had come how ever to take the site to the next level. For that, I knew I had to rebuild this thing from scratch. Since I am now a Django groupie, I of course rebuilt the software using it. In all I would say it took me about 13 hours total to rebuild this site or about 2 weeks giving time when I had it. Most of those 13 hours was spent writing data migration scripts from the old schema to the new Django model schema. With heavy use of generic views the site was put together extremely fast. I should mention that a lot of the back end code I reused from other projects I have worked on (ex: image processing, watermarks, Amazon S3 integration, etc).
As of now the new code is basically a replication of the old site. All the old features are there and I wanted to cut that over now and flush out any bugs before I continue with the list of new features that are coming down the pipe. Video, RSS Feeds on just about anything, full user profiles and slide shows are just a few of the features on my ToDo list.
Check out the site, and pass me some feedback!
Technorati Tags: ahcabron, development, django, nsfw, python
Eerie Sept. 11 Prediction - Sort Of
Friday, September 28, 2007 - 6:01 PMEveryone has heard the crazy tales about Sept. 11, 2001. Various predictions, stories and conspiracies are littered all over the net. Today, I found my own.
For whatever reason, I decided to login to my LiveJournal account that I had forgotten about a solid 3-4 years earlier. I was going through my posts and found this one.. Dated Sept. 10, 2001 at 8:54 PM..
bad feelingIve had this bad feeling for about 2 days now. I dont know how to explain it
its just a bad feelilng. Like an emptiness in my stomach, that gives me the
chills. Im not sick or anything, just a feeling like something bad is gonna
happen. Oh well, have to wait and see.Weird thing happened today. The ARMY called me to get me to re-up. They
offered a bunch of stuff, but I am pretty sure they killed all chances of me
joining again by their lack of compasion for a family situation I had when
I was in AIT.
First, how creepy is it that I had that feeling. Second, how odd that the ARMY recruiter called me that day. I had already had my medical discharge and was eligible for re-inlistment with a doctors waver (I had hurt my knee while I was serving prior to this). The recruiter made a point to say "We need you. We need a lot of people right now. Some bad things are in the works". Disclosure: I am paraphrasing here, I don't remember his exact words but it was very similar to my quote. The gist of it was that the ARMY needed bodies to join up and previous experience was preferred. I wouldn't need to go through basic training or school again, just a few re-entry courses and off to a duty station. As it turned out, that station would have been Afghanistan and Iraq.
I had completely forgotten about this call until I found this old post today. I remember feeling like the government had to have known something in advance for this call to come in. I shrugged it off as coincidence and forgot about it.
Now I am not a huge conspiracy theorist, but I can't help but shake the feeling that the government knew it was happening and didn't stop it. It's crazy I know, but it's not impossible. I honestly believe the government (read: CIA) was behind, or involved, with the Oklahoma City bombing of 1995. What did I say about not being a huge conspiracy theorist? The reasoning behind letting the attacks occur? There are many motives and some are more far fetched then others. I won't get into that here because this post wasn't meant to bring all this up. Just a reminder about that eerie post I wrote to LiveJournal all those years ago.
Technorati Tags: eerie, ARMY, attacks, government, Sept. 11, consipiracy
PostgreSQL Wrapper Using Python And PyGreSQL
Friday, September 14, 2007 - 5:47 PMEver wanted a nice, clean or sexy interface when working with Python and PostgreSQL? You're in luck, I happen to own one. I wrote this a year or so ago and it's been through some changes but overall it works very well. It is in use over at AhCabron (NSFW) and has been performing great for the site, which pulls 8M+ page views per month (I know, that's not a HUGE amount of traffic, but it's respectable).
Of course, for web work with Python I strongly recommend Django! But there are still plenty of other reasons why you need to hit a db outside of Django. That's where my module comes in.
It uses the PyGreSQL PostgresSQL module. This is the actual glue for Python to PostgreSQL. My module is what makes your programming super simple. So here it is, I am releasing it to the wild and under the BSD License. Do with it what you will.. Download it here
Here is an example of how to use it.. Very simple.
from sql import *try:
sql = PgSQL('dbuser', 'dbpass', 'dbhost', 'dbport')
sql.Connect('dbname')query = 'SELECT * FROM table WHERE "foo"=\'?\' and "bar"=\'?\''
sql.Prepare(query, (var1, var2)) # Prepare takes 2 items only. a query and a tuple (or single object)
sql.Execute()for x in xrange(sql.rows):
print sql.data[x][0] # Column count heresql.Close()
except SQLError, err:
print 'Caught err: %s' % (err)
Pretty self explanatory. If you have questions, check out the source. It's not a large module and pretty easy to follow. If you still have issues, feel free to email me. Upon any error, the exception it will raise is SQLError. I thought about adding more specific exceptions, but in the end, is it really necessary?
So there you go. Enjoy!
Technorati Tags: development, postgresql, programming, pygresql, python
Django + Flatpages = WTF?
Sunday, August 19, 2007 - 8:53 AMOK, the title is a little misleading. I love the flatpages. I recently deployed them on this blog for the about and contact pages and they were working fine. This morning I noticed that they were raising a 404 (Page Not Found) error. That's where my "WTF" in the title comes in. Here is a check list to solve this flatpage issue.
- Add the middleware and app as directed on the flatpages documentation page.
- Make sure you have the correct SITE_ID in settings.py and make sure the flatpage is assigned to that site.
- Check that you have flatpages/default.html in one of your template paths.
- Verify that your default.html template is extending the correct base template
Number 4 was my problem. I have been working on the code to allow multiple template sets to be selected in the admin interface. In doing that, I re-factored the base layout to be in template/base/base.html but the default.html was still extending base_blog.html. Doh!
I wish there was something logged somewhere though that would let me know there was an error rendering the flatpage. The 404 was pretty cryptic.
Technorati Tags: django, blog, python, 404, development
iPhone Hacking
Thursday, August 9, 2007 - 7:40 AMI've had my iPhone for about a week now. There are a few things about it I dislike. I mean, I thought Maddox was joking when he said there was no copy & paste functionality on the phone. Also, as of yet, there are no custom ringtones and the apple provided tones made me want to wear ear muffs every time the phone rings. Those few things aside, I love the phone. Was it worth the $600 price tag? Come see me in a month, but today I am saying yes!
So, what is one of the first things you do to a brand new and very expensive gadget? Hack it of course! I found a website called Hack The iPhone and started reading. A lot of the website is actually out of date. It says you need jailbreak & iPhoneInterface (both are CLI programs to interface with the iPhone). Both of which still work (I used them) but I found out that iPhoneInterface has been replaced with iPHUC. A great site, that is fairly current, is the iPhone dev wiki. Check here for updates on the progress of the iPhone deconstruction.
How did I hack the iPhone? Well, I got sshd running with scp/sftp-server support. I can SSH into my iPhone anytime I am connected via WiFi. This also means I can scp over custom ringtones! I use GarageBand to take an mp3 file, cut into the ringtone and export it to m4a format that the iPhone uses for it's ringtones.
The tutorial for getting sshd running is found here. Remember that iPhoneInterface was replaced with iPHUC. To build iPHUC, you will need xCode installed. If you don't have much, or any, UNIX CLI experience, than this may not be something you want to play with right now. Wait a bit, it's only a matter of time before these processes are automated. I will probably write up an updated tutorial soon and post it. If you need more help, stop by #iphone on irc.osx86.hu.
I should mention that I tried all this in OS X, I have no clue how to go about any of this on a windows box. I do know it's possible though, just not sure of the extra hurtles you need to jump. Good luck!
Technorati Tags: iphone, ringtones, hacking, apple
iPod Security
Thursday, July 19, 2007 - 4:01 PMEver had your iPod stolen or "Pod Jacked"? Well my 30G black iPod was stolen out of an MGM Grand hotel room a few weeks ago. I didn't notice it missing from my bag until I had gotten home. To late to do anything about it! I went searching for iPod security products, but found nothing.
Enter Hide A Pod! This was passed along to me today. It is the ultimate product to secure your iPod or new iPhone. I am still trying to get mine ordered, but there appears to be issues with the Microsoft servers. I will keep trying. I wish I would have found this a month ago, I would have saved a few hundred bucks!
Technorati Tags: microsoft, iphone, security, ipod, theft, zune
Ping Technorati from your Django App
Saturday, July 14, 2007 - 9:39 AMThere are other articles written about this, but I felt the need to write a better one. Ahem.
Meat and potatoes time.
In your settings.py file, set 2 new variables:
# 'PING' blog indexing sites.
PING_BLOG_INDEX = True# List of blog index ping URL's
BLOG_INDEX = ['http://rpc.technorati.com/rpc/ping',
'http://blogsearch.google.com/ping/RPC2',
'http://rpc.weblogs.com/RPC2']
PING_BLOG_INDEX is self explanatory. BLOG_INDEX is a list of blog XMLRPC url's that this application is going to use to notify the remote website (blog indexer) that your blog has been updated.
Let's create a new file in your blog application directory and name it ping.py. This file will hold the code that actually pings the blog indexers. Here it is:
from django.conf import settingsdef pingSites(entry, blog_name):
for site in settings.BLOG_INDEX:
try:
rpc = xmlrpclib.Server(site)
try:
p = rpc.weblogUpdates.extendedPing(blog_name,
settings.SITE_URL,
entry.get_absolute_url(),
settings.SITE_URL + '/feeds/rss2'
)
except:
# May not support extendedPing()
# Try normal ping
p = rpc.weblogUpdates.ping(blog_name,
settings.SITE_URL)if p.has_key('flerror') and p['flerror'] == True:
errlog(p['message'])
except:
errlog('pingSites: %s, exception!' % (site))
A few notes on the above code:
- errlog() is a function I have that just logs errors via syslog for my review. If you don't want to track the errors then a simple "pass" will do. I am just anal about errors and like to follow them. Heh, I said anal.
- This code assumes 2 things. One is that you have a "SITE_URL" option in your settings.py file. It should just be something like "SITE_URL = 'http://www.petersanchez.com'". And two is that your "Entry" model (the model that stores your blog posts) has a "get_absolute_url()" method. If it currently doesn't, I have to ask: What's wrong with you? Add one!
- You probably need to change the '/feeds/rss2' line to match the URL for your own RSS feed. Don't have an RSS feed on your blog yet? Write one, its super simple. Doc's are here.
Now lets edit your blogs models.py file be sure to import the pingSites() function that we just created in ping.py.
from your_project.blog.ping import pingSites
In your "Entry" model (mine is named "Entry", your mileage may vary) create a custom save() function.
def save(self):
# Save first, ping second (if configured)
super(Entry, self).save()
if settings.PING_BLOG_INDEX:
blog = Blog.objects.all()[0]
pingSites(self, blog.name)
Notes on above code:
- The 'blog' variable used in my example is because the software I wrote supports multiple blogs from a single installation. If you don't have a similar setup, just remove the "blog = Blog...." line and replace "blog.name" with the name of your blog. For example: pingSites(self, 'Joe Blow Blog')
That's it. You should be good to go. Next time you update your blog the blogosphere will immediately know about it via the blog indexers.
Technorati Tags: blog, development, django, geek, python
Oi! Update Time
Monday, July 9, 2007 - 7:22 PMBeen very busy the last few weeks. Not much time for updates here, but ill get to it soon! Here is a quick recap of the last week.
- Transformers was awesome. Not great, but pretty f'n cool.
- Django still rocks! (More tips coming soon)
- Tipping your bartender's well will result in a severe hangover. They return the love with extra strong drinks.
- Kids being gone with the grandparents for 3 weeeks is not as fun as I thought. In fact, it sucks! I miss them! It sucks even more that they don't miss me!
- In-n-Out still makes the best burgers around.
- Sunset Beach is a great place to be on a hot day.
And I'm out...
Technorati Tags: life, django, beach, burgers, transformers, hangover
