How to check and read your file permissions

Check your permission
For seeing what permissions the file contains, type to the terminal:

    $ ls -l the_file
    $ -rw-r--r-- 1 Iiro GroupName  123234 Nov 3 13:56 the_file

From here we see that owner of ”the_file” is Iiro,
the user has read and write permissions (-rw-r--r--),
”the_file” is owned by group ”GroupName”,
the group has read permission (-rw-r--r--),
Other users can read the file (-rw-r--r--).

Jatka lukemista ”How to check and read your file permissions”

Asiakaskortti vai sähköinen asiakkuudenhallinta koulutetulle hierojalle

Petri mäki on osa innovaatioprojektiamme, joka kehittää asiakkuudenhallintaa hierojille.

Petri Mäki

Koulutettu hieroja on laissa määrätyllä tavalla velvollinen ylläpitämään rekisteriä asiakkaisiin liittyvistä hoitotapahtumista ja annetuista hoidoista. Nykyisin hieroja on velvollinen ylläpitämään potilastietoja 10 vuotta hoidon päättymisen jälkeen, joka on pitkä aika jos tietoa säilytetään paperisessa muodossa. Esimerkiksi Koulutettujen hierojien liitto tarjoaa asiakaskorttia jonka avulla voit pitää yllä tietoa asiakkaistasi. Paperinen lappu on perinteinen ja tuttu ratkaisu, mutta onko se enää vuotta 2014?

Hyvää ei kannata aina muuttaa, mutta uutta kannattaa ainakin kokeilla. Olemme kehittämässä koulutetuille hierojille edullista asiakkuudenhallintaratkaisua joka toimisi kaikissa laitteissa (puhelimella, tietokoneella ja tabletilla). Ohjelma on tällä hetkellä testausasteella ja tulen lähikuukausien aikana päivittämään tähän kirjoitukseen ohjelmalle kuuluvat nettisivut joista voit lukea lisää asiasta.

Ohjelman tarkoituksena on siis helpottaa hierojalle asiakkuudenhallintaa ja tehdä siitä yksinkertaista sekä edullista. Ohjelman käyttö ei vaadi mitää kummempia asennuksia ja tulemme jakaamaan sitä Google Play:n ja Apple App Store:n kautta. Voit myös käyttää ohjelmaa suoraan selaimella.

Mitä me näemme hyötynä sinulle?

  • Kaikki asiakkaasi…
  • View original post 144 more words

    Miksi sähköinen asiakkuudenhallinta kannattaa?

    ”Kyllä me ollaan aina tehty näin, niin miksi pitäisi vaihtaa?”

    Elämme vuotta 2014, on pilvipalvelua, pitkälle kehittynyttä järjestelmää, mobile firstia ja SaaS:ia. Jokaiselle tuntuu löytyvän jotakin. Ensi vuonna vielä enemmän. Silti elämme aikaa, jolloin yrittäjää on vaikea saada luopumaan näkemyksestä, että asiakkuudenhallinta tarkoittaa paperin, kynän ja excel-taulukoiden sekamelskaa.

    Jatka lukemista ”Miksi sähköinen asiakkuudenhallinta kannattaa?”

    iinurmi tweets, oh I know…

    Shameless self promotion. I have noticed that sometimes it is just so much easier to post a interesting link or a short text of your thoughts and that’s why I recently started to TWEET. So in other words I’m lazy.

    If you want to hear some CRAZY stuff, please follow me on twitter Follow @iinurmi. I have been tweeting some tech stuff, stuff on the entrepreneurship and typical, ”oh look at this cool link I found and probably everybody else in the internet”.

    Back from the death

    I have to admit I am not the person who is good at planning and organizing his life in advance, I have rather been the kind of person who just goes with the flow.  But in the start of 2014 I did the first time some kind of new year’s resolutions and I have to admit that those promises can be useful, if you don’t just write down things that you want to improve, but also write short plan how you are going to reach that goal. I would really recommend that really go trough your goal, why you want to achieve or improve something, then write how you are going to do it. Remember to be realistic.

    I had four things in my new year’s resolutions list. One was to write at least once a month in the blog. That failed… As those promises usually do. So what did go wrong? I think a lot of things has been happening to me, work, projects and personal interests.

    I did learn that don’t take your resolutions too seriously, because what you might have wanted to do in the start of the year. might not be relevant in the end of the year. Like in the summer my goal to write every month wasn’t relevant at the moment and I had much more things that was higher in the priority list.

    But still I ”failed” and it should not be hard task write once a month! So I am going to advice myself and others that have this kind of goal. Write the blog post, article or what ever you have, AT the MOMENT when you feel inspired or are working with the subject. It is really hard write something after you have already moved past the subject.

    Change android application icon

    These are the instructions for changing icon in your Android application in Eclipse.

    First if you need to create new icon with Icon creation wizard:
    Select your project
    Ctrl+n
    Android -> Android Icon Set

    Icon Wizard
    Icon Wizard

    Remember to name it uniquely. If you have already an icon, then you can always use it by browsing an image from your directories and selecting Shape: none.

    Then change icon name to new one in AndroidmMnifest.xml (open it in textmode):

    <application
            android:name="ApplicationClass"
            android:icon="@drawable/HEREYOURICONNAME"
            android:label="@string/app_name"
            android:theme="@style/AppTheme" >
    

    How to return to desktop from full screen console (tty)


    This can happen time to time for newbie linux user: the screen goes black and you are left alone with only a terminal to work with. It happens if yout press the combination of ctrl+alt+(F1-F12). This opens other tty other known as terminal / console. Usually your desktop GUI is running in tty7. F7 is the default for desktop GUI in ubuntu based distros.

    To return to your comfortable desktop interface simply use:
    ctrl-alt-F7

    This works in ubuntu based linux distros.

    If you have logged in to console you can log out by simply with $ exit command.

    You can read more about the linux shortcuts from:
    http://linux.about.com/od/linux101/l/blnewbie5_1.htm

    Hope this helps!

    a Day with Solinor!

    solinroI had the opportunity to visit the Solinor headquarters. This was part of Haaga-Helias ICT-entrepreneurship -course. Solinor is a Finnish technology company specialized in payment system software. They are the first Finnish company to implement service with certified with PCI DSS. Solinor is also one of the fastest growing tech companies in Finland and has still a lot of growing space. The growth is visible for the newcomer also: first we were introduced to the building site of new office and negotiation rooms.

    I, Samuel Rautiainen and Aicha Haidara had the pleasure to meet some key members from Solinor team, Joel Leino, Marko Kuusniemi and Timo Hakkarainen. They were very open to discuss about the company and we were unexpectedly well received to ”interrupt” their normal work day. Solinor seemed to have very professional, but easygoing work-environment. There is no ”nannying” over each other, every worker is expected to be responsible for his work. This way the work hours can be flexible rather than working from eight to four.

    This was the first company visit of the course and it really set the bar high for other interviews. As a part of the course we will be releasing more in depth report, which will contain more what we learned at Solinor, basic information and economic factors such as revenues, business models and more!

    Thanks for Solinor!

    Simple Java Servlet Example

    I am currently attending at Java EE course and I made a simple example how to send information to another page. This was part of course homework. This program takes user book information from index.jsp and sends it to another jsp-page.

    First we have to create Book Bean:

    package com.iinurmi.wordpress.beans;
    
    public class Book {
    	
    	private String name;
    	private String isbn;
    	
    	public Book(String name, String isbn) {
    		this.name = name;
    		this.isbn = isbn;
    	}
    	public String getName() {
    		return name;
    	}
    	public void setName(String name) {
    		this.name = name;
    	}
    	public String getIsbn() {
    		return isbn;
    	}
    	public void setIsbn(String isbn) {
    		this.isbn = isbn;
    	}
    	
    	@Override
    	public String toString() {
    		return "Book [name=" + name + ", isbn=" + isbn + "]";
    	}
    }
    

    Just a simple bean which has the default constructors and methods.

    Next step is to create the jsp page and the servlet which will direct the information for another page.

    Index jsp:

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    	pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <html>
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    		<title>Books</title>
    	</head>
    	<body>
    		<p>Tervetuloa Iiro Nurmen täydelliseen kirjajärjestelmään!</p>
    		<form action="sendbook" method="post">
    			<table>
    				<tr><td>Kirjan Nimi</td><td><input type="text" name="bookname"/></td</tr>
    				<tr><td>ISBN</td><td><input type="text" name="isbn"/></td></tr>
    				<tr><td>&nbsp;</td><td><button type="submit">Lähetä!</button></td></tr>
    			</table>
    		</form>
    	</body>
    </html>
    

    The form action tells where the request will be sent. This is where you put your servlet name. I’m using post as a method. Next we have to create the servlet, which takes the info and sends it to next page.

    package com.iinurmi.wordpress.servlets;
    
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.iinurmi.wordpress.beans.*;
    
    /**
     * Servlet implementation class showBook
     */
    @WebServlet("/sendbook")
    public class SendBook extends HttpServlet {
    	private static final long serialVersionUID = 1L;
    
    	/**
    	 * @see HttpServlet#HttpServlet()
    	 */
    	public SendBook() {
    		super();
    		// TODO Auto-generated constructor stub
    	}
    
    	/**
    	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
    	 *      response)
    	 */
    	protected void doPost(HttpServletRequest request,
    			HttpServletResponse response) throws ServletException, IOException {
    			
    			String bookn = request.getParameter("bookname");
    			String is = request.getParameter("isbn");
    			
    			Book book = new Book(bookn,is);
    			
    			request.setAttribute("book1", book);
    			request.getRequestDispatcher("books.jsp").forward(request, response);
    			
    	}
    
    }
    

    That is a basic servlet that takes request and response and forwards it to jsp-called books.jsp. First this servlet finds parameter ”bookname” and ”isbn” from request. These are values from index.jsp. These values are storet to local variables. From local variables we create a book object. Book object is the bean which we created in the beginning. The book object is then saved as a request attribute ”book1”. Then we forvard request and response to the page where the information will be shown.

    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Books</title>
    </head>
    <body>
    	<table>
    		<tr><th>Kirjan nimi: </th><td><c:out value="${book1.name}"/></td></tr>
    		<tr><th>Kirjan ISBN: </th><td><c:out value="${book1.isbn}"/></td></tr>
    	</table>
    	<a href="index.jsp">Takaisin kirjan syöttövaiheeseen</a>
    </body>
    </html>
    

    Here we simply print out book objects information. This is done by jstl (Java Standard Tag Library). With jstl, it is much more easier and faster to print to jsp pages.