Créer les liens symboliques suivant dans le répetoire lib
ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/libssl.so.6
ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so.6
Mettre les droits sur le group dip
sudo adduser yourUserName dip
Vous devez être identifié pour poster un commentaire.
1.Authentification par un système de clés publique/privé
Générer la clé
ssh-keygen -t dsa
Autoriser les logins
ssh-copy-id -i ~/.ssh/id_dsa.pub <username>@<ipaddress>
ou si le port est différent du port standard 22
ssh-copy-id -i ~/.ssh/id_dsa.pub "<username>@<ipaddress> -p <num_port>"
Vous devez être identifié pour poster un commentaire.
Un chtit coup d'install de ce magnifique serveur notre distribution préférée
Vous devez être identifié pour poster un commentaire.
1.Introduction
Le but est de diminuer le temps de recherche de firefox sous ubuntu.. Aller à l'url about:config
et modifier les paramètre ci-dessous
- network.http.pipelining > Make it True
- network.http.pipelining.maxrequests > Make it 8 or 10
- network.http.proxy.pipelining > Make it True
- network.dns.disableIPv6 > Make it True
Vous devez être identifié pour poster un commentaire.
1.Introduction
Migration du portal vers MySQL
Créer dans le répertoire /domain/domain1/applications/j2ee-module/liferay-portal/WEB-INF/classes/ le fichier portal-ext.properties
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=lportal
jdbc.default.password=lportalpassword
Vous devez être identifié pour poster un commentaire.
Vous devez être identifié pour poster un commentaire.
1.Introudction
Combien de fois ai-je entendu que le fait de compiler, déployer des applications Java était bien plus compliqué que des langages scriptés comme PHP. C'est vrai, cependant rien n'empêche le développeur JAVA web d'utiliser de nouveaux programmes lui facilitant la vie...Dans cette article, j'aimerais vous présenter quelques "nouveaux" plugins
Vous devez être identifié pour poster un commentaire.
1.Configuration
Placer le jar de mysql dans le répertoire lib de tomcat
2.Dossier META-INF, context.xml de l'application
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/myApp">
<!-- Specify a JDBC datasource -->
<Resource name="jdbc/dbmyapp" auth="Container" type="javax.sql.DataSource"
username="user" password="password" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/database?autoReconnect=true"
validationQuery="select 1" maxActive="10" maxIdle="4" />
<!-- To work with the authentification -->
<Realm className="org.apache.catalina.realm.DataSourceRealm"
dataSourceName="jdbc/database"
localDataSource="true"
roleNameCol="LB_ROLENAME"
userCredCol="LB_PASSWORD"
userNameCol="LB_USERNAME"
userRoleTable="T_ROLE"
userTable="T_USER"/>
</Context>
3. applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:flow="http://www.springframework.org/schema/webflow-config"
xmlns:jms="http://www.springframework.org/schema/jms"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:lang="http://www.springframework.org/schema/lang"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-2.5.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
<!--bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
p:location="/WEB-INF/jdbc.properties" />
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource"
p:driverClassName="${jdbc.driverClassName}"
p:url="${jdbc.url}"
p:username="${jdbc.username}"
p:password="${jdbc.password}" /-->
<!-- JPA -->
<tx:annotation-driven />
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="true" /> <!-- Prints used SQL to stdout -->
<property name="generateDdl" value="true" /> <!-- Generates tables. -->
<!-- <property name="databasePlatform" value="org.hibernate.dialect.MySQL5Dialect" />-->
<property name="databasePlatform" value="org.hibernate.dialect.MySQLInnoDBDialect" />
</bean>
</property>
</bean>
<!--
<bean id="dataSource" class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource" destroy-method="close">
<property name="url" value="jdbc:mysql://localhost:3306/database" />
<property name="user" value="username" />
<property name="password" value="123456" />
</bean>
-->
<!-- ###### JNDI Lookup ###### -->
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true">
<property name="jndiName" value="java:comp/env/jdbc/dbmyapp" />
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
<property name="dataSource" ref="dataSource"/>
</bean>
<context:annotation-config/>
<bean id="basicDao" class="ch.devit.dao.service.BasicDao" />
<bean id="surveyService" class="ch.devit.dao.service.SurveyService"
p:basicDao-ref="basicDao"/>
<bean id="surveyController" class="ch.devit.controller.SurveyController"
p:userService-ref="surveyService" scope="prototype" />
</beans>
Vous devez être identifié pour poster un commentaire.
Zkoss, un framework RIA pure Java qui demande à être connu
Vous devez être identifié pour poster un commentaire.
1. Introduction
Voici un exemple de fichier pour le framework Zkoss, lorsque que l'on désire utilisé des éléments XHTML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<zk xmlns="http://www.zkoss.org/2005/zul"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd http://www.w3.org/1999/xhtml
http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd">
<h:link rel="stylesheet" href="/css/style.css" />
<h:div id="global">
<window title="My First window" border="normal" width="200px">
</window>
</h:div>
</zk>
Vous devez être identifié pour poster un commentaire.
1. Réinstaller le MBR sous Windows 7
Démarrez votre PC à l'aide du CD Windows 7, puis choisissez votre langue, et cliquer sur réparer Windows, puis sur invite de commande
Déplacez vous dans lecteur DVD (dans notre f: )
f:
Puis placez-vous dans le répertoire boot
cd boot
Puis lancez la commande suivante
bootsect /nt60 all /mbr /force
Rédémarrez votre pc, le tour est joué
Vous devez être identifié pour poster un commentaire.
1.Introudction
Petite démonstration de la création dynamique de composants avec JSF plus précisement Icefaces... Qui a dit que java c'était lourd et compliqué? ![]()
Vous devez être identifié pour poster un commentaire.
Le blog de Fabrice Bourqui dit Brutus. Ingénieur en microtechnique de formation, développeur à temps partiel, je vous livre quelques astuces principalement sur les technologies Java et l'OS linux... Merci de votre visite.
Le blog de Fabou dit le Burk ou Brutus
| Lun | Mar | Mer | Jeu | Ven | Sam | Dim |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |
Copyright © 2000-2012 - www.developpez.com