Jump to content
Phishing Emails & YouTube Messages - Fake Giveaway Read more... ×
Search In
  • More options...
Find results that contain...
Find results in...

col_crunch

Member
  • Content Count

    49
  • Joined

  • Last visited

Awards


This user doesn't have any awards

1 Follower

About col_crunch

  • Title
    Junior Member
  • Birthday 1995-03-09

Profile Information

  • Gender
    Male
  • Location
    Boston, MA

System

  • CPU
    Intel i7-5820K @ 4.0
  • Motherboard
    Asus X99-Deluxe
  • RAM
    32 GB ADATA XPG Z1 DDR4-2133
  • GPU
    PNY NVIDIA GeForce GTX 980
  • Case
    Corsair Obsidian 750D
  • Storage
    Samsung 840 Pro (256GB), Corsair Reactor Series (120GB), WD 1TB Green, Toshiba 2TB 7200RPM
  • PSU
    Corsair HX850i
  • Display(s)
    3x Dell S2715H
  • Cooling
    Corsair H100i
  • Keyboard
    Corsair K70 RGB
  • Mouse
    Corsair M95
  • Sound
    Logitech G930
  • Operating System
    Windows 10 Pro
  • PCPartPicker URL

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. col_crunch

    The under 100 line challenge!

    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 )
  2. col_crunch

    PHP Framework

    I just made a new project, no idea what was wrong with the old one.
  3. col_crunch

    PHP Framework

    I know, I was saying that the cache shouldn't be an issue.
  4. col_crunch

    PHP Framework

    I am doing this locally before sending it off to a server.
  5. col_crunch

    PHP Framework

    So, it works on a new install, but what confuses me is that I did nothing differently.
  6. col_crunch

    PHP Framework

    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.
  7. 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.
  8. col_crunch

    PHP Framework

    Yes, the welcome page works fine.
  9. 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).
  10. 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.
  11. col_crunch

    El Capitan Hackintosh

    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.
  12. 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.
  13. col_crunch

    PHP Framework

    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)
  14. col_crunch

    PHP Framework

    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
  15. col_crunch

    Server OS

    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.
×