Lets share love

How ? copy url of this blog and share in your social network :) simple

Lets share love

How ? copy url of this blog and share in your social network :) simple

Thursday, November 30, 2017

कन्चनपुरमा नेपाल-भारत सिमा सम्बन्धी समस्या र डा.दिपकप्रकाश भट्टको सम्भावित योगदान



    हाम्रो कन्चनपुरको नेपाल-भारत सिमामा भाततिय सिमा सुरक्षा बलको ज्यादती अत्याधिक रहेको हामीलाई ज्ञात नै छ। दिनहु जसो हाम्रा दाजु-भाई तथा दिदी-बहिनीहरू बनबासा कस्टममा लुटिदै आएका छन्।

नेपालमा बेरोजगारीका कारण बध्य भई भारत तिर लागेका हाम्रा दाजु-भाईहरू जब दु:ख कष्ट  सही केही पैसा जम्मा गरेर घर तिर फर्कन्छन् भारतिय सिमा सुरक्षा बलले उनीहरूबाट अवैध रूपमा ५०० देखी १००० रूपियाँ सम्म असुल्ने गरेको पाइन्छ।

जुन कमाउन उनिहरू कम्तीमा दुई दिन कडा परिश्रम  गर्नुपर्ने हुन्छ। जसलाई लिएर एक पटक समाजिक सञ्जाल फेसबुकमा भिडीयो समेत भाइरल भएको थियो।

त्यस बाहेक समय समयमा सिमा सुरक्षा बलले अवैघ रूपमा नेपालको सिमा भित्र प्रवेश गरी नेपाली जनात कुट्ने, अपहरण गर्ने तथा ज्यान नै जाने गरी बल प्रयोग पर्ने समस्या पनी हामीलाई ज्ञातै छ।

    यी समस्याहरूको समाधान निकाल्न पटक पटक प्रयास गरियता पनी उक्त समस्याहरूको निराकरण भने अझै भएको छैन्।

त्यसको एक प्रमुख कारण केन्द्रय तहमा सिमा सम्बन्धी स्थानिय बिज्ञ नेतृत्वको अभाव पनी हुनसक्छ।

त्यस कारण यस पटकको प्रतिनिधीसभा निर्वाचनका लागी कञ्चनपुर क्षेत्र न. ३ बाट ने.क.पा. एमाले को तर्फबाट उठेका उम्मेदवार क.डा. दिपकप्रकाश भट्ट यस समस्याको समाधानका लागी उपयुक्त देखिन्छन्।

 डा. दिपकप्रकाश भट्ट एक समाजप्रती उत्तरदायी सबल व्यक्तिव र ने.क.पा एमाले का कर्मठ राजनेता हुन। अन्तराष्ट्रिय सम्बन्ध र राष्ट्रिय सुरक्षाका सम्बन्धमा उहाँलाई एउटा बिज्ञका रूपमा लिइन्छ।

सेना समायोजन तथा लडाकु व्यवस्थापनमा महत्वपुर्ण भुमिका निर्वाह गरेका डा. दिपकप्रकाश भट्ट सैन्य बल तथा प्रहरी निकाय सँग सम्वादाका माध्यम बाट समस्याहरूको समाधान निकाल्न पोख्त मानिन्छन्

कसरी उहाँ सिमा सम्बन्धी समस्याहरू समाधान गर्न सक्छन् ?

    ने.क.पा. एमाले तथा सयुंक्त बाम गठबन्धनले यस पटक नेपाल-भारत सिमा सम्बन्धी समस्याहरूको निराकरण गर्ने प्रतिबद्ता व्यक्त गरेको अवस्था छ। यसको प्रमुख अधारका रूपमा डा. दिपकप्रकाश भट्ट लाई लिन सकिनछ।

अन्तराष्ट्रिय सम्बन्ध र राष्ट्रिय सुरक्षा सम्बन्धी उहाँको बिज्ञता र अनुभव लाई प्रयोग गरी कञ्चनपुरको सिमाना र नाका सम्बन्धी समस्या हल गर्न सकिनछ।

केन्द्रिय तहमा राम्रो पकड राख्ने डा. भट्टको भारत सरकारमा पनी राम्रो प्रभाव छ। जसले गर्दा सिमा सम्बन्धी विबाद तथा समस्या समाधान गर्न उहाँ सक्षम देखिन्छन्।

यस बाहेक ने.क.पा. एमाले ले जुन नेपालको तर्फबाट पनी सिमा सुरक्षा बल लाई २४ सै घण्टा सिमामा उपस्थित गराई बेवारिसे अवस्थामा रहेको हाम्रो सिमालाई सुरक्षित गर्ने योजना लिएको छ; त्यसलाई सफल पार्न पनी उहाँ महत्वपुर्ण भुमिका खेल्न सक्नुहुन्छ।

    अत: कञ्चनपुरका बिभिन्न समस्याहरू मध्येको एउटा प्रमुख समस्याका रूपमा रहेको सिमा सम्बन्धी समस्या तथा भारतिय एस.एस.बी को ज्यादतीको निराकरण गर्नका लागी प्रतिनिधीसभा निर्वाचनका लागी कञ्चनपुर क्षेत्र न. ३ बाट उठेका  ने.क.पा एमाले का उम्मेदवार क.डा. दिपकप्रकाश भट्ट लाई बिजयी गराउनु उचित देखिन्छ।

 जसले गर्दा हाम्रा दाजु-भाई तथा दिदी-बहिनीहरू ले भारतिय एस.एस.बी को आर्थिक शोषण तथा शरिरीक यातना सहनु पर्ने छैन ।

Sunday, January 29, 2017

How to remove HTML tags from string in JAVA

String noHTMLString = htmlString.replaceAll("\\<.*?\\>", "");

Friday, December 9, 2016

How to redirect to previous page in grails from controller

use this
redirect(uri: request.getHeader('referer') )

Wednesday, November 23, 2016

Districts and Zones of Nepal in HTML select

Districts of Nepal in HTML select
                            <select class="form-control" name="district" required="required">
                                %{--Mechi--}%
                                <option value="">--Select District--</option>
                                <option value="Taplejung">Taplejung</option>
                                <option value="Panchthar">Panchthar</option>
                                <option value="Ilam">Ilam</option>
                                <option value="Jhapa">Jhapa</option>
                                %{--Koshi--}%
                                <option value="Morang">Morang</option>
                                <option value="Sunsari">Sunsari</option>
                                <option value="Dhankutta">Dhankutta</option>
                                <option value="Sankhuwasabha">Sankhuwasabha</option>
                                <option value="Bhojpur">Bhojpur</option>
                                <option value="Terhathum">Terhathum</option>
                                %{--Sagarmatha--}%
                                <option value="Okhaldunga">Okhaldunga</option>
                                <option value="Khotang">Khotang</option>
                                <option value="Solukhumbu">Solukhumbu</option>
                                <option value="Udaypur">Udaypur</option>
                                <option value="Saptari">Saptari</option>
                                <option value="Siraha">Siraha</option>
                                %{--Janakpur--}%
                                <option value="Dhanusa">Dhanusa</option>
                                <option value="Mahottari">Mahottari</option>
                                <option value="Sarlahi">Sarlahi</option>
                                <option value="Sindhuli">Sindhuli</option>
                                <option value="Ramechhap">Ramechhap</option>
                                <option value="Dolkha">Dolkha</option>
                                %{--Bagmati--}%
                                <option value="Sindhupalchauk">Sindhupalchauk</option>
                                <option value="Kavreplanchauk">Kavreplanchauk</option>
                                <option value="Lalitpur">Lalitpur</option>
                                <option value="Bhaktapur">Bhaktapur</option>
                                <option value="Kathmandu">Kathmandu</option>
                                <option value="Nuwakot">Nuwakot</option>
                                <option value="Rasuwa">Rasuwa</option>
                                <option value="Dhading">Dhading</option>
                                %{--Narayani--}%
                                <option value="Makwanpur">Makwanpur</option>
                                <option value="Rauthat">Rauthat</option>
                                <option value="Bara">Bara</option>
                                <option value="Parsa">Parsa</option>
                                <option value="Chitwan">Chitwan</option>
                                %{--Gandaki--}%
                                <option value="Gorkha">Gorkha</option>
                                <option value="Lamjung">Lamjung</option>
                                <option value="Tanahun">Tanahun</option>
                                <option value="Tanahun">Tanahun</option>
                                <option value="Syangja">Syangja</option>
                                <option value="Kaski">Kaski</option>
                                <option value="Manag">Manag</option>
                                %{--Dhawalagiri--}%
                                <option value="Mustang">Mustang</option>
                                <option value="Parwat">Parwat</option>
                                <option value="Myagdi">Myagdi</option>
                                <option value="Myagdi">Myagdi</option>
                                <option value="Baglung">Baglung</option>
                                %{--Lumbini--}%
                                <option value="Gulmi">Gulmi</option>
                                <option value="Palpa">Palpa</option>
                                <option value="Nawalparasi">Nawalparasi</option>
                                <option value="Rupandehi">Rupandehi</option>
                                <option value="Arghakhanchi">Arghakhanchi</option>
                                <option value="Kapilvastu">Kapilvastu</option>
                                %{--Rapti--}%
                                <option value="Pyuthan">Pyuthan</option>
                                <option value="Rolpa">Rolpa</option>
                                <option value="Rukum">Rukum</option>
                                <option value="Salyan">Salyan</option>
                                <option value="Dang">Dang</option>
                                %{--Bheri--}%
                                <option value="Bardiya">Bardiya</option>
                                <option value="Surkhet">Surkhet</option>
                                <option value="Dailekh">Dailekh</option>
                                <option value="Banke">Banke</option>
                                <option value="Jajarkot">Jajarkot</option>
                                %{--Karnali--}%
                                <option value="Dolpa">Dolpa</option>
                                <option value="Humla">Humla</option>
                                <option value="Kalikot">Kalikot</option>
                                <option value="Mugu">Mugu</option>
                                <option value="Jumla">Jumla</option>
                                %{--Seti--}%
                                <option value="Bajura">Bajura</option>
                                <option value="Bajhang">Bajhang</option>
                                <option value="Achham">Achham</option>
                                <option value="Doti">Doti</option>
                                <option value="Kailali">Kailali</option>
                                %{--Mahakali--}%
                                <option value="Kanchanpur">Kanchanpur</option>
                                <option value="Dadeldhura">Dadeldhura</option>
                                <option value="Baitadi">Baitadi</option>
                                <option value="Darchula">Darchula</option>
                            </select>
                   
Zones of Nepal

  <select class="form-control" name="zone" required="required">
                                <option value="">--Select Zone--</option>
                                <option value="Bagmati">Bagmati</option>
                                <option value="Bheri">Bheri</option>
                                <option value="Dhawalagiri">Dhawalagiri</option>
                                <option value="Gandaki">Gandaki</option>
                                <option value="Janakpur">Janakpur</option>
                                <option value="Karnali">Karnali</option>
                                <option value="Kosi">Kosi</option>
                                <option value="Lumbini">Lumbini</option>
                                <option value="Mahakali">Mahakali</option>
                                <option value="Mechi">Mechi</option>
                                <option value="Narayani">Narayani</option>
                                <option value="Rapti">Rapti</option>
                                <option value="Sagarmatha">Sagarmatha</option>
                                <option value="Seti">Seti</option>
                            </select>

Friday, October 7, 2016

Upload multiple files in Grails

in controller

 def files = request.getFiles("userFiles[]")

 for (def file:files ){
//logic for saving file in you storage
}


in GSP

<g:form enctype='multipart/form-data' controller="contacts" action="addEvent" class="form-horizontal" role="form">

<input type='file' name='userFiles[]' multiple />

<input type="submit" class="btn btn-primary" value="Save Event">

</g:form>


If any confusions let me know. Email me at aadityabhatta@gmail.com

Wednesday, March 16, 2016

Error initializing classpath: Unable to start the daemon process. | grails 3

$ grails run-app
Error |
Error initializing classpath: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.3/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
 (Use --stacktrace to see the full trace)

The above error occurred while running grails app

$ grails -version
|Grails Version: 3.0.0
|Groovy Version: 2.4.3
|JVM Version: 1.7.0


and this problem was solved by adding this code to gradle.properties

-Xmx3072m -XX:MaxPermSize=524m

Hope it saves your time.

Monday, November 23, 2015

office word word to pdf converter

https://www.microsoft.com/en-us/download/details.aspx?id=9943

Sunday, September 20, 2015

How to Add Nepali Unicode Tool to Your Website

This is very simple.

1. put this code in head of html file.

<script src="nepali.js"></script>

 Download nepali.js here.


2. Now put this code in body where you want to place box for unicode conversion.

<form name="unicode">
<textarea onkeyup="conversion();" name="nepbox" rows="15" cols="60"></textarea>
</form>

And its done.

If you need to download it whole. here is the link. Click Here to Download

Thursday, September 17, 2015

How to use SSH keys with Putty in Digital Ocean

What is SSH keys

SSH keys serve as a means of identifying yourself to an SSH server using public-key cryptography and challenge-response authentication. One immediate advantage this method has over traditional password authentication is that you can be authenticated by the server without ever having to send your password over the network. Anyone eavesdropping on your connection will not be able to intercept and crack your password because it is never actually transmitted. Additionally, using SSH keys for authentication virtually eliminates the risk posed by brute-force password attacks by drastically reducing the chances of the attacker correctly guessing the proper credentials.


What is Putty 

PuTTY is a free and open-source terminal emulatorserial console and network file transfer application. It supports several network protocols, including SCPSSHTelnetrlogin, and raw socket connection. It can also connect to a serial port(since version 0.59). The name "PuTTY" has no definitive meaning.


How to set up SSH keys 

While it is possible to manage your servers using password-based logins, it is often a better idea to set up and utilize SSH key pairs. SSH keys are more secure than passwords, and can help you log in without having to remember long passwords.

For Windows users, a piece of software called PuTTY is typically used to create SSH sessions which allow you to connect to your server. This same suite of programs can be used to generate SSH keys and remember which keys should be used to connect with your servers.

How SSH Key Pairs Work

SSH key pairs are used as an authentication method by creating two related keys.
The first key is called a private key. The private key is a secret key that is owned and kept safe by the user who creates it. It is used to identify you and is kind of like the wax seals that used to be used to seal letters. It can be used to prove that a connection is legitimately coming from you.
You should not let anyone have your private key, because the other person could then masquerade as you and log into any accounts you have configured with your key. If you need to share access, there are better ways.
The other key is called the public key. This key is veritably associated with your private key. The difference is that you can freely share this key with anyone around the internet.
The only thing that someone else can do with this key is allow you to log into their machine. This is what we will be configuring in this guide, by creating our new servers with our public key already included.
You can download it here :
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Friday, September 11, 2015

XAMPP, Apache - Error: Apache shutdown unexpectedly

Today morning i got this error after installing Skype in my windows. I do not use Skype so i had not installed it earlier. So after Skype installation i got this problem. This happens because Skype by default use same port that Apache uses.

error shows like this:


16:50:25 [Apache] Status change detected: running 16:50:26 [Apache] Status change detected: stopped 16:50:26 [Apache] Error: Apache shutdown unexpectedly. 16:50:26 [Apache] This may be due to a blocked port, missing dependencies, 16:50:26 [Apache] improper privileges, a crash, or a shutdown by another method. 16:50:26 [Apache] Press the Logs button to view error logs and check 16:50:26 [Apache] the Windows Event Viewer for more clues 16:50:26 [Apache] If you need more help, copy and post this 16:50:26 [Apache] entire log window on the forums

Now go to Skype
Tools -> Options -> Advanced -> Connection.
Disable the "Use port 80 and 443 for alternatives for incoming connections"
Sign out Skype and restart it.





Wednesday, July 15, 2015

sending params in

params="['page':'feedback']"

and for data : params="['page': person.id]" instead of params="['page':${person.id}]"

Monday, July 13, 2015

Playing with Images

here is a great tutorial for images animations

http://designshack.net/articles/css/joshuajohnson-2/

Friday, June 12, 2015

Top 10 lies people tell their parent as students.

Students go to another city to study and on phone they tell so many lies to their parents. Here are top ten lies they tell.

1. Ate Food
- Yeah mom , already.

2. Son , you went college today. How were classes.
- Yeah Dad, i went in the early morning. Subjects are too tough. Need to study whole night. :p

3. What is semester fee son.
- Its 65k dad. (its 55000 actually )

4. Girlfriend
- No Mom , I have no girlfriend.

5. Instruments and stationary
- Dad I need 10000 to buy a instrument to buy a instrument that will be needed in next field visit.

6. Do you drink or smoke
- No mom, I have never touched such things. An i swear i will never.

7. You bought laptop
- Yeah i bought a brand new with high configuration.( Actually bought a used one from a friend)

8. How is that place son.
- It is like hell . I want to come home ASAP

9. How is your friend circle
- It is awesome mom. They all are so hardworking and responsible.

Add 10th of your own :) 

Monday, May 11, 2015

Tips on Choosing Fonts for Your Website

  • Is there a way to automatically install a font on my visitor's computer when they visit my site?

    Hopefully not.
    I sincerely hope the browser makers have plugged all the security holes that made such drive-by installations possible. Imagine going to a website and having all manner of things automatically installed onto your computer. It used to be one of the methods used by spyware and adware sites to infect computers, forcing many people to install anti-spyware software to protect themselves.

  • Is there a way to embed a font in my web page so that it can be viewed with that font?

    Not at this time.
    However, a future web standard is currently being worked on that will allow fonts to be embedded (in a manner of speaking) in your web page. Don't hold your breath though. After the standard is ratified, it will take time before all the browser vendors update their browsers. That is not the problem though. The main problem is that even when new versions of all web browsers are available, the majority of people on the Internet will probably still be using old browsers which won't have the technology, and will take many years to update it.
    Update: the above answer is no longer accurate. Most of the latest versions of the desktop web browsers allow you to embed fonts in your web pages in a fairly standard manner.

  • Can I ask my visitors to install a font before accessing my site?

    Sure you can. But will they?
    Chances are that they will just continue to view your site under some default browser font. In the end, you are better off designing your site around that fact so that your site looks optimal with that font rather than hoping they will download and install your designer font.
  • Does that mean that I can never use any fancy or non-standard fonts on my site?

    Not necessarily. I realise that some people, who have taken the trouble to download good looking fonts, want to be able to use them to beautify their site.
    The only fail-safe way to make sure a particular non-standard font shows up the same in all computers is to put the text using that font in a picture, and include that image in your web page. However, this is really only useful for decorative purposes, such as for design elements on your web page, or for small snippets of text that you don't really need to be indexed by the search engines. As I mentioned before in my articles on creating search engine friendly websites and ranking well in the search results, search engines cannot "see" pictures, so you should not try to put your entire web page into an image and display that image, just so you can use your favourite fancy font. Your site will not rank well, if at all. Nor will it be usable for visually impaired people who rely on screen readers

  • Why Does My Font Not Show When I View My Site on Another Computer?

    Designing your web page using one of standard lists of fonts mean that your web page will have more or less the same appearance on all computers, regardless of operating system it uses. Although this may mean that you can exercise a little less creativity in the design of your page, given the current state of affairs, it is the constraint that web designers have to work within.
    Otherwise you will end up like one of the visitors to thesitewizard.com who designed his site around a free font he found on the Internet only to find that when he accessed the site on another computer, it was displayed using a default browser font.

Wednesday, May 6, 2015

Chart and graphs for grails application

http://www.intelligrape.com/blog/generating-dyanmic-charts-in-grails/