Jump to content

keja

Member
  • Posts

    63
  • Joined

  • Last visited

Reputation Activity

  1. Like
    keja reacted to Syntaxvgm in Github about to be Miscrosofted?   
    lol ok 

    http://www.catb.org/esr/halloween/
     
    https://en.wikipedia.org/wiki/Samizdat%3a_And_Other_Issues_Regarding_the_'Source'_of_Open_Source_Code
     
    http://money.cnn.com/magazines/fortune/fortune_archive/2007/05/28/100033867/

    https://www.zdnet.com/article/microsoft-profits-from-linux-patent-fud/
     
    https://arstechnica.com/tech-policy/2007/05/microsoft-235-patent-specific-patent-infringements-in-linux/
     
    http://techrights.org/2010/10/14/msft-scorpion-and-the-tortoise/

    http://techrights.org/2016/03/10/charm-offensives-distract/
    ^That 2016 one's great, covers MS literally taking existing things from Linux distros and patenting them in a fraudulent and abusive manner. 
     
    Oh, I remember reading this one janurary of this year. 
    http://techrights.org/2018/01/16/microsoft-uses-patent-trolls/
     
     
     
    So yea I can probably just keep going and going really, but I tried to give a spread over the years. 
    I would love to make a nice list of micrsoft patent trolling history, not just MS but all proxies as well. It's shit like this 
    https://patents.google.com/patent/US5758352?oq=5%2c758%2c352
    that's not even that bad in terms of what they get away with, I just like this one becuase literally Linus Torvalds himself helped invalidate it legally because, like normal, they took existing shit and patented it to attempt to troll competitors (in this case, Motorola) and foss solutions out of existence. 
  2. Like
    keja reacted to Sauron in Github about to be Miscrosofted?   
    Microsoft has pretty much ruined almost everything they touched, I have no doubt that them buying github would have nefarious consequences for the platform in the long run. At first it will be preferential treatment for customers of their other services, then maybe logging in with your microsoft account and so on until the platform will only work with their own vc software and will be tied in with their other product licenses.
  3. Like
    keja got a reaction from TopHatProductions115 in AMD's Secure Encrypted Virtualization (SEV) defeated   
    More bad news in the CPU department, as a hardware-feature on AMDs Epyc CPUs that are responsible for encrypting the data in VMs have been defeated by a german team.
    I dont know the extent of this, as im not sure how many actually use Epyc in production VS how many uses Xeon.
     
    Source https://thehackernews.com/2018/05/amd-sev-encryption.html
     
     
    Im a bit tired of all the bad CPU news.
  4. Like
    keja got a reaction from Mr.Sane in AMD's Secure Encrypted Virtualization (SEV) defeated   
    More bad news in the CPU department, as a hardware-feature on AMDs Epyc CPUs that are responsible for encrypting the data in VMs have been defeated by a german team.
    I dont know the extent of this, as im not sure how many actually use Epyc in production VS how many uses Xeon.
     
    Source https://thehackernews.com/2018/05/amd-sev-encryption.html
     
     
    Im a bit tired of all the bad CPU news.
  5. Agree
    keja reacted to laminutederire in AMD's Secure Encrypted Virtualization (SEV) defeated   
    What really pisses me off is how the security researchers are disclosing security vulnerabilities nowadays. It just look like they want attention so they publish things without giving motive to companies beforehand. That leads to a media fuss around their research, but it also looks like they make a big deal over not that much. In the end it just seem like researchers are trying to bash on AMD as much as possible because God forbids they gain actual marketshares because their products deserve it...
  6. Like
    keja reacted to m0k in Power usage of fans?   
    the fans will work just fine without anything additional
    just make sure the fan header isnt proprietary and uses a standard 3pin or 4pin 
  7. Like
    keja got a reaction from omniomi in PHP preg_replace   
    This should do the trick (it can also take the youtu.be links)
    $content = "www.youtube.com/watch?v=6Zgp_G5o6Oc";$content = preg_replace_callback('/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-]+)(&(amp;)?[\w\?=]*)?/', function($matches){ return "[video]{$matches[0]}[/video]"; }, $content);
  8. Like
    keja got a reaction from DigitalHermit in Anybody know how to perform MySQL queries in Laravel 5?   
    Here is a tut that shows how to build a todo list:
    https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-laravel-5-part-1/
     
    it does not cover joins but you just do something like this:
    DB::table('users') ->join('contacts', 'users.id', '=', 'contacts.user_id') ->join('orders', 'users.id', '=', 'orders.user_id') ->select('users.id', 'contacts.phone', 'orders.price') ->get(); code also from the like i posted in my first post
  9. Like
    keja got a reaction from DigitalHermit in Anybody know how to perform MySQL queries in Laravel 5?   
    Take a look at the documentation
     
    http://laravel.com/docs/5.0/queries
     
     
    Basic CRUD:
    //INSERT INTO users SET email='john@[member=Example].com', vote=0DB::table('users')->insert(['email' => 'john@[member=Example].com', 'votes' => 0]);  //SELECT name, email FROM users$users = DB::table('users')->select('name', 'email')->get(); //UPDATE users SET votes=1 WHERE id=1DB::table('users')->where('id', 1)->update(['votes' => 1]); //DELETE FROM users WHERE vote = 1DB::table('users')->where('votes', '=', 1)->delete();
  10. Like
    keja got a reaction from Torand in Good PHP OOP tutorials   
    This one is really good: http://code.tutsplus.com/tutorials/object-oriented-php-for-beginners--net-12762 but not "usefull"
     
    usefull could be, making a user class to handle your login/out, create user, update user ect.
  11. Like
    keja got a reaction from PedroBarbosa in Trying to get a program that takes information about a website   
    I made a small node application to show you one way you can run through all pages.
    var request = require('request'), //https://www.npmjs.com/package/request cheerio = require('cheerio'); //https://www.npmjs.com/package/cheeriofunction getUrl(offset){ return "http://steamcommunity.com/market/search/render/?query=&start="+offset+"&count=100&search_descriptions=0&sort_column=price&sort_dir=asc&appid=730";}var offset = 0, target = 0, result = [];var pull = function(error, response, raw){ if (!error) { try{ var json = JSON.parse(raw); target = json.total_count; offset = json.start + 100; parseItems(json.results_html); if(target > offset){ request(getUrl(offset), pull); }else{ //done loading all pages: do something with result array } }catch(err){ console.log("error",err); console.log("data", raw); } }else{ console.log(error); }};var parseItems = function(html){ var $ = cheerio.load(html, {xmlMode: true}); $(".market_listing_row").each(function(index, item){ result.push({ "name" : $(item).find(".market_listing_item_name").text(), "price" : $(item).find(".market_table_value span").first().text(), "quantity" : $(item).find(".market_listing_num_listings_qty").text() }); });};request(getUrl(offset), pull);
  12. Like
    keja got a reaction from Hecknologist in Best HTML editor   
    it does, but it will never stop working without a license
     
    eidt: just like winrar
  13. Like
    keja got a reaction from vorticalbox in Date from form.   
    i just ment if you where going to use prepared statements change to pdo instead of mysqli
     
    a simple way to write you SQL with PDO could be:
    db::connect("127.0.0.1", "myUser", "", "database");$login = db::query("SELECT something FROM prefix_user WHERE username=:u && password= LIMIT 1", array( ":u" => $_POST["username"], ":p" => hash("sha512", "salt?".$_POST["password"])));if($login->rowCount()){ $_SESSION["login"] = $login->fetch(PDO::FETCH_ASSOC);} if you use a simple wrapper like this
    class db { private static $handle; public static function connect($host, $username, $password, $db){ self::$handle = new PDO("mysql:host={$host};dbname={$db}", $username, $password); self::$handle->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING ); } public static function query($sql, $args=null){ $sth = self::$handle->prepare($sql); $sth->execute($args); return $sth; }}
  14. Like
    keja reacted to SSL in PHP CURL w/o waiting for response   
    PHP wasn't designed. That would imply that some thought was actually put into the language.
  15. Like
    keja got a reaction from Nuluvius in What Is Your Best Programmer Joke?   
    Not really a joke, but i find some of the content funny in here:
     
    http://codecrap.com/content/best/ <-- brace yourself for the worst codes you have ever laid your eyes on
  16. Like
    keja got a reaction from rattacko123 in [LEAK] apple supposedly to release a fully redesigned macbook air this year, so thin it barely has any i/o   
    worst placement of power button ever..
  17. Like
    keja got a reaction from switchkill in Hello =]   
    this world would be a boring place if there were no insults or sarcasm - as long as its funny
     
    I dont like people that wast my time, when i try not to waste theirs. - we live once, why wast time on BS..
  18. Like
    keja got a reaction from switchkill in Hello =]   
    Hello everybody.
     
    Just wanted to say hello and get to know you guys
     
    Im from Denmark and 28 years old, my profession is programming, and have 12years+ experience with a variety of languges/technologies like; C# (Mono and .NET), NodeJS and PHP
    im not so much in to hardware as i once was, but im planing on building a 2011-3 hackintosh soon. - yup im one of them mac guys, i only run *nix (but i do have win8 for a few gaming sessions)
     
    i dont have any build at the moment as i have traveled quite a bit in the last few years, so im just running my macbook and my asus g75, nothing fancy.
     
     
    and yea english is not my native language, so prepare for mistakes in my posts in the future
    looking forward to be a part of this community.
     
    /Kenneth.
  19. Like
    keja got a reaction from alpenwasser in Output Explanation C++   
    The C standard says that a variable should only be assigned at most once between two sequence points. A semi-colon for instance is a sequence point. 
    i = i++;i = i++ + ++i; and so on violate that rule. The standard also says that behavior is undefined and not unspecified. Some compilers do detect these and produce some result but this is not per standard.
     
    http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf @ 3.4.4
  20. Like
    keja got a reaction from rhyseyness in [LEAK] apple supposedly to release a fully redesigned macbook air this year, so thin it barely has any i/o   
    worst placement of power button ever..
  21. Like
    keja got a reaction from Jimbillroo Digital in HTML Time and Date   
    try something like this:
    <script type="text/javascript"> var tday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var tmonth=new Array("January","February","March","April","May","June","July","August","September","October","November","December"); function GetDate(){ var d=new Date(); var nday=d.getDay(),nmonth=d.getMonth(),ndate=d.getDate(); return tday[nday] + ", " + ndate + " " + tmonth[nmonth]; } function GetClock(){ var d=new Date(); var nhour=d.getHours(),nmin=d.getMinutes(),ap; if(nhour==0){ap=" AM";nhour=12;} else if(nhour<12){ap=" AM";} else if(nhour==12){ap=" PM";} else if(nhour>12){ap=" PM";nhour-=12;} if(nmin<=9) nmin="0"+nmin; return nhour + ":" + nmin + ap; } window.onload=function(){ var update = function(){ document.getElementById("clockbox").innerHTML = GetDate() + " .... " + GetClock(); }; update(); setInterval(update,1000); } </script> <div id="clockbox"></div>
  22. Like
    keja got a reaction from madknight3 in Starting to learn python.   
    1+ for JetBrains - they make some awesome products!
  23. Like
    keja got a reaction from Nuluvius in Starting to learn python.   
    1+ for JetBrains - they make some awesome products!
  24. Like
    keja reacted to Nuluvius in Starting to learn python.   
    For an IDE I recommend PyCharm. It's done by JetBrains and is built upon their industry leading ReSharper technology.
  25. Like
    keja got a reaction from shizngiggles in [LEAK] apple supposedly to release a fully redesigned macbook air this year, so thin it barely has any i/o   
    worst placement of power button ever..
×