Ads / Sponsors
  • SolidWorks 2010: No Experience Required
    SolidWorks 2010: No Experience Required
    by Alex Ruiz
Categories
Tags
Ads / Sponsors
Navigation
Wednesday
10Mar2010

Adding Disqus comments to a Squarespace blog

The most important area of any blog is the comments section. Comments allow for a level of interaction between the author and readers that makes blogs a more interactive medium.  All blogging systems, including Squarespace, Wordpress and Blogger, come with a basic commenting system but what if you want more features? Luckily there are many third-party commenting systems that are available for free. Some of the more popular ones available are Disqus, Intense Debate, CoComment and Backtype. I have tried a number of these commenting systems when I first started blogging and I quickly discovered that I preferred Disqus. When I started this site on Squarespace, I really missed Disqus but luckily there is an extremely easy way to add Disqus to your Squarespace blog.

The Disqus Wiki has an entry describing the steps to add Disqus. I am going to go over the steps in more detail for you here. If you do not already have a Disqus account setup for your blog, you can do so at http://disqus.com/comments/register/. After doing so, make note of the Site Shortname you specified in the registration. This will be important when you add the script to your blog. The Shortname is a unique name with no spaces used to indentify your blog on Disqus. The system will not let you specify a Shortname that is used by any other Disqus member.

After setting up your Discus account, it is easy to add the script to your site. Start by logging into your Squarespace site to have access to the Website Management menu bar. Then click the Edit Website Structure button on the right side of menu bar.

Scroll down to the bottom of the page and select Edit Website Footer.

Copy and Paste the following script into the Edit Website Footer window:

<style>#postform, #comments .caption, #comments .text, #comments .comment-wrapper { display:none; }</style>

<script>

 var disqus_url = Squarespace.Constants.OBJECT_PERMALINK;

 var disqus_container_id = "comments";

 var disqus_callback = function() {

   var cEl = document.getElementById('comments');

   cEl.innerHTML = '<div>' + cEl.innerHTML + '</div>';

 }

</script>

<script src="http://disqus.com/forums/_YOURSHORTNAME_/embed.js"></script>

<script>

(function() {

 var links = document.getElementsByTagName('a');

 var query = '?';

 for(var i = 0; i < links.length; i++) {

   if (links[i].href.indexOf('#comments') >= 0) {

     links[i].href = links[i].href.substring(0, links[i].href.length-9) + "#disqus_thread";

     query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';

   }

 }

 document.write('<script type="text/javascript" src="http://disqus.com/forums/_YOURSHORTNAME_/get_num_replies.js' + query + '"></' + 'script>');

})();

</script>

 

In the script, change _YOURSHORTNAME_ with the name you specified during registration. There is more than one place where the shortname needs to be added in the script, so make sure that you added in each location. After editing the script, click Save & Close.

Disqus should now appear below each of your post. Test it out and see if your comments are posted correctly. If not, double check to make sure that you pasted the entire script into the Edit Website Footer window and that you replaced the _YOURSHORTNAME_ statement in the script. After adding the script and testing it out, you are now ready to interact with your readers.

 

Wednesday
10Mar2010

Microsoft Tag? Do We Really Need More Barcodes?

Last week I saw a headline that was begging to be clicked on TechCrunch, “Microsoft Launches Its First Android App. Yes, Google’s Platform.” Since I moved over to the Motorola Cliq last month, I have been in love with Android and I am always looking for cool new apps to try out. In fact, that is one of the reasons why I started this blog, I wanted to dig deeper into many apps offered on the Android Market and share the full story with you. Today, I want to introduce you to Microsoft Tag and discuss some of the pros and cons to Microsoft’s new barcode system.

Do we need another Barcode?

UPC BarcodeBarcodes are nothing new, everything that is sold in stores comes with a 1D barcode called a UPC, or Universal Product Code, that is used to enter a unique number into a computer. Each item in the store that has a UPC barcode is entered into a computer along with the unique number. When the cashier scans the barcode, the computer looks up the number and returns information about the product. This information can include things like the product name, price, sale price, etc. There really is no limit to what information can be looked up using barcodes but all that information is not stored in the barcode. That is why products sold in stores have a unique code administered by a standards body named GS1. Each product meant to be sold is registered with GS1 along with a company prefix, a unique item number and a mod-10 check digit. This ensures that no other product sold will automatically scan in as another completely different product. This also allows for there to be only one barcode regardless of where the product is being sold.

 ISBN BarcodeThe UPC barcode is only one type of barcode currently used through the world. If you look on the back of books, the ISDN number is used to generate a different type of barcode. The ISBN number, International Standard Book Number,  is registered with the book name and other information. When the barcode is scanned, the software recognizes the barcode as an ISDN barcode and then looks up the book. Not only is the ISBN barcode used by book retailers but it is also extremely helpful for buying books online with a barcode reader on your smart  phone. For example, maybe a coworker has a book on his desk that you want to purchase. Rather than digging through amazon.com you can just scan the barcode with your phone and it will do a search for the book online. Then often times within a few clicks, you can purchase the book with no hassle. It also helps in comparing prices since many phone apps automatically check the top online retailers and returns the best price.

QR CodeMany barcodes you see are called 1D barcodes since they only display information in on direction. The UPC and ISBN barcodes are examples of this type. Another common barcode type is the 2D barcodes which contains two directions. A common 2D barcode type is the QR Code which is a matrix code. The QR refers to “Quick Response” which means that the contents are decoded at a high speed. These types of barcode were originally created in Japan to help in tracking parts for vehicle manufacturing but they are becoming more common in other areas. Especially with the available of barcode scanners on cell phones which can be used for mobile tagging. On cell phones, when a QR Code is scanned, a browser can take you to a URL or even start a file download.

Microsoft Tag! 

Mircosoft Tag BarcodeUPC, ISBN and QR Codes are just a couple of examples of barcodes available for different purposes. On one program I have installed on my computer, there are 45 different barcodes available. That is a lot of barcodes and of course Microsoft wanted to add one more. In 2009, Microsoft released their beta version of Microsoft Tag on the iPhone. Microsoft Tag is used to read HCCB, High Capacity Color Barcodes, developed by Microsoft which uses colored triangles instead of the familiar black lines or squares. The advantage of using color triangles instead of black squares is that it allows for a higher density of information in a smaller area.

Since I am not an iPhone user, I was unaware of this system until I heard the announcement of the Android App last week. Curious, I installed the application on my Android Phone and created some Barcodes. My first impression was that I really liked these barcodes. For one, it was easier for my phone to read and interpret the barcode then standard 1D and 2D barcodes. Sometimes it may take a couple of minutes to get the barcode just right in the designated area in order to read the code. However when I read the HCCB barcode, I read the data in a couple of seconds without the need to move the phone closer or farther away from the code. It was just quick.

Another thing I like about Microsoft’s barcode is that the linked data is stored on their servers. This allows for one cool feature that is not available on any other barcode, the ability to download a vCard to your phone just by scanning a barcode. On Microsoft Tag website, http://www.microsoft.com/tag, You can enter in all of your contact information including websites, email, address, phone number, birthdays, and more. Then generate a barcode that you can add to anything. When someone scans the barcode using the Microsoft Tag app, the information is automatically downloaded and added to the phone’s contacts. Since Microsoft Tag is available on nearly all smart phones, you may see an explosion of barcodes on everything. Don’t be surprised if you begin to see barcodes on business cards, forms, information sheets and even on product packaging.

Although I really like the barcodes, I do have a problem. First, do we really need another barcode? I mentioned earlier that my system has 45 different barcodes. Does that mean that once other companies jump on the bandwagon, there will be hundreds of barcode standards? Then what is expected of the consumer? Are we all meant to keep a vast library of all available barcode readers just in case we run into a barcode we want to scan. I’d like to think that I am pretty up to date on most consumer level technologies but I never heard of Microsoft Tag before last week. What about the average consumer? How are they going to know that they need to download another reader. Microsoft does think about that. When you generate the barcode on the Tag website you can chose to include information where to download an app. By entering the web address http://gettag.moni, consumers can download the free barcode reader. But that can still be a hassle for some and I can’t say that I disagree. 

Conclusion 

After playing around with Microsoft Tag and comparing it with more well known systems, I have to say that I do like this system. Its quick, it allows for smaller barcodes and it just looks cool. But I will not be placing any barcodes on any of my business cards until one clear winner is proclaimed. Otherwise I will need to placing 200 different barcodes on my business card to allow for different readers to work. I am just too lazy…and cheap to do that. At a later date, I will go into detail on how to create barcodes, including Microsoft Tag, using some free barcode generators available online. In the meantime, let me know if you have used Microsoft Tag and what your impressions are about the barcodes themselves.

Friday
05Mar2010

Should the Internet be regulated?

Should the internet be regulated? A simple question that, in my opinion, has a less than simple answer. My reflex answer is NO but is that really the right answer? I am not what most would consider a heaver thinker, a heavy drinker at times but I am not known to ponder all of life’s questions on a daily basis. However, sometimes world events cause me to examine my own thinking. I am proud of the fact that I am not static in my thinking. I always try to take in all the available information about a topic and I make up my own mind. From time to time, I have also changed my beliefs about a topic as new information is presented to me.

That is exactly what has been happening to me in regards to the idea of a completely lawless internet. From the mid-nineties to today the internet has become a major part of the lives of everyone in the world. From 13 year old girls talking about the latest teen heartthrob to multibillion dollar companies that have an impact on the world’s economy, the internet is has become as essential as breathing. How can something so important and prevalent, exist in the state of total lawlessness?

Before the hate mail and accusations of socialism flood my inbox, let me clarify what I am saying. I believe that no one government or private organization should have the right or ability to control the free flow of information. Nor should there be laws or regulations that will make the internet only free to corporations or private individuals with more money than some third-world countries. Without the contributions of normal everyday individuals, the internet as we know would not exist today. If the internet was controlled by a government agency, such as the FCC in the United States, I would not be writing this today. If the internet was regulated like American television, it would be a corporate owned one-side conversation. Blogs would not exist, porn would not be available, social media sites would censor every word, information would be regulated…basically the internet would be as free as radio and TV after Janet Jackson shared her nipple piercing with Super Bowl viewers.

But a completely unregulated internet is just as detrimental. Throughout history there are plenty of examples of how dangerous the lack of simple laws and regulation can be. Prior to labor laws in the last century of the United States, children would be put to work in unsafe factories which would often result in serious injuries or death. Without the FDA, dangerous drugs such as heroin and cocaine were put in “cure all” elixirs peddled by shady entrepreneurs on street corners. Can you imagine how safe air travel would be today if there was no FAA and companies could opt for cheaper manufacturing methods instead of building safer jets? Without regulations and laws, the average lifespan of the world would still be in the mid-twenties. If we are not careful, the internet’s life span could be jeopardized as well.

I know that many of you are screaming at their computer screens now. You probably think that I am an idiot and that my previous examples are nothing like the internet. I argue that they are and here is why. Many countries have what are called Hate Speech Laws. In those countries you cannot write an opinion piece in a newspaper that says that anybody that is different than the majority does not deserve to live and should be shot on site. Someone cannot just go onto national TV and call for the extermination of an entire sector of the population. A group cannot even publish a book in some countries saying that Hitler was right and that his mission to exterminate the Jews should be continued. I don’t know anybody with an IQ over 15 that would argue that these laws should be overturned. So why do we tolerate the existence of these hateful materials on the internet?

These hate speech laws are not meant to shelter a group from criticism or from hurting their feelings. Instead, they are in place to keep those hateful ideas from influencing some wacko into carrying out crimes against humanity. Yes, we are still going to have the wackos and they are still going to kill, mame, rape and generally be a bunch of dicks but their actions will not gain credibility just because the local paper said it was okay. Some might argue that is exactly what is being done on American television by commentators such as Glenn Beck or Keith Olbermann. Even though I may not agree with many things said by many commentators on television, I have never once heard Glenn Beck tell his viewers that liberals should be rounded up and sent to gas chambers. Nor have I ever heard Keith Olbermann call for the mass murder of conservatives. However, that is exactly the kind of thing going on throughout the internet on each side of the political spectrum.

How many times in the past couple of years have you heard about some despicable act of insanity perpetrated  by some hateful idiot? Then before the dust settles, it comes out the perpetrator of the heinous act had a hate filled podcast, YouTube Video or their “Manifesto” was published on the internet infecting the minds of their readers with their dribble. Granted even if they did not publish their ideas on the internet they still would have probably carried out their plans. But what about the next unstable narrow minded idiot who stumbles upon these hateful items? A person who would have more than likely lived out his existence in his parents basement reads this crap and decides that it makes perfect sense and they want to do their small part to help the fight. A harmless crap for brains has suddenly become a domestic terrorist all because another idiot decided to share his distorted view of the world.

Hate speech is a touchy subject. The other side of the argument can get pretty bad as well. Some would call for the complete sanitation of contrarian views on the internet. This is already happening in main stream media when they try to censor obscenities. What is obscenity? If we tried to regulate to the lowest common denominator we would end up with an internet where one can only talk about puppy dogs and flowers. That is until a cat lover somewhere gets offended and suddenly the world wide conversation is limited to “What’s Up” and “Dude”. In my opinion, our current obscenity laws are archaic at best. What may offend a little old lady in Florida, may actually be accepted by the mainstream public. For example, profanity is fairly commonplace in everybody’s vocabulary. I myself do not believe in “Bad Words” like many people. Although I make every attempt to not curse in my articles, I do have a pretty bad potty mouth. I feel that words only  have as much power as one gives them. I don’t understand why a acronym for “For Unlawful Carnal Knowledge” or “Stack High In Transit” can be a “bad” word. As a parent, I teach my children to not use words that are considered bad but not for the same reason that most would. I tell my kids that these words are only words but they can offend some people and rather then make someone uncomfortable they should try to express themselves in a more suitable manner. I do have words that I refuse to use and I teach my kids the same thing. I refuse to call someone stupid or dumb, I have never said the “N-word” and I hate to use the word impossible. These to me are bad words because they all have the same effect on someone. They put someone down and hold them back from reaching their full potential. I maybe alone in my beliefs but that is just the point. Should my feelings about obscenity determine the words that my neighbor can or cannot say? No and I don’t think anybody should have that power.

Getting back to my original question…. Should the internet be regulated. Yes? No? Maybe? Honestly, I do not know the answer to that. I do feel that hate has entered into the online realm and it will continue to have an effect on our world as the internet continues to grow. Does that mean limiting free speech? Of course not and I would fight to my dying breath to prevent that from happening but I do think we as citizens of the internet need to address the issue. If there is one thing I hope will happen after you read this long rant of mine, I hope that this will spark a civil discussion on the subject. If we do not police our own, someone will and we will not like the outcome.

 

Thursday
04Mar2010

The Rebooted Alex R. Ruiz Tech Blog

For the first official post, I would like to take the time to introduce myself. Obviously my name is Alex R. Ruiz and I am the reigning king of geeks… the only problem is that no one knows that yet. Although this is the first post here, I am not new to the blogging world. For the past two years I have been blogging over at The SolidWorks Geek. There I mostly share tips and tricks about SolidWorks. If you are unfamiliar with SolidWorks, it is a 3D parametric modeling software primarily used in mechanical engineering. The SolidWorks community has been very good to me and The SolidWorks Geek has opened many doors for me. I was even able to catch the eye of a major technical book publisher, Sybex. In fact, this coming Monday (March 8th, 2010) my first book will officially go on sale. If you are interested, you can check out the book’s companion site over at http://www.swner.com.

 

Like I said, the SolidWorks community has been very good to me but just like a hyperactive, sugared-up eight year old with ADD…I want to do more. For some damn reason I decided that 3 hours of sleep every night was just too much. So I decided to start my personal blog where I intend on covering some of the other areas of technology that excite me. If you are a reader of The SolidWorks Geek, you know that I love doing tutorials. I believe that a good tutorial is the best way for new users of any technology to learn. Tutorials engage the reader and show them how to use tools within a software package rather than get buried in the technical side of the software. Not all users of technology are geeks. In fact if you start to ramble off the technical specifications of a particular software package or hardware such as computers, cell phones or TVs; many new users will curl up in a fetal position and suck their thumb while crying.

 

I don’t plan to be just doing tutorials, I also want to give you my honest opinions about what’s new on the market. I plan to get to know people within some of the top named companies and get the inside scoop. Yes I know that this approach is nothing new. Some great people have done this before and have probably done an awesome job. One of my geek heroes is Leo Laporte from TWiT and I would be lucky to have half the following that he has but I want to give you another perspective. I want to be the user advocate. I am a tech geek but I am not the sharpest crayon in the box when compared to some the founding fathers of tech. I believe that I still have the skills, passion and balls to give you the straight dope about today’s growing technology market. Where I lack in writing skills, I more than make up for it with tenacity.

 

To get the ball rolling, I want to start by talking about Squarespace. Over the past couple of years I have heard a lot of praise when it comes to Squarespace. When I created The SolidWorks Geek I was very new to blogging. I remember that I took a quick poll on twitter and a number of established bloggers suggested Wordpress. So I decided to purchase my domain from GoDaddy and I just jumped right into creating the site. The whole experience was not at all overwhelming. In fact I was able to build the site and create my first post within a couple of days of starting. If I wasn’t so curious about other packages I would have been completely content with staying with Wordpress. But I have this problem where I get bored and I want to explore. That is why when I decided to reboot this site, I decided to try it with Squarespace. As you can see, there is still a lot of work I need to put into this site to give it that professional look that I want. I have decided to take you along for the ride. Over the next couple of weeks, when I have time, I will share with you the steps that I am taking to build the site.

 

If you are a blogger looking for a new platform or if you are interested in getting into blogging, you should find the whole process informative. I will describe to you every step that I am taking to build the site into the best damn tech blog this side of TWiT. Over the next few weeks, I will cover setting up Squarespace, creating the graphics in Photoshop, setting up the RSS feeds and talk about integration with social media sites like Twitter, Facebook, LinkedIn and others. These are all steps I had to learn by trial and error when I created The SolidWorks Geek. I am excited about this and I hope that you will enjoy my coverage.

 

I love interacting with readers. Many of my material comes from questions and comments I get from readers and I want that same type of interaction here. If there is something you would like to see or if you feel I completely missed the bus on a subject, you can email me at admin@alexrruiz.com. I can also be found on twitter at http://twitter.com/swgeek. Thanks for checking me out and I look forward to talking to all of you. Until next time…