Save your code snippets with Snippely

I am currently waiting for FeedReader to finish downloading some enclosures from a feed I am subscribed to. In the meanwhile I though it would be nice letting you know what a great tool Snippely is. Though it is in its developing stage it comes handy for all developers, designers, etc. out there that have a piece of code and want to store it somewhere so that it will be accessible later when needed. It is incredibly simple and straight forward: it lets you create some groups and in those groups you can add snippets. A snippet will have two main parts: the actual code and the note. It has a built in feature for applying different syntax highlighting for PHP, CSS, Ruby and JavaScript. So, as I said it is pretty straight forward and due to its minimalistic interface looks quite nice.

However, it misses a search function, as well as a import/export option. Of course it would have been awesome for it to be able to store the snippets on the web so that they would be accessible for you by using an account or such. Unfortunately it lacks the HTML syntax coloring. Of course there is a lot of work on it still but thankfully it is out there for us to enjoy so let’s be patient with the developers.

Oh, and by the way, to make up for that import/export thing you could do it manually by following the path to the SQLite database file:

“C:\Users\Username\AppData\Roaming\com.snippely.xxx\Local Store\application.db”. And there you have it; you can now be assured that your precious snippets won’t be lost if you decide to work on another computer or any other scenario.

Here are some screenshots to help you make an impression:

Fullscreen capture 7242009 32800 PM.bmp Fullscreen capture 7242009 32817 PM.bmp Fullscreen capture 7242009 32828 PM.bmp Fullscreen capture 7242009 32839 PM.bmp Fullscreen capture 7242009 32916 PM.bmp

Download: http://code.google.com/p/snippely/downloads/list

Posted in css, php, programs, scripts | Tagged , , , , , | 2 Comments

Re-inserting ads on the blog and using a free theme

I thought about this lately and in the end I decided that I will put some Google Ads and even some ads from my sponsors on my blog. I already had ads in the past so it won’t be something new. The new thing is that I will try to demonstrate to myself and to someone else a theory about blogs and ads. I will reveal the plan a little bit later. Another thing is that my blog will be capable of offering relevant ads and so resources for my readers which are always good to have. Here is the post in which I explained why I didn’t want a blog with ads half a year ago. I hope you will benefit from this as my readers as much or even more as I will benefit from this theory if it turns out to be true.

As far as the new theme, I honestly tell you that I got bored of the theme that I designed and for the moment I don’t have enough time to spend developing a new one. Besides, as you all might have noticed till now, I tend to have an affinity for developing not for designing. I am also planning to import all my posts from my other blog (SoftRelated.com) by translating them into English. Cheers !

Posted in experiences, news | Tagged , , , , | 1 Comment

Always-on-top solution for Windows OS

I, like many other users out there have a dual monitor setup but even so I need to have one or more of my windows always on top due to the importance of their content. The solution would be to buy an extra monitor but until I get the funds I will have to settle with managing my space more efficiently.

After you start this small app, an icon will be shown in the systray. The magic shortcut is CTRL+TAB. Enjoy.

http://softrelated.com/files/always-on-top.exe

Posted in programs | Tagged , , , | Leave a comment

Bots following me on Twitter ?

I just posted a tweet (after a loooong time) and got some notifications from my Twitter account that I have a few new followers. Strange account names, amazing coincidence after just posting a tweet ? Anyone knows anything about this ?

Posted in experiences, twitter | Tagged , , | Leave a comment

Best way to inspect dead links using your 404 page

404

I searched for some instructions on how to easily find dead links on my blog. I found some plugins that do just that but instead of using a plugin to do it why not use this cool method that can also provide you with a custom 404 page ?

The WordPress Codex directory is way cool and it is maybe one of the best wordpress resources out there. Here’s the link that interests us in particular: Creating an Error 404 Page. You just need to create a 404.php file in your theme directory (in case you don’t already have one). Put the following code in it and customize aiding yourself with the comments:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php get_header(); ?>
   <div id="post-entry">
     <h1>Whoops !</h1>
	     <div class="post-content">
	     	<p>You 
				<?php
				#some variables for the script to use
				#if you have some reason to change these, do.  but wordpress can handle it
				$adminemail = get_bloginfo('admin_email'); #the administrator email address, according to wordpress
				$website = get_bloginfo('url'); #gets your blog's url from wordpress
				$websitename = get_bloginfo('name'); #sets the blog's name, according to wordpress
				
				  if (!isset($_SERVER['HTTP_REFERER'])) {
				    #politely blames the user for all the problems they caused
				        echo "tried going to "; #starts assembling an output paragraph
					$casemessage = "All is not lost!";
				  } elseif (isset($_SERVER['HTTP_REFERER'])) {
				    #this will help the user find what they want, and email me of a bad link
					echo "clicked a link to"; #now the message says You clicked a link to...
				        #setup a message to be sent to me
					$failuremess = "A user tried to go to $website"
				        .$_SERVER['REQUEST_URI']." and received a 404 (page not found) error. ";
					$failuremess .= "It wasn't their fault, so try fixing it.  
				        They came from ".$_SERVER['HTTP_REFERER'];
					mail($adminemail, "Bad Link To ".$_SERVER['REQUEST_URI'],
				        $failuremess, "From: $websitename <noreply@$website>"); #email you about problem
					$casemessage = "An administrator has been emailed 
				        about this problem, too.";#set a friendly message
				  }
				  echo " ".$website.$_SERVER['REQUEST_URI']; ?> 
				and it doesn't exist. <?php echo $casemessage; ?>  You can click back 
				and try again or try using the search box in the sidebar.
			</p>
	     </div>
	</div>
 
 
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Easy enough ? I think it is an awesome method. At least for testing if not for permanent use. Hope this helps. Oh, and by the way, if you have a large blog be ready to be bombarded with emails generated from this 404 page.

Posted in php, scripts, tips and tricks, wordpress | Tagged , , | 2 Comments