CyberNotes: Dynamic Text Templates in Live Writer

This article was written on September 18, 2007 by CyberNet.

CyberNotes
Time Saving Tuesday

Last Thursday we showed you how to make Windows Live Writer portable, and today we are going to show you how to create powerful text templates that will save you incredible amounts of time. Unfortunately the plugin you’ll need to install, Dynamic Templates, won’t work with the portable version.

Dynamic Templates was created by Joe Cheng who happens to be one of the primary Live Writer developers. For that reason I had expected the plugin to be good, but I didn’t expect it to be this good!

As of two-weeks ago I was using the free Post2Blog software for writing all of my articles, and it had a built-in template manager. It was designed to let users quickly enter in some HTML code that would otherwise be found repetitious. It was limited to doing what Dynamic Templates can do in the first example below, so if the plugin doesn’t seem special from that demo make sure you move on to the others!

Before we get started with the four demonstrations I want to give you a heads up that there is some C# code involved in some of the examples. I’ve never actually programmed in C# before, but I’ve done 7 or 8 other languages so I was quickly able to pick up on the basics. The Dynamic Templates page has some instructions on how to insert the syntax, but you’ll probably learn the ropes from the videos.

–HTML Templates–

This is a basic HTML template that is what most of you will probably want. We use these all the time to insert things we frequently use in posts, such as our daily CyberNotes logo. That way we don’t have to insert the image every time we want to use it.

Code:

<p align="center"><a href="http://cybernetnews.com/category/cybernotes/"><img alt="CyberNotes" src="http://tech.cybernetnews.com/wp-content/uploads/2006/06/CyberNotes.gif"></a><br><strong>Time Saving Tuesday</strong></p>

 

–Selection Formatting–

The Dyanmic Template plugin has a command, "_selection", that lets you insert the highlighted text anywhere in your template. You might be asking yourself how that would be useful, but I think you’ll be surprised at how many things you can do with it. In this example we show you how to wrap multiple HTML tags around the text that we’ve highlighted thereby creating a one-click colorful header.

Code:

<h3><strong><font color="#800000"><%= _selection %></font></strong></h3>

 

–Selection Processing–

This is using the same "_selection" command mentioned in the previous demonstration, but now it is really starting to tie in some of the C# programming. More specifically this code will send the highlighted text through an HTML filter which will transform any plain text HTML tags into valid HTML.

Code:

<%= HtmlDecode(_selection) %>

 

–Advanced Video Insertion–

This demonstration shows you why I love the plugin so much, but you’ve got to know a little bit of programming to completely understand what it’s doing. Here I setup the plugin to prompt the user for a Google Video ID and the desired width/height for the embedded video. If no dimensions are entered in it will fall back on some defaults which can be designated in the code.

Tip: This code can easily be configured for use with any video service, but sites like YouTube specify the ID, height, and width twice in the embed code. Make sure you replace all necessary instances if you want it to work properly.

Code (there are also a few variables which you can get from the video):

<% if(width == "")width = "400"; %>
<% if(height == "")height = "326"; %>
<embed style="width:<%= width %>px; height:<%= height %>px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=<%= ID %>&hl=en" flashvars=""> </embed>

 

–Overview–

While the plugin is very complete in my eyes there are a few things that could make this even better:

  • Hotkeys! Oh man, it would be really sweet if you could assign hotkeys to some of the templates you use the most often.
  • I would like the option to set the size of the window which lists all of your templates. I have about two-dozen templates, and I don’t really like having to scroll to get to some of them.

To wrap things up Dynamic Templates is a great way to remove the strain of repetitive tasks, but to harness the true power you’ll need to sit down for an hour or so and learn how to write code that works well with it. Believe me, you won’t be sorry!

Dynamic Templates Homepage (Download)

Copyright © 2011 CyberNetNews.com

Related Posts:


How would you change Apple’s OS X 10.7 (Lion)?

Apple’s most highly sophisticated OS yet? Cupertino would have you think so, but as with any major update, there have been plenty of quirks to work through in the months following the introduction of Lion. For those of you who’ve made the 0.2 leap from 10.6.8 (or from further back, actually), we’re interested in learning how your overall experience has been. A good move? Still regretting it? What apps have broken on you? Has your workflow changed at all? Do you prefer “natural” scrolling? How would you tweak Lion if given the chance? What apps would you overhaul? What factory settings would you alter? Carefully considered thoughts are welcome in comments below.

How would you change Apple’s OS X 10.7 (Lion)? originally appeared on Engadget on Sun, 23 Oct 2011 22:40:00 EDT. Please see our terms for use of feeds.

Permalink   |   | Email this | Comments

Boot Ubuntu, Linux Mint, Ophcrack, and Others From a USB Drive

This article was written on January 11, 2011 by CyberNet.

unetbootin.png

arrow Windows Windows; Linux Linux arrow
A few years ago I used to keep spindles of blank CDs and DVDs next to my computer because I was frequently burning discs, but over the last year or two that has drastically changed. Now I have my discs tucked away since I barely burn one or two discs per year. Since I love playing around with different Linux distributions I went looking for a way to test them all out without needing to use CDs or DVDs.

One tool that has helped me alleviate my reliance on burning discs is UNetbootin. It’s a free utility that supports dozens of different Linux operating systems and makes them runnable off of your USB drive. What’s even better is that it can actually download the ISO file that it needs to deploy to your USB drive for most of the popular Linux variations. Here’s a list of the distributions where automatic downloading is supported, and in the list you’ll notice that there are also some utilities such as Ophcrack thrown into the mix:

  • Arch Linux
  • BackTrack – a utility used for network analysis and penetration testing.
  • CentOS
  • CloneZilla
  • Damn Small Linux
  • Debian
  • Dreamlinux
  • Dr. Web Antivirus – remove malware from Windows installs.
  • Elive
  • Fedora
  • FreeBSD
  • FreeDOS – which can run BIOS flash and other legacy DOS utilities.
  • FreeNAS
  • Frugalware
  • F-Secure Rescue CD – remove malware from Windows installs.
  • Gentoo
  • gNewSense
  • Gujin – a graphical bootloader that can also be used to boot various operating systems and media.
  • Kaspersky Rescue Disk – remove malware from Windows installs.
  • Kubuntu
  • LinuxConsole
  • Linux Mint
  • Mandriva
  • MEPIS
  • NetBSD
  • NimbleX
  • NTPasswd – a utility which can reset Windows passwords and edit the registry.
  • openSUSE
  • Ophcrack – a utility which can recover Windows passwords.
  • Parted Magic – a partition manager that can resize, repair, backup, and restore partitions.
  • PCLinuxOS
  • Puppy Linux
  • Sabayon Linux
  • Slax
  • SliTaz
  • Smart Boot Manager – which can boot off CD-ROM and floppy drives on computers with a faulty BIOS.
  • Super Grub Disk – a boot utility that can restore and repair overwritten and misconfigured GRUB installs or directly boot various operating systems
  • Super OS
  • SystemRescueCD – a system repair, backup and recovery tool.
  • Ubuntu
  • xPUD
  • Xubuntu
  • Zenwalk

Thanks to UNetbootin you should be able to boot any of the above Linux distros from your USB drive as long as your BIOS supports being able to use the USB drive as a boot drive. The homepage also says that it should work with just about any any Linux ISO that you have saved on your computer regardless of whether it is in the list above.

UNetbootin Homepage (Windows/Linux; Freeware)

Copyright © 2011 CyberNetNews.com

Related Posts:


AOL Forces Gaim to Change Name…Now Called Pidgin?

This article was written on April 08, 2007 by CyberNet.

PidginGaim has become a widely known instant messenger because it is not only cross-platform (meaning it works on multiple operating systems) but it is also cross-network. Using only this application you can connect with friends on AIM, MSN, Yahoo!, Jabber (or Google Talk), and ICQ without needing separate messenger clients for each one.

AOL, however, had a little fit because of the similarities in the name “Gaim” when compared to their already trademarked “AIM”. AOL must have realized that Gaim could become the messenger of choice for users since Gaim has already become pretty popular as a no-cost instant messenger alternative.

AOL and Gaim finally settled on a name change to Pidgin, which will definitely take some getting used to on my part. The good news is that the development team had been holding back releasing a new version of the messenger until all of their legal woes cleared. Now that it has passed they say that 2.0.0 should be available late this week or early next week.

Here is what the team had to say about the situation:

Getting a settlement with AOL has taken FAR FAR longer than we would have ever guessed. On legal advice, we have refrained from any non-beta release during this process as a show of good faith, and to keep AOL from giving up on it. Again, on legal advice, we have also kept this information closely controlled.

At long last, I am pleased to announce that we have a signed settlement and can release our new version. There is one catch however: we have had to change the project’s name.

I’m still a little in shock that this even had to happen, but I guess that is how the legal world works. If someone is jeopardizing the success of your own software (and advertising) then do what you can to remove them from the picture. Maybe I’m wrong about AOL’s reasoning for having to do this, but I think they saw a genuine competitor for their own instant messenger client which makes AOL a lot of money for displaying embedded ads.

The new homepage for the messenger is Pidgin.im, but it still looks like they have some rebranding to go through because most of the site still refers to Gaim and not Pidgin.

Source: Slashdot

Copyright © 2011 CyberNetNews.com

Related Posts:


Details On Office 2007 For Mac Emerge

This article was written on September 17, 2006 by CyberNet.

Office 2007 Mac Office 2007 for Windows is due in late January 2007 and the Mac versions should be released 6-8 months after it. Should Mac users expect the same kind of drastic interface change that Windows users will receive? It sounds like there will be some UI changes but they may hold back on using the Ribbon:

We will be doing a UI refresh but it won’t be exactly like you see in Office 2007. It just wouldn’t make sense. Apple has got their own very specific set of user interface guidelines and we try to first and foremost to follow those guidelines. If we can innovate on top of that and do some interesting things to make sure that the interface is really discoverable for the Mac user, then we’ll look at doing that. We can get some ideas (from the ribbon) but it still has to fit within Apple’s UI guideline, that’s what a Mac user wants to see.

We had what we thought was going to be this perfect UI solution, and the first time we put it in the labs, no-one understood it! It was so different they were completely confused! We just finished up another round of usability testing on the new UI yesterday, and the program manager said the difference is like night and day.

I thought it was funny how they reference testing out a new user interface but no one understood it. I know plenty of people who are going to feel the same way when they sit down to use Office 2007 for Windows. I don’t think these releases are going to be for the impatient. :D

News Source: APC Magazine

Copyright © 2011 CyberNetNews.com

Related Posts:


Refresh Roundup: week of October 17, 2011

Your smartphone and / or tablet is just begging to get updated. From time to time, these mobile devices are blessed with maintenance refreshes, bug fixes, custom ROMs and anything in between, and so many of them are floating around that it’s easy for a sizable chunk to get lost in the mix. To make sure they don’t escape without notice, we’ve gathered every possible update, hack, and other miscellaneous tomfoolery from the last week and crammed them into one convenient roundup. If you find something available for your device, please give us a shout attips at engadget dawt comand let us know. Enjoy!

Official Android updates

  • Given up on the HTC Thunderbolt’s mystical Gingerbread update? HTC’s still insisting that it’s on its way, despite multiple delays. This time, however, the OEM isn’t giving a timeframe for ETA. [Droid-Life]
  • The T-Mobile G2 was boosted to Android 2.3.3 in July, but we’re glad to see the device getting yet another refresh. This time the G2 is getting hooked up with 2.3.4, which promises better battery life and improved data roaming, among other minor fixes. [AndroidCentral]
  • What other device is getting 2.3.4 this week? The Sony Ericsson Xperia Arc, that’s what. It’s only rolled out to parts of Europe and the Middle East, so be patient if you haven’t seen an update show up for your unit yet. [AndroidCentral]
  • Up north, the LG Shine Plus on Telus is getting Android 2.3.3. [MobileSyrup]
  • Anyone using a Motorola Atrix or Milestone 2 in the UK should expect to have an update to Gingerbread sometime next month. [Unwired View]
  • Motorola mentioned on its Facebook page that the Droid Bionic will receive Ice Cream Sandwich, though it wouldn’t share details on when. [Thanks, Grant]

Unofficial Android updates, custom ROMs and misc. hackery

  • Amazingly enough, the Samsung Epic 4G is still missing Gingerbread (officially, at least). In hopefully what could be considered another step forward, Sammy’s pushed out the kernel source for Android 2.3. Keep those fingers crossed, Epic 4G owners. [AndroidCentral]
  • Motorola released the kernel source for the Droid Bionic. [AndroidCentral]
  • Speaking of kernel source, HTC’s also gone ahead and released code for the myTouch 4G Slide, Desire (Gingerbread), and the Raider 4G. [AndroidCentral]
  • Three days after its kernel was made public, T-Mobile’s version of the Samsung Galaxy S II has now been successfully rooted. [Phandroid]
  • Looking down at your HTC Sensation 4G (or any other Sense 3.0 or higher device) filled with Dre envy? Wish you had the cool Beats that’s starting to trickle out to the latest HTC handsets? Leave it to XDA to find a way to port the new audio functionality over to any Sense 3.0 or 3.5 phone without having to ditch your current ROM. [Droid-Life]
  • Anyone frustrated by the news about the HTC Thunderbolt above and is savvy to the rooting world may want to check out a new Gingerbread RUU just leaked for the device. [Android Police]

Other platforms

  • Select Symbian Anna devices are currently getting a bug fix. Sadly, it’s not Belle. [Unwired View]
  • The Windows Phone Team has reported that the Mango update is available to nearly everyone now. [Windows Team Blog]
  • The iPhone Dev Team brought out a new version of Redsn0w, 0.9.9b7, which was designed to significantly reduce the amount of time it takes to jailbreak your iDevice. [Pocketnow]

Refreshes we covered this week

Refresh Roundup: week of October 17, 2011 originally appeared on Engadget on Sun, 23 Oct 2011 10:00:00 EDT. Please see our terms for use of feeds.

Permalink   |   | Email this | Comments

Online Anti-Virus Solution From Symantec

This article was written on December 08, 2005 by CyberNet.

News has been released that Symantec is working toward providing an online anti-virus service. This could mean that when you go to places like Panera to use their free wireless Internet, that it will scan your computer before it will grant you access to their network. This could be a big step in the prevention to spreading a virus.

Copyright © 2011 CyberNetNews.com

Related Posts:


Microsoft Launches Ad #2

This article was written on September 12, 2008 by CyberNet.

Last week when Microsoft aired their first Windows ad, a lot of you had lots to say about it. Some of you thought that the commercial simply wasn’t funny while others of you thought that despite the fact there was no direct message, at least they were getting the logo out. We were left pretty confused as to the direction this ad campaign would take, but now that Microsoft has released a second ad, we are starting to get an idea of where it’s headed. Take a look below at the latest ad (it’s over four minutes):

The way we interpret it is that eventually they will bring everything together and the first commercial with the shoes was to represent that you need to find the shoe that fits right, or in the case of Vista, the right version for you whether it be Home Premium or Ultimate. This second commercial could be used to show that Vista is for “real” people since Gates and Seinfeld were living in the “real” world with “real” people.

We’re not sure what they have in store for future ads, but rumor has it that eventually the commercials will become more focused on Vista. So far the commercials have been a little confusing but it is definitely getting people talking, and I think there’s a much bigger picture here that we aren’t able to see yet. I don’t know about you, but I’m looking forward to finding out what else they have in store.

Source

Thanks for the tip Oliver!

Copyright © 2011 CyberNetNews.com

Related Posts:


13 Firefox Themes for NFL Fans

This article was written on September 06, 2007 by CyberNet.

It’s football season again!

Below you’ll find 13 NFL themes. Unfortunately, developers haven’t created one for every team yet. Clicking on the team name will take you to the Official Firefox Add-Ons page where you can download the theme.

If you like how the themes are presented below, make sure to visit Learn Firefox’s Themes section, where you can browse through over 200 more in the exact same way.

Arizona Cardinals

 

Chicago Bears


 

Dallas Cowboys

 

Denver Broncos

 

Green Bay Packers

 

Jacksonville Jaguars

 

Kansas City Chiefs

 

New England Patriots

 

New Orleans Saints

 

San Diego Chargers

 

Seattle Seahawks

 

St. Louis Rams

 

Washington Redskins

Copyright © 2011 CyberNetNews.com

Related Posts:


CyberNotes: Bookmarklets that make Subscribing to Feeds Easier

This article was written on April 04, 2007 by CyberNet.

CyberNotes
Web Browser Wednesday

I subscribe to feeds all the time, but many of the browsers are different in the way they handle feeds. Firefox has a pretty nice interface for choosing an external application as the default subscription handler while Internet Explorer (IE) and Opera are both a little more tricky. IE and Opera are setup to handle feeds from within the browser itself so they don’t offer many options for subscribing to feeds using external applications.

When you install an external application to handle your feeds on your computer, such as FeedDemon or RSS Bandit, it registers the “feed://” protocol with the operating system much the same way that your browser registers the “http://” protocol. This means that anytime a URL begins with feed:// it will actually try to launch your external feed program.

This bookmarklet doesn’t work for Firefox (at least I don’t think it does), but that doesn’t really matter because in the options you can choose a default program to handle the feeds. So if your using Internet Explorer or Opera the first thing you need to do is drag this bookmarklet into your bookmarks:

Now anytime you click on the bookmarklet it will take you directly to your external RSS feed application so that you can add the feed in there, instead of in the browser. The first time you will probably see some sort of warning like this one giving you a heads up that the browser is trying to pass a URL onto your default feed program, but you can just check the box to permanently allow this action:

Approve Feed

Don’t worry, if a site has more than one feed available the bookmarklet is designed to ask you which one you want to use before sending it to your feed program:

Select Feed

All you have to do is enter in the corresponding number of the feed you want to subscribe to and press OK.

Then I thought to myself that there had to be a better way to subscribe to the feeds…and I remembered Chris R. telling me about AddThis. It is a service that I could setup much the same way I setup the bookmarklet above, but for some people it is a little nicer. It will display a website that lists all of the feed URL’s associated with a specific site instead of having to use a popup window to select which one you want. With the way I had the bookmarklet setup it was easy to modify it to work with AddThis.

Internet Explorer and Firefox users just drag this link into your bookmarks:

AddThis

Opera users can click on this link if they want to create an orange RSS button to add to any toolbar:

Subscribe2RSS

I tested it in Firefox, IE, and Opera and it works in all of them from what I can tell. If you create an account with AddThis.com you can set it up so that you’re never asked for your feed subscriber preference again, although it can be changed later on should you decide to switch what program/service you’re using.

One quick thing that I wanted to mention is that in Firefox if you use the “Google Reader” option for subscribing to feeds you’ll be presented with an option to add the feed to your Google Personalized Homepage or to Google Reader. Most of you probably use one or the other and you can configure Firefox to automatically bypass that screen and go to your favorite service by following these instructions that Chad posted in our forum.

So that’s it…the first of the bookmarklets that I actually made myself and they came because I had received a few questions about changing how Opera handles feeds by default. If you have any ideas on how I can make it better or another service you would like it to work with just let me know, and I’ll do my best to fulfill your requests! :)

Copyright © 2011 CyberNetNews.com

Related Posts: