Jump to content

bcman

Active Members
  • Posts

    1515
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by bcman

  1. #include <iostream> using namespace std; int main() { unsigned n, nr=1, rez=0; int a[50]; cin>>n; //nr de numere cin>>a[0]; for (unsigned i=1;i<n;i++) { cin>>a[i]; if (a[i]==a[i-1]+1) nr++; else nr=0; if (nr>rez) rez=nr; } cout << rez; return 0; }
  2. Nu este acela?i tip ca cel de pe forum.ubuntu.ro, care era ?i membru hackpedia (avea userul Cracknel). Oricum, e de admirat cum a reu?it s? fac? performan??, bravo lui!
  3. Au expirat. Data viitoare trebuie s? fii pe faz?.
  4. bcman

    RST Teambuilding

    Numa fain, posibil sa am drum în Bucure?ti weekend-ul ?sta. Am I wellcome? LE: Da, pân? la urm? nu mai ajung în capital? weekendul ?sta.
  5. Începi parcurgerea de la linia/coloana respectiv? cu dou? for-uri, unul înspre dreapta, altul înspre stânga (la unul i-ul cre?te, la celelalt j-ul scade) si compari la fiecare pas a[p] ?i a[j][p] (sau a[p] ?i a[p][j], dup? caz),unde p e num?rul de ordine al linie/coloanei respective. Dac? începi cu i ?i j de la 0, vei folosi p-1. Declari la început o variabil? boolean? pe care o ini?ializezi cu 1 ?i în momentul în care cele 2 valori nu sunt egale îi dai valoarea 0. Toat? treaba asta o pui întru for, care parcurge liniile (dac? vrei simetrie fa?? de coloan?) sau coloanele (dac? vrei simetrie fa?? de linie). Pe lâng? condi?ia normal? din for (i<m sau j<n, dup? caz) mai pui ?i una pentru variabila boolean? (ok==1) ca s? ias? din for când g?se?te dou? numere neegale. Ok-ului o s?-i dai valoarea 1 la început, în for-ul mare. La sfâr?it mai pui if (ok==1) cout << "simetrica; else cout << "nesimetrica". Baft?!
  6. It's official: the last holdout for the open web has fallen. Flanked on all sides by Google, Microsoft, Opera, and (it appears) Safari's support and promotion of the EME DRM-in-HTML standard, Mozilla is giving in to pressure from Hollywood, Netflix, et al, and will be implementing its own third-party version of DRM. It will be rolled out in Desktop Firefox later this year. Mozilla's CTO, Andreas Gal, says that Mozilla "has little choice." Mozilla's Chair, Mitchell Baker adds, "Mozilla cannot change the industry on DRM at this point." At EFF, we disagree. We've had over a decade of watching this ratchet at work, and we know where it can lead. Technologists implement DRM with great reticence, because they can see it's not a meaningful solution to anything but rather a font of endless problems. It doesn't prevent infringement, which continues regardless. Instead, it reduces the security of our devices, reduces user trust, makes finding and reporting of bugs legally risky, eliminates fair use rights, undermines competition, promotes secrecy, and circumvents open standards. It's clear from the tone of Gal and Baker's comments, and our own discussions with Mozilla, that you'll find no technologist there who is happy with this step. The fact that Mozilla, in opposition to its mission, had to prepare and design this feature in secret without being able to consult the developers and users who make up its community is an indication of how much of a contradiction DRM is in a pro-user open-source browser. Unchecked, that contradiction is only going to grow. Mozilla's DRM code, imported from Adobe as a closed-source binary, will sit in a cordoned sandbox, simultaneously Mozilla's responsibility but beyond its control. Mozilla will be responsible for updates to the DRM blackbox, which means users will have to navigate browser updates that will either fix security bugs or strip features from their video watching. Mozillians have already been warned of the danger of talking too much about how DRM works (and doesn't work), lest they trigger the provisions in the Digital Millennium Copyright Act (DMCA) that forbid "trafficking" in circumvention knowledge. Baker may think that Mozilla cannot change the industry on its own (despite it having done so many years ago). Sadly, it changes the industry by accepting DRM. It is these repeated compromises to the needs of DRM advocates by tech company after tech company that are changing the nature of personal computing, transforming it into a sector that is dominated by established interests and produces locked-down devices, monitored and managed by everyone but their users. Past experience has shown that standing up to DRM and calling it out does have an effect. As we have said to the W3C, and Cory Doctorow spells out to Mozilla in this Guardian article, we can do much more to fight the negative consequences of DRM than simply attempt to mitigate the damage of its adoption. We need to work to end the reinforcement of DRM and criminalization of fair use in the DMCA and similar legislation being spread throughout the world. We need to speak out about the failings of DRM, even if we fear that DRM proponents will just make it worse (in the name of "improvement") or take civil or criminal actions under the DMCA. We need to challenge the baseless assertion that users don't mind DRM as long as they can watch House of Cards and demand actual evidence to justify the damage it causes. And, given the amount of compromise we have already suffered, we need to spell out the principles that we won't compromise on. Mozilla and the W3C are both organizations with missions intended to defend and promote the open web. Both have now committed to a system of content control that is seen as a violation of those principles by many Internet users. We, and they, can change that story. We need to redirect the ingenuity being wasted on attempts to limit the damage of introducing DRM into the heart of the Web toward a positive campaign against further incursions. Surs?: https://www.eff.org/deeplinks/2014/05/mozilla-and-drm
  7. Trebuie sa meri?i. Adic? sa postezi tutoriale ?i proiecte interesante. ?i daca cineva din staff consider? c? meri?i, î?i va da VIP. PS: @staff Ar trebui s? se adauge asta în regulament, c? sunt mul?i care tot întreab?.
  8. Eventual cu https://office.live.com/start/PowerPoint.aspx?ui=en-US sau Google Docs. Altfel nu cred c? se poate.
  9. Vezi c? majoritatea link-urilor le-ai pus gre?it.
  10. @AsalT Nu are nicio leg?tur? cu MBR-ul. El doar ?i-a formatat din gre?eal? o parti?ie.
  11. E clar. Parti?ia aia s-a dus. Ai formatat-o ?i ai f?cut-o de tip swap. Nu mai ai ce-i face.
  12. D? iar acea comand? de mount, dar cu sda2 în loc de sda3.
  13. D?-mi te rog outputul de la comanda lsblk (cred c? trebuie rulat? cu sudo în fa??).
  14. Toate distro-urile au workspace-uri Mounteaz? din terminal (comanda mount) parti?ia D ?i dac? d? eroare, posteaza un screenshot.
  15. 164 GB e cât are parti?ia în total, nu cât e ocupat?. S? încerci s? o accesezi ?i de pe WIndows (b?nuiesc c? eroarea d?dea în Linux Mint) ?i eventual d?-i ?i un CHKDSK ?i ar trebui s? nu mai fie probleme. Personal î?i recomand: ArchBang, Manjaro (ambele bazate pe Arch) sau Xubuntu/Lubuntu dac? vrei s? nu consume mult. Cel mai bine mi-a mers Arch cu Lubuntu, consuma doar 50 MB RAM dup? pornire. Problema e c? dac? nu te descurci nici m?car cu Linux Mint, cu Arch o s? fie mai greu. Încearc? una din cele men?ionate de mine.
  16. Da, poti. Trebuie doar sa redimenzionezi partitiile si sa creezi una de tip ext4.
  17. Ai folosit asta de aici? https://rstforums.com/forum/83722-nrpe-2-15-remote-command-execution.rst
  18. Dac? ai ceva experien?? în Linux, î?i recomand Arch. Arch: Shangri-La for Ubuntu Power Users? | OMG! Ubuntu!
  19. Nu neap?rat. Gânde?te-te c? Gecko a f?cut pentru comunitate mai mult decât to?i cei care comenteaz? împotriva lui. La un loc.
  20. Gecko e de vin?. Are obiceiul ca atunci când da like la posturi s? strice tot PS: Posted from Tapatalk for Windows 8 pentru c? sunt prea s?rac ca s?-mi iau telefon de?tept.
  21. Salut, Numele meu e public, pe forum, în cel pu?in 3 posturi. Încearc? s? aflii cât mai multe date despre mine.
  22. Deci mai nou ??tia sunt hackerii? Trist. Oricum, tot fazele astea cred c? le-am mai auzit la ceva reportaj, la România te iubesc, parc?.
×
×
  • Create New...