Thursday, September 27, 2007

Musics

Last night, I purchased a couple books from Dog Eared Books on Valencia. I've been interested recently in learning about the human brain (because of my interested in a PhD program in neuroscience and neural prostetics), and in learning French (because I'm thinking of moving to France). I purchased my first French dictionary, and started translating a French book that they had for sale. The first sentence on the back of the page is "Insociants amis bachelates!", which (as far as I can tell) translated to "Carefree graduates!" in English. I'm going to keep doing this to learn words, and pronunciations (from the dictionary).

After the book store, I saw the movie Once, which eventually captivated me into oblivion. Music is becoming boring for me. I've listened to all of the genres. I know what it all means. I understand, and I still shiver when I hear a very technical performance live. I think my life has too many other things going on, which is very sad. However, a rekindling due to Oink has begun. I'm concerned with my share ratio, but it doesn't seem to do too bad if you're on albums that people want. I just shared a John Cage album that wasn't up there before, and received Shocking Pinks in return. I like this new stuff...

I think my nerves have been worn down regarding new music since I've been so agitated with our president and congress...that nothing else seems to matter much.

But, we're all going to die someday anyway, right?

Wednesday, September 26, 2007

How to get an apartment in San Francisco

I've been looking for an apartment in San Francisco for the last 2 months. My roommate and my budget is tight, and neither of us are willing to compromise on space and security. There was one place that I was 2nd on the list only because I hadn't applied fast enough. Through all of these experiences, I've learned a few tricks that should land me a place in the coming weeks. So, I've made a list of tips on how to secure your next hipster pad across the street from Dolores Park, or your yuppie GOP heaven near Grace Cathedral. It ain't easy, but either is livin'.
  1. Bring your credit report.
    • Don't just bring your credit report, bring your resume, a cover letter telling them why you're looking and what you're looking for...and two pay stubs to prove that you've been in the city (or in a job) for a while. Any form of proof that you exist is probably good, as most people that come to open houses don't really exist, and the home owners know this.
    • If the person there isn't the home owner (happens very often) give it to them anyway. The worst they can do is throw it away.
  2. Show up earlier than everyone else.
    • Be the first to fill our all of their required documentation.
  3. Be interested.
    • If you walk in, fill out an app, and walk out...you're screwed. I don't care if your credit score is 850...at least shoot the shit with these people. Can you image working like that all day? I would need someone to make me utilize my vocal cords, or I'd go nuts!
  4. Set up an email or phone correspondence.
    • If there's an open house with times and addresses in Craigslist then...email them before the open house to let them know. If you just show up, they won't be familiar with you, and you're less likely to get the place.
  5. Don't bribe or be a douche-bag about needing it.
    • Seriously. Are you that desperate? Couch Surf until they move rent to your level. This country is run by it's citizens, not by corporations and government. Be a damn citizen and suck it up for a bit. That right place will fall into your lap. My first place in the city was a result of a 2 bedroom open house with a 4 bedroom upstairs. My roommates went to the 2 bedroom, and were surprised to find a 4 bedroom that wasn't in Craigslist for $2200 in 2005.
  6. Get a place you can barely afford.
    • Everyone is moving up in the world, right? So, chance are, if you're serious, you'll get a raise in the next year. Learning how to budget the money you do have will make that raise more important and feel good.
  7. Don't give them too much.
    • If the place isn't worth it...fuck 'em. They can find some idiot who can pay their exorbitant rates (ah hem CityApartments).

Tuesday, July 17, 2007

Linus Torvalds

I compare it with science and witchcraft (or alchemy). Science may take a few hundred years to figure out how the world works, but it does actually get there, exactly because people can build on each others knowledge, and it evolves over time. In contrast, witchcraft/alchemy may be about smart people, but the knowledge body never “accumulates” anywhere. It might be passed down to an apprentice, but the hiding of information basically means that it can never really become any better than what a single person/company can understand.


And that’s exactly the same issue with open source vs proprietary products. The proprietary people can design something that is smart, but it eventually becomes too complicated for a single entity (even a large company) to really understand and drive, and the company politics and the goals of that company will always limit it.

Thursday, March 08, 2007

Programming + Music

I have learned SO much in the last few weeks, it's unreal. Here's a short list of what I've done:
1.) set up mysql, apache, bugzilla, a cvs server, vsftpd, sshd, and twisted on a linux box (all for the first time in my life successfully and completely)
2.) re-learned batch file scripting for an install script for my twisted Windows service. It does the following:
  • Initialize registry values
  • installs python, twisted, pymssql, and transfers other files where necessary
  • creates a windows service and changes the type to "Auto"
  • figures out whether SQL Server 2000 or 2005 is installed and initializes all databases, tables, stored procedures, triggers, functions, and initializes data in one table based on user input...depending on which is used.
It's not a final script, but it works ok.
3.) C++ times a million
4.) I finally figured out what I was missing in my brain that prevented me from understanding the following:
  • asynchronous programming using either .NET2.0 (not asyncsocket) or Twisted
  • OSI TCP/IP layers. I finally realize how simple and affective this is (I always assumed I knew)...it's a great advancement.
5.) I know what I want in a woman. I just need to find her. I'll find you, don't worry.
6.) I've been researching cybernetics, specifically biocybernetics and bionics. I think my next company will involve something I learn from this.

I will be posting some of the amazing coding techniques and styles I've been learning recently, but don't have enough time right now.

Thursday, March 01, 2007

Detachment from Intention

Yeah...what he said. It's important that we (collectively not singularly) have forgotten about our founding. We've forgotten and still use it as an excuse to freedom. Since 1999, I thought that if I were to meet Governor Bush (yes...he was actually elected to at least one political position), I would spit on him and turn my back, since he's done that to my country. However, I was thinking of a question today. "Please tell me what freedom means to you. What makes a man (proverbial) free?" It's the rhetoric that is killing us, and the fact that politicians understand what they want, and will do anything to get it. I think our founding fathers knew this would happen, and tried the best way they knew to keep politics out of politics (if that makes sense). I still wonder what would have happened had George Washington accepted the popular idea of making him "King of Columbia". He was a mean but humble man. Where are the mean but humble presidents now? Obama? no... Kucinich? maybe... me? Hell no... I think we're all out of them. Maybe Clint Eastwood? Maybe Chuck Norris? Seriously...who's mean and humble at the same time?

You know, in Islam, the first 40 years after Mohammad died were the best (some say) because it was a true democracy during this time. The rulers and teachers were selected by the masses to represent those particular jobs. This doesn't work well in a large mass where no one knows anyone else, etc...but the reason it changed is because the original intent of Mohammad was mis-interpreted to mean that a descendant of Mohammad were to rule... All good things must have an end. I'm just waiting for Guam or Puerto Rico to fight for its independence from the US like Cuba did in the 60s. When will we get the picture?

Anyway..ranting.

Thursday, February 22, 2007

"I'm neither micro nor soft" - BG's pick up line

How nice of Microsoft's MSDN team to tell us a couple weeks before it happens that there will be a problem with every program we've written, and if we access the registry, our programs won't access the time zone data correctly....great!

This is the email I received from MS today:
"""
Dear Valued Microsoft Customer,

In 2005, the United States government passed the Energy Policy Act of 2005. This act changes the start and end dates for Daylight Saving Time (DST) as of spring 2007. These changes may impact the way applications run. Microsoft is releasing an update for Windows through Microsoft Update that reflects these changes.

Developers who use the .NET Framework may find their applications affected if the application uses the time zone information for historical purposes or if they have derived custom classes from System.TimeZone to provide custom time zone information. The standard System.TimeZone class provides a managed wrapper for the underlying Windows Operating System time zone functions.

In addition, developers who use Visual C++ may find their applications affected if they use the CRT time functions, or the TZ environment variable. Microsoft is currently working on a fix for this issue and will post information about its availability on the Visual Studio Support page.

Most applications that use these affected classes will not need to be modified as this update will ensure that the correct data is provided seamlessly to the application. However, applications that use these classes or the underlying Windows API to perform historical time look-ups will need to be modified.

In most cases, developers who have extended the .NET Framework’s time zone support by creating custom time zone classes derived from System.TimeZone, or by direct access to the Win32 API, will not have to update their applications as long as the available updates to the operating system are applied. However, solutions that rely on private time zone data, or that retrieve system time zone information by accessing the registry directly, may need to be updated. Applications that deal with historical time zone data may also need to be updated.

Microsoft advises all developers who make use of time zone data to test their applications against this update to ensure that their applications function correctly.

For more detailed information and the latest updates please visit http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx, Preparing for daylight saving time changes in 2007, and KB928388: 2007 time zone update for Microsoft Windows operating systems.

Further Assistance

Microsoft values your business. For more information visit http://www.microsoft.com/dst2007, or contact Microsoft for assistance. A list of phone numbers is located at http://support.microsoft.com. Microsoft Premier Customers may engage their Technical Account Manager directly.

Please DO NOT REPLY to this email as this is not a monitored inbox. If you have questions/inquiries please visit http://www.microsoft.com/dst2007

This e-mail is intended for distribution within the United States. Please contact your local Microsoft subsidiary for similar offerings outside the US.

Thank you,

Microsoft US Developer Team
"""

So, if you're using .NET and System.TimeZone (not derived from though!), or Win32 (like me), you're fine....as long as you have the newest version of Windows Vista 2025 Extra Business First class snakesonaplane Superman3 Robocop Titanium edition. Will they provide an update for Windows 2000 or NT Server? What about 2000 Server edition? What about Windows 98? If not, then all of the code I wrote at my old company can be trashed :)...or at least the time zone functionality.

Well, that's it. I'm glad they told us at least before the fact, and late enough so that no one really freaks out like Y2K (why2fake i called it). Idiots.

This is more of a reason to convince my employers to switch to trusty Linux (I'm using a CentOS box at work for CVS, internet web server, and file sharing via SMB).

Thursday, February 15, 2007

Name and content change

I have a couple "blogs" throughout internetstanbul, and want to consolidate. I kept separate blogs because some of my personal blogs are that post high school emo "woe is me" type bull, which I would rather not have mixed in with programming tips and tricks, or music recommendations, or political discussions.

So what I think I might do is change the name of this blog from "The Science of Programming" to "Sounds, Opinions and Programming", which will include discussions related to the TV show I will be producing and the music related, as well as music I'm into and seeing that's not related to the show. It will include opinions based on discussions, ideas, or inspirations that I get just living life. These will mainly be political in nature, because it seems that most of my emotional energy is driven towards political discussion. Finally, I want to write about programming. I don't just want to write tips, tricks, and new algorithms, but about IDEs, the culture behind programming, compilers/languages, how to manage software and hardware projects, and other things related to my greatest passion, and what I do for a living.

I have absolutely no one yet reading this blog, so I will be surprised if I get feedback on this right now, but I think I should be transitioning within the next few months. Oh, and it will make it easy to search because I'll be labeling each post based on one of three things "programming", "opinion", or "sound"