Jump to content

Robert1995

Active Members
  • Posts

    927
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Robert1995

  1. Apple iTunes Cards - Apple Store (U.S.) Direct de la ei.
  2. Faci spam de articole legate de Apple ? Iti zic eu, Apple trebuie sa fii PROST sa chiar fii "virusat", "infectat" sau cum vrei sa ii spui. Iti zic clar "Esti SIGUR ca vrei sa instalezi aplicatia X". Si au sistemul lor de "identified" sau "unidentified" developer. Articol mizerabil. Articol scris de un tembel care nu stie engleza si e obisnuit cu windows "Click", "Click", "Click", "Pac".
  3. am incercat eu cu 100RON + 100RON gratis, a fost vrajeala aia, sau poate le a dat fail sistemu ( ma indoiesc )
  4. Vrei sa spui ca asta e inutil ? Mie imi place idea + ca nu ma consider "capabil sa codez un file stealer".
  5. M-am jucat vreo o jumate de ora astazi cu C++ si mi-a venit idea sa fac ceva de genul "static console", pareri ? [C++] Static Console Experiment - Pastebin.com Tin sa mentionez ca n-am scris cod C++ de vreo 2-3 ani, daca e vreo greseala, va rog sa-mi spuneti
  6. Thanks
  7. Vroiam sa vad cat fumez zilnic usor, fara prea mult stres, direct pe telefon. Am facut o aplicatie, am facut-o si pe iPhone, e pending catre AppStore ( da e Free ) Concept : http://tas.easy-development.com/ App : http://tas.easy-development.com/app Licensed : GPL GitHub Source Code : https://github.com/easy-development/take-a-smoke Enjoy
  8. MVC si MOVE pot fi/sunt construite pe baza celor spuse mai jos. Si tot ce a zis Skull si eu stiu de ele si majoritatea le-am folosit, nu am scris clase "Facade" pana acum, dar stiu cum merg.
  9. MVC, MOVE. ---- Proxy, Observer, Abstract factory, Builder, Module, Front Controller, Iterator
  10. Ah da . instanceof e bun, dar e "nitel diferit" handlerul la item si listener, de aceea ziceam. Daca as sta sa generalizez mai tare, credca ar merge. dar nu prea are rost, cel putin, nu in stadiul asta
  11. Ah da, chiar n-am observat, thanks .
  12. Easy Paypal, ultima librarie scrisa de mine pana in momentul de fata, am bagat vreo 20 de ore in development sa fiu sigur ca e ok. E facuta sa mearga direct cu composer, merge instant. e hostata pe github. Teoretic, e "decoupled" programming, nu are dependete, doar "Transaction" are nevoie de TransactionItem si TransactionListener ( is puse ca obiecte acolo ). In rest e "bound by programming", clase abstracte etc. Learn more : Easy Paypal Github : https://github.com/rusuandreirobert/easypaypal Class documentation : API Documentation Edit : Diagrama de proces initiala : https://raw2.github.com/rusuandreirobert/easypaypal/master/documents/PaypalOrderCreation.jpg P.S : In diagrama e un pic vag, pot fi N listenere, initial am vrut doar 1, dar dupa mi-am dat seama, de ce nu mai multe . P.P.S : Caut pe cineva daca e interesat sa puna la punct pagina de prezentare ( care o sa hostam pe github ) si primeste "credit" pentru munca lui direct in github.
  13. Robert1995

    Query

    Hai ca incerc eu asa "pe sec" netestat . SELECT s.name, s.id, crm.class_room_number, crm.name FROM students s LEFT JOIN classes ON class_room_number crm = 345
  14. Pe atestat iti poti face PFA.
  15. Robert1995

    www1 / www

    Da, pune domeniul cloudflare si e 1 minute "job".
  16. Fail programming si logic. Ma. Tu cum faci chestia aia, daca ai 5 produse cu aceeasi categorie, sau 5 produse cu acelas nume ( absurd, dar poate difera categoria ). Tu le schimbi pe toate odata. Daca nu intelegi ce vreau sa zic, revin cu un edit.
  17. Smarty Sucks. On Topic : <?php if(isset($_POST['submit'])) $myText = isset($_POST['my_text']) ? $_POST['my_text'] : ''; ?><!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form method="POST"> <?php if(isset($myText)) : ?> <div style="background: #e74c3c;color:#FFFFFF;padding:10px 15px;"> <?php echo $myText;?> </div> <?php endif;?> <input type="text" name="my_text" value="<?php echo isset($myText) ? $myText : '';?>"> <input type="submit" name="submit" value="Submit"/> </form> </body> </html>
  18. I love Open-Source, de aceea vreau sa fac in timpul liber si cateva ceva, "pe gratis", eu ma simt bine cand vad "Star", "Fork" e ca un drog. Anyway, am zis sa depun mai multe efort la prezentare, astept feedback si sugestii. Download : https://github.com/rusuandreirobert/on-the-fly-testimonial Preview : On The Fly Testimonial | Home Pe Scurt : On the Fly Testimonial. Add a PHP Testimonial System anywhere in under 1 minute -- Responsive Plays well on the iPhone, iPad, and any Android-powered device. On the fly testimonial works out of the box with little effort on your end, created for you. No coding for you, we promise. -- Created for People The installation process is simply copy - paste, the testimonials & add form can added via a line of code anywhere No Database attached, we use File Storage, the only thing you need is to upload & add your own text
  19. Da, cat timp specificati ca e facut pe acest framework ( sa stie lumea de el nu de alta )
  20. Lepra dracu, nu mai vorbiti prostii deastea, ca citesc N persoane ce scrii tu aici si nu stii cati se apuca sa faca pe destepti numa ca vad ca e "Trending" sa iti bati ceva de open-source.
  21. De aia iti cer aia de la google sa-ti pui un numar de telefon la cont, nu sa-ti trimita mesaje promotionale.
  22. O sa o portez saptamana viitoare ma apuc
  23. Make your website a step by step experience. It all started with the a simple idea We wanted to give websites the posiblity to tell their Story, but it seemed to simple, we've wanted to do more, so we've created Story Box. It seemed to simple, so we wanted to achieve even more, so we've upgraded Story Box to make an entire website a Story, but not what we initially wanted, a true Story, from Text And now, We want to offer the initial feeling, with Story Tale Read more : Story Tale
  24. First things first, povestea. Recent, am facut un plugin pe Wordpress WordPress - WP - Keywords To Tooltip | CodeCanyon Dupa cateva zile, cineva a venit cu cererea sa fie compatibil cu WP Multi Site, nu am facut asa ceva niciodata, dar am reusit sa-l fac sa mearga in mai putin de o ora. De ce ? Am avut codul scris in OOP, aveam urmatoarele metode : public function _activationHook() { global $wpdb; $query = file_get_contents($this->scriptBasePath . 'model/install.sql'); $query = str_replace($this->database->_table_prefix , $wpdb->base_prefix . $this->database->_table_prefix, $query); $queries = explode(';', $query); foreach($queries as $query) if(strlen($query)> 20) $response = $wpdb->query($query); } public function _deactivationHook() { global $wpdb; $wpdb->query("DROP TABLE IF EXISTS " . $this->database->_keyword_table); } Ce mai trebuia sa adaug ca acesta sa mearga pe WP Multi site ? Nu prea multe defapt, a fost chiar simplu, trebuia sa fac urmatorul cod pentru fiecare site inainte de a executa metodele celalte doua ( cand era Network Activate si Deactive ) $old_blog = $wpdb->blogid; $blogids = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}"); foreach ($blogids as $blog_id) { switch_to_blog($blog_id); // Actiunea Propriu zisa activate sau deactivate. } switch_to_blog($old_blog); Norocul meu era ca am scris totul in OOP, si aveam controll total, am schimbat repede putin functiile, am facut un proxy la activate si deactive public function _wpActivationHook($networkwide) { $this->_networkPropagationHook('_internalActivationHook', $networkwide); } public function _wpDeactivationHook($networkwide) { $this->_networkPropagationHook('_internalDeactivationHook', $networkwide); } De ce am scris aceasta functie de proxy ? La fiecare din astea, faceam acelas lucru inafara de o singura functie, asa ca am generalizat codul, for the "sake of clean", teoretic inainte de anterioarele active si deactivate mai trebuia sa faci niste pasi, si dupa activate sau deactivate sa dau switch inapoi la blogul initial. Well, cam ce a iesit ? public function _wpActivationHook($networkwide) { $this->_networkPropagationHook('_internalActivationHook', $networkwide); } public function _wpDeactivationHook($networkwide) { $this->_networkPropagationHook('_internalDeactivationHook', $networkwide); } public function _networkPropagationHook($propagationAction, $networkwide) { global $wpdb; if (function_exists('is_multisite') && is_multisite()) { if ($networkwide) { $old_blog = $wpdb->blogid; $blogids = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}"); foreach ($blogids as $blog_id) { switch_to_blog($blog_id); $this->$propagationAction(); } switch_to_blog($old_blog); return; } } $this->$propagationAction(); } public function _internalActivationHook() { global $wpdb; $query = file_get_contents($this->scriptBasePath . 'model/install.sql'); $query = str_replace($this->database->_table_prefix , $wpdb->base_prefix . $this->database->_table_prefix, $query); $queries = explode(';', $query); foreach($queries as $query) if(strlen($query)> 20) $response = $wpdb->query($query); } public function _internalDeactivationHook() { global $wpdb; $wpdb->query("DROP TABLE IF EXISTS " . $this->database->_keyword_table); } Concluzia : WP Multi Site nu e mare branza, sunt mai multe lucruri care trebuie luate in considerare, dar daca e vorba despre baza de date, e foarte simplu, prefixul se baga automat, $wpdb->_table_prefix e setat in functie de website daca dai switch_to_blog() cand trebuie. Mai este unca un lucru, la generarea fisierelor, recomand sa ai functii, pentru ca daca ai multi site, ai fisere separate pentru fiecare fisier ( daca sunt editate constant de user ) Asa ca am scris urmatoarea functie private function _getCurrentFrontGeneratedStylePath() { return (function_exists('is_multisite') && is_multisite()) ? $this->frontGeneratedStylePathPrefix . '-' . get_current_blog_id() . $this->frontGeneratedStylePathPostfix : $this->frontGeneratedStylePathPrefix . $this->frontGeneratedStylePathPostfix; } Verific daca e multi_site, daca e multi site, mai adaug un -[blog-id] in capatul fiserelor ( apoi extensia "frontGeneratedStylePathPostfix" ) Ok, sper ca v-a placut, am scris ceva in timp ce imi beam cafeaua inainte de ore . Feedback & Comments are welcome.
      • 1
      • Upvote
  25. Aia e problema, toata lumea crede ca face bani doar ca e frumos. Da e valabil in cazul gagicilor de la videochat treaba, nu in Web Development, sau orice fel de programare.
×
×
  • Create New...