Tags » Python

CONfidance 2015 CTF Teaser - Power level Writeup (Crypto 50)

For this task we were given this C File and asked to decrypt this

8,223,137,2,42,8,28,186,97,114,42,74,163,238,163,23,121,2,74,158,163,23,135,2,193,158,2,62,2,184,44,20,2,137,217,196,62,249,159,137,44,111,106,111,217,50,106,111,2,62,196,217,137,2,20,106,146,111,151 

in the C file we can see the following code… 451 more words

Dynamic Programming : Making change for an given amount with least number of coins

Helloooooooooo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Its been sometime since the last blog … loads of em are struggling to come out of the drafts :P I’ve been working on Dynamic programming concepts for a while now , So i thought of sharing my insights on the same by taking up the problem of finding ┬áchange for the given amount using ┬áleast possible no of currencies , and in the process i would love to explain what Dynamic programming is all about . 1,109 more words

Algorithms

Simple Banner Grabbing Using Python 3

Pada kesempatan kali ini saya akan sedikit sharing tentang cara membuat program banner grabbing menggunakan python 3, sebelum kita mulai ada baiknya kita mengenal terlebih dahulu apa itu… 230 more words

Scratch

Start a Django Project

Setup

  1. Python 2.7.6
  2. easy_install and pip
  3. Git
  4. virtualenv
  5. Django
  6. Database (MySql, MongoDB)
  7. Text Editor
Python

Check python version with

$ python -V
Python 2.7.6
… 362 more words
Python

Easy 1 - Ask for user's information

#include <iostream>
#include <string>
#include <fstream>

int main() {
	std::string name = "unknown";
	std::string username = "unknown";
	int age = 0;

	std::cout << "What is your name: ";
	std::cin >> name;
	std::cout << "How old are you?: ";
	std::cin >> age;
	std::cout << "What is your username?: ";
	std::cin >> username;
	
	std::ofstream myfile;
	myfile.open("sample1.txt");
	myfile << "Your name is "<< name
			   << ", you are " << age << " years old, "
			   << "and your username is " << username << std::endl;			   
	myfile.close();
	
	std::cout << "Reading file..." << std::endl;
	std::string line;
	std::ifstream read_my_file;

	read_my_file.open("sample1.txt");
	if (read_my_file.is_open()) {
		while (std::getline(read_my_file, line)) {
			std::cout << line << std::endl;
		}
		myfile.close();
	}
}
Code

Getting started with Django, part 1

Installing Django is super easy with the command:

$ python setup.py install

To get started, we first create a project named mysite in current directory: 1,187 more words

Python

The Typing Of The Horseshit

I am in a rock band. I write the songs and play guitar. Arkwood, my debauched Belgian buddy, is the drummer. Monita – oh, my lovely Hispanic maid Monita – well, she sings backing vocals in the tone of a screeching alley cat. 597 more words

Technology