Skip to content

Luventas Web Design

A new blog for developers in PHP, Java and mobile Development

  • Home
  • 2011

Jahr: 2011

Informationen aus mehreren Reihen trotz „GROUP BY“

Posted on 7 November 20117 November 2011 By luventas Keine Kommentare zu Informationen aus mehreren Reihen trotz „GROUP BY“
MySQL

Folgendes Szenario:

Ich habe eine Datenbanktabelle, in der zu einem Benutzer in mehreren Reihen eine Information steht.

Source code   
user_id, date, information_about_user_on_date
1, 2011-11-01, information_1
1, 2011-11-02, information_2
1, 2011-11-03, information_3

Diese Informationen möchte ich in einer Reihe anzeigen, ohne mir alle Zeilen einzeln holen zu müssen. In SQL gibt es zwar die schöne Funktion „GROUP BY“, hier würde ich aber nur noch eine der Informationen erhalten.

Read More „Informationen aus mehreren Reihen trotz „GROUP BY““ »

Information from several rows in spite of „GROUP BY“

Posted on 7 November 20117 November 2011 By luventas Keine Kommentare zu Information from several rows in spite of „GROUP BY“
General

Following scenario:

I have a database table, where information about an user is stored in several rows.

Source code   
user_id, date, information_about_user_on_date
1, 2011-11-01, information_1
1, 2011-11-02, information_2
1, 2011-11-03, information_3

This information I want to show in one single line without getting this information row by row. SQL has the nice functionality „GROUP BY“ but by using this normally I’m only getting one information.

Read More „Information from several rows in spite of „GROUP BY““ »

Wie mache ich meine Webseiten schöner?

Posted on 28 Oktober 2011 By luventas 4 Kommentare zu Wie mache ich meine Webseiten schöner?
General

Jeder, der schon einemal eine Webseite erstellt hat, kennt folgendes Problem:

Du entwickelts dein Webprojekt lokal auf deiner Maschine. Alles sieht gut aus, genau, wie du es dir vorgestellt hast. Dann lädst du diese Seite auf den Webserver und testest, ob es immer noch so aussieht, wie es soll. Ja, alles ist wunderbar!

Dann ruft dich ein Freund an und fragt: Was hast du denn da gemacht? Sieht ja furchtbar aus! Die Texte sehen ganz furchtbar aus und die Abschnitte sprengen dein Seitendesign!

Wie kann das Sein?! Der Grund ist, dass auf deinem System die Schiftarten, die du verwendet hast, existieren uns somit von Browser geladen werden können. Auf anderen Systemen existieren diese vielleicht nicht. Nur Verdana, Arial und eine handvoll anderer Schriftarten sind Standard auf jedem System und somit verfügbar. Du möchtest aber spezielle Schiftarten verwenden, die besser in dein entwickeltes Design passen.

Read More „Wie mache ich meine Webseiten schöner?“ »

How to make your Website texts nicer

Posted on 28 Oktober 2011 By luventas 2 Kommentare zu How to make your Website texts nicer
General

Everybody knows that problem:

You develop your Website on your local system. Everything looks nice and good. Then you upload your code on your Webserver, test, if everything looks like it should and you are happy.

Then a friend calls you and you got to here: What have you done? It looks horrible! The Texts are looking bad and the Paragraphs are breaking the page design!

How can that be? The Reason is, that on your System the Fonts, you are using are existing and can be loaded by the browser. On other Systems maybe that fonts are not existing. Only Arial and Verdana and a hend full of other fonts are installed on every system. But you want to use special fonts for your website that are fitting better in your design.

Read More „How to make your Website texts nicer“ »

Textdateien mit Spring Batch erzeugen

Posted on 6 September 2011 By luventas Keine Kommentare zu Textdateien mit Spring Batch erzeugen
Java, Spring

Wir wollen eine Datei über Spring batch erzeugen. Hierfür benötigen wir einen Marshaller mir „Reader“ und „Writer“.

Der Reader:

Source code   
<bean id="fileReader">
  <property name="dataSource" ref="dataSource" />
  <property name="sql" value="SELECT * FROM table" />
  <property name="rowMapper">
    <bean class="de.package.rowmapper.FileRowMapper" />
  </property>
</bean>

Read More „Textdateien mit Spring Batch erzeugen“ »

Create text files with spring batch

Posted on 6 September 2011 By luventas Keine Kommentare zu Create text files with spring batch
Java, Spring

To create a file over spring batch, first you need a marshaller with a Reader and a Writer.

The Reader:

Source code   
<bean id="fileReader">
  <property name="dataSource" ref="dataSource" />
  <property name="sql" value="SELECT * FROM table" />
  <property name="rowMapper">
    <bean class="de.package.rowmapper.FileRowMapper" />
  </property>
</bean>

Read More „Create text files with spring batch“ »

Daten sicher versenden mit SFTP und Spring Batch

Posted on 5 September 20116 September 2011 By luventas Keine Kommentare zu Daten sicher versenden mit SFTP und Spring Batch
Java, Spring

Datenversand mit spring batch in auf viele Weisen möglich. Der bekannteste Weg ist der Versand von XML-Dateien aber das Springframework bietet auch eine Menge anderer Möglichkeiten an. Einer Dieser Wege ist der sichere Datenversand über SFTP. Für diesen Fall müssen wir das Spring integration Framework verwenden.

Read More „Daten sicher versenden mit SFTP und Spring Batch“ »

Secure data sending with sftp and spring batch

Posted on 5 September 20116 September 2011 By luventas Keine Kommentare zu Secure data sending with sftp and spring batch
Java, Spring

It is possible to send data with spring batch in several ways. The most used case is sending XML files, but the spring framework offers you a lot of other ways too. One of these ways is to send your data files secure by using SFTP. For this use case you can use the spring integration framework.

Read More „Secure data sending with sftp and spring batch“ »

Why is my WordPress blog so slow?

Posted on 7 August 20117 August 2011 By luventas Keine Kommentare zu Why is my WordPress blog so slow?
General

Since my last update of my WordPress blog it was horrible slow. My mobile phone was not able to load the blog anymore, my computer needs something arround one or one and a half minutes to load the next page, on the blog and in the admin dashboard too. I asked myself why.

Read More „Why is my WordPress blog so slow?“ »

Send Email by Spring batch with variable attachments

Posted on 7 August 20117 August 2011 By luventas Keine Kommentare zu Send Email by Spring batch with variable attachments
Java

It is very simple to send an Email with attachments by Spring batch framework.

Firstly you need 3 beans for handling the email:
– The first bean initializes JavaMail and sets all needed properties

Source code   
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="host" value="smtp.yourEmailDomain.de"/>
    <property name="port" value="25"/>
    <property name="username" value="yourUserName"/>
    <property name="password" value="yourPassword"/>
    <property name="javaMailProperties">
        <props>
            <prop key="mail.smtp.auth">true</prop>
        </props>
    </property>
</bean>

Read More „Send Email by Spring batch with variable attachments“ »

Beitragsnavigation

1 2 3 Nächste

Copyright © 2023 Luventas Web Design.

Theme: Oceanly News by ScriptsTown

Diese Website nutzt Cookies, um bestmögliche Funktionalität bieten zu können. OK, verstanden
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
immer aktiv
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SPEICHERN & AKZEPTIEREN