//honeypot demagogic

 Forum DhammaCitta. Forum Diskusi Buddhis Indonesia

Author Topic: Free Software and Open Source from me  (Read 14207 times)

0 Members and 1 Guest are viewing this topic.

Offline Forte

  • Sebelumnya FoxRockman
  • KalyanaMitta
  • *****
  • Posts: 16.588
  • Reputasi: 458
  • Gender: Male
Re: Free Software and Open Source from me
« Reply #45 on: 29 November 2008, 01:37:41 PM »
whattle..

koq prog inventory u dibuat otomatis loading pas start up ya ?


nah... semakin mencurigakan... ;D


joke:
kok di komputer gw keluar tulisan you are my zombie?
eh mas.. u jangan ikutan baca doank..
mana program u.. share di sini.. jangan pelit2 :))
peaceeeeeeeeeee
Everything can be taken from a man but one thing: the last of the human freedom—-to choose one’s attitude in any given set of circumstances, to choose one’s own way. - Viktor Frankl

Offline hatRed

  • KalyanaMitta
  • *****
  • Posts: 7.400
  • Reputasi: 138
  • step at the right place to be light
Re: Free Software and Open Source from me
« Reply #46 on: 29 November 2008, 01:59:00 PM »
hehehe..

sip deh Forte, ntar g share......

sabar donk, susah neh nyari program g yg jadul2
i'm just a mammal with troubled soul



Offline Forte

  • Sebelumnya FoxRockman
  • KalyanaMitta
  • *****
  • Posts: 16.588
  • Reputasi: 458
  • Gender: Male
Re: Free Software and Open Source from me
« Reply #47 on: 29 November 2008, 02:09:34 PM »
bukan u.. tapi tesla :))
Everything can be taken from a man but one thing: the last of the human freedom—-to choose one’s attitude in any given set of circumstances, to choose one’s own way. - Viktor Frankl

Offline whatthe

  • Teman
  • **
  • Posts: 94
  • Reputasi: -10
  • Gender: Male
Re: Free Software and Open Source from me
« Reply #48 on: 29 November 2008, 07:39:06 PM »
[at] whatte

neyy, ada ada paa nya ya???

kok g jalanin firewall g malah ngasih warning??


trus keknya ad bug di Surat terima barang, n bagemana menentukn HPP??

soalny ada konektifitas port untuk komunikasi antar komputer. Pake winsock
What is the world mean? It's unlimited, unrecognized. So why you stucking here?

Offline whatthe

  • Teman
  • **
  • Posts: 94
  • Reputasi: -10
  • Gender: Male
Re: Free Software and Open Source from me
« Reply #49 on: 29 November 2008, 07:40:18 PM »
whattle..

koq prog inventory u dibuat otomatis loading pas start up ya ?


ya supaya user bisa liat otomatis pas jalanin komputer ny. itu kan buat komputer client not for server
What is the world mean? It's unlimited, unrecognized. So why you stucking here?

Offline tesla

  • KalyanaMitta
  • *****
  • Posts: 6.427
  • Reputasi: 125
  • Gender: Male
  • bukan di surga atau neraka, hanya di sini
Re: Free Software and Open Source from me
« Reply #50 on: 29 November 2008, 09:01:37 PM »
bukan u.. tapi tesla :))

belum selesai...

btw ada java program yg gw buat utk jadi base bot game travian (enginenya dah jadi, ga ada gui, cuma console)
baru siap base utk komunikasi dg web server, tinggal bikin auto nya aja... berguna ga ya?
« Last Edit: 29 November 2008, 09:08:42 PM by tesla »
Lepaskan keserakahan akan kesenangan. Lihatlah bahwa melepaskan dunia adalah kedamaian. Tidak ada sesuatu pun yang perlu kau raup, dan tidak ada satu pun yang perlu kau dorong pergi. ~ Buddha ~

Offline Forte

  • Sebelumnya FoxRockman
  • KalyanaMitta
  • *****
  • Posts: 16.588
  • Reputasi: 458
  • Gender: Male
Re: Free Software and Open Source from me
« Reply #51 on: 30 November 2008, 01:04:51 AM »
bukan u.. tapi tesla :))

belum selesai...

btw ada java program yg gw buat utk jadi base bot game travian (enginenya dah jadi, ga ada gui, cuma console)
baru siap base utk komunikasi dg web server, tinggal bikin auto nya aja... berguna ga ya?
share aja.. ntar tinggal bikin update2 aja.. bisa diatur tuh ma :))
Everything can be taken from a man but one thing: the last of the human freedom—-to choose one’s attitude in any given set of circumstances, to choose one’s own way. - Viktor Frankl

Offline tesla

  • KalyanaMitta
  • *****
  • Posts: 6.427
  • Reputasi: 125
  • Gender: Male
  • bukan di surga atau neraka, hanya di sini
Re: Free Software and Open Source from me
« Reply #52 on: 30 November 2008, 11:23:24 AM »
nih... kasih source aja ya...
compile sendiri & download HtmlUnit dulu (library)

loh udah ga bisa attach file ya?

Code: [Select]
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package travianbot;

import java.io.*;
import java.util.*;

import com.gargoylesoftware.htmlunit.*;
import com.gargoylesoftware.htmlunit.html.*;

/**
 *
 *  [at] author Administrator
 */
public class Bot {

    private static final int DELAY_MILLISECONDS = 2000;
   
    private WebClient client = new WebClient(BrowserVersion.FIREFOX_2);
    private String server;
   
    private String currentVillageId;
    private String currentVillageName;
   
   
   
    private String lastPageUrl; // for caching
    private HtmlPage lastPage;
   
    public Bot(String server) {
        this.server = server;
    }
   
   
   
   
    // TRAVIAN FUNCTION
    public HtmlPage login(String userName, String password) throws IOException {       
        HtmlPage page = getPage("/login.php");
        HtmlForm form = page.getFormByName("snd");       
       
        // name of <input> changed every day -_-"
        HtmlTextInput inputName = (HtmlTextInput) form.getByXPath("//input[ [at] type='text']").get(0);
        HtmlPasswordInput inputPassword = (HtmlPasswordInput) form.getByXPath("//input[ [at] type='password']").get(0);
       
        HtmlImageInput inputLogin = (HtmlImageInput) form.getInputByName("s1");
        inputName.setValueAttribute(userName);
        inputPassword.setValueAttribute(password);
       
        delay(DELAY_MILLISECONDS);       
        HtmlPage dorf1 = (HtmlPage) inputLogin.click();
        lastPageUrl = "?";
       
        return dorf1; //dorf1.php or login.php(if failed)
    }
   
    public void logout() throws IOException {
        getPage("/logout.php");       
        getPage("/login.php?del_cookie");       
        lastPageUrl = "?";
    }
   
    public boolean isLogged(HtmlPage dorf1) {
        // check is <div id="lres0"> exists in dorf1.php?
        // if not logged, dorf1.php actually contains login.php
        boolean result = false;
        try {
            dorf1.getHtmlElementById("lres0");
            result = true;
        } catch (ElementNotFoundException ex) {
            result = false;
        }
        return result;
    }
   
    public String getCurrentVillageName(HtmlPage dorf1) {
        return ((HtmlElement) dorf1.getByXPath("//div[ [at] id='lmid2']/div[1]/h1").get(0)).asText();
    }
   
    public List<Village> getVillages(HtmlPage dorf3) {
        List<Village> result = new ArrayList<Village>();
        List elements = dorf3.getByXPath("//div[ [at] id='lmid2']/p/table/tbody//tr");
       
        for (int i = 2; i < elements.size(); i++) {
            HtmlTableRow tr = (HtmlTableRow) elements.get(i);
            HtmlAnchor a = (HtmlAnchor) tr.getByXPath("td[1]/a").get(0);
            Village v = new Village();
            v.id = a.getAttribute("href");
            v.id = v.id.substring(v.id.lastIndexOf("=")+1);
            v.name = a.asText();           
            result.add(v);
        }
        return result;
    }
   
    /*
     *  [at] param page page that contains <div id="lres0">
     *        eg. dorf1.php, dorf2.php, dorf3.php, karte.php
     */
    public String[] getResource(HtmlPage page) {
        String wood = page.getElementById("l4").getTextContent();
        String clay = page.getElementById("l3").getTextContent();
        String iron = page.getElementById("l2").getTextContent();       
        String crop = page.getElementById("l1").getTextContent();
        String cropUsage = ((HtmlElement) page.getByXPath("//div[ [at] id='lres0']/table/tbody/tr/td[9]").get(0)).asText();
        return new String[] { wood, clay, iron, crop, cropUsage };
    }
   
    public String[] getProduction(HtmlPage dorf1) {
        String wood = ((HtmlElement) dorf1.getByXPath("//div[ [at] id='lrpr']/table/tbody/tr[1]/td[3]/b").get(0)).asText();
        String clay = ((HtmlElement) dorf1.getByXPath("//div[ [at] id='lrpr']/table/tbody/tr[2]/td[3]/b").get(0)).asText();
        String iron = ((HtmlElement) dorf1.getByXPath("//div[ [at] id='lrpr']/table/tbody/tr[3]/td[3]/b").get(0)).asText();
        String crop = ((HtmlElement) dorf1.getByXPath("//div[ [at] id='lrpr']/table/tbody/tr[4]/td[3]/b").get(0)).asText();
        return new String[] { wood, clay, iron, crop };
    }
   
   
   
   
   
    // MISC FUNCTION
    public HtmlPage getPage(String page) throws IOException {
        if (lastPageUrl != null && lastPageUrl.equals(page)) {
            return lastPage;
        } else {
            delay(DELAY_MILLISECONDS);
            HtmlPage target = (HtmlPage) client.getPage("http://"+server+"/" +page);
            lastPageUrl = page;
            lastPage = target;
            return target;
        }       
    }
   
    public static void delay(int milliseconds) {
        try {
            long now = System.currentTimeMillis();
            long end = now + milliseconds;
            // repeat if too fast
            do {
                Thread.currentThread().sleep(end-now);
                now = System.currentTimeMillis();
            } while (now < end);           
        } catch (InterruptedException ex) {
            System.out.println("Interrupted");
        }
    }
   
}

Lepaskan keserakahan akan kesenangan. Lihatlah bahwa melepaskan dunia adalah kedamaian. Tidak ada sesuatu pun yang perlu kau raup, dan tidak ada satu pun yang perlu kau dorong pergi. ~ Buddha ~

Offline hatRed

  • KalyanaMitta
  • *****
  • Posts: 7.400
  • Reputasi: 138
  • step at the right place to be light
Re: Free Software and Open Source from me
« Reply #53 on: 15 December 2008, 07:26:40 PM »
my turn


http://www.geocities.com/sendmail2irvan/Gen.zip

[aplikasi pengenalan huruf] pake vb.net
« Last Edit: 15 December 2008, 07:42:27 PM by hatRed »
i'm just a mammal with troubled soul



Offline marcedes

  • KalyanaMitta
  • *****
  • Posts: 1.528
  • Reputasi: 70
  • Gender: Male
  • May All Being Happinesssssssss
Re: Free Software and Open Source from me
« Reply #54 on: 17 December 2008, 12:10:25 PM »
sy butuh program stok inventory sekaligus invoice..

yah buat toko grosir kelas menengah.... ada saran?
Ada penderitaan,tetapi tidak ada yang menderita
Ada jalan tetapi tidak ada yang menempuhnya
Ada Nibbana tetapi tidak ada yang mencapainya.

TALK LESS DO MOREEEEEE !!!

Offline hatRed

  • KalyanaMitta
  • *****
  • Posts: 7.400
  • Reputasi: 138
  • step at the right place to be light
Re: Free Software and Open Source from me
« Reply #55 on: 17 December 2008, 08:21:47 PM »
my turn


http://www.geocities.com/sendmail2irvan/Gen.zip

[aplikasi pengenalan huruf] pake vb.net

loh kok gak ada pendapat :'(
pada gak suka algoritma yak

:-? ayee buat thread baru aja yak tentang algoritma
i'm just a mammal with troubled soul



Offline hatRed

  • KalyanaMitta
  • *****
  • Posts: 7.400
  • Reputasi: 138
  • step at the right place to be light
Re: Free Software and Open Source from me [Photo Frame]
« Reply #56 on: 25 November 2009, 10:54:13 AM »
iseng aja ;D

i'm just a mammal with troubled soul



Offline Forte

  • Sebelumnya FoxRockman
  • KalyanaMitta
  • *****
  • Posts: 16.588
  • Reputasi: 458
  • Gender: Male
Re: Free Software and Open Source from me
« Reply #57 on: 25 November 2009, 11:01:42 AM »
^
^
.NET ya ? :))
Everything can be taken from a man but one thing: the last of the human freedom—-to choose one’s attitude in any given set of circumstances, to choose one’s own way. - Viktor Frankl

Offline hatRed

  • KalyanaMitta
  • *****
  • Posts: 7.400
  • Reputasi: 138
  • step at the right place to be light
Re: Free Software and Open Source from me
« Reply #58 on: 25 November 2009, 11:02:29 AM »
;D   :)) iyeh..

oh yah.. lupa frameworknya.. =)) 

install ndiri aja yah.. :))
i'm just a mammal with troubled soul



Offline Forte

  • Sebelumnya FoxRockman
  • KalyanaMitta
  • *****
  • Posts: 16.588
  • Reputasi: 458
  • Gender: Male
Re: Free Software and Open Source from me
« Reply #59 on: 25 November 2009, 11:06:21 AM »
framework segede gaban jangan disertakan dah.. kalau mau seh kasih tau aja minimal pake .NET framework ver berapa ?
ntar suruh yang mau lirik ke m$ aja..
Everything can be taken from a man but one thing: the last of the human freedom—-to choose one’s attitude in any given set of circumstances, to choose one’s own way. - Viktor Frankl