My Uber-cool employer decided to get us developers shiny new MacBook Pros, so I'm in this environment more than a few minutes for the first time. Here are my impressions so far.
It feels sort of like having a well-configured Linux laptop with a slightly idiosyncratic distro. Everything works out of the box without a lot of effort e.g. installing drivers or working through things not quite working right on some particular hardware.
This hardware appears to have 'Optimus'
graphics. That's a slower Intel graphics processor plus a faster
Nvidia processor with software to switch back and forth. Of course that all works smoothly out of the box,
compared with the ordeal I went through last year getting this working
in Linux. On the other hand, the last Mint 17 distro I installed on
that hardware handled the Optimus setup effortlessly, so Linux does
eventually catch up.
The 'spaces' (virtual desktops) feature seems cool at first, but after using it for a while I'm starting to feel like it's slowing me down. So far I typically have about 6 'spaces' (virtual desktops) but that will probably grow as I settle into this environment and start really using it.
I feel like I'm wasting a lot of time hitting the F3 button ('Mission Control'), as opposed to just having the Workspace Switcher visible and available all the time.
I briefly researched focus follows mouse (sloppy) with autoraise, but this looks like way too much trouble, if it's even possible.
I like the way things are more consistent in the Mac world when it comes to the keystrokes. I feel like I'm able to avoid using the mouse and keep my hands on the keyboard more. It's not impossible to do this in Linux but each application has different keystrokes so it's more of a memory challenge. The downside of this is I find myself focusing a lot on hitting the right fn, ctrl, option, command key, and it doesn't help that they switched ctrl and fn.
The keyboard is really pretty spartan... no number pad, no home/end/pg up/pg down. This seems odd for what is in a lot of other ways a premium hardware product. But hey, the keys that are there are backlit... ohhh shiny...
When it comes to installing software, so far I've been able to load everything I need, but it's kind of hit or miss. Brew has some things, the Apple store has some things, and for many packages you just google 'macos package name' and download some one-of-a-kind thing. I'm used to working with a package manager like apt or yum so this seems kind of haphazard and irregular, like going back 15 years to the days of SLS Linux, except I don't have to actually compile the software.
I was looking forward to finally using TextMate after years of watching the presenters at NFJS and Uberconf use this cool tool. I eagerly went to download it and to my horror discovered it is NOT FREE. This is a big problem with the Mac. There was some tool that claimed to solve the focus-follows-mouse problem but it was like $20-- I didn't want it that bad. Information wants to be free.
One thing that really sets this apart from, say, Windows, is being able to get a Unix shell. That is a real comfort factor for me. Though the MacOS file system is weird compared to Linux and other Unix versions I'm used to. Obviously they tried to make it more user-friendly (to newbies, that is).
One of my co-workers' new Macs died on him. It was less than 2 weeks old and this is one out of 5 we bought brand new. He's a Mac guy and was already doing backups with Time Machine, so happily he didn't lose much. But I find this rather shocking, given how expensive this hardware is. I dropped everything when he told us and configured backups on an external drive.
There's a lot of possibilities I haven't explored yet, notably Boot Camp, but my impression so far is, cool, but I wouldn't quite spend my own money on one of these. Which has always been a big issue since I drooled over the first Macs 30 years ago.
Wednesday, August 13, 2014
Monday, June 23, 2014
Seamonkey
For many years, Firefox has been my primary browser. But about a month ago, I had enough. They changed Firefox to make it just like Chrome. All the menus are now hidden in a little box in the upper right hand corner. The little box even looks just like the one in Chrome. Chrome is what I use for work. It's the best development browser. But, I use it in spite of the look and feel, not because of it. If I want Chrome I know where to find it.
Back in 2000 or so, my browser was 'Mozilla'. Then the Mozilla corporation came out with Firefox and Thunderbird, and the browser formerly known as 'Mozilla' became 'SeaMonkey'. I didn't care for Firefox at first. I felt it was slavishly following the look and feel of Microsoft Internet Explorer (like it's now doing with Chrome). But, eventually I got dragged kicking and screaming into Firefox, because of its support for plugins. SeaMonkey supported some plugins, but Firefox had all the cool ones. Then a bit later, Firefox came out with Tab Groups and I was really hooked.
I was a bit surprised to see that SeaMonkey is still around. When I fired it up, it was like going back in time 10 years. It has the big buttons and big, easy to navigate menus of the old days. I really like this look and feel.
Plugin selection is decent. It has AdBlock Plus, which I could not live without. FlashBlock is missing.
In the old days, your browser was also your mail reader, which is true of SeaMonkey. After I had settled in, I switched from Thunderbird to SeaMonkey Mail & Newsgroups. Here, things basically work, but there were a couple of disappointments. You can deploy the Lightning (Calendar) plugin, but it doesn't work. I'm probably not going to stick with this just for that reason as I had a lot of birthdays and stuff in my Thunderbird calendar. The other thing I noticed is the Move To -> Recent feature isn't quite as good as in Thunderbird.
SeaMonkey and Firefox obviously share a lot of code. It leaks memory about like Firefox.
I hear good things about Pale Moon and have it in mind to try this browser when I get around to it.
Update: well, that was fun, but I went back to Chrome and Thunderbird. The problems with the SeaMonkey mail reader in particular drove me back.
Update 2017: I went back to SeaMonkey again for 3-4 months. This time I didn't try to use the mail reader but just used the browser part. I really like this user interface with the bar with all the drop-down menus across the top. Also, the memory leaks in SeaMonkey are much smaller than in Chrome and I found I could keep a SeaMonkey browser up for months, as opposed to having to restart Chrome once or twice a week.
Ultimately I abandoned SeaMonkey again for two reasons: the absence of a Sync feature (the Sync feature exists in the browser but the servers aren't there, or something; I couldn't get it to work), and a growing list of important sites (e.g. my bank) reporting that my browser is not supported.
Back in 2000 or so, my browser was 'Mozilla'. Then the Mozilla corporation came out with Firefox and Thunderbird, and the browser formerly known as 'Mozilla' became 'SeaMonkey'. I didn't care for Firefox at first. I felt it was slavishly following the look and feel of Microsoft Internet Explorer (like it's now doing with Chrome). But, eventually I got dragged kicking and screaming into Firefox, because of its support for plugins. SeaMonkey supported some plugins, but Firefox had all the cool ones. Then a bit later, Firefox came out with Tab Groups and I was really hooked.
I was a bit surprised to see that SeaMonkey is still around. When I fired it up, it was like going back in time 10 years. It has the big buttons and big, easy to navigate menus of the old days. I really like this look and feel.
Plugin selection is decent. It has AdBlock Plus, which I could not live without. FlashBlock is missing.
In the old days, your browser was also your mail reader, which is true of SeaMonkey. After I had settled in, I switched from Thunderbird to SeaMonkey Mail & Newsgroups. Here, things basically work, but there were a couple of disappointments. You can deploy the Lightning (Calendar) plugin, but it doesn't work. I'm probably not going to stick with this just for that reason as I had a lot of birthdays and stuff in my Thunderbird calendar. The other thing I noticed is the Move To -> Recent feature isn't quite as good as in Thunderbird.
SeaMonkey and Firefox obviously share a lot of code. It leaks memory about like Firefox.
I hear good things about Pale Moon and have it in mind to try this browser when I get around to it.
Update: well, that was fun, but I went back to Chrome and Thunderbird. The problems with the SeaMonkey mail reader in particular drove me back.
Update 2017: I went back to SeaMonkey again for 3-4 months. This time I didn't try to use the mail reader but just used the browser part. I really like this user interface with the bar with all the drop-down menus across the top. Also, the memory leaks in SeaMonkey are much smaller than in Chrome and I found I could keep a SeaMonkey browser up for months, as opposed to having to restart Chrome once or twice a week.
Ultimately I abandoned SeaMonkey again for two reasons: the absence of a Sync feature (the Sync feature exists in the browser but the servers aren't there, or something; I couldn't get it to work), and a growing list of important sites (e.g. my bank) reporting that my browser is not supported.
Sunday, June 8, 2014
Mint 17
Wow, I guess it's a long time since I blogged.
I'm installing Mint 17 Mate on my laptop this weekend.
Last year I went through a lot of pain installing Linux on this hardware due to Linux support for UEFI still being in its infancy. I'm happy to say jumping through all those hoops is a thing of the past with Mint 17. This was pretty much a routine install.
For the first time, I didn't need to do anything special with the window manager. Usually I have to switch to metacity or mutter, but in this case marco just works.
I could not get either mintbackup or the dpkg/dselect technique to work this time, possibly due to all the additional repos, such as xorg-edgers, I had installed to get things working previously. Or possibly I should say, after one 8 hour attempt to restore everything led to an unstable system, I was out of time to experiment with this. I figure since this is a 5 year LTS release I'll have plenty of time to install all the packages I want, and I do still have the list of the ones I installed before to install manually as needed.
The xorg-edgers packages I formerly needed to get Bumblebee to work are now part of the standard repos. See Nvidia Optimus on Linux Mint 17 - GT650M ASUS N56, for example. This is now an easy and routine thing.
Suspend and hibernate work out of the box, yay.
I'm installing Mint 17 Mate on my laptop this weekend.
Last year I went through a lot of pain installing Linux on this hardware due to Linux support for UEFI still being in its infancy. I'm happy to say jumping through all those hoops is a thing of the past with Mint 17. This was pretty much a routine install.
For the first time, I didn't need to do anything special with the window manager. Usually I have to switch to metacity or mutter, but in this case marco just works.
I could not get either mintbackup or the dpkg/dselect technique to work this time, possibly due to all the additional repos, such as xorg-edgers, I had installed to get things working previously. Or possibly I should say, after one 8 hour attempt to restore everything led to an unstable system, I was out of time to experiment with this. I figure since this is a 5 year LTS release I'll have plenty of time to install all the packages I want, and I do still have the list of the ones I installed before to install manually as needed.
The xorg-edgers packages I formerly needed to get Bumblebee to work are now part of the standard repos. See Nvidia Optimus on Linux Mint 17 - GT650M ASUS N56, for example. This is now an easy and routine thing.
Suspend and hibernate work out of the box, yay.
Monday, October 28, 2013
Pair programming
I was looking at a job description at a place I'd really like to work. Everything about it sounded great, but it also said this:
'We pair program all day, every day because we know it delivers remarkable results.'
I have a number of concerns about pair programming. Wouldn't there be a suffocating lack of privacy? How can you get in the 'zone' with someone right there yammering at you?
What about when you're doing something other than coding? At my previous job I was assigned to work on some code that was new to me. It used an ancient proprietary framework that I wasn't that familiar with. I spent about a week researching to understand the existing code. If my pair programming partner knew the answers to all of my questions, great, but otherwise, how would two people effectively work on a problem like this at the same time? Maybe it's just my imagination failing but this doesn't seem like it would work.
Here's two 'pro' articles:
I love Pair Programming
First Impressions of Paired Programming
And a 'con' article:
Why I Don't Like Pair Programming (and Why I Left Pivotal)
I decided to go ahead and apply. I feel like this is something I need to learn to flesh out my experience and become a well-rounded developer.
'We pair program all day, every day because we know it delivers remarkable results.'
I have a number of concerns about pair programming. Wouldn't there be a suffocating lack of privacy? How can you get in the 'zone' with someone right there yammering at you?
What about when you're doing something other than coding? At my previous job I was assigned to work on some code that was new to me. It used an ancient proprietary framework that I wasn't that familiar with. I spent about a week researching to understand the existing code. If my pair programming partner knew the answers to all of my questions, great, but otherwise, how would two people effectively work on a problem like this at the same time? Maybe it's just my imagination failing but this doesn't seem like it would work.
Here's two 'pro' articles:
I love Pair Programming
First Impressions of Paired Programming
And a 'con' article:
Why I Don't Like Pair Programming (and Why I Left Pivotal)
I decided to go ahead and apply. I feel like this is something I need to learn to flesh out my experience and become a well-rounded developer.
Wednesday, October 23, 2013
Spring Web Flow
I was looking for something to walk me through Spring Web Flow in easy stages.
There's nothing on the snazzy new Guides page.
This was pretty good:
Spring Web Flow 2 Tutorial by Ivan A Krizsan
It's slightly retro (2010), but I found it pretty easy to follow and everything worked.
To get access to the Maven 'webapp-jee5' archetype, I needed to configure the Maven Central catalog as described here.
Update: The Spring Web Flow chapter in Spring in Action is really good. It's not free, though.
Working example at my Github repo.
There's nothing on the snazzy new Guides page.
This was pretty good:
Spring Web Flow 2 Tutorial by Ivan A Krizsan
It's slightly retro (2010), but I found it pretty easy to follow and everything worked.
To get access to the Maven 'webapp-jee5' archetype, I needed to configure the Maven Central catalog as described here.
Update: The Spring Web Flow chapter in Spring in Action is really good. It's not free, though.
Working example at my Github repo.
Monday, October 14, 2013
I'm on Github
I've used Github for work-related stuff, so, not that big a deal, but this is my first personal Github repo:
https://github.com/BlackTrenchCoat/pokemon.git
This is my Spring and Hibernate playground. It's a Pokemon-related app. It's nowhere near finished (though I've been working on some version of this on and off since 2010).
I'm hoping this will be useful when prospective employers ask for code samples. It's often a problem producing code that is 100% purely mine from work. Plus we sure aren't doing a lot of Spring and Hibernate at my day job.
https://github.com/BlackTrenchCoat/pokemon.git
This is my Spring and Hibernate playground. It's a Pokemon-related app. It's nowhere near finished (though I've been working on some version of this on and off since 2010).
I'm hoping this will be useful when prospective employers ask for code samples. It's often a problem producing code that is 100% purely mine from work. Plus we sure aren't doing a lot of Spring and Hibernate at my day job.
Saturday, September 14, 2013
HP Envy 17t-j000 (5) (hybrid graphics)
Note: skip down to 'Update 9/28' for the successful way to get hybrid graphics working.
Today I tried installing NVIDIA-Linux-x86_64-319.49.run from Nvidia Drivers. It went all the way through installation without errors (other than a message about not being able to run some preinstall script). And now I can use 'optirun'. 'optirun glxgears' reports 800 FPS instead of the 60 FPS it was reporting before.
I can't run glxgears without optirun any more. It says
Here's what inxi is saying now:
800 FPS? That seems a little on the slow side... the ATI Radeon HD 6770 on my desktop computer gets over 10,000 FPS.
When I was trying to run the install script (NVIDIA-Linux-x86_64-319.49.run), the first error it gave me was the 'You do not appear to have an NVIDIA GPU supported by the NNN.NN NVIDIA Linux graphics driver'. Then it gave me a second error to the effect that I couldn't install the driver with X already running. But when I rebooted in 'text' mode, both of these errors went away. So, they really mean it about turning off your X server to install the driver, but more importantly, the error message is misleading. I wonder if when I was trying this a month ago if I ever tried shutting X off, or did I just see the 'You do not appear to have an NVIDIA GPU' error and give up?
I reconfigured the few games I occasionally play on this computer to use 'optirun'. Everything looks good except for 'pinball', which gets an error like this:
Looks like totem is an OpenGL application. So when I just put a DVD in the drive, I guess it's not going to play. How can I configure totem and other apps that I'm not running from a launcher on the desktop to use optirun?
I thought vlc might work now with optirun, but no... still just a solid green screen.
I was getting ready to update all the OpenGL apps in my xscreensaver config file, but looks like there's more to it than that. Screen saver 'hacks' fail with an error like
I tried this:
The problem is that there are conflicts between the two drivers, particularly the OpenGL library:
One more useful resource: Listing of Installed Components from NVIDIA Accelerated Linux Graphics Driver README and Installation Guide.
Update 9/28:
I tried this again using the xorg-edgers repo as described here and this time everything worked. I'm not sure what I did different, except maybe installing nvidia-25 and bumblebee at the same time? Whew. I put many hours into this, but in the end the solution was pretty simple. When I was beating my head against a brick wall trying to get it to work with the driver from Nvidia's web site, I kept thinking about this and wondering if the conflicts would go away if I was installing the Intel and Nvidia drivers from the same repo. Looks like the answer was yes.
The only major feature I still don't have working in Linux is Beats Audio.
Today I tried installing NVIDIA-Linux-x86_64-319.49.run from Nvidia Drivers. It went all the way through installation without errors (other than a message about not being able to run some preinstall script). And now I can use 'optirun'. 'optirun glxgears' reports 800 FPS instead of the 60 FPS it was reporting before.
I can't run glxgears without optirun any more. It says
% glxgears Xlib: extension "GLX" missing on display ":0.0". Error: couldn't get an RGB, Double-buffered visual
Here's what inxi is saying now:
% inxi -Gxx
Graphics: Card: Intel Haswell Integrated Graphics Controller
bus-ID: 00:02.0
X.Org: 1.13.3 drivers: intel (unloaded: fbdev) FAILED:
vesa Resolution: 1920x1080@60.0hz
GLX Renderer: N/A GLX Version: N/A Direct Rendering: N/A
% optirun inxi -Gxx
Graphics: Card: Intel Haswell Integrated Graphics Controller
bus-ID: 00:02.0
X.Org: 1.13.3 drivers: intel (unloaded: fbdev) FAILED:
vesa Resolution: 1920x1080@60.0hz
GLX Renderer: GeForce GT 740M/PCIe/SSE2 GLX Version: 4.3.0
NVIDIA 319.49 Direct Rendering: Yes
800 FPS? That seems a little on the slow side... the ATI Radeon HD 6770 on my desktop computer gets over 10,000 FPS.
When I was trying to run the install script (NVIDIA-Linux-x86_64-319.49.run), the first error it gave me was the 'You do not appear to have an NVIDIA GPU supported by the NNN.NN NVIDIA Linux graphics driver'. Then it gave me a second error to the effect that I couldn't install the driver with X already running. But when I rebooted in 'text' mode, both of these errors went away. So, they really mean it about turning off your X server to install the driver, but more importantly, the error message is misleading. I wonder if when I was trying this a month ago if I ever tried shutting X off, or did I just see the 'You do not appear to have an NVIDIA GPU' error and give up?
I reconfigured the few games I occasionally play on this computer to use 'optirun'. Everything looks good except for 'pinball', which gets an error like this:
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded: ignored. ERROR: ld.so: object 'librrfaker.so' from LD_PRELOAD cannot be preloaded: ignored. Initing SDL 0 joysticks were found. Couldn't set video mode: Couldn't find matching GLX visual
Looks like totem is an OpenGL application. So when I just put a DVD in the drive, I guess it's not going to play. How can I configure totem and other apps that I'm not running from a launcher on the desktop to use optirun?
I thought vlc might work now with optirun, but no... still just a solid green screen.
I was getting ready to update all the OpenGL apps in my xscreensaver config file, but looks like there's more to it than that. Screen saver 'hacks' fail with an error like
superquadrics: root window's visual 0x20 does not support the GLX extension.But note that 'optirun superquadrics' from the command line works fine.
I tried this:
sudo apt-get install --reinstall xserver-xorg-video-intel
libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
to get the Intel OpenGL graphics working again. That worked, but
Nvidia graphics went away. I reinstalled the Nvidia driver, which
fixed Nvidia but broke Intel again.The problem is that there are conflicts between the two drivers, particularly the OpenGL library:
- Hybrid Graphics Tutorial - NVidia Optimus with the GeForce GT650M on Linux
- How to make Unity 3D work with Bumblebee using the Intel chipset
- Hardware Accelerated NVidia and Intel Graphics Together in Debian
One more useful resource: Listing of Installed Components from NVIDIA Accelerated Linux Graphics Driver README and Installation Guide.
Update 9/28:
I tried this again using the xorg-edgers repo as described here and this time everything worked. I'm not sure what I did different, except maybe installing nvidia-25 and bumblebee at the same time? Whew. I put many hours into this, but in the end the solution was pretty simple. When I was beating my head against a brick wall trying to get it to work with the driver from Nvidia's web site, I kept thinking about this and wondering if the conflicts would go away if I was installing the Intel and Nvidia drivers from the same repo. Looks like the answer was yes.
The only major feature I still don't have working in Linux is Beats Audio.
Subscribe to:
Posts (Atom)