Jump to content

Dookie

Donator
  • Posts

    1477
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dookie

  1. Multumesc pentru creatii, cer ca acest topic sa fie inchis.
  2. Multumesc frumos pentru creatie, e frumos, imi place dar o sa mai astept si alte creatii.
  3. Display Name: Dookie Doresc (Avatar/Avatar Discord/Semnătură/Userbar/Logo/Cover Profil): Avatar Discord Imagine (obligatoriu pentru semnătură): Tema (Natură, fete, peisaje, apus, răsărit, mașini, vintage, b&w, abstract, texturi, animale, etc.): Litera Text(opțional): Sa contina litera D Dimensiuni (opțional): - Alte precizări (opțional): Imi doresc ceva asemanator avatarului meu de pe forum. Sa contina litera D intr-un mod mai HD si elegant.
  4. @ David. , @ RVF foarte frumoase, va multumesc frumos pentru creatii! Mai astept si altele.
  5. @ TLG YuukiKING multumesc pentru creatie, mai astept si altele.
  6. Display Name: Dookie Doresc (Avatar/Semnătură/Userbar/Logo/Cover Profil): Avatar Imagine (obligatoriu pentru semnătură): - Tema (Natură, fete, peisaje, apus, răsărit, mașini, vintage, b&w, abstract, texturi, animale, etc.): Literă Text(opțional): D Dimensiuni (opțional): - Alte precizări (opțional): Ceva asemanator cu cea de la profilul meu.
  7. Nick: Kizzo Level: 35 Rank: 1 As dori sa ma invoiesc de la: War War day: 6.05.2021 Motivul: Nu poate intra la war deoarece nu este acasă.
  8. Nick: Dookie Rank: Network Producer (6). Ma invoiesc pentru data de: 12.03.2021. Ma invoiesc la activitatea / sedinta cu numele: Activitate - Targ Auto. Motiv: Nu sunt acasa, sunt plecat.
  9. Nick: Dookie Cine ti-a aprobat ziarul?: HANKSERO Cine ti-a corectat ziarul (+ dovada)?: HANKSERO, Click Poza cu ziarul: Click Alte precizari: Multumesc.
  10. Nick: Dookie Cine ti-a aprobat ziarul?: Welp. Cine ti-a corectat ziarul (+ dovada)?: Click Poza cu ziarul: Click Alte precizari: Multumesc.
  11. Display Name: Dookie Doresc (Avatar/Semnătură/Userbar/Logo/Cover Profil): Avatar Imagine (obligatoriu pentru semnătură): - Tema (Natură, fete, peisaje, apus, răsărit, mașini, vintage, b&w, abstract, texturi, animale, etc.): Literă Text(opțional): D Dimensiuni (opțional): - Alte precizări (opțional): Ceva asemanator cu cea de la profilul meu.
  12. Topic inactiv de mai bine de 2 saptamani.
  13. Vand 30 de euro clienti.b-zone.ro. Detalii prin PM.

    1. Invision

      Invision

      vr sho 1e plizzz

  14. Aplicațiile pentru funcția de Helper au fost deschise.

    Detalii:

     

  15. 13.12.2017 - Admin Level 5 
    E ceva

    1. Show previous comments  6 more
    2. OlandezuRevinPeBZ

      OlandezuRevinPeBZ

      Sa treci in calendar si sa pui poza pe frigider

    3. Dookie

      Dookie

      O pun sub perna mane

    4. OlandezuRevinPeBZ

      OlandezuRevinPeBZ

      Sa iti aduca zâna Kelton a6 ?

  16. Dear player, 3 years of RPG3! On the 28th of November 2017, we celebrate the 3rd anniversary since RPG3 has been opened, a server that enjoys a large number of players. Thank you for every player that helper to quickly develop this server and to the administrators that assured the well-being of it. On this occasion we have prepared the following events for you: Attention, the following events will take place from 27th of November until 3rd of December 2017 only on RPG3.B-ZONE.RO:7777. Gift: In desert LV has been placed a gift that you can get every 6 hours. The gifts can contain 5.000$-25.000$, 1-5 Respect Points, 5-10 Mission Points, 10-50 Gold or 1-5 Premium Account Days. The gift will be available until the 3rd of December 2017, 11:59 PM. Thank you to @dell for the map. Quest: A new quest has been added. The players that want to win the prize need to find all 60 cakes, 20 in each city. The prize is 50.000$, 15 Respect Points, 15 Rob Points and Escape Points, 1 garage slot, 200 gold and a Silver or Platinum Skin. The quest will be active until the 3rd of December 2017, 11:59 PM. Giveaway: During the RPG3 days, besides the giveaways that have been prepared by our YouTubers that consists of gold, we'll organize some extra giveaways: on 28th of November 2017, 8 PM, a random player will be chosen to win a Comet, at 9 PM a Banshee and at 10 PM a Bullet. On the 29th of November 2017, we'll have another giveaway, as it follows: at 8 PM an NRG-500, at 9 PM a Turismo and at 10 PM an Infernus. Cosmin's Hunters: The event is created by me, with the help of a few players. Starting from 28th of November 2017, his gates will be open. To join the event, at 3 PM, respectively 9 PM, the following command needs to be used: [/rpg3event]. You'll be teleported automatically and placed on a sofa. If the number of participants has been exhausted, (20), the gates will close and the event will start. An actor named Cosmin will bring each one of you a gift. Only 10 of the 20 gifts contain a prize. The prize can be: Between 100 and 200 gold, 50.000$ and 100.000$, 20 and 40 Rob Points, 20 and 40 Escape Points, 10 and 15 Respect Points, 100 and 1.000 drugs, 1.000 and 5.000 materials, or 1 Level Up. Level UP On the 28th of November 2017 at 8 PM, every online player will receive a Level Up. The players will not lose the current Respect Points. This is a good opportunity for those who want to grow as fast as possible. Dookie's Event To join the event you need to use the command [/join] at the time that it's going to be available. You're going to have at your disposal 40 cars of the same type and you need to get in one of them and speed to an admin. There will be a total of 2 admins, they each have a word of a special phrase. After you got both, you have to reach Dookie and tell him the phrase. Prize: 1.000.000$ and 200 Gold. Special Events During the RPG3 days, a lot of Special Events will take place, besides the ones mentioned above. The prizes are: 50.000$, 50 Gold, Respect Points, Rob Points, Escape Points.
  17. Vand 24 euro pe clienti B-Zone. Detalii prin PM.

  18. Aplicațiile pentru funcția de Primar a lunii Noiembrie au fost deschise. 
    Aplicațiile se fac aici: 

    Mult succes!

    1. Hayden ZEW

      Hayden ZEW

      Până când le ți deschise?

  19. Am sters toate PM-urile pe care le aveam, fiind peste 250 erau greu de organizat. In cazul in care ati avut un PM in care asteptati un raspuns de la mine, va rog sa ma readaugati in PM-ul respectiv. Multumesc.

  20. #Nelamuriri? Grafuri orientate Se numeşte graf orientat sau digraf o pereche ordonată de mulțimi notată G=(V, U), unde: V este o mulțime finită şi nevidă ale cărei elemente se numesc noduri sau vârfuri; U este o mulțime de perechi ordonate de elemente distincte din V ale cărei elemente se numesc arce. V={1,2,3,4,5,6}U={(1,6),(2,1),(2,4),(3,2),(4,2),(5,4),(6,1),(6,4)} Noțiuni extremități ale unui arc: pentru arcul u=(x,y), se numesc extremități ale sale nodurile x şi y; x se numeşte extremitate inițială; y se numeşte extremitate finală; y se numește succesor al lui x; x se numește predecesor al lui y. vârfuri adiacente: dacă într-un graf există arcul u=(x,y) (sau u=(y,x), sau amândouă), se spune despre nodurile x şi y că sunt adiacente; incidență: dacă u1 şi u2 sunt două arce ale aceluiaşi graf, se numesc incidente dacă au o extremitate comună. Exemplu: u1=(x,y) şi u2=(y,z) sunt incidente; dacă u1=(x,y) este un arc într-un graf, se spune despre el şi nodul x, sau nodul y, că sunt incidente. Listele de adiacență Pentru un graf orientat cu G=(V,U) se va memora numărul de noduri n și apoi, pentru fiecare nod x, lista succesorilor lui x, adică nodurilor y cu proprietatea că există arcul (x,y). Pentru graful alăturat, listele de adiacență sunt: 1: 6 2: 1 4 3: 2 4: 2 5: 4 6: 1 2 4 La reprezentarea în memorie trebui avut în vedere că dimensiunile listelor de succesori sunt variabile. De aceea, este neeficientă utilizarea unor tablouri alocate static. Astfel, putem folosi: un șir de n tablouri unidimensionale alocate dinamic; un șir de n vectori din STL; un șir de n liste simplu (dublu) înlănțuite alocate dinamic. Probleme Se da un graf orientat cu n varfuri si m arce prin lista arcelor. Se numeste arc inutil un arc cu proprietatea ca are extremitatile in componente tare conexe diferite. Afisati numarul de arce inutile si care sunt acestea. Exemplu: graf.in 8 11 1 3 3 5 5 7 7 1 2 6 6 8 8 2 1 4 4 6 4 8 4 2 graf.out 4 1 4 4 2 4 6 4 8 Solutie: //CU COMPONETELE TARE CONEXE #include <fstream> using namespace std; ifstream fin("graf.in"); ofstream fout("graf.out"); int A[101][101],n,m,S[101],P[101],c,k; void DF_succ(int v, int c) { S[v]=c; for(int i=1;i<=n;i++) if(!S[i] && A[v][i]) DF_succ(i,c); } void DF_pred(int v, int c) { P[v]=c; for(int i=1;i<=n;i++) if(!P[i] && A[i][v]) DF_pred(i,c); } int main() { fin>>n>>m; for(int i=1;i<=m;i++) { int x,y; fin>>x>>y; A[x][y]=1; } for(int i=1;i<=n;i++) if(!S[i]) { c++; DF_succ(i,c); DF_pred(i,c); for(int j=1;j<=n;j++) if(S[j]!=P[j]) S[j]=P[j]=0; } for(int i=1;i<=n;i++) for(int j=1;j<=n;j++) if(A[i][j]==1) if(S[i]!=S[j]) k++; fout<<k<<endl; for(int i=1;i<=n;i++) for(int j=1;j<=n;j++) if(A[i][j]==1) if(S[i]!=S[j]) fout<<i<<" "<<j<<endl; return 0; } //CU ROY-WARSHALL #include <fstream> using namespace std; ifstream fin("graf.in"); ofstream fout("graf.out"); int A[101][101],B[101][101],n,m,k; void RW() { for(int k=1;k<=n;k++) for(int i=1;i<=n;i++) for(int j=1;j<=n;j++) if(B[i][j]==0) B[i][j]=B[i][k]*B[k][j]; } int main() { fin>>n>>m; for(int i=1;i<=m;i++) { int x,y; fin>>x>>y; B[x][y]=A[x][y]=1; } RW(); for(int i=1;i<=n;i++) for(int j=1;j<=n;j++) if(A[i][j]==1 && B[j][i]==0) k++; fout<<k<<endl; for(int i=1;i<=n;i++) for(int j=1;j<=n;j++) if(A[i][j]==1 && B[j][i]==0) fout<<i<<" "<<j<<endl; return 0; } @-webkit-keyframes swing { 15% { -webkit-transform: translateX(5px); transform: translateX(5px); } 30% { -webkit-transform: translateX(-5px); transform: translateX(-5px); } 50% { -webkit-transform: translateX(3px); transform: translateX(3px); } 65% { -webkit-transform: translateX(-3px); transform: translateX(-3px); } 80% { -webkit-transform: translateX(2px); transform: translateX(2px); } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } @keyframes swing { 15% { -webkit-transform: translateX(5px); transform: translateX(5px); } 30% { -webkit-transform: translateX(-5px); transform: translateX(-5px); } 50% { -webkit-transform: translateX(3px); transform: translateX(3px); } 65% { -webkit-transform: translateX(-3px); transform: translateX(-3px); } 80% { -webkit-transform: translateX(2px); transform: translateX(2px); } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } $red:#F44336; @mixin transition($in) { transition:$in; -webkit-transition:$in; -moz-transition:$in; -o-transition:$in; -ms-transition:$in; } @mixin transform($in) { transform:$in; -webkit-transform:$in; -moz-transform:$in; -o-transform:$in; -ms-transform:$in; } @mixin animation($in) { animation:$in; -webkit-animation:$in; -moz-animation:$in; -o-animation:$in; -ms-animation:$in; } * { font-family:Helvetica,sans-serif; color:$red; } .myButt { outline:none; border:none; padding:20px; display:block; margin:50px auto; cursor:pointer; font-size:20px; background-color:transparent; position:relative; border:2px solid #fff; @include transition(all 0.5s ease); } .four { overflow:hidden; span { color:#fff; display:inline-block; @include transition(all 0.3s ease); } .icon { position:absolute; left:-60px; top:0; color:#fff; padding:20px; background-color:$red; @include transition(all 0.3s ease); } &:hover { .icon { left:0px; } span { color:$red; margin-left:50px; } } } $red:#F44336; @mixin transition($in) { transition:$in; -webkit-transition:$in; -moz-transition:$in; -o-transition:$in; -ms-transition:$in; } @mixin transform($in) { transform:$in; -webkit-transform:$in; -moz-transform:$in; -o-transform:$in; -ms-transform:$in; } @mixin animation($in) { animation:$in; -webkit-animation:$in; -moz-animation:$in; -o-animation:$in; -ms-animation:$in; } body { margin:0; padding:0; background-color:#222; } * { font-family:Helvetica,sans-serif; color:$red; } header { text-align:center; h1 { text-transform:uppercase; } } .myButt { outline:none; border:none; padding:20px; display:block; margin:50px auto; cursor:pointer; font-size:20px; background-color:transparent; position:relative; border:2px solid #fff; @include transition(all 0.5s ease); } // ################ ONE .one { border-color:#fff; overflow:hidden; color:#fff; .insider { background-color:#fff; width:100%; height:20px; position:absolute; left:-135px; @include transform(rotateZ(45deg)); } &:hover { background-color:$red; border-color:#fff; color:#fff; .insider { @include transition(all 0.3s ease); left:135px; } } } // ################ TWO .two { color:#fff; &:hover { border-color:$red; color:$red; @include animation(shakeThatBooty 0.3s linear 1); } } @keyframes shakeThatBooty { 33% { @include transform(rotateZ(10deg)); } 67% { @include transform(rotateZ(-10deg)); } 100% { @include transform(rotateZ(10deg)); } } // ################ THREE .three { color:#fff; border-color:transparent; &:before { width:0; height:3px; content:" "; background-color:$red; position:absolute; top:0; left:50%; @include transition(all 0.3s ease); } &:after { @extend .three:before; top:100%; } &:hover { letter-spacing:8px; color:$red; &:before { width:100%; left:0; } &:after { width:100%; left:0; } } } // ################ FOUR .four { overflow:hidden; span { color:#fff; display:inline-block; @include transition(all 0.3s ease); } .icon { position:absolute; left:-60px; top:0; color:#fff; padding:20px; background-color:$red; @include transition(all 0.3s ease); } &:hover { .icon { left:0px; } span { color:$red; margin-left:50px; } } } // ################ FIVE .five { overflow:hidden; color:#fff; .layer { color:#fff; position:absolute; top:-70px; width:100%; left:0; padding:20px 0; background-color:$red; @include transition(all 0.3s ease); } &:hover { .layer { top:0; } } } .PM { height: 30px; width: 150px; background: #676470; transition:all 0.3s ease; border-radius: 20px; } .PM:hover { -webkit-animation: swing 1s ease; animation: swing 1s ease; -webkit-animation-iteration-count: 1; animation-iteration-count: 1; background:#53a7ea; }
  21. Dookie

    [Java] Pie Chart

    @Cdorsu nu, n-are legatura cu ZetCode, cat despre explicatii sure, la urmatorul topic voi fi mai explicit. Noroc! Poti da T/C, nu cred ca mai are rost sa fie deschis.
  22. Dookie

    [Java] Pie Chart

    Java Pie Chart Am considerat sa fac acest tutorial, intrucat un grafic de tip 'pie' poate fi foarte util in numeroase domenii. Intr-un grafic de tip 'pie' lungimea arcului de cer per sector este proportional cu cantitatea pe care o reprezinta. In urmatorul exemplu, folosim un Java servlet pentru a crea un graf de tip Pie. Graficul va fi randat intr-un browser. package com.zetcode.servletchart; import java.awt.BasicStroke; import java.awt.Color; import java.io.IOException; import java.io.OutputStream; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartUtilities; import org.jfree.chart.JFreeChart; import org.jfree.data.general.DefaultPieDataset; @WebServlet(name = "DoChart", urlPatterns = {"/DoChart"}) public class DoChart extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("image/png"); OutputStream outputStream = response.getOutputStream(); JFreeChart chart = getChart(); int width = 500; int height = 350; ChartUtilities.writeChartAsPNG(outputStream, chart, width, height); } public JFreeChart getChart() { DefaultPieDataset dataset = new DefaultPieDataset(); dataset.setValue("Croatia", 22); dataset.setValue("Bohemia", 34); dataset.setValue("Bulgaria", 18); dataset.setValue("Spain", 5); dataset.setValue("Others", 21); JFreeChart chart = ChartFactory.createPieChart("Popular destinations", dataset, true, false, false); chart.setBorderVisible(false); return chart; } } setContentType seteaza continutul pe o imagine PNG. response.setContentType("image/png"); Folosind functia getOutputStream() obtinem o metoda de transmitere a informatiei. Un 'tunel' prin care transmitem informatie. OutputStream outputStream = response.getOutputStream(); Daca aveti nelamuriri va rog sa imi lasati aici in comentarii. Daca doriti puteti sa imi trimiteti PM cu aplicatii C/C++/JavaScript/HTML/CSS/C#/Pascal si voi incerca sa va explic cat mai pe inteles. O zi placuta in continuare si spor.
  23. Metoda 'divide et impera' Divide et impera se bazează pe principiul descompunerii problemei în două sau mai multe subprobleme (mai ușoare), care se rezolvă, iar soluția pentru problema inițială se obține combinând soluțiile subproblemelor. De multe ori, subproblemele sunt de același tip și pentru fiecare din ele se poate aplica aceeași tactică a descompunerii în (alte) subprobleme, până când (în urma descompunerilor repetate) se ajunge la probleme care admit rezolvare imediată. Aplicații Maximul dintr-un vector Se citește un vector cu n componente, numere naturale. Se cere să se tipărească valoarea maximă. Funcția căutată va genera valoarea maximă dintre numerele reținute în vector pe o poziție dintre i și j (inițial, i=1, j=n). Pentru aceasta, se procedează astfel: #include <iostream> using namespace std; int v[10],n; int max(int i, int j) { int a, b, m; if (i==j) return v[i]; else { m = (i+j)/2; a = max(i, m); b = max(m+1, j); if (a>b) return a; else return b; } } int main( ) { cout<<”n=”;cin>>n; for (int i=1; i<=n; i++) { cout<<”v[“<<i<<”]=”; cin>>v[i]; } cout<<”max=”<<max(1,n); return 0; } Căutare binară Se citește un vector cu n componente numere întregi (numerele se presupun ordonate crescător) și o valoare întreagă ("nr"). Să se decidă dacă nr se găsește sau nu printre numerele citite, iar în caz afirmativ să se tipărească indicele componentei care conține această valoare. #include <iostream> using namespace std; int v[100], n, nr; void caut(int i, int j) { int m = (i+j)/2; if (nr==v[m]) cout<<”gasit, indice=”<<m; else if (i<j) if (nr<v[m]) caut(i, m-1); else caut(m+1, j); else cout<<”nu a fost gasit.”; } int main( ) { cout<<”n=”; cin>>n; for (int i=1; i<=n; i++) { cout<<”v[“<<i<<”]=”; cin>>v[i]; } cout<<”nr=”; cin>>nr; caut (0,n); return 0; } Daca aveti nelamuriri va rog sa imi lasati aici in comentarii. Daca doriti puteti sa imi trimiteti PM cu aplicatii C/C++/JavaScript/HTML/CSS/C#/Pascal si voi incerca sa va explic cat mai pe inteles. O zi placuta in continuare si spor.
  24. Vand 12 euro pe clienti, detalii in PM.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.