LIITE 2 CoffeeBot class
|
|
- Esa Mäki
- 8 vuotta sitten
- Katselukertoja:
Transkriptio
1 LIITE 2 CoffeeBot class package fi.tkk.automationit.coffeebot; / A CoffeeBot class. CoffeeBot is aplication for communication between the Coffee Maker bundele and the IRC-channel. CoffeeBot uses the class PircBot. With its methods CoffeeBot joins to the given server and channel. CoffeeBot is listening the conversation in the channel and reacts if any sentence written to the channel begins with mark!. CoffeeBot converts the orders so that the Coffee Maker bundle can understand them and then sends them to it. CoffeeBot prints to the channel the events that it gets from Coffee Maker Juha Sironen & Henri Nieminen / import java.io.ioexception; public class CoffeeBot extends PircBot { private BotListener BL = null; //Variable class BotListener private CoffeeService cservice = null; //Variable Coffee Maker service private BotActivator BA = null; //Variable class BotActivator private UsersList Users = null; //Variable table that are permitted to order private String channel; //Variable what channel the bot connects private String server; //Variable what server the bot connects private String param1; //Variable that is build from message to the bot private String param2; //Variable that is build from message to the bot public int Try = 0; //Parameter contains the number of connection attempts public int TryLimit = 2016; //Parameter that contains the number of connection attempts will be made public long WaitTime = ; //Parameter the time (ms) that will be waited between connection attempts public int Nicks = 0; //Variable running number that will be added at the end of the nick if the nick is all ready in use public String OrginalName = ""; //Variable for the original name of the Bot public long GotOnline = 0; //Variable the time when the connection succeed / Constructs a new CoffeeBot. The constructor creates new CoffeeBot and overwrites the variable OriginalName with the desired name of the BotName the desired name for the channel the channel that the CoffeeBot will connect server the server that the CoffeeBot will connect BA Bundle Activator /
2 public CoffeeBot(String BotName,String channel, String server, BotActivator BA) { this.setname(botname); this.channel = channel; this.server = server; this.ba = BA; OrginalName = this.getname(); / Adds service CoffeeService to the cservice CoffeeService / public void insertcservice(coffeeservice cservice){ this.cservice = cservice; / Adds BotListener for the BL BotListener / public void insertbl(botlistener BL){ this.bl = BL; / This method is called whenever a message is sent to a channel. <p> If the message begins with mark! and the Coffee Maker bundle is running the message will be checked. The message is parsed to three parts from the spaces The first word is command and the two following are the parameters of the command. The command is compared to known kommands and if it exicts the method for the command will be executed. Some of the methods are allowed to be used for authorizated users channel The channel to which the message was sender The nick of the person who sent the login The login of the person who sent the hostname The hostname of the person who sent the message The actual message sent to the channel. / public void onmessage(string channel, String sender,string login, String hostname, String message) { String s0 = Character.toString(message.charAt(0)); begins with mark! if(s0.equals("!")){ //checks if the message String name = this.getname(); String word = ""; this.param1 = ""; this.param2 = ""; int length = message.length(); int i1 = 1; String shouter = sender + "," + login;
3 if(bl!=null){ //Checks that the BotListener is created. if(bl.getcoffeemakeronline()){ //Checks that the Coffee Maker bundle is available. do{ char c1 = message.charat(i1); String s1 = Character.toString(c1); //Creates command from the beginning of the sentence, untill there is space. if(s1.equals(" ")){ i1++; do{ char c2 = message.charat(i1); // pace. String s2 = Character.toString(c2); //Creates paremeter from the message between first and the second if(s2.equals(" ")){ i1++; do{ //Create parameter from the end of the message char c3 = message.charat(i1); String s3 = Character.toString(c3); param2 = param2 + s3; i1++; while (i1!= length); break; s1; param1 = param1 + s2; i1++; while (i1!= length); break; word = word + i1++; while (i1!= length); if(word.equals("order")){
4 if(users.isuser(shouter)){ //If the command is order and the user is permitted user then it calls OrderCoffee method. this.ordercoffee(param1, param2, name, sender, login); else{ send(sender + ", " + login + ", " + hostname + " et ole " + "sallittu käyttäjä tilaamaan kahvia."); else if(word.equals("last")){ //If the command is last then call Last method. this.last(); else if(word.equals("cmonline")){ //If the command is cmonlien then call cmonline method. this.cmonline(); if(word.equals("botonline")){ BotOnline method. this.botonline(); if(word.equals("listusers")){ ListUsers method. else //If the command is botonline then call else //If the command is listusers then call this.listusers(); else if(word.equals("adduser")){ //If the command is adduser and the user is permitted user then call AddUser method. if(users.isuser(shouter)){ this.adduser(param1,param2,sender); else{ send(sender + ", " + login + ", " + hostname + " et ole " + "sallittu käyttäjä lisäämään uutta käyttäjää."); else if(word.equals("removeuser")){ //If the command is removeuser and the user is permitted user then call RemoveUser method. if(users.isuser(shouter)){ this.removeuser(param1,param2,sender); else{ send(sender + ", " + login + ", " + hostname + " et ole " + "sallittu käyttäjä poistamaan toista käyttäjää."); else if(word.equals("help")){ //If the command is help then call Help method. this.help(param1); //In other cases the command is not known else{
5 "!"+ word + " ei ole olemassa oleva komento. " + "Katso komennolla!help olemassa olevat komennot."; String fault = send(fault); palvelu ei ole saatavilla."); käynnistetty."); else{ else{ send("coffee Maker send("coffee Maker palvelua ei ole / Sends message that is given by parameters to the channel where CoffeeBot message message to be sent / public void send(string message){ sendmessage(channel, message); / Coffee order. Method sends Coffee order to Coffee Maker bundle in the correct form. If the parameters are in correct form and inside correct boundaries then the coffee order is param1 The amount of cups to be param2 The strength of the coffee to be name The name of the login The IRC-login of the hostname The IRC-hostname of the orderer / public void OrderCoffee(String param1, String param2, String name, String login, String hostname){ int cups = 0; //The amount of cups ordered int strength = 0; //the strength of the coffee ordered int cupsll = 1; //lower boundary of the cups to be ordered, set this to <0 if U dont want CoffeeBots boundaries to be in effect. int cupsul = 10; //upper boundary of the cups to be ordered, set this to >9999 if U dont want CoffeeBots boundaries to be in effect. int strengthll = 50; //lower boundary of the strength of the coffee order, set this to <0 if U dont want CoffeeBots boundaries to be in effect. int strengthul = 150; //lower boundary of the strength of the coffee order, set this to >9999 if U dont want CoffeeBots boundaries to be in effect. String cupsulstring = Integer.toString(cupsUL); //Changes the amounts upper boundary to string form. String cupsllstring = Integer.toString(cupsLL); //Changes the amounts lower boundary to string form. String strengthulstring = Integer.toString(strengthUL); //changes the strengths upper boundary to string form.
6 String strengthllstring = Integer.toString(strengthLL); //changes the strengths lower boundary to string form. try{ //changes the amount and strength to string form. cups = Integer.parseInt(param1); strength = Integer.parseInt(param2); catch (NumberFormatException e){ send(login + " komento ei ollut oikein. Selviittääksesi kuinka sen tulis olla " + "kirjoita kanavalle komento!help."); return; if(cups>=cupsll&&cups<=cupsul){ //Check that the amounth is inside the boundaries. if(strength>=strengthll&&strength<=strengthul){ //Check that the strength is inside the boundaries. try{ cservice.ordercoffee(cups, strength, this.getname(), login, hostname); //tilataan kahvia! catch (CoffeeException e){ send(login +" order " + e.getmessage()); else{ send(login + " vahvuus ei ollut rajoissa " + strengthllstring + " - " + strengthulstring + "."); else{ send(login + " määrä ei ollut rajoissa " + cupsllstring + " - " + cupsulstring + "."); / Method counts the time that have past since the last finished coffee making and send the time to the channel. / public void Last(){ long now = System.currentTimeMillis()/1000; long since = now - cservice.getlastcoffeereadytimestamp()/1000; long longh = since/3600; long jh = since%3600; long longmin = jh/60; long jmin = jh%60; long longsec = jmin; int h = (int)longh; int min = (int)longmin; int sec = (int)longsec; String LCRT = "0"; LCRT = "Viimeisin keitto valmistui " + Integer.toString(h) + " tuntia" + Integer.toString(min) + " minuuttia " + Integer.toString(sec) + " sekunttia sitten."; send(lcrt);
7 / Method counts how long the Coffee Maker bundle has been on and send the time to the channel. / public void cmonline(){ long longut = cservice.getuptime()/1000; long longh = longut/3600; long jh = longut%3600; long longmin = jh/60; long jmin = jh%60; long longsec = jmin; int h = (int)longh; int min = (int)longmin; int sec = (int)longsec; String UT = ""; UT = "Coffee Maker palvelu on ollut saatavilla " + Integer.toString(h) + " tuntia " + Integer.toString(min) + " minuuttia " + Integer.toString(sec) + " sekunttia."; send(ut); / Method counts how long the CoffeeBot has been in the channel and sends the time to the channel. / public void BotOnline(){ long now = System.currentTimeMillis()/1000; long since = now - this.gotonline/1000; long longh = since/3600; long jh = since%3600; long longmin = jh/60; long jmin = jh%60; long longsec = jmin; int h = (int)longh; int min = (int)longmin; int sec = (int)longsec; String TIO = ""; TIO = this.getname() + " on ollut kanavalla " + Integer.toString(h) + " tuntia " + Integer.toString(min) + " minuuttia " + Integer.toString(sec) + " sekunttia."; send(tio); / Print to the channel the users that are permitted to use the coffee maker. / public void ListUsers(){ String List = ""; int i = 0; do{ String temp = Users.getCell(i); List = List + temp; List = List + "; ";
8 i++; while(users.getcell(i)!=null); send(list); / Adds new user with method adduser from class UserList that is build from param1 and param1 The Nick of the new param2 The Login of the new sender The Nick of the person that adds the new person. / public void AddUser(String param1, String param2, String sender){ if(param1.equals("") param2.equals("")){ send("komento!adduser " + param1 + " " + param2 + " ei ollut niin kuin sen kuuluisi olla."); else{ String NewUser = param1 + ",n=" + param2; if(users.adduser(newuser)){ send(sender +" added new user " + NewUser + "."); else{ String maxusers = Integer.toString(Users.MaxUsers); send("emme pystyneet lisäämään käyttäjää " + NewUser + ". Joko käyttäjä oli jo olemassa " + "tai käyttäjiä on jo maksimimäärä " + maxusers + "."); / Removes user with method removeuser from class param1 The Nick of the user thats going to be param2 The Login of the user thats going to be sender The Nick of the person that removes the person. / public void RemoveUser(String param1, String param2, String sender){ String RemovedUser = param1 + ",n=" + param2; if(users.removeuser(removeduser)){ send(sender + " poisti käyttäjän " + RemovedUser + "."); else{ send("emme pystyneet poistamaan käyttääjää " + RemovedUser + ". Tarkista komentosi."); / Prints instructions to the channel about the command given in param1 the command that needs instructions. / public void Help(String param1){ String help = ""; if(param1.equals("order")){
9 help = "!order komennolla voivat sallitut käyttäjät tilata kahvia. " + "Tilaus tulee olla muodossa:!order määrä vahvuus. " + "Esim:!order "; else if(param1.equals("last")){ help = "!last komennolla voit selvittää kuinka kauan sitten viimeisin kahvinkeitto on valmistunut."; else if(param1.equals("cmonline")){ help = "!cmonline komennolla voit selvittää kuinka kauan Coffee Maker " + "palvelu on ollut saatavilla."; else if(param1.equals("botonline")){ help = "!botonline komennolla voit selvittää kuinka kauan " + this.getname() + " on ollut kanavalla " + this.channel + "."; else if(param1.equals("listusers")){ help = "!listusers komennolla voi selvittää ketkä ovat sallittuja käyttäjiä."; else if(param1.equals("adduser")){ help = "!adduser komennolla voivat sallitut käyttäjät lisätä uusia käyttäjiä. " + "Komento tulee olla muodossa:!adduser nick login."; else if(param1.equals("removeuser")){ help = "!removeuser komennolla voivat sallitut käyttäjät poistaa toisia käyttäjiä. " + "Komento tulee olla muodossa:!removeuser nick login."; else{ help = "Olemassa olevat komennot ovat:!order,!last,!cmonline,!botonline,!listusers, " + "!adduser,!removeuser ja!help. Käyttääksesesi komentoja, kirjoita se kanavalle" + "tarvittavien parametrien kanssa. Saadaksesi lisää tietoja komennoista," + " kirjoita kanavalle!help komento. Esim:!help order."; send(help); / This method is called whenever someone joins a channel which CoffeeBot are on. <p> The implementation of this method in the PircBot abstract class performs no actions and may be overridden as required. Prints well come message to the channel. / public void onjoin(string channel, String sender, String login, String hostname){ if(!sender.equals(this.getname())){ String Join = sender + ", " + login + ", " + hostname + " tervetuloa kanavalle " + this.channel + ". Olen " + this.getname() + ". Minun avulla " + "voit keittää kahvia kahvinkeittimellä joka sijaitsee AS-laitoksella." +
10 komento!help kanavalle."; " Saadaksesi lisää tietoa komennoista, kirjoita send(join); / Tries to connect to the server and the channel. Method uses PircBots mathods setverbose, connect ja JoinChannel. If the connection dont succeed and its not the first attemption and not reached the maximum attempts it waits the waithing time and tries to connect again. If Nick is allready in use the channel adds running number at the end of the FirstTry is the CoffeeBot trying to connect to the channel for the first time since the bot has been IOException if it was not possible to connect to the IrcException if the server would not let us join NickAlreadyInUseException if our nick is already in use on the server. / public void TryConnect(boolean FirstTry){ try { this.try++; this.setverbose(true); this.connect(server); this.joinchannel(channel); this.try = 0; this.gotonline = System.currentTimeMillis(); Nicks = 0; String Join = "Terve! Olen " + this.getname() + ". Minun avulla " + "voit keittää kahvia kahvinkeittimellä joka sijaitsee AS-laitoksella." + " Saadaksesi lisää tietoa komennoista, kirjoita komento!help kanavalle."; send(join); catch (NickAlreadyInUseException e) { e.printstacktrace(); Nicks++; String NewName = OrginalName + Integer.toString(Nicks); this.setname(newname); TryConnect(FirstTry); catch (IOException e) { e.printstacktrace(); catch (IrcException e) { e.printstacktrace(); if(!this.isconnected()&&!firsttry){ if(try<=trylimit){ System.out.println(this.getName() + " couldn't make " +
11 this.waittime/1000 +"sec " + again."); times " + down. " + else{ in available."); "a connection. Bot will wait " + "and going to try connection this.waitbeforeconnect(this.waittime); TryConnect(false); System.out.println(this.getName() + " attempted too many BA.StopUsingBundle(); "to get connection and shut him self "Find out why the connection was not attempt. / Wait time that the CoffeeBot waits until it makes new msecs odotusaika. / public void WaitBeforeConnect(long msecs){ long start = new Date().getTime(); long cur = start; while(cur - start < msecs){ cur = new Date().getTime(); / This method carries out the actions to be performed when the CoffeeBot gets disconnected. This may happen if the CoffeeBot quits from the server, or if the connection is unexpectedly lost. <p> Disconnection from the IRC server is detected immediately if either we or the server close the connection normally. If the connection to the server is lost, but neither we nor the server have explicitly closed the connection, then it may take a few minutes to detect (this is commonly referred to as a "ping timeout"). <p> If the connection is lost the its tried to put back with method TryConnect. <p> The implementation of this method in the PircBot abstract class performs no actions and may be overridden as required. / public void ondisconnect(){ System.out.println(this.getName() + " lost connection and try establish it again."); this.tryconnect(false); / Method is used to create new userlist for the true if the list creation succeed. /
12 public boolean getuserslist(){ boolean ListOK = true; this.users = new UsersList(); if(!this.users.readfromfile()){ System.out.println("Userlist does not exist or it is empty. Make sure that list exist and is not empty and try to start the Bot again."); ListOK = false; return ListOK;
1.3 Lohkorakenne muodostetaan käyttämällä a) puolipistettä b) aaltosulkeita c) BEGIN ja END lausekkeita d) sisennystä
OULUN YLIOPISTO Tietojenkäsittelytieteiden laitos Johdatus ohjelmointiin 811122P (5 op.) 12.12.2005 Ohjelmointikieli on Java. Tentissä saa olla materiaali mukana. Tenttitulokset julkaistaan aikaisintaan
On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31)
On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31) Juha Kahkonen Click here if your download doesn"t start automatically On instrument costs
Capacity Utilization
Capacity Utilization Tim Schöneberg 28th November Agenda Introduction Fixed and variable input ressources Technical capacity utilization Price based capacity utilization measure Long run and short run
1.3Lohkorakenne muodostetaan käyttämällä a) puolipistettä b) aaltosulkeita c) BEGIN ja END lausekkeita d) sisennystä
OULUN YLIOPISTO Tietojenkäsittelytieteiden laitos Johdatus ohjelmointiin 81122P (4 ov.) 30.5.2005 Ohjelmointikieli on Java. Tentissä saa olla materiaali mukana. Tenttitulokset julkaistaan aikaisintaan
anna minun kertoa let me tell you
anna minun kertoa let me tell you anna minun kertoa I OSA 1. Anna minun kertoa sinulle mitä oli. Tiedän että osaan. Kykenen siihen. Teen nyt niin. Minulla on oikeus. Sanani voivat olla puutteellisia mutta
On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31)
On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31) Juha Kahkonen Click here if your download doesn"t start automatically On instrument costs
On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31)
On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31) Juha Kahkonen Click here if your download doesn"t start automatically On instrument costs
1. Liikkuvat määreet
1. Liikkuvat määreet Väitelauseen perussanajärjestys: SPOTPA (subj. + pred. + obj. + tapa + paikka + aika) Suora sanajärjestys = subjekti on ennen predikaattia tekijä tekeminen Alasääntö 1: Liikkuvat määreet
1. SIT. The handler and dog stop with the dog sitting at heel. When the dog is sitting, the handler cues the dog to heel forward.
START START SIT 1. SIT. The handler and dog stop with the dog sitting at heel. When the dog is sitting, the handler cues the dog to heel forward. This is a static exercise. SIT STAND 2. SIT STAND. The
The CCR Model and Production Correspondence
The CCR Model and Production Correspondence Tim Schöneberg The 19th of September Agenda Introduction Definitions Production Possiblity Set CCR Model and the Dual Problem Input excesses and output shortfalls
FinFamily Installation and importing data (11.1.2016) FinFamily Asennus / Installation
FinFamily Asennus / Installation 1 Sisällys / Contents FinFamily Asennus / Installation... 1 1. Asennus ja tietojen tuonti / Installation and importing data... 4 1.1. Asenna Java / Install Java... 4 1.2.
A09-05 OSGi IRC Bot For Coffee Maker (4op) AS Automaatio- ja systeemitekniikan projektityöt Loppuraportti Syksy 2009
A09-05 OSGi IRC Bot For Coffee Maker (4op) AS-0.3200 Automaatio- ja systeemitekniikan projektityöt Loppuraportti Syksy 2009 Ryhmä Henri Nieminen Juha Sironen Ohjaaja: Heikki Nikula Aloitettu: 08.09.2009
C++11 seminaari, kevät Johannes Koskinen
C++11 seminaari, kevät 2012 Johannes Koskinen Sisältö Mikä onkaan ongelma? Standardidraftin luku 29: Atomiset tyypit Muistimalli Rinnakkaisuus On multicore systems, when a thread writes a value to memory,
Small Number Counts to 100. Story transcript: English and Blackfoot
Small Number Counts to 100. Story transcript: English and Blackfoot Small Number is a 5 year-old boy who gets into a lot of mischief. He lives with his Grandma and Grandpa, who patiently put up with his
Choose Finland-Helsinki Valitse Finland-Helsinki
Write down the Temporary Application ID. If you do not manage to complete the form you can continue where you stopped with this ID no. Muista Temporary Application ID. Jos et onnistu täyttää lomake loppuun
Network to Get Work. Tehtäviä opiskelijoille Assignments for students. www.laurea.fi
Network to Get Work Tehtäviä opiskelijoille Assignments for students www.laurea.fi Ohje henkilöstölle Instructions for Staff Seuraavassa on esitetty joukko tehtäviä, joista voit valita opiskelijaryhmällesi
FinFamily PostgreSQL installation ( ) FinFamily PostgreSQL
FinFamily PostgreSQL 1 Sisällys / Contents FinFamily PostgreSQL... 1 1. Asenna PostgreSQL tietokanta / Install PostgreSQL database... 3 1.1. PostgreSQL tietokannasta / About the PostgreSQL database...
RINNAKKAINEN OHJELMOINTI A,
RINNAKKAINEN OHJELMOINTI 815301A, 18.6.2005 1. Vastaa lyhyesti (2p kustakin): a) Mitkä ovat rinnakkaisen ohjelman oikeellisuuskriteerit? b) Mitä tarkoittaa laiska säikeen luominen? c) Mitä ovat kohtaaminen
Efficiency change over time
Efficiency change over time Heikki Tikanmäki Optimointiopin seminaari 14.11.2007 Contents Introduction (11.1) Window analysis (11.2) Example, application, analysis Malmquist index (11.3) Dealing with panel
812336A C++ -kielen perusteet, 21.8.2010
812336A C++ -kielen perusteet, 21.8.2010 1. Vastaa lyhyesti seuraaviin kysymyksiin (1p kaikista): a) Mitä tarkoittaa funktion ylikuormittaminen (overloading)? b) Mitä tarkoittaa jäsenfunktion ylimääritys
Voice Over LTE (VoLTE) By Miikka Poikselkä;Harri Holma;Jukka Hongisto
Voice Over LTE (VoLTE) By Miikka Poikselkä;Harri Holma;Jukka Hongisto If you are searched for a book by Miikka Poikselkä;Harri Holma;Jukka Hongisto Voice over LTE (VoLTE) in pdf form, then you have come
A09-05 OSGi IRC Bot For Coffee Maker
AS-0.3200 Automaatio- ja systeemitekniikan projektityöt A09-05 OSGi IRC Bot For Coffee Maker Henri Nieminen Juha Sironen 1 Sisältö: 1. Tavoitteiden kertaus 2. Tuloksien esittely 3. Sovelluksen demo 4.
Laskennallisesti Älykkäät Järjestelmät. Sumean kmeans ja kmeans algoritmien vertailu
Laskennallisesti Älykkäät Järjestelmät Sumean kmeans ja kmeans algoritmien vertailu Annemari Auvinen (annauvi@st.jyu.fi) Anu Niemi (anniemi@st.jyu.fi) 28.5.2002 1 Tehtävän kuvaus Tehtävänämme oli verrata
Uusi Ajatus Löytyy Luonnosta 4 (käsikirja) (Finnish Edition)
Uusi Ajatus Löytyy Luonnosta 4 (käsikirja) (Finnish Edition) Esko Jalkanen Click here if your download doesn"t start automatically Uusi Ajatus Löytyy Luonnosta 4 (käsikirja) (Finnish Edition) Esko Jalkanen
Ohjelmointikielet ja -paradigmat 5op. Markus Norrena
Ohjelmointikielet ja -paradigmat 5op Markus Norrena Kotitehtävä 6, toteuttakaa alla olevan luokka ja attribuutit (muuttujat) Kotitehtävä 6, toteuttakaa alla olevan luokka ja attribuutit (muuttujat) Huom!
Information on preparing Presentation
Information on preparing Presentation Seminar on big data management Lecturer: Spring 2017 20.1.2017 1 Agenda Hints and tips on giving a good presentation Watch two videos and discussion 22.1.2017 2 Goals
Tapahtumapohjainen ohjelmointi. Juha Järvensivu juha.jarvensivu@tut.fi 2007
Tapahtumapohjainen ohjelmointi Juha Järvensivu juha.jarvensivu@tut.fi 2007 Sisältö Tapahtumapohjainen ohjelmointi Käyttöliittymän rakenne Pääikkuna (top-level window) Lapsi-ikkuna (child window) Dialogit
make and make and make ThinkMath 2017
Adding quantities Lukumäärienup yhdistäminen. Laske yhteensä?. Countkuinka howmonta manypalloja ballson there are altogether. and ja make and make and ja make on and ja make ThinkMath 7 on ja on on Vaihdannaisuus
LYTH-CONS CONSISTENCY TRANSMITTER
LYTH-CONS CONSISTENCY TRANSMITTER LYTH-INSTRUMENT OY has generate new consistency transmitter with blade-system to meet high technical requirements in Pulp&Paper industries. Insurmountable advantages are
PAINEILMALETKUKELA-AUTOMAATTI AUTOMATIC AIR HOSE REEL
MAV4 MAV5 MAV6 PAINEILMALETKUKELA-AUTOMAATTI AUTOMATIC AIR HOSE REEL Käyttöohje Instruction manual HUOMIO! Lue käyttöohjeet huolellisesti ennen laitteen käyttöä ja noudata kaikkia annettuja ohjeita. Säilytä
TIEKE Verkottaja Service Tools for electronic data interchange utilizers. Heikki Laaksamo
TIEKE Verkottaja Service Tools for electronic data interchange utilizers Heikki Laaksamo TIEKE Finnish Information Society Development Centre (TIEKE Tietoyhteiskunnan kehittämiskeskus ry) TIEKE is a neutral,
Data protection template
Data protection template Aihe: rekisteriseloste ja informointipohja Topic: information about the register and information to users (related to General Data Protection Regulation (GDPR) (EU) 2016/679) Mallina
ALOITUSKESKUSTELU / FIRST CONVERSATION
ALOITUSKESKUSTELU / FIRST CONVERSATION Lapsen nimi / Name of the child Lapsen ikä / Age of the child yrs months HYVINKÄÄN KAUPUNKI Varhaiskasvatuspalvelut Lapsen päivähoito daycare center / esiopetusyksikkö
Salasanan vaihto uuteen / How to change password
Salasanan vaihto uuteen / How to change password Sisällys Salasanakäytäntö / Password policy... 2 Salasanan vaihto verkkosivulla / Change password on website... 3 Salasanan vaihto matkapuhelimella / Change
MEETING PEOPLE COMMUNICATIVE QUESTIONS
Tiistilän koulu English Grades 7-9 Heikki Raevaara MEETING PEOPLE COMMUNICATIVE QUESTIONS Meeting People Hello! Hi! Good morning! Good afternoon! How do you do? Nice to meet you. / Pleased to meet you.
Tietorakenteet ja algoritmit
Tietorakenteet ja algoritmit Taulukon edut Taulukon haitat Taulukon haittojen välttäminen Dynaamisesti linkattu lista Linkatun listan solmun määrittelytavat Lineaarisen listan toteutus dynaamisesti linkattuna
Miksi Suomi on Suomi (Finnish Edition)
Miksi Suomi on Suomi (Finnish Edition) Tommi Uschanov Click here if your download doesn"t start automatically Miksi Suomi on Suomi (Finnish Edition) Tommi Uschanov Miksi Suomi on Suomi (Finnish Edition)
16. Allocation Models
16. Allocation Models Juha Saloheimo 17.1.27 S steemianalsin Optimointiopin seminaari - Sks 27 Content Introduction Overall Efficienc with common prices and costs Cost Efficienc S steemianalsin Revenue
Uusia kokeellisia töitä opiskelijoiden tutkimustaitojen kehittämiseen
The acquisition of science competencies using ICT real time experiments COMBLAB Uusia kokeellisia töitä opiskelijoiden tutkimustaitojen kehittämiseen Project N. 517587-LLP-2011-ES-COMENIUS-CMP This project
Nuku hyvin, pieni susi -????????????,?????????????????. Kaksikielinen satukirja (suomi - venäjä) (www.childrens-books-bilingual.com) (Finnish Edition)
Nuku hyvin, pieni susi -????????????,?????????????????. Kaksikielinen satukirja (suomi - venäjä) (www.childrens-books-bilingual.com) (Finnish Edition) Click here if your download doesn"t start automatically
Information on Finnish Language Courses Spring Semester 2018 Päivi Paukku & Jenni Laine Centre for Language and Communication Studies
Information on Finnish Language Courses Spring Semester 2018 Päivi Paukku & Jenni Laine 4.1.2018 Centre for Language and Communication Studies Puhutko suomea? -Hei! -Hei hei! -Moi! -Moi moi! -Terve! -Terve
Gap-filling methods for CH 4 data
Gap-filling methods for CH 4 data Sigrid Dengel University of Helsinki Outline - Ecosystems known for CH 4 emissions; - Why is gap-filling of CH 4 data not as easy and straight forward as CO 2 ; - Gap-filling
AYYE 9/ HOUSING POLICY
AYYE 9/12 2.10.2012 HOUSING POLICY Mission for AYY Housing? What do we want to achieve by renting apartments? 1) How many apartments do we need? 2) What kind of apartments do we need? 3) To whom do we
Travel Getting Around
- Location Olen eksyksissä. Not knowing where you are Voisitko näyttää kartalta missä sen on? Asking for a specific location on a map Mistä täällä on? Asking for a specific...wc?...pankki / rahanvaihtopiste?...hotelli?...huoltoasema?...sairaala?...apteekki?...tavaratalo?...ruokakauppa?...bussipysäkki?
Guidebook for Multicultural TUT Users
1 Guidebook for Multicultural TUT Users WORKPLACE PIRKANMAA-hankkeen KESKUSTELUTILAISUUS 16.12.2010 Hyvää käytäntöä kehittämässä - vuorovaikutusopas kansainvälisille opiskelijoille TTY Teknis-taloudellinen
National Building Code of Finland, Part D1, Building Water Supply and Sewerage Systems, Regulations and guidelines 2007
National Building Code of Finland, Part D1, Building Water Supply and Sewerage Systems, Regulations and guidelines 2007 Chapter 2.4 Jukka Räisä 1 WATER PIPES PLACEMENT 2.4.1 Regulation Water pipe and its
Projekti 1 Säikeet ja kriittisen vaiheen kontrollointi javalla
Projekti 1 Säikeet ja kriittisen vaiheen kontrollointi javalla Lasse Leino ja Marko Kahilakoski Helsingin Yliopisto Tietojenkäsittelytieteen laitos Rinnakkaisohjelmointi 18. joulukuuta 2006 Sisältö 1 Säikeet
Lab SBS3.FARM_Hyper-V - Navigating a SharePoint site
Lab SBS3.FARM_Hyper-V - Navigating a SharePoint site Note! Before starting download and install a fresh version of OfficeProfessionalPlus_x64_en-us. The instructions are in the beginning of the exercise.
Group 2 - Dentego PTH Korvake. Peer Testing Report
Group 2 - Dentego PTH Korvake Peer Testing Report Revisions Version Date Author Description 1.0 Henrik Klinkmann First version Table of Contents Contents Revisions... 2 Table of Contents... 2 Testing...
Curriculum. Gym card
A new school year Curriculum Fast Track Final Grading Gym card TET A new school year Work Ethic Detention Own work Organisation and independence Wilma TMU Support Services Well-Being CURRICULUM FAST TRACK
LANSEERAUS LÄHESTYY AIKATAULU OMINAISUUDET. Sähköinen jäsenkortti. Yksinkertainen tapa lähettää viestejä jäsenille
tiedote 2 / 9.3.2017 LANSEERAUS LÄHESTYY AIKATAULU 4.3. ebirdie-jäsenkortti esiteltiin Golfliiton 60-vuotisjuhlaseminaarissa 17.3. ebirdie tulee kaikkien ladattavaksi Golfmessuilla 17.3. klo 12:00 alkaen
Information on Finnish Language Courses Spring Semester 2017 Jenni Laine
Information on Finnish Language Courses Spring Semester 2017 Jenni Laine 4.1.2017 KIELIKESKUS LANGUAGE CENTRE Puhutko suomea? Do you speak Finnish? -Hei! -Moi! -Mitä kuuluu? -Kiitos, hyvää. -Entä sinulle?
The Viking Battle - Part Version: Finnish
The Viking Battle - Part 1 015 Version: Finnish Tehtävä 1 Olkoon kokonaisluku, ja olkoon A n joukko A n = { n k k Z, 0 k < n}. Selvitä suurin kokonaisluku M n, jota ei voi kirjoittaa yhden tai useamman
Matkustaminen Majoittuminen
- Majoituspaikan löytäminen Where can I find? Ohjeiden kysyminen majoituspaikan löytämiseksi Where can I find?... a room to rent?... a room to rent?... a hostel?... a hostel?... a hotel?... a hotel?...
Rinnakkaisohjelmointi kurssi. Opintopiiri työskentelyn raportti
Rinnakkaisohjelmointi kurssi Opintopiiri työskentelyn raportti Opintopiiri: Heikki Karimo, Jesse Paakkari ja Keijo Karhu Päiväys: 15.12.2006 Ohjelmointitehtävä C i C i : Säikeet ja kriittisen vaiheen kontrollointi
21~--~--~r--1~~--~--~~r--1~
- K.Loberg FYSE420 DIGITAL ELECTRONICS 13.05.2011 1. Toteuta alla esitetyn sekvenssin tuottava asynkroninen pun. Anna heratefunktiot, siirtotaulukko ja kokonaistilataulukko ( exitation functions, transition
Matkustaminen Majoittuminen
- Majoituspaikan löytäminen Where can I find? Ohjeiden kysyminen majoituspaikan löytämiseksi... a room to rent?... a hostel?... a hotel?... a bed and breakfast?... a camping site? What are the prices like
Bounds on non-surjective cellular automata
Bounds on non-surjective cellular automata Jarkko Kari Pascal Vanier Thomas Zeume University of Turku LIF Marseille Universität Hannover 27 august 2009 J. Kari, P. Vanier, T. Zeume (UTU) Bounds on non-surjective
You can check above like this: Start->Control Panel->Programs->find if Microsoft Lync or Microsoft Lync Attendeed is listed
Online Meeting Guest Online Meeting for Guest Participant Lync Attendee Installation Online kokous vierailevalle osallistujalle Lync Attendee Asennus www.ruukki.com Overview Before you can join to Ruukki
Hankkeiden vaikuttavuus: Työkaluja hankesuunnittelun tueksi
Ideasta projektiksi - kumppanuushankkeen suunnittelun lähtökohdat Hankkeiden vaikuttavuus: Työkaluja hankesuunnittelun tueksi Erasmus+ -ohjelman hakuneuvonta ammatillisen koulutuksen kumppanuushanketta
Microsoft Lync 2010 Attendee
VYVI MEETING Lync Attendee 2010 Instruction 1 (15) Microsoft Lync 2010 Attendee Online meeting VYVI MEETING Lync Attendee 2010 Instruction 2 (15) Index 1 Microsoft LYNC 2010 Attendee... 3 2 Acquiring Lync
XNA grafiikka laajennus opas. Paavo Räisänen. www.ohjelmoimaan.net. Tämän oppaan lähdekoodit ovat ladattavissa näiden sivujen Ladattavat osiossa.
XNA grafiikka laajennus opas Paavo Räisänen www.ohjelmoimaan.net Tämän oppaan lähdekoodit ovat ladattavissa näiden sivujen Ladattavat osiossa. Tätä opasta saa vapaasti kopioida, tulostaa ja levittää ei
Travel General. General - Essentials. General - Conversation. Asking for help. Asking if a person speaks English
- Essentials Voisitko auttaa minua? Asking for help Puhutko englantia? Asking if a person speaks English Puhutteko _[kieltä]_? Asking if a person speaks a certain language En puhu _[kieltä]_. Clarifying
Oma sininen meresi (Finnish Edition)
Oma sininen meresi (Finnish Edition) Hannu Pirilä Click here if your download doesn"t start automatically Oma sininen meresi (Finnish Edition) Hannu Pirilä Oma sininen meresi (Finnish Edition) Hannu Pirilä
Ajettavat luokat: SM: S1 (25 aika-ajon nopeinta)
SUPERMOTO SM 2013 OULU Lisämääräys ja ohje Oulun Moottorikerho ry ja Oulun Formula K-125ry toivottaa SuperMoto kuljettajat osallistumaan SuperMoto SM 2013 Oulu osakilpailuun. Kilpailu ajetaan karting radalla
KONEISTUSKOKOONPANON TEKEMINEN NX10-YMPÄRISTÖSSÄ
KONEISTUSKOKOONPANON TEKEMINEN NX10-YMPÄRISTÖSSÄ https://community.plm.automation.siemens.com/t5/tech-tips- Knowledge-Base-NX/How-to-simulate-any-G-code-file-in-NX- CAM/ta-p/3340 Koneistusympäristön määrittely
OFFICE 365 OPISKELIJOILLE
OFFICE 365 OPISKELIJOILLE Table of Contents Articles... 3 Ohjeet Office 365 käyttöönottoon... 4 One Driveen tallennetun videon palauttaminen oppimisympäristön palautuskansioon... 5 Changing default language
Vertaispalaute. Vertaispalaute, /9
Vertaispalaute Vertaispalaute, 18.3.2014 1/9 Mistä on kyse? opiskelijat antavat palautetta toistensa töistä palaute ei vaikuta arvosanaan (palautteen antaminen voi vaikuttaa) opiskelija on työskennellyt
SAGA 150. Asennusohjeet. Mittaa oven korkeus. Piirrä seinään oven kiinni -päätyyn seinäkannattimen kohdalle vaakaviiva korkeudelle ovi + 75mm + 20 mm.
SAGA 150 Asennusohjeet 500 1 2 Mittaa oven korkeus. Piirrä seinään oven kiinni -päätyyn seinäkannattimen kohdalle vaakaviiva korkeudelle ovi + 75mm + 20 mm. 3 Piirrä vesivaa an avulla viiva myös kiskon
Returns to Scale II. S ysteemianalyysin. Laboratorio. Esitelmä 8 Timo Salminen. Teknillinen korkeakoulu
Returns to Scale II Contents Most Productive Scale Size Further Considerations Relaxation of the Convexity Condition Useful Reminder Theorem 5.5 A DMU found to be efficient with a CCR model will also be
Other approaches to restrict multipliers
Other approaches to restrict multipliers Heikki Tikanmäki Optimointiopin seminaari 10.10.2007 Contents Short revision (6.2) Another Assurance Region Model (6.3) Cone-Ratio Method (6.4) An Application of
FIS IMATRAN KYLPYLÄHIIHDOT Team captains meeting
FIS IMATRAN KYLPYLÄHIIHDOT 8.-9.12.2018 Team captains meeting 8.12.2018 Agenda 1 Opening of the meeting 2 Presence 3 Organizer s personell 4 Jury 5 Weather forecast 6 Composition of competitors startlists
VUOSI 2015 / YEAR 2015
VUOSI 2015 / YEAR 2015 Kansainvälisen opetuksen ja tutkimustoiminnan kehittäminen Developing international teaching and research activities Rehtorin strateginen rahoitus vuosille 2014-2016 / Strategic
Infrastruktuurin asemoituminen kansalliseen ja kansainväliseen kenttään Outi Ala-Honkola Tiedeasiantuntija
Infrastruktuurin asemoituminen kansalliseen ja kansainväliseen kenttään Outi Ala-Honkola Tiedeasiantuntija 1 Asemoitumisen kuvaus Hakemukset parantuneet viime vuodesta, mutta paneeli toivoi edelleen asemoitumisen
SIMULINK S-funktiot. SIMULINK S-funktiot
S-funktio on ohjelmointikielellä (Matlab, C, Fortran) laadittu oma algoritmi tai dynaamisen järjestelmän kuvaus, jota voidaan käyttää Simulink-malleissa kuin mitä tahansa valmista lohkoa. S-funktion rakenne
ECVETin soveltuvuus suomalaisiin tutkinnon perusteisiin. Case:Yrittäjyyskurssi matkailualan opiskelijoille englantilaisen opettajan toteuttamana
ECVETin soveltuvuus suomalaisiin tutkinnon perusteisiin Case:Yrittäjyyskurssi matkailualan opiskelijoille englantilaisen opettajan toteuttamana Taustaa KAO mukana FINECVET-hankeessa, jossa pilotoimme ECVETiä
S-55.1100 SÄHKÖTEKNIIKKA JA ELEKTRONIIKKA
S-55.00 SÄHKÖKNKKA A KONKKA. välikoe 2..2008. Saat vastata vain neljään tehtävään!. aske jännite U. = 4 Ω, 2 = Ω, = Ω, = 2, 2 =, = A, 2 = U 2 2 2 2. ännitelähde tuottaa hetkestä t = t < 0 alkaen kaksiportaisen
Security server v6 installation requirements
CSC Security server v6 installation requirements Security server version 6.x. Version 0.2 Pekka Muhonen 2/10/2015 Date Version Description 18.12.2014 0.1 Initial version 10.02.2015 0.2 Major changes Contents
Immigration Studying. Studying - University. Stating that you want to enroll. Stating that you want to apply for a course.
- University I would like to enroll at a university. Stating that you want to enroll I want to apply for course. Stating that you want to apply for a course an undergraduate a postgraduate a PhD a full-time
Yksityinen kirjeenvaihto Yksityiskirje
- Osoite Mr. N. Summerbee 335 Main Street New York NY 92926 Osoitteen ulkomuoto Suomessa: kadun nimi + katunumero postiosoite + kaupungin nimi maa. Mr. N. Summerbee 335 Main Street New York NY 92926 Jeremy
2_1----~--~r--1.~--~--~--,.~~
K.Loberg FYSE420 DIGITAL ELECTRONICS 3.06.2011 1. Toteuta alia esitetyn sekvenssin tuottava asynkroninen pun. Anna heditefunktiot, siirtotaulukko ja kokonaistilataulukko ( exitation functions, transition
Security server v6 installation requirements
CSC Security server v6 installation requirements Security server version 6.4-0-201505291153 Pekka Muhonen 8/12/2015 Date Version Description 18.12.2014 0.1 Initial version 10.02.2015 0.2 Major changes
7.4 Variability management
7.4 Variability management time... space software product-line should support variability in space (different products) support variability in time (maintenance, evolution) 1 Product variation Product
Rotarypiiri 1420 Piiriapurahoista myönnettävät stipendit
Rotarypiiri 1420 Piiriapurahoista myönnettävät stipendit Ø Rotarypiiri myöntää stipendejä sille osoitettujen hakemusten perusteella ensisijaisesti rotaryaatteen mukaisiin tarkoituksiin. Ø Stipendejä myönnetään
Olet vastuussa osaamisestasi
Olet vastuussa osaamisestasi Ohjelmistoammattilaisuuden uudet haasteet Timo Vehmaro 02-12-2015 1 Nokia 2015 Mitä osaamista tulevaisuudessa tarvitaan? Vahva perusosaaminen on kaiken perusta Implementaatio
Convergence of messaging
Convergence of messaging CVS The Converge Group, Olli Pettay Helsinki 10. syyskuuta 2002 HELSINGIN YLIOPISTO Tietojenkäsittelytieteen laitos Sisältö 1 CVS 1 1.1 Käyttöönotto.................................
Information on Finnish Courses Autumn Semester 2017 Jenni Laine & Päivi Paukku Centre for Language and Communication Studies
Information on Finnish Courses Autumn Semester 2017 Jenni Laine & Päivi Paukku 24.8.2017 Centre for Language and Communication Studies Puhutko suomea? -Hei! -Hei hei! -Moi! -Moi moi! -Terve! -Terve terve!
Operatioanalyysi 2011, Harjoitus 4, viikko 40
Operatioanalyysi 2011, Harjoitus 4, viikko 40 H4t1, Exercise 4.2. H4t2, Exercise 4.3. H4t3, Exercise 4.4. H4t4, Exercise 4.5. H4t5, Exercise 4.6. (Exercise 4.2.) 1 4.2. Solve the LP max z = x 1 + 2x 2
Sisällysluettelo Table of contents
Sisällysluettelo Table of contents OTC:n Moodlen käyttöohje suomeksi... 1 Kirjautuminen Moodleen... 2 Ensimmäinen kirjautuminen Moodleen... 2 Salasanan vaihto... 2 Oma käyttäjäprofiili... 3 Työskentely
Telecommunication Software
Telecommunication Software Final exam 21.11.2006 COMPUTER ENGINEERING LABORATORY 521265A Vastaukset englanniksi tai suomeksi. / Answers in English or in Finnish. 1. (a) Määrittele sovellusviesti, PersonnelRecord,
Ohjelmointi 2 / 2008 Välikoe / Pöytätestaa seuraava ohjelma.
Välikoe / 20.3 Vastaa neljään (4) tehtävään. Jos vastaat 5:een, 4 huonointa arvostellaan. Kunkin tehtävän vastaus eri konseptille. 1. Pöytätesti Pöytätestaa seuraava ohjelma. Tutki ohjelman toimintaa pöytätestillä
Ohjelmointikielet ja -paradigmat 5op. Markus Norrena
Ohjelmointikielet ja -paradigmat 5op Markus Norrena Ko#tehtävä 4 Viimeistele "alkeellinen kuvagalleria". Käytännössä kaksi sivua Yksi jolla voi ladata kuvia palvelimelle (file upload) Toinen jolla ladattuja
Listarakenne (ArrayList-luokka)
Listarakenne (ArrayList-luokka) Mikä on lista? Listan määrittely ArrayList-luokan metodeita Listan läpikäynti Listan läpikäynti indeksin avulla Listan läpikäynti iteraattorin avulla Listaan lisääminen
Kaivostoiminnan eri vaiheiden kumulatiivisten vaikutusten huomioimisen kehittäminen suomalaisessa luonnonsuojelulainsäädännössä
M a t t i K a t t a i n e n O T M 1 1. 0 9. 2 0 1 9 Kaivostoiminnan eri vaiheiden kumulatiivisten vaikutusten huomioimisen kehittäminen suomalaisessa luonnonsuojelulainsäädännössä Ympäristöoikeustieteen
Results on the new polydrug use questions in the Finnish TDI data
Results on the new polydrug use questions in the Finnish TDI data Multi-drug use, polydrug use and problematic polydrug use Martta Forsell, Finnish Focal Point 28/09/2015 Martta Forsell 1 28/09/2015 Esityksen
Matkustaminen Liikkuminen
- Sijainti I am lost. Et tiedä missä olet. Can you show me where it is on the map? Tietyn sijainnin kysymistä kartalta Where can I find? Tietyn rakennuksen / n sijainnin tiedustelu I am lost. Can you show
EUROOPAN PARLAMENTTI
EUROOPAN PARLAMENTTI 2004 2009 Kansalaisvapauksien sekä oikeus- ja sisäasioiden valiokunta 2008/0101(CNS) 2.9.2008 TARKISTUKSET 9-12 Mietintöluonnos Luca Romagnoli (PE409.790v01-00) ehdotuksesta neuvoston
GPRS-lisäpalvelu INTERNET-ASETUKSET
GPRS-lisäpalvelu INTERNET-ASETUKSET GPRS-lisäpalvelu Internet-asetukset 2(22) Sisällysluettelo 1 INTERNET-ASETUKSET MICROSOFT WINDOWS 95/98... 3 1.1 MODEEMIN ASENNUS... 3 1.2 APN:N ASETTAMINEN... 3 1.3
Kvanttilaskenta - 2. tehtävät
Kvanttilaskenta -. tehtävät Johannes Verwijnen January 8, 05 edx-tehtävät Vastauksissa on käytetty edx-kurssin materiaalia.. Problem The inner product of + and is. Edelleen false, kts. viikon tehtävä 6..
Operatioanalyysi 2011, Harjoitus 2, viikko 38
Operatioanalyysi 2011, Harjoitus 2, viikko 38 H2t1, Exercise 1.1. H2t2, Exercise 1.2. H2t3, Exercise 2.3. H2t4, Exercise 2.4. H2t5, Exercise 2.5. (Exercise 1.1.) 1 1.1. Model the following problem mathematically: