Category Archives: Code

NASA under Obama admin pushing out gov tech code – WIRED

About 1000 software code projects produced by the US Government/NASA are to catalogued and listed under open gov initiatives. Some are available with restrictions but many have potential real-world applications for researchers and entrepreneurs.

“All of the software that NASA writes is copyright free, and although the aforementioned rocket guidance system code and other software may be too sensitive to share, many other projects can be shared with anyone — in theory, at least. If the NASA software isn’t open-source, you need to get cleared by the space agency for a release. Sometimes, this is as simple as proving that you’re a U.S. citizen and signing a usage agreement. The problem is that with more than a thousand projects — coded by software developers at 10 different field centers — it has been tricky for outsiders to get an idea of what NASA has. That’s why Lockney and his staff built this master catalog.”

http://www.wired.com/2014/04/nasa-guidebook/

Advertisements

Moderating # Twitter Feeds – tweaking the free Twitter feed widget scripts for fun and sanity

 It’s easy to set up a Twitter Feed in a webpage to scroll your Tweets or the hashmarked Twitter feed from out in the world, using the free search widget. But what about when a # (hashmark) could unleash a cataract of unneeded or inappropriate content across your site?

To get a feed you just  go to Twitter.com and set a search widget up. The code can then be copied and pasted in to a regular html web page. But what if you need to moderate it for an event or mass Tweets–that can get out of hand? So if you like to hack a bit, this is fun.

I tweaked two feeds for a site so that the webmaster’s tweets would scroll by, and a selected contributor or two, or three, could stream in, too, depending. And they can moderate the entire hashmark feed out there in the Twitterverse that are not included in the tweaked search criteria and “retweet with comment” those they think are appropriate and that should should appear in the feed too–and they will, since their Twitter username is in the [modified] search criteria. The scrolling action is great and they can keep the feed under control.

You’ll need an html editor or text editor to proceed. The code below is  a screen shot image of a modified widget so you can’t copy/paste it. Enter it yourself and save or ask me here at supTweet (comments below, include email address) to send a copy of the text file (plain text.) It’s simple and works well and I suggest you use this code instead of the existing Twitter.com  service available now. (this code is two years old now in January 2013) So check out the image and move on down for your breakdown on how to get this done and running on your site and a link to a live example. Note: the widget script is contained in a table cell as seen here.

fig1_twitter_feed_widget.gif - Russ Imrie

fig1_twitter_feed_widget.gif – Russ Imrie

First: the account names – I am using fictitious account names, of course. You use yours.

  1. TwitterAcct1 (owner)
  2. TwitterAcct2 (trusted associate)
  3. remoteTweet (compound, a custom contributor – can be modified as times and events might change)
  4. #myhashmark this is up to you – REMEMBER your contributor(s) will need to include the # for the widget to pick it up – any Tweet without it will just fly on by. Neat eh?

Then the search Criteria: see “search” at line #6 in the image above

search: ‘TweetAcct1 OR TweetAcct2 OR (#myhashmark remoteTweet)’,

  1. All search criteria MUST be enclosed within single quote marks as a group
  2. multiple criteria must be separated by an UPPER CASE OR (remember nand/nor)? I am not totally sure on this but it works so…
  3. Each critical COMPOUND criteria must be enclosed in parentheses of its own
  4. WITHIN the parentheses, you need the appropriate hashmark AND the Twitter username that will be your contributor this time–note space and no other punctuation within parentheses
  5. The client has successfully used up to 4 of these temp contributors for an event

One tip – the “interval” control can be useful to add interest to a page with more than one of these feeds – varied a bit, the feeds will scroll by at different rates, cool. The colors, title, subject are all up to you. This feed runs on a page with a black background and looks awesome. It’s at http://www.indiancanyon.org and makes freshening the page a breeze.

distant US Capitol dome

U.S. Capitol SOTU eve, 2011 – photo Russ Imrie

Russell Imrie is a  Networking and Content Specialist, webmaster and an American Indian blogger living in the Washington DC area. More opinion pieces are at China Daily Mail and MediaSeenToo

Copyright © forever and 2012, 2013 by Russell Imrie

Related articles