Next Meeting

Creating Bridges to Open Source

Meeting Info
Speaker: 
Phil Shapiro
Date: 
6/13/2015 10:00am - 12:00pm

Phil Shapiro, Public Geek at the Takoma Park Maryland Library, which offers 28 Linux stations to the public seven days a week, will explain the many different ways he has created bridges to open source in the Takoma Park community -- introducing a wide variety of open source solutions to individuals who had seldom used them before. He will also explain exciting opportunities for future bridges to open source. Time will be allowed for group input, brainstorming and shared storytelling on this topic.

As a preview of this presentation, see how Phil lends out his Macbook, formatted with Linux, to the public at his public library job. https://www.youtube.com/watch?v=bpsiyKgSYAk Phil loves to explain, "By the way, there's no Mac on this Macbook, but this laptop runs really well." People not only get a positive experience using Linux this way, they're able to explain to their friends, families and neighbors that Linux runs great on unexpected hardware -- made by Apple!

locate

So in the dizzyingly complex Linux systems I tend to work with (my Desktop being one of the worst), I've found locate to be my goto tool for locating anything and everything that's listed as a file. Locate is great, works blazingly fast, doesn't encounter permission denied errors like find. The only issue I've encountered with locate is that it uses an index database of the local file system to search for your pattern string. This database needs to be updated prior to searches, in some shared environments this update is controlled by a cron run, but if you have sudo rights or are the root user then you can run the "locate -u" command which is often aliased as "updatedb".


user@hp-laptop:~$ locate tcpdump.
/usr/share/man/man8/tcpdump.8.gz
/var/lib/dpkg/info/tcpdump.conffiles
/var/lib/dpkg/info/tcpdump.list
/var/lib/dpkg/info/tcpdump.md5sums
/var/lib/dpkg/info/tcpdump.postinst
/var/lib/dpkg/info/tcpdump.postrm
user@hp-laptop:~$

t()

In Drupal the ubiquitous "t" function is used to translate strings to a page language or a given user language. As such in module writing the "t" function should be used extensively to encapsulate all user readable text. The "t" function works with special placeholders that signal "dynamic information" in a string that needs "extra" filtering or should not be filtered or translated at all, such as URLs. There are three different placeholders that offer three different exceptions to the normal operation of "t".
PlaceholderDescription
!Prevents all manipulation by "t", text is inserted as is.

Ow my eyes!

So even my half colorblind eyes are in pain from the Geshi default syntax highlighting, but until I have time to go in and edit the files with the color choices(trivial) I think this is better than no highlighting.

Using GeShi filter for code highlighting

This website has the GeShi filter installed, so code can be escaped and formated with syntax highlighting. To have your code highlighted you must enclose it in "<code> </code>" tags. Just using these tags escapes the code and formats it as plain text. To add syntax highlighting, set the "type" inside the tag like this, "<code type="bash">. Supported languages are:
Language Name syntax "Type"
Bash bash
C c
C++ cpp
CSS css
Drupal 5 drupal5
Drupal 6 drupal6
HTML html4strict

drupal_goto()

drupal_goto($path = '', $query = NULL, $fragment = NULL, $http_response_code = 302) This simple function initiates an immediate redirect of the user to the URL indicated. The function contains additional parameters to handle complex URL building and supports RFC 2616 by registering an HTTP code for the redirect. The parameters are parsed by this code fragment: $url = url($path, array('query' => $query, 'fragment' => $fragment, 'absolute' => TRUE)); The array is relatively straight forward with the [0] element as the actual address, and the query(if any) loaded into an associative part of the array and the fragments(if any) also loaded into an associative part of the array. The PHP function 'header()' does the heavy lifting in the function by setting the destination and giving the response code to the users browser: header('Location: '. $url, TRUE, $http_response_code);

Linux Foundation Unveils New Linux.com | The Linux Foundation

Check out the newly launched Linux.com site run by the Linux Foundation. It would be nice if their vision came true...


SAN FRANCISCO, May 13, 2009 — The Linux Foundation (LF), the nonprofit organization dedicated to accelerating the growth of Linux, today announced the formal launch of Linux.com. The Foundation took over stewardship of the site in March, at which time it began soliciting input from the community to help define the new Linux.com via its Ideaforge web tool. Today, it unveils the results of that input and a new online home for all things Linux.

The new Linux.com will connect Linux users and developers, and by showcasing their skills through its guru listing, will connect individuals to jobs and collaboration opportunities. Instead of a static information site, the new Linux.com will empower the Linux community to share its knowledge, get questions answered, download the right software and find hardware to solve problems.

MY first NOVALUG blog post

Just an initial blog post on Novalug from me to help get my blog started. I seldom get to attend meetings due to time demands of my family and kids, but I do lurk and participate (when I can) on the listserv. Maybe someday...

I really love using Linux, as I've been using Linux for years, but don't consider myself an expert, especially when comparing my OSS skills and knowledge to most on this list. My expertise is more in the business uses of Linux, as I deal with a variety of customers in that space daily.

About me -- I work for Novell in the Data Center solutions group, supporting a handful of strategic solution provider partners (mostly on the east coast). We focus on Novell products such as SUSE Linux Enterprise Server and PlateSpin management tools. If you ever have questions on that front, feel free to ask me.

Changing your default site theme and/or your blog theme

After registering an account with the site, you may decide you want to go with a brighter theme than the default. So the site has been populated with about a dozen alternative themes that you can set from your user account.

To do this:

  1. open the "My Account" menu
  2. select the edit option above your account information
  3. scroll down to the theme area of the settings and select the radio button of the theme you want
  4. scroll to the bottom of the page, and hit the save button

Your default theme is now changed whenever you log in.

NOTE: You may have trouble viewing all of the "extra" content with a non-standard theme.

novalug.com