Jump to content

col_crunch

Member
  • Posts

    51
  • Joined

  • Last visited

Everything posted by col_crunch

  1. You could look into AMP (it is by the makers of McMyAdmin... and is its successor). I don't know that AMP its self can run in docker, but it can be used to run the game servers (it supports more than just MC) in docker containers. It also has fine grained permissions and siloed FTP access (and web-based file access), to make sure that people can't mess with files they shouldn't have access to.
  2. Does anyone happen to know of an API to pull Intel product specifications from? The odata api is no more, and I am struggling to find if they ever replaced it with anything. Alternatively if anyone knows of a dump (or some readily available code) to scrape product info from ark I would appreciate it.
  3. Here is what is essentially a very early version of a discord bot that I wrote to fetch information from the EVE Online API (known as ESI), as well as zKillboard, a third party site that tracks player kills and losses. This bot makes use of discord.py (async branch). import discord from discord.ext.commands import Bot import asyncio, aiohttp import json import datetime import urllib # Settings prefix = '/' TOKEN = "" app = "" contact = "" headers = {'user-agent': f"Application: {app} Contact: {contact}", 'content-type': 'application/json'} bot = Bot(command_prefix=prefix) # Util Functions async def getID(name): urlName = urllib.parse.quote_plus(name) url = f"https://esi.evetech.net/v2/search/?categories=character&datasource=tranquility&search={urlName}&strict=true" async with aiohttp.Clientsession().get(url, headers=headers) as response: r = response.json() if 'character' in r: return r['character'][0] else: return None async def getKB(cid: int): time = datetime.datetime.utcnow().strftime("%Y%m") url = f"https://zkillboard.com/api/stats/characterID/{cid}/" async with aiohttp.Clientsession().get(url, headers=headers) as response: select = response.json() stats = {'danger': select["dangerRatio"], 'gang': select["gangRatio"], 'kills_all': select["allTimeSum"], 'kills_mo': select["months"][time]["shipsDestroyed"], 'kburl': f"http://zkillboard.com/character/{cid}"} return stats # Bot Functions @bot.event async def on_ready(): print(f"Bot Online! \nLogged in as: {bot.user.name}") @bot.command(aliases = ['eve_time', 'evetime', 'et']) async def time(): time = datetime.datetime.utcnow() return await bot.say("Current EVE (UTC) Time: " + time.strftime("%H:%M")) @bot.command(aliases = ['t']) async def threat(*, char: str): cid = await getID(char) if cid == None: return await bot.say("Character not found!") stats = await getKB(cid) return await bot.say(f":alien: {char} \n\n :skull_crossbones: {stats['danger']} :children_crossing: {stats['gang']} :knife: {stats['kills_all']} :calendar: {stats['kills_mo']} \n\n\n :bookmark: {stats['kburl']}") bot.run(TOKEN) The current version of the bot exists here: https://gitlab.com/colcrunch/killbot (About 48x the number of lines now )
  4. I just made a new project, no idea what was wrong with the old one.
  5. I know, I was saying that the cache shouldn't be an issue.
  6. I am doing this locally before sending it off to a server.
  7. So, it works on a new install, but what confuses me is that I did nothing differently.
  8. So, my issue is that no matter what the extends statement is printed, which leads me to believe that there is something wrong with whatever parses the template file.
  9. Your vm's performance is not an indication of how well the OS will run on your hardware. Also, install VMWare tools (i think thats what it is called) to fix some of those issues.
  10. Yes, the welcome page works fine.
  11. You're welcome! Just make sure to do some research on your motherboard to figure out how to approach installing OS X. I use a Asus X99 Deluxe, a board that is luckily supported by RampageDev's X99 DMG. (Available here: http://www.rampagedev.com/?page_id=55)... The site doesn't list MSI support, but I'd open the DMG on the machine/VM that you use to make the install media and check if it is there (you never know, he might have forgot to put it on the site)... if it is there, I would follow his guide. Remember, if you follow his guide, so it very strictly. I tried a few times to get mine to work, it was only when I went slowly and followed his instructions exactly that it worked. Good luck! And a word to the wise, of all the places for hackintosh support, I find /r/hackintosh to be the best. Mainly cause insanelymac hates tonymacx86 (so much so that all mention of tonymac or the software from tonymac is censored), and tonymac forums seem to be pretty dead (and they tend to all suggest the same things).
  12. This is possible, you will want to format the storage drive to a file system that is supported by both OSs. I suggest exFAT, mainly because FAT32 has a 4GB file size limit.
  13. If you use the clover bootloader, all you need to do is download and install the nvidia web drivers, then add the nvda_drv=1 bootflag to your config.plist.
  14. 1. I know an X99 hackintosh IS possible, after all, I have one. But I am not 100% sure about your specific motherboard. The 5820K and GTX970 are just fine though. 2/3. I do not know anything about using partitions for OSX, I simply installed 2 extra drives (an OS drive and a storage drive) specifically for OS X, it is safer that way anyways. 4. I am confused by this question, but I will try and answer it. Yes, you can have Windows on Drive A and OS X on Drive B (that's how I have it set up). On the pulling "to the Windows drive", keep in mind that OS X uses the HFS+ file system, which is not supported by Windows. You can not access your OS X files while booted into Windows, also OS X can read NTFS file systems, but can not write to them, so you can access your Windows files while in OS X, you will just not be able to write any files to your windows disks/partitions. If I didn't answer this question correctly let me know. 5. As far as I know there is no pascal support yet for OS X, but the web drivers will support a 980 Ti for sure, and maybe a Titan X. I am not sure I have seen a mac or hackintosh with a Titan X, so don't quote me.
  15. They both do the same thing. From what I can tell, Mako uses its own view rendering system. (Which is why this is so hard to figure out... I only have one set of docs, and no thing else to work with)
  16. I have decided to take a dive into PHP frameworks, and decided to try out Mako Framework after looking through the docs and getting a feel for what it offered. Sadly, I have hit a bit of a snag that the docs don't really help me with. If you scroll up a little on this page, you will see the section that talks about parent and child templates. Here is the code I have thus far: Admin Controller: <?php namespace app\controllers; use mako\http\routing\Controller; use mako\view\ViewFactory; class Admin extends Controller { public function login(ViewFactory $view) { return $view->create('login'); } } partials/adminHead.tpl.php: <!DOCTYPE html> <html lang="en"> <head> <meta charset="{{$__charset__}}"> <title>{{block:title}}{{endblock}}</title> <link rel="stylesheet" type="text/css" href="../assets/css/materialize.css" /> <script src="../assets/js/materialize.js"> </script> </head> login.tpl.php: {% extends:'partials.adminHead' %} {% block:title %} Admin Login - My Blog{% endblock %} <body> <nav> <div class="nav-wrapper"> <div class="col s12" style="margin-left: 20px;"> <a href="#!" class="brand-logo">Logo</a> <ul class="right hide-on-med-and-down" style="margin-ri: 20px"> <li><a href="sass.html">Sass</a></li> <li><a href="badges.html">Components</a></li> <li><a href="collapsible.html">JavaScript</a></li> </ul> </div> </div> </nav> The result that I get is {% extends:'partials.adminHead' %} printed out above the rendered HTML, instead of what the docs claim. From the fact that I haven't found anything other than docs in relation to this framework, I am going to assume that it is not very popular, but I hope someone here can help. In case my description of the output was not clear, here is a picture: Just in case you want it here is the stackoverflow link: http://stackoverflow.com/questions/37873539/mako-framework-templates
  17. Most database work would require SQL... which is not at all proprietary to MS... MS' implementation is, but you can run an SQL server on linux easily, using solutions like MySQL, postgres, or any of the other hundered or so SQL implementations out there.
  18. MIT and Harvard founded a free course sharing site, with courses from 85 universities and industry leading companies and organizations from around the world (Including the likes of UC Berkeley, BU, Australian National University, The University of British Columbia, ASU, CalTech, Columbia University, Princeton, Hong Kong University of Science and Technology, Notre Dame, Colgate University, Microsoft, The Mexican Ministry of Education, IEEE, Linux Foundation W3C, Amnesty International, and more). This site is called edx. While this site offers a lot of courses, and especially programming ones, I wanted to highlight Harvard's CS50 course. If you take this course on the edx site, you will be getting the actual course taught at Harvard University for the previous year (so until Dec 31, 2015 you will take the course from 2014). You can take it at your own pace, and attack it in any manner you wish. The course is free, and if you want a certificate that is verified from edx and the institution that made the course you can pay $90 for the verified track. (Both "tracks"are exactly the same, the only difference is the certificate that you get for completing the course). Here is a link to the edX homepage: http://www.edx.org And to CS50: https://www.edx.org/course/introduction-computer-science-harvardx-cs50x EDIT: lol, looked at the list and didn't see it on there, turns out I ended up posting it under another of the same suggestion xP... wow
  19. Ok, so I dont assume that many people will have one of these, however I will ask hoping that SOMEONE can help. So I recently bought a 13w3-M to DB15-M cable so that I could use my old Sun SPARCclassic. Now the problem that I am having is that there is no video reaching the monitor. My question is could it be that the monitor is too new or something. I dont know what the max res of the sparc is, but the monitor that I am trying to connect it to is 1280x1024. It hasn't been used in a long time (like probably 13 years), but it isnt like anything got into it. It is completely clean and dry, and has been for those 13 years. Suggestions?
  20. Only 35 years off.... I'm 19.
  21. I wonder if it is real... but it is a bit odd that that acct has 1 post Once it finally got there I had a new part in 2 business days!
  22. This year... so 19. I have always taken apart and upgraded computers, but this was my first full build.
  23. EVE Online... so cool, looks like I am an immortal space bad-ass!
  24. check with your retailer. I know newegg has been giving them to those that bought 900 series cards
  25. I literally had a 2 hour long argument with a "techie" about how the heartbleed bug wasn't a virus. And how a web browser worked.
×