Showing posts with label general. Show all posts
Showing posts with label general. Show all posts

Monday, September 12, 2011

Print particular DIV inside HTML Page

by sandipransing 0 comments
Hiding Whole page content and displaying only particular div using css

<style media="print" type="text/css">
  @media print
  {
    body * { visibility: hidden; }
    #PrintDiv * { visibility: visible; }
    #PrintDiv { position: absolute; top: 40px; left: 30px; }
  }
</style>
Read More…

Thursday, March 17, 2011

Twitter share and facebook like button for haml-rails, html/erb

by sandipransing 0 comments
Twitter share and facebook like button for html/erb
<div class='spread'>  <div class='twshare left'>   <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="funonrails">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>  </div>  <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" layout="button_count" show_faces="false" width="450" font=""></fb:like> </div> Twitter share and facebook like button for haml
.spread .twshare.left %a.twitter-share-button.left{"data-count" => "horizontal", "data-via" => "fuonrails", :href => "http://twitter.com/share"} Tweet %script{:src => "http://platform.twitter.com/widgets.js", :type => "text/javascript"} .fshare.left{:style => 'padding-left: 0px; margin-left: 10px;'} %script{:src => "http://connect.facebook.net/en_US/all.js#xfbml=1"} %fb:like{:layout => "button_count", :show_faces => "false", :width => "450"} .CLR Sample Buttons
Read More…

Thursday, March 11, 2010

blogger tips

by sandipransing 0 comments
Change default favicon on blogger
Go to the layout click on Edit HTML link
Insert following link code inside head tag
<link href='IMAGE_ICON_LINK' rel='icon' type='image/x-icon'/>
Replace IMAGE_ICON_LINK url with your icon file url on web


Use Dynamic Drive- FavIcon Generator online tool to easily create a favorites icon (favicon) for your site



Read More…

Tuesday, February 16, 2010

Copy database to another database through command

by sandipransing 0 comments
1. Copy One database to another database on same host
mysqldump -uroot -p | mysql -uroot 2. Copy database to another database on remote host
mysqldump -uroot -p | ssh host2 "mysql -uroot "
Read More…

Tuesday, November 24, 2009

Flash games

by sandipransing 0 comments
3rd worm game ----------------------
  Racing Game ----------------------
 
Read More…

Gravity Master Game Challenge

by sandipransing 0 comments
Collect all rotating circles with the black ball. You can move the ball by drawing shapes with mouse and using physics. The ways of completing a level is only limited by your imagination and line limit. Complete 15 levels to unlock level editor. I recommend to lower your mouse sesitivity. P.S. This is the first game I ever made

Read More…

Monday, November 23, 2009

Upgrading openoffice in ubuntu interpid

by sandipransing 0 comments
Follow simple steps defined in this post for smooth upgrade of openoffice in linux.

click here
Read More…

Wednesday, November 18, 2009

Get hand over VI / VIM editor

by sandipransing 1 comments

Movements
b   previous word
w   next word
e        end of word
0/^      begining of line
$        end of line
G        end of file
1G/gg    begining of file
/pattern  search next
?pattern  search previous
n         repeat    search forword ( i.e next occurence )
N         repeat    search backword
:line     goto line specified

  *****Modes****
  i   insert mode
  r   replace mode
  s   delete character under cursor and eneter insert mode

  *****Delete******
  x    delete character under cursor
  dd   delete current line
  line dd delete number of lines specified

  ****copy********
  yy        copy current line
  pp        print copied contents
  line yy   copy number of lines specified

  *******visual******

  v     enter visual mode
  aw    highlight word
  as    highlight sentence
  ap    highlight paragraph
  ab    highlight block

  ******undo/redo******
  u       undo
  cntrl+r redo

  ******autocomplete****
  cntrl+x   enter completion mode
  cntrl+p   display autocomplete options

  ******uppercase/lowercase*****
  guu   lowercase line
  gUU   uppercase line

  *******Regx replace****

  range s/foo/bar/arg - replace foo with bar in ‘range’ with

  Values of 'range':
  %               whole file
  number          that particular line
  none            apply to current line only

  values of 'arg':
  none  apply to first occurrence
  g     global (all occurrences)

Select/Macros
  qchar      start recording macro storing it in register ‘char’
  q          end recording
  @char      replay the macro stored in ‘char’
  :1,10 norm! @char run the macro stored in ‘char’ over the 1-10 line range

Read More…

Friday, November 6, 2009

Linux commands for remote access, compress, decompress

by sandipransing 0 comments


Remote Login
============
ssh client is a program for logging into remote machine and execute commands.

ssh [-l login_name ] hostname | user@hostname [command ]

other options

ssh [-afgknqstvxACNTX1246 ] [-b bind_address ] [-c cipher_spec ] 
[-e escape_char ] [-i identity_file ] [-l login_name ] [-m mac_spec ] 
[-o option ] [-p port ] [-F configfile ] [-L port host hostport ] 
[-R port host hostport ] [-D port ] hostname | user@hostname [command ]

One can use putty for remote login through windows machine

Remote Copy
============
scp - secure copy (remote file copy program) that copies file between computers over network

scp source[ source file path] destination[user@funonrails.com:/home]

Other options

[-F ssh_config ] [-S program ] [-P port ] [-c cipher ] [-i identity_file ] 
[-o ssh_option ] [[user@ ] host1 : file1 ] [... ] [[user@ ] host2 : file2 ]

One can use pscp.exe for remote copy from windows machine

Compress
============
tar - is a package that allows you to compress direcory or file

tar czfv Test.tar.tgz Test/

Decompress
============
gzip - is a package that allows to extract compressed file/directories.

gzip -dc target.tar.tgz | tar xf -




Read More…

Tuesday, November 3, 2009

Ruby On Rails Developers in India

by sandipransing 1 comments
Hello ROR lovers,

I wanted to list down ruby on rails developers in india. I would glad to see your name in this list. Lets, see how much rails hobbies are there in india.

Thanks,
Sandip

List goes here..................

Name: Sandip Ransing
ROR Experience: 2.1 yrs
Overall: 2.8+ yrs
Location: Pune
Company: Josh Software Private Limited.
Name: Amit Yadav
Experience: 2.5 yrs
Overall: 5.8 yrs
Location: Pune
Company: Globallogic
Name: Haribhau Ingale
ROR Experience: 4 yrs
Overall: 5+ yrs
location: Pune
Company: Persistent Systems Ltd.
Name: ABHISHEK V. AMBAVANE
ROR Experience: WITHOUT ADOBE FLEX AROUND 6 MONTHS WITH FLEX,AIR IS AROUND 1 YR.
Overall: 2.8 YRS.
Location: PUNE
Company: BETTERLABS
Name: Sunny Bogawat
ROR Experience: 1.5 YR.
Location: PUNE
Company: Neova solutions
Name: Kiran Chaudhari
ROR Experience: 1.8 YR.
Location: PUNE
Company: Josh Software Private Limited.
Name: Swati Verma
ROR Experience: 1.2 YR.
Location: Jaipur
Company: Rising Sun Technologies
Name: Satish Talim
Ruby Experience: 4 yrs
Overall: 32+ yrs
Location: Pune
Company: RubyLearning portals
Name: Arun Agrawal
Ruby Experience: 3 yrs
Overall: 3+ yrs
Location: Jaipur
Company: Rising Sun(Jaipur)
Name: Piyush Gajjariya
ROR Experience: 2.5 Years
Location: Bangalore
Company: Pramata Knowledge Solutions
Name: Puneet Pandey
ROR Experience: 2 yrs
Overall: 3 Yrs
Location: Hyderabad
Company: Zibika Infotech Pvt. Ltd
Name: Uma Mahesh Varma
ROR Experience: 2 yrs
Overall: 3 Yrs
Location: Kakinada
Company: Nyros Technologies, Kakinada
Name: Mohammed Imran Ahmed
ROR Experience: 1 year
Overall: 2 year 3months Yrs
Location: Hyderabad
Company: Prithvi Information Solutions, Hyd
Name: Amit Kulkarni
Title: QA,Rspec Testing in ROR
Overall: 1.5 yrs
Location: Pune
Company: Josh Software Private Limited.
I am a Software Engineer with more than three years of experience in Information Technology Industry. I worked on different Business Intelligence / Data Warehousing Projects in my experience.
I am a C, C++ & UNIX enthu. I recently learnt ruby & looking forward to work in this.
Thanks,
Pankaj Sisodiya
Name: M B Chowdari
ROR Experience: 1.3 yrs
Overall: 2.3 Yrs
Location: Kakinada
Company: Nyros Technologies, Kakinada
Now your turn
Read More…

About The Author

Sandip is a ruby on rails developer based in pune and also a blogger at funonrails. Opensource contributor and working with Josh software Private Limited. for more info read Follow Sandip on Twitter for updates.

Connect With Me...

Github Projects

@sandipransing Twitter