Webmin Bulk Add Ip Addresses

Problem

you want to add multiple ips ( aliases ) to a network interface using webmin's Net module. Adding them one by one is a slow process.

Solution

Modify webmin's Net module to allow you to copy/paste ip addresses in a textbox ( one per line ) and then click once and wait for it to do it's job.

Here's the patch for webmin 1.410, I know it's an old version but it should be easy to adapt for newer versions, let me know if you need any help.

Install

Download:  [download#2]

Apply patch:

  1.  

Usage

Log into webmin as root/admin , go to network configuration, click on  an interface in the interfaces section, click the "Add virtual interface" link and now you should see a text box where you can just insert each ip on a new line. then just click the "Create" button

This week on twitter 2009-01-25

Powered by Twitter Tools.

This week on twitter 2009-01-18

Powered by Twitter Tools.

This week on twitter 2009-01-11

Powered by Twitter Tools.

This week on twitter 2009-01-04

  • reading "How to Write Fast" post by @alisabow http://tinyurl.com/8e9h4c #
  • @dhollings how many of your followers are listeners ? in reply to dhollings #
  • just read " HOW TO: Simplify" http://tinyurl.com/a5osef . #
  • Happy New Year to all those of you that are already in 2009! #
  • Happy New Year to everyone! #
  • spent a few hours recovering parts from old circuits and building this: http://tinyurl.com/9roxkw , then my son lost it in 5 minutes 🙂 #
  • 4 out of 6 new followers today were suspended accounts. I guess spammers are finally starting 2 use twitter 🙂 #
  • I'm sick of all these predictions at the begining of a yr. They are too easy 2 make, every1 makes them and who cares if they get them wrong? #

Powered by Twitter Tools.

This week on twitter 2008-12-28

  • today I'll make my life easier by replacing gentoo with ubuntu.Sick of waiting for everything to compile even on a 3 machine compile cluster #
  • recruiting HTTP hdrs: X-hacker: If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header. #
  • Do you have a blog? Then why not add twitter id to your comment form? http://tinyurl.com/9wdgl5 #
  • @Bloggeries I think most of these "how to get rich" books are by people who have given up digging for gold so they r trying to sell shovels in reply to Bloggeries #
  • RT @Bloggeries I think most of these "how to get rich" books are by ppl who have given up digging for gold so they are trying 2 sell shovels #
  • @Jimconnolly your blog ate my last comment on this post: http://tinyurl.com/5uv8lg . Was it on purpose? Too many links? in reply to Jimconnolly #
  • @mvndrvrt if you're interested about how to set up the twitter field in the comments take a look at this: http://tinyurl.com/9wdgl5 in reply to mvndrvrt #
  • just because I comment on your blog it doesn't mean I want to get your promotional emails. That's just like spam. You know who you are. #
  • You autoresponder should not send me any more messages after I unsubscribe. Not even a confirmation! #
  • @qutequte I saw your comment on @jimconnolly blog.re: WP-Twitip-ID u might want to take a look at my mods for it: http://tinyurl.com/9wdgl5 in reply to qutequte #
  • @ariwriterdotcom if you use WP-Twitip-ID, you might want to look at this: http://tinyurl.com/9wdgl5 in reply to ariwriterdotcom #
  • The World's First Energy Generating Revolving door http://tinyurl.com/6gom83 #
  • RT @LorenMcDonald Email Marketing Tip O' Day: Make it easy 4 subs to change their email addr - otherwise they'll unsub & likely never re-sub #
  • just installed social homes plugin on my blog http://tinyurl.com/9gg5hy . An easy way to add links to your social ids in the sidebar #
  • WP Greet Box is a great plugin. Take FirstTimer to a whole new level http://tinyurl.com/696ew3 #
  • Merry Christmas to all! #
  • reading "Income From Donations - Amazon Wish Lists Rock" http://tinyurl.com/7nqkz2 @shoemoney #
  • I want facebook connect on my blog but I don't like the existing wp plugins cause they create users on my blog. It's bad for security #
  • @LisaBarone P2P in reply to LisaBarone #
  • got another type of spam today. From someone I don't even follow. How do I report it ? #
  • why can't I just DM @spam ? #
  • @graywolf I'll read your post even though I don't know what MWM stands for 🙂 but I think that's just a guaranty that I'll not steal it 🙂 in reply to graywolf #
  • it's amazing that I still get links and visits to a wp plugin that I wrote almost two years ago and that's not even working anymore #
  • I wonder how many out there are still using wordpress 2.3.x #

Powered by Twitter Tools.

WP-Twitter-ID Social Profiles Integration

A few days ago I wrote a post about a wordpress plugin that will add a twitter id field to the comments form and I was reporint two problems with it. One was solved in that post and for the second one I'm going to show you a solution in this post.

The Problem

The second problem was that the twitter id field was show assigned to a comment when a registered user was commenting.

Basically I needed a way to specify the twitter id of a registered user in the profile and then just make the WP-twitip-id plugin use that value form the profile. I could have done this by implementing the necessary code to show the field on the profile page and save it's value when the profile was saved but I was lazy and I wanted a quicker solution.

The Quick Solution

The quick solution was to install the Social Profiles plugin, set my twitter id in my profile and then do a simple modification to wp-twitip-id.

To make the modification just open wp-twitip-id.php in any editor, look for "function addtwitterfieldmeta($comment_data){" and right after that line insert the following code:

  1.  

That's it. Simple don't you think ? Now next time you post a comment as a registered user you should see your twitter id in the comment header.

Download

Here's the zip file with all modifications including the one in the previous post.

[download#1]

This week on twitter 2008-12-21

Powered by Twitter Tools.

Getting Social: Google Friend Connect

Lately I have become more involved into social media/networking. I'm far from a social media expert, and I think too many people declare themselves social media gurus. If everybody's a guru no one's a guru anymore :).

Anyway as part of my social networking involvement I try to experiment with new things as time permits. One of these things is Google Friend Connect.

What is Google Friend Connect?

In a few words it's a service that allows a site's visitors to connect with their friends that might also use the same site.

Google provides a few gadgets, one for showing members, another one for allowing members to post on your site's wall, a Review/Rate gadget and some others supporting the OpenSocial platform but developers can build their own gadgets too.

It allows you to see who else is using the same site as you are and what other sites are your friends using. You can connect with your friends on twitter, plaxo, google ( gmail) and orkut but other networks may be available in the future. So if you're visiting my blog and using one of those services you might want to become a member of this site and see what you're friends are doing.

How to implement on your blog?

If you want to implement Google Friend Connect on your blog, the process is pretty simple just go to http://www.google.com/friendconnect/ , click the "Setup a new site" button and follow the simple instructions.

It will ask you to provide the site name and home page url and then will provide 2 html files for download that you have to upload to your site.

I had troubles downloading the html files because they didn't actually contain any html but just javascript and firefox would interpret them and save them as empty files. If you have the same problem, get Firebug and look into the Net tab after you download the files. You should see the html response for each of those files and just copy paste into the files and upload that to your site.

Then pick one of more gadgets, customize them to match the look of your site and google will generate some html code that you can copy and put where ever you want on your site.

Let's connect!

You can see the google friend connect members gadget on the right sidebar after the "Recent comments" widget. Just click the "Join" button.

Other places where we can connect:

Twitter: http://twitter.com/mihaisecasiu

Facebook: http://www.facebook.com/people/Mihai-Secasiu/566029300

Linkedin: http://www.linkedin.com/in/mihaisecasiu

FriendFeed: https://friendfeed.com/mihaisecasiu

Stubleupon: http://symx.stumbleupon.com/

Digg: http://digg.com/users/symx

Twitter id comment field

I saw this post on problogger about how Darren implemented a new field in the comment form for his new blog about twitter tips powered by wordpress. Basically he used a plugin for adding and extra field to the comment form and then modified the comment template to show the link to the twitter profile page.

There are two problems with this approach. #1 Unlike the author name, email and web site, the twitter id field is not saved in a cookie so your comentators will have to fill it in every time they post a comment, this migh be annoying for some of them. the second problem is that if you're logged in and want to reply to a comment there's no way you can set the twitter id.

The first problem was almost solved by a new plugin named wp-twitip-id by Andy Baily specially created for setting up the twitter id field. I said almost solved because this plugin uses javascript to add the new field and in some cases ( depending on the template you are using ) javascript would not be the best way to do this.

Luckily you can use this plugin without javascript and add the new field manually by modifying the comments.php template file but then the cookie would not work anymore so it needs some modification to set the cookie from the php script instead of javascript .

Simply calling setcookie before the comment is saved will do the work, then when you display the form field just use $_COOKIE['atf_cookie'] to set the value of the twitter field.

If you like to modify some plugin code get the wp-twitip-id plugin, open wp-twitip-id.php look for addtwitterfieldmeta function and add

  1.  

right after the line with this code: 'if($twitter){'

Then go into wp-content/themes/<yout_theme>/ edit comments.php  look for the URL field and add a new field after it like this:

<input name="atf_twitter_id" type="text" value="<?php echo $_COOKIE['atf_cookie']?>" />

You might have to add some other html code and css to make the field look like the others but that depends on the theme you are using.

For convenience I have attached the modified plugin but you still have to modify the comments.php file in your theme.
wp-twitip-id-091

Let me know how this works for you. Do you think the twitter id comment field is worth the effort ? Does it bring value to you it as a commentator?