Laur's blog
Sign in Subscribe

data

A collection of 4 posts
Access Data Files for Local Tests in Android
android

Access Data Files for Local Tests in Android

TL;DR: Put your data files in test/resources and access it with: InputStream inputStream = this.getClass() .getClassLoader() .getResourceAsStream(path); I've got an android application with a module performing data processing (HTML scraping in fact). This part is pure java and all its tests are in the src/
Mar 9, 2016 1 min read
Insert in PostgreSQL in (Almost) Constant Time
copy

Insert in PostgreSQL in (Almost) Constant Time

One of the things I did was to write a script to insert records in a PostgreSQL database. The records have with a quite simple structure: * id - char(20) * content - XML field * aside - XML field I was working with a sample of 10,000 entries out of
May 15, 2014 4 min read
Create Data Once in a FormWizard
data

Create Data Once in a FormWizard

At one of the sites I'm building I need to walk users through a registration process: 1. Select a supported tool 2. Generate an ID 3. Create a configuration based on the previous two steps To do this, I chose to use a FormWizard with three steps, one
May 6, 2014 2 min read
Send POST to server via python-requests
data

Send POST to server via python-requests

The other day I've had a question asked: How do you send a form data to a server and get the reply? My solution involves python-requests: __author__ = 'Laur IVAN' import requests proxies = { 'http': 'http://.../', 'https': 'http://.../' } payload = { '
Apr 15, 2014 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost