programming

HqEclipse

You can install the plugin using the Eclipse Update Manager:

Help > Install new Software
Work with: http://hge.javaforge.com/hgeclipse

[ OK ]
check HqEclipse
[ Next > ]
[ Next > ]
check "I accept the terms of the license agreement"
[ Finish ]
 
confirm Security Warnings dialog with [ OK ]
 
Restart your Eclipse
 
 
 
https://j2m.googlecode.com/hg/
https://hgeclipse-demo.googlecode.com/hg/
 
http://code.google.com/p/hgeclipse-demo/

SmartGWT

# install smart gwt
wget http://smartgwt.googlecode.com/files/smartgwt-2.4.zip -P /tmp
sudo unzip /tmp/smartgwt-2.4.zip -d /usr/share/
sudo ln -sf /usr/share/smartgwt-2.4/ /usr/share/smartgwt
sudo ln -sf /usr/share/smartgwt/smartgwt.jar /usr/share/java/
sudo ln -sf /usr/share/smartgwt/smartgwt-skins.jar /usr/share/java/
 
# restart tomcat server
sudo /etc/init.d/tomcat6 restart
 
 
# create default GWT Project
File > New > Web Application Project
 
Project name:
Smart
 
Package:
smart
 
[ Finish ]
 
 
# add smartGWT
 
Smart > smart > <PROJECT_NAME>.gwt.xml add to module section

Create GWT-Ext project under NetBeans

copy "js" dir from gwt-ext archive int project web folder
 
Main.gwt.xml
add
        <inherits name="com.gwtext.GwtExt"/>
 
 
welcomeGWT.html
add
        <link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-all.css" />
        <link id="theme" rel="stylesheet" type="text/css" href="js/ext/resources/css/xtheme-silverCherry.css"/>
        <script type="text/javascript" src="js/ext/adapter/yui/yui-utilities.js"></script>
        <script type="text/javascript" src="js/ext/adapter/yui/ext-yui-adapter.js"></script>
        <script type="text/javascript" src="js/ext/ext-al

MagentoConnector - Connecting to Magento API with Java using SOAP

NEW Project Magja on Google Code:
http://code.google.com/p/magja/
 
Hi,
 
I am currently writing a Magento Connector for Java. The goal is to create a free wrapper / library to manage 
Magento informations from a Java application. The latest version (source code) can be downloaded from 
http://code.google.com/p/magja/ If someone is interested in co-development, please contact my over my homepage,
http://www.panticz.de/contact 
 
Greeting
 
Pawel
 
 
How to start:
1. create Magento API role and user
http://www.panticz.de/Create-Magento-SOAP-account
 
2.

Java2Snom

public String getSnomSetting(String phoneIp, String field) {
    String value = "";
 
    try {
        URL url = new URL("http://" + phoneIp + "/settings.htm");
        BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
 
        String inputLine;
        while ((inputLine = in.readLine()) != null) {
            if (inputLine.indexOf(field) == 0) {
                value = inputLine.substring(inputLine.indexOf(":") + 1).trim();
            }
        }
 
        in.close();
    } catch (Exception e) {
        System.out.println("[!] getSnomSetting:" + 

/etc/init.d/fiXorg.sh

#!/bin/sh
 
if [ $(date +%H) -gt 18 ]; then
	echo "activate Xorg ATI" 
	ln -sf /etc/X11/xorg.conf.ati  /etc/X11/xorg.conf
else
        echo "activate Xorg NVIDIA"
	ln -sf /etc/X11/xorg.conf.nvidia  /etc/X11/xorg.conf
fi
 
exit 0
 
 
# chmod +x /etc/init.d/fiXorg.sh
# update-rc.d fiXorg.sh defaults 20

syncStore.sh

#!/bin/bash
 
SERVER=YOUR_STORE.COM
MAIL=YOU@YOUR_DOMAIN.COM
 
 
function create_item_description() {
	# set java classpath
	export CLASSPATH=/media/programme/java/classpath/RitterDefault_lin.jar:/media/programme/java/classpath/ojdbc14.jar
 
	# export descriptions from db
	for i in 2 3 7; do
		java LagerlisteCreator -q "Webshop" "${SERVER}_${i}" > /tmp/${SERVER}_${i}.out
 
		if [ ! $?

Asterisk auto-dial out with Java (asterisk-java)

# configure manager
/etc/asterisk/manager.conf
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0 
 
[manager]
secret=pa55w0rd
permit=0.0.0.0/0.0.0.0
read=system,call,log,verbose,agent,command,user
write=system,call,log,verbose,agent,command,user
 
# create extension
/etc/asterisk/extensions.conf
[directdial]
exten => 1,1,Dial(CAPI/ISDN1/${customernum}/b)
 
# reload asterisk
/etc/init.d/asterisk restart
 
# download java class
wget http://maven.reucon.com/public-snapshot/org/asteriskjava/asterisk-java/1.0.0-SNAPSHOT/asterisk-java-1.0.0-20090303.204542-422.jar
 
# HelloMa

Asterisk

asterisk console
asterisk -r

set output to verbose
core set verbose 10

CLI commands
core show channels
capi show channels
capi info
reload
sip show peers

end / destroy channel
core show channels
soft hangup SIP/XXXXXX

MOH
wget http://downloads.digium.com/pub/telephony/sounds/asterisk-moh-freeplay-wav.tar.gz -P /tmp
tar xzf /tmp/asterisk-moh-freeplay-wav.tar.gz -C /tmp
cp /tmp/fpm-sunshine.wav /var/lib/asterisk/moh/
# extensions.conf
exten => 6000,1,Answer

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!


Syndicate content