Hiking to Kaskikot Durbar/Palace

Sudeep Acharya
On February 5, 2017 me including my friends Sachin Giri and Prakash Ghimire went to hiking to the Kaskikot. The place is awesome. Our route: Malepatan -> Lovely hill -> Sarangkot -> Kaskikot -> Kaskikot Palace We were couple of friends who have recently completed our Bachelor. We realized that this is one of the golden age to travel and hike. Since we are from Pokhara, we decided to hike within or near the valley.

Convert the list of images to PDF file and add watermark using python

Sudeep Acharya
Converting list of images to PDF in Ubuntu Let’s use ImageMagick tool. Normally it is installed in Ubuntu. If you need to install it then run: sudo apt-get install imagemagick Then you can convert it by using: convert image_1.jpg image_2.jpg output.pdf You can specify any numbers of images but the last argument must be a name of your PDF file along with extension (.pdf). Adding the watermark in the PDF file We use Python script for adding watermark to each page in the PDF file.

के रहेछ जीवन?

Sudeep Acharya
जीवन जुन सोचेको थिए त्यो रहेनछ | जीवन त……. यौटा ओरालोको यात्रा रहेछ, जहाँ नचाहिएको, काम लाग्छ कि लाग्दैन भन्ने था नभएको औता अति गरुङ्गो भारि बोकेर ओरालोको यात्रा लग्नु पर्ने | बीचमा भारि बिसायो भने भारि अरुले लैजन्चाकी भन्नु पर्ने र एक ठाउमा पनि नबिसाई फेदी मा पुगेर भारि बिसाएर कल कल खोलाको पनि खाने आस मा हिड्नु पर्ने बीच मा पुरै ओरालाई ओरालो उकालो भन्ने थाचैन ओरालोमा लौरी समाई झरौ भने पनि ओरि परि सिस्नोको रुख मात्र

तपाई कहाँ सम्म हो दाई ?

Sudeep Acharya
बेलुकी पख तेही साझाको ६ बजेको थियो, जाडोको समय तेही माथि झन् बर्सकै छोटो दिन को भोलि पल्ट | म आफ्नो काम सकाएर एकछिन बाहिर तिर डुल्न जाने सोच बनाए र घर बाट निस्किए | घर बाट केहि मीटर हिडे पछी आइसकिरिम पसल आयो र तेहा पुगे पछी सोचे कि “सचिन लाई नभेटेको धेरै दिन पो भयेछ”, अब आज तेतई जान पर्यो | यो सोचेर म बिस्तारै तल तिर मोडिए, ३/४ ओटा दोकान तल आएपछि बिस्तारै यौटा चिनेको अनुहार बिस्तारै आँखामा पर्न थाल्यो, केहि बेरमै भान भयो कि तिनी राजु दाइ पो रैचन | “कता गएर आएका हौ दाइ” राजु दाइले पनि मलाई बाटोमा तेस्तो चिसो अवस्थामा भेटेकोमा अब हिजोको झैँ दबाउनु पर्छ भन्ने सोचेका रैचन, उनले भने “अन्द्रोइडको क्लास पढाएर आएको नि”|

नेपालीको आत्मनिर्भरता छेपाराको उखान

Sudeep Acharya
अहिले भारतले गरेको नाकाबन्दीको कारणले गर्दा धेरै कुराहरू भएका छन् | कतै देश भक्ति उम्लिएको छ भने कतै भारतलाई गाली गलैजाहरू गरेको पनि सुन्न पाइन्छ| अर्को यौटा धेरै सुनिएको कुरा भनेको अब आत्मनिर्भर बन्नुपर्छ भन्ने हो| यो आजकल धेरै सुनिन्छ| पौष माघको ठण्डीमा यौटा छेपाराले दिउसो घाम ताप्दा राति जाडो भएर थुर - थुर कामेको पनि बिर्सन्छ | जब बेलुका हुदै जान्छ तब उसलाई जाडो हुदै जान्छ, राति उसलाई धेरै जाडो हुन्छ, उसले बेलुका ठुलो प्रण गर्छ कि भोलि बिहान हुने बित्तिकै बिहानैबाट दाउरा खोजेर भोलि त राती आगो बालेर ताप्छु | तर जब बिहान हुन्छ उ बिहानी पखको घाममा लिप्त हुन्छ अनि सबै बेलुकाको पीर बेथा भुली जान्छ | येसरी छेपाराको उखान हामी नेपालीले सानै देखि सुन्दै आएका हौ |

'Constitution of Nepal' Android App

Sudeep Acharya
It’s been so great to feel that the Constitution of Nepal has finally arrived. Congratulations to all the Nepalese. May this Constitution brings peace, prosperity and rapid development in the country is the wish of all the Nepalese. On this occasion with the intention of easy distribution of Constitution and making available of Constitution in the hand of all the people, I have developed an Android app to read the Constitution.

Understanding Decorators in Python

Sudeep Acharya
While learning Python in the beginning, i skipped the portion of the chapters on Decorators. After i worked on Flask and Django, I was introduced with the Decorators. Let us consider a simple flask app example: @app.route("/") def hello(): return "Hello World!" In this code the line with @ symbol is decorators. Decorators is one of the important feature in Python that you must learn to master it. It is not that hard, so let us learn it.

How to delete the commit history in github

Sudeep Acharya
Sometimes you may find deleting the commit history of your github project repository useful. You can easily delete the commit history by following the procedure below. It is always useful to keep the backup of your repository in your computer before removing all the commit history. Let us start by cloning a github project. I am cloning ‘myproject’, you clone yours. git clone https://github.com/acsudeep/myproject.git Since all the commit history are in the “.

URL Shortener with Django (Part 5) - Working with Templates and finishing up

Sudeep Acharya
Create folder ’templates’ inside ‘shortenersite’ and then inside ’templates’ create folder ‘shortenersite’. Inside “shortenersite/templates/shortenersite/” create ‘base.html’ and ‘index.html’. So now paste the following to them. [shortenersite/templates/shortenersite/base.html] {% raw %} <!DOCTYPE html> <html> <head> <title>{% block title %}Welcome to mysite{% endblock %}</title> {% load staticfiles %} <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="{% static 'shortenersite/css/custom.css' %}" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <script type="text/javascript"> $(function() { $('#submitButton').click(function() { $.ajax({ type: "POST", url: "/makeshort/", data: { 'url' : $('#url').

URL Shortener with Django (Part 4) - Working with Urls and views

Sudeep Acharya
Now we will be working with our actual URLs and Views of our site. Open up your “urlshortener/urls.py” and add the following code to it: [urlshortener/urls.py] from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), # if the URL pattern match /admin/ then open up admin panel url(r'', include('shortenersite.urls', namespace='shortenersite')), # if anything rather then /admin/ then it will look for shortenersite/urls ) Next, create a new file ‘urls.