Samstag, 25. August 2018

Donation

Description:This is a totally selfless posts ;) , because I want to post at least one interesting article per year. So here it is.
If you want to donate to charity you can also donate to me, either go to earn.com/juliane or send me crypto currency to the following addresses:

BTC:11128wGXZWNSZoagFVJPZqRUfBQJoy11nu
ETH: 0x4930A705536554e556ed855a68F1fE3017808628
XMR: 47B8CmCm68h3MCHsF2itL8dg2FER9CfPk6ZVaPgcEhXpgPaXvSwhabMMCTDtoTj8g6iVF4jGMCaZq2yQbfAvfBLM8o3higf

Dienstag, 29. August 2017

Crypto currencies

Here is a list of sites I used to gather information about crypto currencies

Subreddit for crypto currencies
https://www.reddit.com/r/CryptoCurrency

Hackernoon has two good articles about crypto currencies and the blockchain as a triple-entry accounting system
https://hackernoon.com/a-primer-on-blockchains-protocols-and-token-sales-9ebe117b5759
https://hackernoon.com/why-everyone-missed-the-most-mind-blowing-feature-of-cryptocurrency-860c3f25f1fb

Extensive study about crypto currencies from the university of Cambridge
https://www.jbs.cam.ac.uk/fileadmin/user_upload/research/centres/alternative-finance/downloads/2017-global-cryptocurrency-benchmarking-study.pdf

Statistics about crypto currencies, the first has wonderful pie charts :), the second a good statistic about the overall market capitalization of the different crypto coins and the third also has a good informed user base
https://bitinfocharts.com/cryptocurrency-charts.html
https://coinmarketcap.com/
https://www.cryptocompare.com/

List of crypto currencies on wikipedia
https://en.wikipedia.org/wiki/List_of_cryptocurrencies

Ethereum wiki
https://theethereum.wiki/w/index.php/Main_Page

Coinbase crypto currencie exchange
https://coinbase.com

Mittwoch, 21. Oktober 2015

Groupchat - GroupEe

Group chat app to meet and talk to new people near your world. Talk to friends you haven't met yet.
Download it from here https://play.google.com/store/apps/details?id=eu.awesome.groupee

Samstag, 4. Januar 2014

Develop iOS Apps on Windows or Linux

This solution is taking a bit of preparation and is slow but it works for developing iOS Apps on Linux or Windows
The VM often crashes so be warned, a better solution is to buy a iMac.

First use this guide to install VirtualBox and the other stuff
http://www.macbreaker.com/2013/01/iatkos-ml2-mountain-lion-virtualbox.html
and install XCode 4.6.3
Then use this site
http://forums.imore.com/jailbreaking-unlocking-hacks-themes-mods/249838-fake-code-signing-not-working.html
the name for the Certificate should be IPhone Developer
and after creating it search for it and press the Menu button on it select Get Info then click Trust and select Always trust this



Donnerstag, 3. Januar 2013

Ski trip

If you think heart rate graphs are boring, then look at these. This particular graph is taken from a ski trip of mine. My resting heart beat at night was about 50 beats per minute (bpm) and this value tripled, while skiing on the hills.
If you look closer into the time frame of the ski trip, you can see if I was on the ski slope or on the ski lift.




Dienstag, 23. Oktober 2012

Estimate volume of STL-File in PHP

I needed a PHP-script that gives me the volume of an STL-File for my 3D-Printer.
I took the script from here and modified it to accept STL-Files, which are encoded in ASCII
In most of the cases the volume is an overestimate, but it works.

<!--
Name: stlvolume.php

Date: July 17, 20
-->

<?php



function stlhandling($volume=0,$toobig=0,$filepath){
$x_max = 0;
$y_max = 0;
$z_max = 0;
$x_min = 0;
$y_min = 0;
$z_min = 0;
//$filepath = "4.stl";
//$filepath = "k.stl";
$fp = fopen($filepath, "rb");

$section = file_get_contents($filepath, NULL, NULL, 0, 79);

$sizeoff=filesize( $filepath );

fseek($fp, 80); 
$data = fread($fp, 4);

$numOfFacets = unpack("I", $data);
//echo $numOfFacets[1];
$pointer=12.5*$i+4;
$binary=1;
if(($numOfFacets[1]*12.5)>$sizeoff)$binary=0;

if($binary==0){fseek($fp, 0);
fgets($fp,100);
fgets($fp,100);
fgets($fp,100);
//echo "ascii";
}

echo $numOfFacets[1];
for ($i = 0; $i < $numOfFacets[1]; $i++){
    //Start Normal Vector
  if($binary==1){
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $normalVectorsX[$i] = $hold[1];
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $normalVectorsY[$i] = $hold[1];
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $normalVectorsZ[$i] = $hold[1];
    //End Normal Vector
    //Start Vertex1
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $vertex1X[$i] = $hold[1];
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $vertex1Y[$i] = $hold[1];
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $vertex1Z[$i] = $hold[1];
    //End Vertex1
    //Start Vertex2
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $vertex2X[$i] = $hold[1];
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $vertex2Y[$i] = $hold[1];
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $vertex2Z[$i] = $hold[1];
    //End Vertex2
    //Start Vertex3
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $vertex3X[$i] = $hold[1];
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $vertex3Y[$i] = $hold[1];
    $data = fread($fp, 4);
    $hold = unpack("f", $data);
    $vertex3Z[$i] = $hold[1];
    //End Vertex3
    //Attribute Byte Count
    $data = fread($fp, 2);
    $hold = unpack("S", $data);
    $abc[$i] = $hold[1];
   }
   if($binary==0){

    //echo substr(fgets($fp,100),13);
    $vertexarray1=explode(" ",substr(fgets($fp,150),13));
    $vertexarray2=explode(" ",substr(fgets($fp,150),13));
    $vertexarray3=explode(" ",substr(fgets($fp,150),13));
    //echo "\n<br>k".floatval($vertexarray1[0]);
    //echo "\n".fgets($fp,100);
    $vertex1X[$i]=$vertexarray1[0];
    $vertex1Y[$i]=$vertexarray1[1];
    $vertex1Z[$i]=$vertexarray1[2];
    $vertex2X[$i]=$vertexarray2[0];
    $vertex2Y[$i]=$vertexarray2[1];
    $vertex2Z[$i]=$vertexarray2[2];
    $vertex3X[$i]=$vertexarray3[0];
    $vertex3Y[$i]=$vertexarray3[1];
    $vertex3Z[$i]=$vertexarray3[2];
    fgets($fp,80);
    fgets($fp,80);
    $ko=fgets($fp,80);
    //echo substr($ko,0,8)."\n<br>";
    if(substr($ko,0,8)=="endsolid")$numOfFacets[1]=$i-1;//found the end of the file
    fgets($fp,190);

  }
   
    $x_vals = array($vertex1X[$i], $vertex2X[$i], $vertex3X[$i]);
    $y_vals = array($vertex1Y[$i], $vertex2Y[$i], $vertex3Y[$i]);
    $z_vals = array($vertex1Z[$i], $vertex2Z[$i], $vertex3Z[$i]);
    if(max($x_vals) > $x_max) {
        $x_max = max($x_vals);
    }
    if(max($y_vals) > $y_max) {
        $y_max = max($y_vals);
    }   
    if(max($z_vals) > $z_max) {
        $z_max = max($z_vals);
    }   
    if(min($x_vals) < $x_min) {
        $x_min = min($x_vals);
    }
    if(min($y_vals) < $y_min) {
        $y_min = min($y_vals);
    }   
    if(min($z_vals) < $z_min) {
        $z_min = min($z_vals);
    }   
   
}
$x_dim = $x_max - $x_min;
$y_dim = $y_max - $y_min;
$z_dim = $z_max - $z_min;

$volume = $x_dim*$y_dim*$z_dim;

$raw_cost = 15;
$tray_cost = $raw_cost;
$material_cost = $raw_cost*$volume*1.02;
$support_cost = $raw_cost*2;
$total = $tray_cost + $material_cost + $support_cost;
echo "$".number_format($total, 2, '.', ',');
$fits=0;
if($x_dim<140 && $x_dim<140 && $z_dim<90)
    $fits=1;
if($x_dim<140 && $x_dim<90 && $z_dim<140)
    $fits=1;
if($x_dim<90 && $x_dim<140 && $z_dim<140)
    $fits=1;
$volumeovercharge=$volume/30000;


$volumeovercharge=round($volumeovercharge,0);


//is volume < 0.5
if($volumeovercharge==0 && $volume>0)$volumeovercharge=1;
if($fits==0)$volumeovercharge=-1;
echo "\n<br>".$x_dim;echo "\n<br>";
echo "$".number_format($volume, 2, '.', ',');
echo "\n<br>".$y_dim;
echo "\n<br>".$z_dim;
echo "\n<br>".$fits;
echo "\n<br>k".$volumeovercharge;

return $volumeovercharge;
}
//stlhandling(0,0,"4.stl");
?>

Montag, 18. Juni 2012

Huxley Mendel

As you may know there are 3D-Printers that can build themselves and are going to take over the world.

Just kidding.

But I was busy and built an Huxley Mendel.
I also made a picture half into the build process. Please excuse the mess.

Mittwoch, 16. Mai 2012

Heart rate app

This is my averaged heart rate over the day from the data of 67 days.
So you can see pretty clearly when I am sleeping from eleven to about seven in the morning.
Then I am cycling to work, where you can see the biggest peak.

The heart rate data was captured with an heart rate monitor, which sends the heart rate to my phone and this data is recorded by my app.

After the data gets collected on the phone it is sent to my homepage, where you can see my actual pulse.

Sonntag, 13. Mai 2012

Control of the heating installation

This is the actual Labview program that runs on a laptop and controls the water heating system in the house of my parents.

From 2004 to 2009 the system was controlled by a embedded microchip called SC12.
The program was coded by me and you can see the website that was accesible at this time here.

Montag, 7. Februar 2011

howto make pdfs for kindle with tex

just use this header with your tex files and you get pdfs that are suitable for your kindle

\documentclass[12pt,a5paper,openany,oneside]{book}
\usepackage[a5paper]{geometry}
\usepackage[pdftex,pdftitle={book title},pdfauthor={Doe, John}]{hyperref}
\usepackage[pdftex]{color,graphicx}
\usepackage{graphicx,textcomp,booktabs,amsmath}
\usepackage{mathptmx,courier}
\usepackage[scaled]{helvet}
\usepackage{totpages}
\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\textwidth 128mm
\topmargin -15mm
\textheight 175mm
\evensidemargin -15mm
\oddsidemargin -15mm
\begin{document}
%insert your text here
\end{document}

Samstag, 20. November 2010

Djvu to pdf (with cut ability)

Just found a good djvu2pdf converter

http://pd4ml.com/djvu.htm

It is specifically designed for ebook readers
and you can crop the white borders of your djvu file

To install this programm on Linux you need to download the Djvu2pdf.zip on this site for other platforms and goto http://download.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php#SWT and scroll down to download the swt binary and source
extract both archives and put the swt.jar in the Djvu2Pdf/lib from the other archive
To run the programm you have the chmod the run.sh file to 755
chmod 755 run.sh
now you can start ist with
sudo ./run.sh

Now you can load your djvu file into the programm and set the device resolution to 800x600px for the Kindle.
Change the other options as you like and your done.

Mittwoch, 3. November 2010

French dictionary on Kindle

Here is a little howto for converting Stardict dictionaries to a mobi format for Kindle

A great source for dictionaries is this site http://xdxf.revdanica.com/down/index.php

To convert the Stardict Dictionary to a txt file you can use Stardict Editor on http://stardict.sourceforge.net/other.php 
or pyglossary, which will work on Linux or Windows.

Once you have this file, lets name it dictionary.txt, you need tab2opf.py to convert this file into opf format.
Just use the command tab2opf dictionary.txt
The tab2opf programm is a python script, so you need python installed.

In this opf file you have to edit the import and output language specific to your dictionary.

For the last part you need mobigen from mobipocket.com.
Extract it and use the command mobipocket dictionary.opf

In the end you get a mobi file, which you can use on your Kindle.