-
Posts
1419 -
Joined
-
Last visited
-
Days Won
45
Everything posted by MrGrj
-
Cum poti cumpara ceva ce e deja al tau ? Se cam bate cap in cap logica mea cu a ta. Nu sunt cunoscator, insa probabil asa este.
-
Iti recomand sa inveti Django. Folosesti Python ( limbaj pe care spui ca il stii deja ). Documentatia lor e super ok, insa ai si pe-aici ceva tutorial facut de @hades Cateva site-uri facute in Django: Pinterest Instagram Mozilla The Washington Times Disqus Cateva chestii despre Django: - urmeaz? modelul arhitectural Model-View-Controller - poti dezvolta orice site ( de prezentare, CMS (django-cms), E-learning stuff etc ) - ofer? de asemenea un mod administrativ de a crea, citi, actualiza ?i ?terge obiecte printr-o interfa?? op?ional? care este generata dinamic ( admin panel ) - un alt mare avantaj este acela ca schema bazei de date si procesele de între?inere a datelor sunt gestionate de c?tre Django în func?ie de descrierea modelului. Acesta este nucleul ader?rii Django la principiul non-repeti?iei (DRY)
-
Am deja ceva de genul facut. PM me PS: Doar partea cu validarea + daca sunt valide sau nu. Corectitudinea emailurilor verificate depinde de nr. de threaduri cu care rulezi programul
-
Eroarea imi spune ca nu ai instalat cum trebuie bootloader-ul de la Hackintosh, adica l-ai futut. Urmeaza sfaturile de aici si ar trebui sa fie ok.
-
"Use TOR, you'll be safe.", they said. I used it. Now I'm safe.
-
Comanda sudo iti da drepturi de superuser. Package managers sunt apt si aptitude (pe Ubuntu). Nu confunda treburile. Comanda sudo se poate folosi in fata majoritatii programelor pentru a le rula cu drept de root. Echivalentul de la ( Run as Administrator ) de pe Windows.
-
Poti rula si matlab si latex fara probleme pe Ubuntu. Ca si sfaturi: - invata comenzile de baza ce pot fi rulate din terminal: sudo, ls, cp, mv, vim, aptitude (sau apt), rm, dpkg, grep, ps, etc. - daca esti programator va trebui sa stii sa folosesti si altele: gcc, g++, python, awk, sed si altele ( ultimele doua te ajute la file handling foarte mult) Depinde foarte mult de ceea ce vrei sa faci tu, ce meserie ai si altele.
-
Un mic update cu inca o definitie elementara:
-
Nu stiu cum ar putea sa iti mearga vreodata asta. Aparent va afisa mereu "GRESIT!" de fiecare data cand vei incerca sa il bagi pe X undeva.
-
Aviz tuturor persoanelor care copiaza vectoru' de pe OWASP si, colac peste pupaza, gasesc un self. Sper ca definitiile astea sa va ajute sa intelegeti de ce se numeste o persoana HACKER. Thanks Sursa e din bucu' asta
-
Bun. Tot ar trebui sa incerci, chiar daca esti incepator. Iti dau eu niste puncte de reper: 1. Stii ce este o suma, nu ? a + b + c + ... + n = S, unde ai o conditie simpla, si anume a != b != c !=...!=n ( adica toate elementele tre' sa fie diferite intre ele ). 1*. Faptul ca n este necunoscut de indica faptul ca il putem introduce de la tastatura. 2. Suma a m numere, ne indica faptul ca putem alege orice m dorim dar ca trebuie sa avem grija la trei conditii: - sa fie numar natural - sa nu fie mai mare ca n - sa fie mai mare ca 0 ( nu poti efectua suma a -1 elemente ) Ai rezolvat jumatate de problema. Mai departe: Trebuie sa bagam numerele alea intr-un vector, in care putem cauta m valor maxime a caror suma sa fie maxima. Si tot asa. Acum pentru fiecare pas, incearca sa te documentezi si revin-o cu ce ai reusit sa faci.
-
Arata-ne ce ai facut pana acum si te ajutam cu mare drag. Daca nu, vorba lu @MrGrj, cerseste in alta parte (mwe)
-
Machine learning can now reply to your emails. A new feature in Google's Inbox app can recognise the content of emails and tailor responses using natural language, without a human being having to do a thing. Machine learning is used to scan emails and understand if they need replying to or not, before creating three response options. An email asking about vacation plans, for example, could be replied to with "No plans yet", "I just sent them to you" or "I'm working on them". The feature, dubbed Smart Reply, is only available in Google's Inbox app for Android and iOS. It has been designed for emails that can be answered with a short reply such as "I'll send it to you" or 'I don't, sorry'. Google said the system would enable users to reply to emails in just two taps -- one tap to open it, one tap to select a response and send. The responses a user chooses, or doesn't choose, will also improve future suggestions. According to Google software engineer Bálint Miklós, who first came up with the idea, the system used to suggest "I love you" as a suitable response to workplace emails. This was as a result of what Smart Reply had learned from the emails it had scanned. As "Thanks", "Sounds good" and "I love you" were common responses, it gambled on them when it was unsure of what to say. The adorable anomaly has since been removed. Smart Reply is built on a pair of recurrent neural networks, one that encodes incoming emails and one that comes up with possible responses. Each word is captured in turn to create a list of numbers, known as a thought vector, that gives the machine learning system the gist of what is being said. From this, the second network builds a grammatically correct response one word at a time. "Amazingly, the detailed operation of each network is entirely learned, just by training the model to predict likely responses," explained Greg Corrado, a senior research scientist at Google. Not only does Google's machine learning system have to understand the complex and varied way people communicate, it also has to digest emails that can be hundreds of words long. To do this, Smart Reply focuses only on the most important sentences and ignores everything else. Google used a variant of a "long short-term memory" network to help the machine learning system hone in on what parts of incoming emails would be most useful for predicting a response. Another challenge for Google's engineers was working blind. For privacy reasons, and to make a machine learning email system truly useful, no human being has access to the data. That means everything is worked out by a computer. "This means researchers have to get machine learning to work on a data set that they themselves cannot read, which is a little like trying to solve a puzzle while blindfolded," Corrado explained. Smart Reply will be introduced later this week as an update for Google Inbox for Android and iOS. Sursa Nu-i chiar security related, dar mi s-a parut o stire interesanta Parerea mea personala e ca vor sa testeze algoritmi de Machine Learning la scara mare, pentru ceva mult mai complex, insa ascuns sub forma unei aplicatii ca asta.
-
Sa-mi bag pula in scrisul asta cu bold si in style-ul pus. Nu poti sa scrii normal ? Daca nu vrei sa folosestii boost, mai stiu doar altele doua care isi fac treaba: SWIG link SIP link O alta metoda ar fi sa faci toata treaba manual ( asa cum vrei tu ) folosind C API insa te avertizez ca e low-level si trebe' ceva cunostinte sa faci asta. Dar e bine ca asa mai inveti cum functioneaza Python in general ( si oricum tre' sa stii sa faci asta daca folosesti SWIG )
-
Ai zis ca stii ce inseamna .pyd si cum sa le folosesti, insa eu nu cred asta, asa ca iti mai povestesc putin: Fiserele cu extensia .pyc contin bytecode, adica "transformarea" din cod sursa in bytecode. Pe scurt, poti rula direct un program in Python fara a fi nevoie in prealabil de a creea un executabil pe care mai apoi sa il executi. Mai mult, aceste fisiere .pyc maresc viteza de executie daca le ai prin preajma ( de obicei se gasesc cu acelasi nume ca si .py files ) Nu exista "un program" cu care sa creezi o extenie de python .pyd. Ai importat un modul in python, ti-a creeat .pyd-ul dupa care tanjesti si gata, done. Ce legatura are aplicatia ta facuta in C++ cu .pyd-ul ? Ce vrei mai exact ? Un fisier .pyd contine pyObjects asa ca exceptand cazul exceptional in care poti folosi libraria BOOST in C++ pentru a creea ceva asemanator, habar nu am ce vrei sa faci. Cat despre portabilitatea codului tau... cel mai usor e sa folosesti notepad++ si sa compilezi direc cu gcc. Astfel, va fi de 100 de ori mai usor sa scrii cod care mai apoi poate fii rulat pe toate distributiile. Deci, tu ce vrei pana la urma ? Fii clar si concis.
-
If you visited any of about 500 websites on Saturday, and also downloaded what looked like an update to Adobe Flash, you may have inadvertently installed malware that makes your Windows PC into a zombie computer on a hacker's botnet. Even if you did visit the sites, you're probably safe if you didn't take the bait and install the malware masquerading as an Adobe Flash update. If you have a Mac, Chromebook, or Android, iOS or Linux machine, you are also probably safe, as the malware seems to have focused on Windows. Just the same, you should follow the standard drill of updating and running your antivirus/anti-malware software. (You do have AV, right?) Regardless of how big the attack is, it's a brilliant illustration of everything that's going wrong with web publishing, advertising, and online security. As such, it's a great teachable moment for everyone who's online. The clever hackers took advantage of the current crisis in online advertising—and the rise of programs like AdBlock Plus—by infecting a company called PageFair that tries to help content sites get their ads seen. (The attack started at 11:52 p.m. GMT on October 31, but PageFair first reported it a day later at 11:30 p.m. on November 1.) This security breach isn't the case of malicious ads infecting site visitors, as sometimes happens. Instead, web publishers who are trying to do the right thing by providing safe, unobtrusive advertising got infected and executed a malicious JavaScript from their own pages. The PageFair breach is just another headache in the string of chronic migraines affecting websites trying to survive billions of dollars in lost revenue due to ad-blocking software. Fast Company reached out to PageView to find out which of their clients' sites were affected by the malware attack, and, although they declined to name specific outlets, they informed us via email that of their 3,000 clients, "fewer than 501 publishers [were] affected," mostly smaller publishers. They added, "It looks like only a small minority of users on those sites were actually affected," before stating, "we are working on it." WHAT'S THIS ALL ABOUT? This breach turns the standard Internet-security narrative on its head, leaves out the usual suspects, and highlights both the security and revenue crises that are playing havoc with online publishing. To understand what happened, let's back up and explain what's going wrong with online advertising and why a company like PageFair exists. It's probably no surprise that people don't look at online ads. They fetch a fraction of the revenue that print ads do; and as newspapers, magazines, and other publishers lose print subscribers, money is getting tight. On top of that, more people are completely eliminating ads from view by installing ad-blocking software, usually industry leader AdBlock Plus, which has had more than 300 million downloads. An August 2015 report by PageFair itself puts the estimated cost of lost online ad revenue for 2015 at $21.8 billion globally. Things got potentially much worse for online publishers in September when Apple released its latest mobile operating system, iOS 9, which allows ad blockers on iPhones and iPads for the first time, (although they have since been removed). It's no wonder why people block online ads. The worst of them blink, cover over what you are reading, or play annoying animations to draw your attention to low mortgage rate offers. Running all those ads slows down page loading times and sucks up bandwidth. Even worse, some ads actually install malware on readers' systems because hackers routinely infiltrate online-advertising networks and replace the legit (if annoying) ads with booby-trapped versions. "The advertising industry is not very good about filtering that stuff out," says Chase Cunningham, threat intelligence lead at security firm FireHost, when we spoke to him earlier this year about some of the biggest online dangers people face. That explains why companies that make ad-defeating software, of which AdBlock Plus is by far the biggest, are doing such a brisk business. According to the same PageFair report, about 16% of Americans (that's 45 million people) have installed ad-blocking software. That's about twice as many as a year earlier. Seventy-seven million Europeans are also blocking ads. IRONY NUMBER 1: THE BIGGEST AD BLOCKER LETS ADS THROUGH AdBlock Plus's creator, Eyeo, professes on its home page to not be against all advertising, just the really annoying stuff. By default it allows through ads on a preapproved "whitelist" that conform to its acceptable ad guidelines (no animation, no covering over what people are reading, etc.). Just as Google sets the de facto standards for how to optimize sites for search engines, Eyeo is on its way to setting the global standards for advertising. Just as SEO experts make a living by mastering the intricacies of Google's methods, PageFair is trying to do business as a middleman between web publishers and Eyeo. Dublin-based PageFair was founded in 2012 to help web publishers use only ads that conform to Eyeo's whitelist. One of the things PageFair offers is an analytics tool for clients to see how well their ads are doing. It's the tool, a bit of JavaScript code that runs on publishers' sites, which the hackers exploited, by replacing it with their own malicious JavaScript. The $21.8-Billion Reason Ultra-Personal Online Ads Are Coming Security experts and journalists have written until they're blue in the face telling people to uninstall or disable something called Java, which could allow a website or remote hacker to execute code on someone's computer. But JavaScript, which has virtually nothing to do with Java, is generally considered okay, or at least a tolerable potential vulnerability. The PageFair hackers secretly replaced the fine JavaScript that pages usually serve with their own malware, which infected sites for one hour and 23 minutes before PageFair was able to fully shut it down. IRONY NUMBER 2: A HIGH-TECH COMPANY FALLS FOR A LOW-TECH TRICK They were able to do this by using what is becoming the oldest trick in the book: a technique called spear phishing. Everyone has probably gotten what's called a phishing email—a generic note purporting to come from, say a bank or FedEx, asking you to click a link and do something like update account information. It then sends people to a bogus web form where victims diligently enter all the personal info that identity thieves need. Spear fishing is a more clever version that is targeted at a specific person or group of people, such as employees of a company. It uses emails tailored to those people, such as pretending to come from a mailing list they are on, or even from their own employer, vendors, or clients. It tends to have some info specific to the targets to make it look more legit. Hackers used that trick against PageFair, found at least one gullible employee, and eventually got enough info to be able to log into the company's system and replace the JavaScript its clients serve on their pages. This highlights the dangers of a company that runs code on many other company's sites. IRONY NUMBER 3: THIS TIME, IT'S NOT ADOBE'S FAULT The hackers then used another classic trick: A bait-and-switch popup that asks people to install one piece of software, in this case an Adobe Flash update, but instead installs malware, in this case, apparently, a Trojan horse used to commandeer computers as slave nodes on what's called a botnet (which can be used for processing big tasks like distributing spam or launching other cyberattacks). Adobe Flash is a favorite of hackers because it is so common on computers (though is generally not on mobile devices), and is so prone to having security vulnerabilities. But this time, Adobe is not to blame. The PageFair attackers didn't take advantage of a vulnerability in Flash. Rather they took advantage of the fact that people are so used to Flash having vulnerabilities that they might instinctively click to download a patch. IRONY NUMBER 4: AN ATTEMPT TO BE MORE TRUSTWORTHY JUST BACKFIRED It's sad when bad things happen to good people—or at least, people who feel compelled to do good due to market forces. Most people are already wary of online marketers and advertisers, reported GfK., itself an online marketer, in a March 2014 survey of 1,000 Americans across five generations. Some of the painful truths include: 88% are "somewhat to very concerned" about protection of personal data 33% were affected at least once by misuse of their personal data 54% say marketers and advertisers need to change their policies on use of personal data Among the 23 categories of businesses they were asked about, respondents trusted marketers and advertisers the least (only 25% professed their trust). For a lot of people, blocking ads just looks like the safest way to go. As the product name AdBlock Plus suggests, Eyeo is very good at this. Now companies trying to play by Eyeo's rules just got a black eye from hackers. Source
-
Nu poti combina un file object de 32-bit cu unu' de 64. Compilatorul iti spune clar ca unul din object file-urile tale e compilat ca un obiect de 32-bit asa ca nu poate fi linkat intr-un executabil de 64-bit. Trebuie sa recompilezi object-file-ul de 32-biti sau ala de 64 folosind flagul -m32
-
Fa-ti CV-ul singur. Fii profesionist si arata angajatorului ca stii sa te auto-evaluezi. Nu trece informatii inutile, nu bate campii si nu scrie ca ai lucrat ca promoter in Cora daca te angajezi ca system administrator sau dev. Desigur, sunt cretini pe Pamant care vor spune: " E bine sa treci experienta indiferent de domeniu, ca sa vada ala ca esti obisnuit cu un mediu de lucru ". Niciodata. E bine sa ai vreo doua template-uri daca vrei sa aplici la doua joburi diferite: software developer si storage admin de exemplu. ( in cazul asta ai grija cu CV-urile de pe site-urile de recrutare: bestjobs / e jobs etc. sa ai trecute skilluri din ambele template-uri si sa le imbini cumva armonios ). NU exagera totusi ! Nu te supra-evalua daca nu este cazul. Iti vei arata calitatile iesite din comun ( daca exista ) la un eventual interviu. Ca si template, postase @em ceva template in LaTeX pe care l-am si folosit ulterior. cred ca e linkul de mai sus. Lasa europass-ul ( doar in cazul in care nu aplici pentru ceva job din UE ). Din pct. meu de vedere, un CV custom ( template personal ) spune mult mai multe despre tine, decat un template de pe Bestjobs.
-
Depinde de firma si ce intelegi prin fara experienta. Daca ai urmat o facultate in domeniul IT si ai habar, poti face un training in urma caruia sa castigi in jur de 1500-2000 lei. (poate chiar mai bine, dar asta depinde de firma si de ceea ce vad angajatorii in tine) Pe parcurs, salariul va creste direct proportional cu experienta intr-un anumit domeniu. Daca dupa 5 ani de.. C++ ( doar un exemplu) pleci de la firma care acum te plateste cu 3500 lei si ai invatat intr-adevar ceva si pleci la altii, atunci altfel sta treaba. ( salariu de la 1500 E in sus ). Sfat: daca te faci programator doar pentru a castiga bine, las-o balta.
-
Parere personala: ( nu tratati personal ) E un subiect pe care merita sa il dezbatem in amanunt. Dar la ce bun cand stim ca din 500k utilizatori ai RST-ului, ~500 vor citi threadul asta per-total, iar in acelasi timp 3k vor cauta r00t-uri sau programe cu care sa se laude ? Exista trei categorii de oameni: - aia care isi baga pula in orice si oricine si fac totul pentru propria satisfactie - cei care lucreaza la ceva corporatii mari si se limiteaza la atat ( sunt indoctrinati cu legi / cacaturi and shit ) - cei care nu stiu nici ei ce sunt, dar vor sa fie ceva / cineva. Acum, am cunoscut oameni care se bucurau asa tare cand faceau un RE si crackuiau ceva soft si isi bagau pula in ele corporatii din tot sufletu', incat iti venea sa plangi de fericire. Inca exista, dar de nevoie se angajeaza si ei, ca meh, fericirea nu tine de foame. Si asa ajung si ei la categoria mai sus mentionata. Oamenii din ziua de azi nu mai sunt asa: au diplome ( si alea platite de parinti ) cu care oricum nu fac nimic. Oamenii din ziua de azi sunt foarte comozi, se limiteaza la ceea ce gasesc si merg pe principiul: de ce sa reinventam roata ? cand de fapt, intrebarea corecta ar fi: cum sa fac roata asta sa fie ideala ?
-
Am nevoie de o versiune de linux
MrGrj replied to zeroabsolut's topic in Sisteme de operare si discutii hardware
Linux mint e recomandat in astfel de situa?ii. Recomand pentru încep?tori. Twist plot: Your mother is a senior system administrator and is looking after some skiils. In this case, I strongly recommend Arch -
If C++ is the most powerful, why isn't it the most popular?
MrGrj replied to MrGrj's topic in Programare
Intr-adevar, sunt si altele, dar ideea era ca e greu sa mai gasesti un limbaj care are toate cele 5 caracteristici mai sus mentionate Specifica ce fel de aplicatii. Probabil nu te referi la ceva large-scale. Ce intelegi prin productivitate ? Majoritatea browserelor folosesc cel putin 80% C/C++ Tot ce tine de drivers implica exclusiv C ( mai putin C++) Apache web server - la fel, e facut in C/C++ Exemplele pot continua (Boost, FastFormat, Loki, Pantheios, POCO, Qt, STLSoft) etc. Gresit. Mai nou totul se muta in Cloud dar nu despre asta e vorba. E o diferenta intre Desktop Apps si Web Apps, iar in topicu' asta ne referim strict la C++. This is just my poor opinion. -
Am stat la birou pân? târziu. @bubbles revin cu r?spuns mâine. Acum sunt pe telefon si nu mai deschid laptopul.
-
A facut @Gecko ceva responsive pentru mobile. Era destul de nice. It's gonna happen ?