Updates from March, 2010 Toggle Comment Threads | Keyboard Shortcuts

  • mcphersonz 7:02 pm on March 16, 2010 Permalink | Reply  

    –@@@– showing up in development_structure.sql (plus a solution) 

    I recently wiped my laptop clean & upgraded to snow leopard (OS X v10.6). In doing so I had to reinstall all my apps including gems, libraries, drivers, frameworks, etc.

    One of my projects is a Rails application that uses a oracle database. I installed the latest version of the required gems (including activerecord-oracle_enhanced-adapter) and found that things seemed to work fine at first, but eventually I ran a migration followed by rake db:test:clone_structure & found that things where not working as expected…. in particular the generated development_structure.sql file contained __@@@__ where it should contain semicolons, making things break all over the place:

    $ rake db:test:clone_structure
    (in /Users/smcpherson/dev/awesome_project)
    Exporting Synonyms
    Exporting Primary Key Constraints
    Exporting Foreign Key Constraints
    Exporting Triggers
    rake aborted!
    OCIError: ORA-00900: invalid SQL statement: –@@@–

    I don’t know what was causing this, but I know how I eventually avoided the problem….

    First, I removed the latest version of activerecord-oracle_enhanced-adapter (1.2.4):

    sudo gem install activerecord-oracle_enhanced-adapter

    Then installed the 1.2.3, 64 bit:

    sudo env ARCHFLAGS=”-arch x86_64″ gem install activerecord-oracle_enhanced-adapter -v=1.2.3

    That’s it.

    The 64 bit thing was not a issue — but I specified that as I don’t need the 32 bit version & from what I understand I will get a 32 & 64 bit version unless I specify the ARCHFLAGS during the gem install.

    Hope this helps someone else as it consumed the better part of my day….

     
    • barbara walters surgery 4:18 pm on June 1, 2013 Permalink | Reply

      Hi! Someone in my Myspace group shared this site with us so I
      came to look it over. I’m definitely loving the information. I’m bookmarking and will be tweeting this to
      my followers! Fantastic blog and excellent style and design.

    • Promo Toyota Kediri 3:17 am on July 5, 2016 Permalink | Reply

      Hello! I’ve been following your site for a while now and finally got the
      courage to go ahead and give you a shout out from Houston Tx!
      Just wanted to mention keep up the fantastic job!

  • mcphersonz 1:37 am on November 12, 2009 Permalink | Reply  

    /etc/hosts file is reverting to a previous state in OS X?!? 

    Problem: I make changes to my /etc/hosts file — but they don’t seem to “stick”. They take affect, but after some time (hours, a day) the changes I made are lost.

    Solution: When changing the /etc/hosts file, make sure you are NOT connected to the VPN (at least if you are using Network Connect by Juniper Networks.)

    Story: For a long time I have noticed that when I make changes to my /etc/hosts file it reverts back to a old state at the end of the day (or eventually). It has been very annoying as you can imagine. I have been keeping all my entries in a separate file & add them to my hosts file when I need them. Ugg. I got a clue via aardvark that it may be VPN related.

    It turns out that when I disconnect from the VPN the hosts file reverts to the state it was in before I connected to VPN. Ahh…. but If I make changes before being connected to VPN, then they stick.  I would connect to VPN, make changes to /etc/hosts, then eventually time out or disconnect from VPN… poof! Changes are gone & the next day begins.

    This was not obvious to me because 99% of the changes I make to the /etc/hosts file require the VPN to work to begin with! In addition, I mostly work remote — so it is rare that I will be in the office (not connected to VPN) and make changes to my hosts file.

    Now I know to make changes to my /etc/hosts file before connecting to my VPN 🙂

     
    • theillien 5:44 am on October 3, 2011 Permalink | Reply

      Sweet. I’ve been having this same problem. Glad to find it’s a simple issue and I’m not going insane. Now to see if this fixes the problem. Thanks!

    • Scott 10:18 am on February 16, 2012 Permalink | Reply

      Fixed it for me – thanks so much!

    • Anonymous 4:04 pm on August 17, 2012 Permalink | Reply

      I seem to be having this problem since installing Mountain Lion, my hosts file never changed when i edited it before, however now it reverts all the time. Any ideas? Im not connected to a VPN

    • Mike 5:42 pm on September 13, 2012 Permalink | Reply

      Shannon, thank you very much! I’ve had exactly the same problem, and the first dozen or more posts didn’t mention this issue. Now it works like a charm!

    • Anonymous 8:58 am on March 9, 2016 Permalink | Reply

      THANK YOU!

  • mcphersonz 10:10 am on March 21, 2009 Permalink | Reply  

    Favorite applications for OS X, Ubuntu and Windows 

    <!–
    Below is a list of my favorite applications for either OS X, Ubuntu linux, or Windows.

    When I moved from windows to Ubuntu I kept looking for software that did what my favorite windows applications did. Similarly when I moved to OS X from Ubuntu I looked for more software that met my needs in Ubuntu or Windows. Although there are generally less options for OS X software, what is out there (or built into the OS) seems to work just as well or better than what I have been used to in my former favorite operating systems.

    Here’s a list that I put together based on software that I use & applications that I would recommend for the three operating system types that I have had daily experience with.

    Functionality OS X Ubuntu Windows
    Audio Backup (create MP3) iTunes Audio CD Extractor FreeRip, iTunes
    Calendar iCal Thunderbird, Evolution Outlook
    Data Backup Time Machine Time Vault DataKeeper, Norton Ghost
    Database Development MySQL Administrator, SQLDeveloper MySQL Administrator, SQLDeveloper MySQL Administrator, SQLDeveloper
    Drive Manager / Partition Disk Utility.app gparted Partition Magic
    Drive Usage Mapper Disk Inventory X.app Disk Usage Analyzer Drive Doppler
    DVD Movie Backup JackTheRipper k9copy DVDShrink, RipIt4Me
    DVD Player DVD Player.app Totem PowerDVD
    Email Mail.app, Entourage Thunderbird, Evolution Outlook, Eudora
    FTP Client Transmit gFTP FlashFXP, CuteFTP, WS_FTP, Filezilla
    FTP Server built in FTP server built in FTP server GuildFTP, Serv-U
    Graphic Manipulation Gimp, Photoshop Gimp Gimp, Photoshop, Paint Shop Pro
    Instant Messaging Adium, iChat Pidgin, Gaim Trillian
    Media Player VLC, QuickTime Player.app VLC, Totem VLC, MediaPlayerClassic
    Music Player iTunes Totem, Rhythmbox WinAmp, iTunes
    Office Suites Open Office, Microsoft Office Open Office Open Office, Microsoft Office
    PDF Viewer Preview, Acrobat Acrobat Acrobat
    Peer to Peer / Fileshare Azureus/VUSE, Acquisition, BitTorrent Azureus/VUSE, Transmission Azureus/VUSE, Shareaza, LimeWire
    Photo Album iPhoto F-spot ACDSee
    Programmer Text Editor TextMate, TextEdit Kate, Komodo, Gedit UltraEdit, EditPad, Notepad
    Remote Control VNC, Screen Sharing.app, CoRD VNC, Remote Desktop Viewer VNC, Remote Desktop
    Terminal Client Terminal.app gnome-terminal Putty
    Video Editing iMovie avidemux VirtualDub
    Virtualization VMware Fusion, VirtualBox VMware Workstation, VirtualBox VMware Workstation, VirtualBox
    Web Browser Firefox, Safari Firefox Firefox, IE
     
  • mcphersonz 9:52 am on March 7, 2009 Permalink | Reply  

    Finally made the switch to the other side… (AKA: a former windows user that moved to Mac OS X) 

    It’s official. Apple’s Mac OS X is my favorite operating system.

    Here’s the story if you are at all interested:

    My first computer was a Apple IIe (that was before windows existed, of course). I then had a Mac SE (released around the time Microsoft windows was released). My parents then bought me a killer computer – it was a 100 mhz 486 that ran Windows 3.1.

    I used windows for another 15 years. Windows 3.1, Windows 95, Windows 98, Windows 98se, Windows NT 4, Windows 2000, Windows XP…… Wow. Been there, done that. It was cool for a while because I didn’t know a lot. I kept learning & kept using windows.

    Over and over again I had to deal with the same old Windows crap. Bad performance. Bad UI. Bad experiences in general…

    So I looked for alternative solutions. I was anti-mac for a long time. I had hard feeling about mac because of the lack of software at the time, the proprietary hardware, the lack of auxiliary hardware, the high prices…. well almost all of that has changed (basically everything but the high prices).

    I made a dedicated switched to Ubuntu a few years ago – meaning that I ran it as my primary OS & basically only ran windows when I had to & would do so via a virtual machine anytime I could. Ubuntu Linux is a beautiful operating system & idea in general. It has huge potential & has had a huge impact in the overall acceptance of Linux based operating systems.

    I can’t say this enough. I love Linux. I also love OS X…

    About six months my employer bought me a MacBook Pro. My goodness, I have not looked back.

    Not only is it basically built on Linux, OS X has an amazing GUI and unparalleled stability. That’s what sold me. The GUI is more intuitive & less obtrusive then any windows or Linux solution I have ever encountered.

    Compatibility is also amazing. Many Linux apps run under OS X, and if I ever need to I can run windows & ubuntu with great performance via virtual machines.

    Stability is better than windows or ubuntu with my experience & my usage patterns. Adding and removing software, tweaking settings, applying system updates, etc all seem to not affect my system’s stability. Rarely do I have to restart my system or end applications.

    Toss windows. Embrace Linux. Use OS X.

     
    • Jim Schimpf 6:33 pm on March 7, 2009 Permalink | Reply

      Congratulations, you made a very good move. The time you spent with Ubuntu and switching when necessary to Windows is just what you need with OS X. There will always be something that you need that won’t be available in OS X. Unlike others you won’t just quit OS X, but just boot up Windows and “get’er done”. There is a huge lack of choice in OS X which I actually like, I just use it and don’t spend time tweeking it.

      Also your now developed Linux reflexes will most often be right in OS X. And now I put on my “Well actually hat”. The great similarity of OS X and Linux is because they have the same UNIX heritage. OS X came out of the BSD tradition so will be different in philosophy in some things than Linux. They are the same more than different and I am more confused by Windows these days.

    • Daithí 2:46 pm on May 12, 2009 Permalink | Reply

      Hello.
      I’m kinda in the same situation, allow me to explain…
      Being a Linux (ubuntu and debian) user for years, and being Linux my favourite OS so far, there are things that, unfortunatlly, make the Linux OS still not desktop ready. My laptop, a 2 year old Sony Vaio, works way better in Linux than with Vista (it runs faster, more stable, the battery lasts longer, all hardware is supported out-of-the-box, etc). But, Ekiga doesn’t work as good as VoipBuster (audio quality and stability), Skype is years back when compared to the windows version, hardware support is very very good, but not as good as it should be, PluseAudio is still not ready for it, and I have an iPod Touch 2nd that makes me sometimes boot Vista to sync and update. So, for a guy like me that loves the Gnome interface, the *nix chassi, and every other positive aspect about the linux world, I’m guessing that the way to go is Mac, because I do not want to go back to Windows and I want something that is similar to Linux but without its weak points..

      …But….

      I have no mac experience (I’ve tried it 10 mins and found it hard – yes, I’m really saying that), I don’t want an OS that will treat me like a newbie hiding the tech stuff and showing me only happy and undetailed warnings, I want to continue to use free software alternatives (in windows there is a lot of good freeware that does a better job than some comercial apps), and I want an SO that doesn’t keep doing things in the background (windows again).

      Is the mac really the best choice for me!? I don’t wanto to be stuck with a cute laptop with the base OS because I woun’t have money to buy expensive software to do what I always did for free….

      • Anonymous 3:47 am on May 13, 2009 Permalink | Reply

        Daithí, I know it can be a bit painful to make the transition, but it is well worth it!

        I feel compelled to give you a nice lengthly response because this is something I feel compassionate about. I am a recent convert after over a decade of windows use spackled with linux experience & after about a year of OSX usage as my main personal & business OS of choice I am convinced this is the best OS for my needs at this current point in time.

        I agree that most linux operating systems out there still have a way to go for them to compete with Mac OSX or god forbid windows for most of us….. I do not want to go into the specifics because that is not the point of this post but I will say that when I went from windows to linux I was happy, but when I went from linux to OS X I was happier. Don’t get me wrong, I absolutely love linux and everything it stand for but for day to day use I find OS X more pleasant, intuitive and … reliable given my day to day usage & usage patterns.

        I _hated_ apple and mac for over 10 years. Then eventually I noticed that a lot of people in my community (ruby developers, graphic designers, …. casual users) started using it — a lot.

        The UI does take some getting used to but with time I felt that it was superior to other UIs I have worked with.

        I had to get used to using the apple/command key (Alt) instead of the control key for most commands….. CTRL+A, CTRL+C, CTRL+N, etc. Took a while, but I feel comfortable with it now.

        I only have a mac laptop — a macbookpro — so I had to get used to no more page up/down, del/insert, home/end buttons. That was a drag, but I learned equivalent keyboard shortcuts. That sucked, but I feel comfortable with it now.

        OSX hides stuff because that is what a good OS should do: be as unobstrusive as possible. The operating system should be transparent — you should not have to see or deal with it unless you need to. I think that is what OS X does & it feels right once you get used to it. Now when I switch over to my ubuntu (or umm…. winblows) system at home I feel like the OS is always announcing itself….

        That said, OS X has a lot of linux behavior in it — file structure, command prompt, services, etc. It has a ton of stuff that can be configured under the hood just like any other linux OS. It is extremely powerful & very customizable.

        As far as free software there is a ton of free software out there. Many people over the last few years have released some killer free OS X software. Most of what I use is free (or even better build in to the OS). I did buy a copy of TextMate (the best text editer out there), Office (for Word, Excel, Powerpoint, etc), and VMware (for virtualization). I think you have to but most of that stuff in windows — for linux there are always free alternatives. On the flip side, the way I look at it is that by buying software you are supporting developers — the very people that make that software possible. If it where not for developers, none of this stuff would be around. It’s quality software as well. None of this MS crap…..

        I can’t speak for you but the mac was the best choice for me. I got it for free from my employer, and I would buy one for myself if I did not have one already. The next desktop I buy may just be a mac. Oh, and as a added bonus yes, my laptop looks slick compared to the other bulky, boxy, thick & plastic laptops that I see out there. That’s insult to injury right there!

        🙂

    • Daithí 3:40 am on May 14, 2009 Permalink | Reply

      Anonymous, thanks for the reply, really apreciate 🙂
      Well, you are answering to all my questions with your post… About the free software, don’t get me wrong, I want to support good work from developers, I meant to say that I am not like some people that, for example, do some casual word processing and for that are going to get the latest MS Office version (ilegal) for their 4 year old computer, when they could use OpenOffice for that! If there is free software that doesn what I want I’ll stick with it, otherwise, I’ll search for paid alternatives.

      About the OS announcing itself, well, that is relative… With Vista it announces itself everytime it is idle (my poor poor hard drive), Linux announces itself by not making your life very easy (but in a positive and good way!) and making you go deep in the OS and expand your knowledge. I’m afraid to start do get lazy with OSX :p

      “when I went from windows to linux I was happy, but when I went from linux to OS X I was happier” – This my friend, this says it all! Although I do not have a rich mac experience, I guess that this will be happening to me. Having a fully supported comercial *nix OS without the things that, unfortunatelly, are still wrong with linux will make me the most happy guy on the planet!

      Cheers

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel