22 August 2011

SA:MP Image2Textdraw Converter 0.1 Online

         Ever wondered if you could put images into your SA:MP server? What would you have to do for it? You already know many textdraw editors around which render text on your server, you would probably make hundreds of small textdraws and put them together to make your awesome server logo appear on the screen. But hey that isn't easy as it looks it would take you 40 years of hardwork and painstaking detailing. Absolutely you would put your server name instead and run to snatch your breakfast from the kitchen. So whats other option? tell your dog to do it, when u return after an hour you'll just see your computer keyboard in his stomach.


That's why I planned to make a simple Image to Textdraw Converter for SA:MP which just asks a picture from you and position where you would like to keep it. It features a drag and drop and shows your image preview on position selector which you can move with your mouse clicks. And yes it converts your image into a filterscript in just 1 second! I'm sure you take more time than this to bath everyday.. Next you have to copy the whole output and compile it in pawno, add the filterscript name to your server.cfg and it will load the image when you connect. And yes, its online. and therefore you don't need to download and store any software on your computer or keep searching it when u really want to convert a image, just bookmark the page or the home page and it will be there, waiting for you.

Features 
Superfast This app works superfast, however the speed is dependent on the machine you are using, on a normal PC you should get the output in 2-3 seconds. 


Drag and drop You can drag and drop images into the box and your image gets selected! But you can also select your file by browsing your hard drive (the ancient way!)


Transparency Detection It detects the pixels in your image which are transparent and skips them


No more 45x45 The 45x45 pixel limit is removed in this version which means you can upload larger images, the tool calculates the transparent and non-transparent pixels, if the number of non-transparent pixels is less than 2048 output is generated or else you get a message saying you should upload images with less number of non-transparent pixels. 


Position Selector You can select the position for your image just by clicking on the position selector, your selected image appears where you click.


Screen shots of converted Images


























URL: http://bsndesign.webs.com/image2textdraw.htm

07 August 2011

Google +1 on Blog - Why is it so Important?

Google released the "Plus 1" button for webmasters and bloggers, so why is it so important to have one on your page? Google's new Plus button is also called social influence button by many, the more number of hits you get on your plus one button the more your chances are for getting more number of visitors. Plus One buttons basically shares your website link on your Google+ profile and recommends the links to your Google contacts and friends, these +1'd pages are given more priority when your friends or ones in your contacts searches relevant things but soon Google also started to count the number of +1's for your page rank. Google's Plus One should be given greater priority than the facebook's like and twitter button as it will decide your website's page ranking.
As this Google Webmaster Tools page clearly says











"Add the +1 button to let visitors recommend your site on Google"

How to add +1 button to any website?
  • First go to http://www.google.com/webmasters/+1/button/
  • Select necessary size and language 
  • Select and Paste the <g:plusone></g:plusone> to the place where you want you +1 to appear
  • Copy and paste the settings code after you finish adding all your +1's, preferably just before </body>
How to add +1 button to my Blogger blog?
Blogger now features a set of share buttons which appear after every post automatically. It also includes a +1 button by default. If you don't see the new share bar,
  • Go to Design > Click "edit" which is inside the main content area


  • Check "Show Share Buttons"




If you have moded template, these share buttons wont appear even after checking the box, ill write about showing Share Buttons in moded templates in my next post.

06 August 2011

Ubuntu File System - Explained

Here's a short overview for a complete beginner explaining everything about file system in Ubuntu and how to manage files and folders, hide them, see them from terminal, work with them etc in a Linux Ubuntu OS. For this guide I will use Ubuntu 10.10 which I think is the most successful Ubuntu release till date. This guide is aimed for users which are completely new and are unfamiliar with Ubuntu structure i.e Windows users.

Isn't it same as Windows?
Simple answer: yes and no!
The visual part here is quite similar to Windows. But Windows files are arranged inside drives. These drives are alphabetically named like C drive, E drive etc. (where mostly the system files are stored in your C drive) and you store all you files, photos and videos inside these directories. Well, its the same way in Ubuntu all the files are kept inside a single drive called "Filesystem" and no other drives, in case you can create one but its really unnecessary to do so. You can always store it in the basic Ubuntu files system.

First Some Basics
Lets first explore what we already have on a new Ubuntu machine.
Unlike you had My Computer in Windows, here you have to explore your files through the "Places" tab.
Lets take a closer look at the menu, your "Home Folder" is your main working folder, you can store all your music, images, videos or documents as well as you can see your downloaded files in Home Folder. All these pre-created folders are then listed below the Home Folder. By default the files you download with default browser Mozilla  Firefox are stored in Downloads folder. The "My Computer" in Windows is similar to "Computer" as you can see above, through which you can manage all your drives. You can see the Drive C and Drive E which are Windows drives because I am duel booting with Windows i.e I have Windows installed with Ubuntu on my computer and can access all my Windows files from here. Next there is Network which is for your LAN and the Connect to Server thingy is for FTP servers if you have any.

Try exploring each one of them and get familiar.
As you now know that you have Desktop, Documents, Music, Images, Videos etc inside your Home Folder lets find where this Home Folder is located. First open up your "Computer" in "Places" tab now you will discover a lot of files, all of these are Ubuntu's system files. Lets not fiddle with them for now. Just to learn where Home Folder comes from open the "Home" folder, it will have another folder with the name of your Username and there you will find your "Home Folder". These are the basic folders you must know.

The Complex Part - Using Terminal
Terminal is the place from where you can give commands to your Ubuntu, by default all the applications you use automatically give commands to the terminal and shows the result which saves your times for typing. But you can still learn to manually give commands to the shell which can always be useful.
You can open the basic terminal (don't do this now) by doing Ctrl + Alt + F3 and return back with Ctrl + Alt + F7 but there is also a terminal window by GNOME which can be opened by Applications > Accessories > Terminal.
On opening the terminal the first thing which you will see is a blank window with your username an @ symbol your computers name and a $ written - this $ means the terminal is ready to accept commands from you.
The default directory for terminal is your Home Folder, you can change this by using "cd" command

The "pwd" command
On opening the terminal the terminal has a working directory - now a working directory is the one which is used whenever you use a command like for opening a script, the terminal will search for that script in a directory which is called as working directory.
To see the current directory or working directory use the pwd command.





This shows my working directory is /home/bhavesh

The "ls" command
ls command lists all the current files and folders inside working directory



The "cd" command
cd stands for Change Directory, it is basically used to change the current working directory for terminal.
Now you know the folders and files inside your working directory. Now lets try to change our working directory by "cd ./Desktop" command.
You will get a ~/Desktop before your $ which means your current working directory is Desktop inside Home folder. You can check this my doing "ls" again.

Now What?
After reading this you now have a basic idea of how are files and folders arranged inside your Ubuntu FileSystem, you can learn more Shell Commands from here http://linuxcommand.org/lts0020.php < This website has all linux commands and explanation for file management.

04 August 2011

C++ in Ubuntu (gedit)

Hi there,
      If you are a C++ programmer or you learn C++ in your school/college and you programmed in Borland C or Turbo C earlier in Windows and thinking it would be so good if I could write my programs in Ubuntu, here's a cookie for you. Unlike downloading compilers and debuggers in Windows, there is an easy way to write and test C++ codes in Ubuntu. This includes using the pre-included text editor (gedit) and two small scripts with some standard libraries which we would download.

Things we will need:
  • Gedit
  • Two small scripts (Compile and Run)
  • Ubuntu Build-essential package
1) Gedit
gedit is the official text editor of the GNOME desktop environment.
While aiming at simplicity and ease of use, gedit is a powerful general purpose text editor.
We can create and add external plugins to this text editor easily.

 2)  Compile and Run scripts
I have two scripts with me which are supposed to be added into gedit, you can download them from here,





3) Build Essential package
You will need Build Essentials for Ubuntu if you want to program anything, even if you download NetBeans IDE or any such IDE you will always need build-essential which contains all the libraries needed for programming

Download Buil-essential package by typing this in terminal
sudo apt-get install build-essential

Procedure

Do..

cd ~
mkdir -p  ~/.gnome2/gedit/tools
nautilus ~/.gnome2/gedit/tool
s

Copy and Paste the two downloaded scripts inside this newly created folder

chmod +x ~/.gnome2/gedit/tools/*


Now make a new C++ file in gedit by right clicking on desktop > Create Document > Empty File and name it as any_file_name.cpp . In gedit open Preferences (Edit > Preferences) go to Plugins tab and enable External Plugins.

After enabling External tools you would be able to see External Tools menu Tools > External Tools
Now write a simple C++ program and try executing it.
The scripts also add some shortcut keys for compilation and running the program
Press F5 to compile, now click "Shell Output" once and hit F7, this would run your program in a new Terminal window.


















Note: The programs you write are not exactly similar to the ones which you did in Turbo/Borland C++. You will have to make some changes..
Some of these changes include
1) Including .h extension to header file does not work try removing it and vice versa
for example: #include won't work, instead use #include
2) There is no conio.h header file to stop the screen from getting closed, you will have to use stdio.h and put getchar(); two times for pausing the screen
3) Always use "using namespace std; " after all your include files.

Always remember to save the file before compiling

Sample C++ program for Ubuntu














Please let me know if you have any problem installing or running the program :)

02 August 2011

SA:MP BSN Textdraw Editor 0.3 Online



This is a third release in the series of Textdraw Editor's developed by BSN Design, but this time the offline software which was only for windows operating system developed with Visual Studio 2008 has become online. So anyone with a browser and internet connection can use it on any OS. This version has some more amazing features which would surly make building textdraws for GTA SA:MP servers easy as a pie. No downloading, no installation, just go to the website, enter information in fields, select color, position and your textdraw code is ready.


Some of the features of BSN Textdraw Editor 0.3 Online:
  • New Position selector with textdraw Preview on it
  • Move textdraw with mouse click and arrow keys
  • Feature to create Box's for textdraws
  • New Color Picker
  • Change Position Selector background image 
After you click on position selector, you will instantly get the X and Y co-ordinates for your textdraw.
Once you click Generate Code and get the necessary textdraw code you can simply make changes in the information you entered above and click generate code again to get PAWN code of new textdraw just below it, which means you can create as many textdraws you want and finally copy and paste all the code at once.

Movement of textdraws with arrow keys works only on Google Chrome for now but mouse click works on all the browsers. Its easy to use because you don't have to start your server and SA:MP many times just open a website in any browser with JavaScript support.


Shobha Yatra 2024 - Gudi Padwa - Vasai Road | शोभा यात्रा २०२४ - गुढी पाडवा - वसई रोड

Vasai Road - Din Dayal Nagar Shobha Yatra 2024 on the ocassion of Gudi Padwa organized by Pandit Din Dayal Nagar Utsav Mandal and Rajadhiraj...