Swrdfish
Hi!
I am an Indian Software Engineer with a good foundation in computer science. I am interested in a range of topics, including economics, architecture, city planning, and art.
Posts
5 Jun 2015
I’m a linux/unix guy, I’ve always had heated debates with my “Windows” friends about how good the unix environment is and how the terminal can do magical things.. But today I was hit on the face, real hard. This guide show us the steps to make powershell as good as if not even better than bash is some ways.
Thanks @Ananyo for the link. ‘Ar kono dabi nei, windows bhalo’
2 Jun 2015
HTTPS: Securing java web services
As part of my internship project I had to learn about HTTPS, how it works and how to use HTTPS to secure SOAP based web services written in java.
Why do we need HTTPS?
The document transfer protocol of choice for the internet, HTTP uses a plain text format for transfering data. Hence anyone who is able to intercept the communication channel(MITM attack) can view everything that is being transmitted by the sender and receiver. This is specially a problem for wireless networks where any one with a pretty basic wireless network adapter can tap into and listen to the communications channel.
1 Jun 2015
So one more week just flew past! Progress: not much.. I spent the whole week studying..
Progress: Week 2
- Got a pretty good understanding of SOAP and WSDL
- Got and overview of the tls/ssl protocol and how the whole certification system works.. but the protocol is huge and would need some more time and fiddling to wrap my head around it.
- Wrote a very basic soap service, secured it with https.
- Was able to run my service from within the Jetty and secure it using https as well.
- Hence I’ve got an overview of how Java servlets and servlet containers function.
- Was able to verify the services security using wireshark to look into the packets and verify that they are encrypted.
Todo:
I’m going to write another blog post explaining what I’ve learnt so far mentioning the source documents so that others in the team can get a better understanding of https.
22 May 2015
So, the summer vacation has started, finally! But no relaxing this time around. I’m doing an internship at a company called Lexmark. The first week here has been pretty interesting.. the people here are cool, friendly. The work environment is also awsome, there are no restrictions or visible structure in the organisation. Very different from what my perception was about an Information Technology company.
The good parts:
- KFC for lunch on the first day
- Free Coffee and Lunch
- There are Bean Bags in the office! ( in a office in kolkata! )
- Games room and Gym :D
- No pressure from managers
- People are really friendly here.
The not so good bits:
- The commute is hectic. It takes about 2hrs to reach the office!
- Else, not much really.. will have to wait and see.
The work:
- Work with the warriors team ( yep they have team names like that ).
- Learn the frameworks being used: Java/Jax-ws (basically working with web services based on the SOAP model)
- Learn as much as possible about ssl/https so the web services can be secured.
Progress: Week 1
- Implemented some basic rest based web srvice using the Spark library to get a hang of how things work in java (my java knowledge is very limited, I’ve only worked with the android sdk, haven’t written anything else)
- Next moved on to Jax-ws framework, got a basic service running.
- Started learning basics of SOAP model and WSDL.
- Used raw http POST requests to get a better understanding of how the whole SOAP thing works.
- Got to know about a tool called soapui to test the web service, used it and got a more or less clear view of how the SOAP model works.
- Today I’ll look at https and how it can be integrated with the Jax-ws framework.
- learnt how to user
wsimportto generate java classes from a third party web service. - Note: I’m reading this book Java Web Services: Up and Running which is so far seems really good. so if any one wants to learn Jax-ws this will be a good start.
8 Jan 2015
As I mentioned before our college network has this squid proxy which makes us spend more time configuring our tools to bypass it than doing any actual work. My goal this time was to get ssh working behind the proxy.
Most git repositories provide ssh links. So to get git working I needed to get ssh working first. A simple nmap showed that there are 4 ports open on the proxy server one of them being the ssh port: 22. So I guessed I only needed to tunnel the ssh request using http connect. But turns they have tunneling blocked for port 22.
5 Jan 2015
Django static files in Openshift
To serve static files for django use whitenoise.
This will require you to add an environment variable DJANGO_SETTINGS_MODULE="jhinuk.settings" to your Openshift app. To do this follow the instructions here
4 Jan 2015
In my college they use squid proxy with only a few open ports. This doesn’t allow us to use the irc clients. The solution is to use some application like XChat through Tor. But most irc servers block tor exit nodes. Freenode is also not an exception. But it does allow access through tor. To get connect to freenode through tor follow the instructions here and also here.
###Note: Don’t use the sasl script in python for XChat. Use the perl script.
3 Jan 2015
Tying out ARChon: the android app runtime for chrome
Ok, following the instructions on Lifehacher{:target="_blank"} I’ve managed to install android app runtime called ARChon{:target="_blank"} on chrome. And the thing works great! :D
Here are some screen shots:
3 Jan 2015
So I have got my django app running on Openshift. ([how to run django app on Openshift]({% post_url 2014-12-29-django-on-openshift %})) Now I wanted to automate the deployment of the app from a Github repo. The tool people use to do this is called Jenkins. So here’s the rundown of what I have been able to achieve.
First of all I havent been able to automatically build the app for deployment. What I’ve been able to do is setup a jenkins server, create a new job which receives an event from Github notifying a modification, after receiving which it simply pulls the changes from Github and pushes it to the Openshift server running the django app. On receiving the push the django app is rebuilt and deployed. Therefore I don’t have to push the app to both Github and django. But it would be better to have continous integration as the Openshift server stops the django app during rebuild so it becomes unreachable. So next step would be to implement CI.
29 Dec 2014
Openshift is a new app hosting service from RedHat which offers a great free package. Till now I’ve used Heroku to host some apps and its great but it doesn’t provide any free database (well it does but you’ll have to enter your credit card details which in India few people have). Also the filesystem of heroku is such that it refreshes every 24hrs deleting every thing except the repo. So heroku is great for testing but hosting something with somesort of a database is not possible unless you pay.
22 Dec 2014
So, I’m going to give a final shot at blogging. I’ve used Wordpress, Blogger, Tumblr previousl but have never been able to be stick to it. Being a regular blogger has been on my todo list for like forever. But till now I’ve only written a post or two in each platform.
Well here’s a new blogging platform and a final attempt. Jekyll seems a good option for me as it minimises the friction of blogging a lot. I can write and publish a post from sublime. I mean what can be better right.