*** circuits_github has joined #circuits | 00:04 | |
circuits_github | [circuits] therealprologic deleted Issue94 at 45fe299: http://git.io/xjYb2A | 00:04 |
---|---|---|
*** circuits_github has left #circuits () | 00:04 | |
ircnotifier_ | e5922b2a4aa3 by prologic: More Python 3 compatibility fixes | 00:15 |
*** prologic_ has joined #circuits | 00:18 | |
*** prologic_ has quit IRC | 00:19 | |
*** prologic_ has joined #circuits | 00:20 | |
*** prologic_ has quit IRC | 00:20 | |
*** prologic_ has joined #circuits | 00:21 | |
prologic_ | b'hi' | 00:21 |
prologic_ | b'hmm' | 00:21 |
*** prologic_ has quit IRC | 00:21 | |
*** prologic_ has joined #circuits | 00:23 | |
prologic_ | hi | 00:23 |
prologic_ | much better | 00:23 |
prologic_ | ♞ | 00:25 |
*** prologic_ has quit IRC | 00:27 | |
*** prologic_ has joined #circuits | 00:28 | |
prologic_ | hi | 00:29 |
prologic_ | cool | 00:29 |
*** prologic_ has quit IRC | 00:29 | |
Yama | hey prologic u have any idea how to make use of "show desktop version" feature on mobile browsers? | 00:42 |
Yama | a hint for what to search should be enough :D | 00:42 |
prologic | it's just a link | 00:45 |
prologic | that renders the page differently | 00:46 |
Yama | ya... how does the page knows about the requesting desktop version? | 00:46 |
prologic | http://stackoverflow.com/questions/19824896/switch-user-from-adaptive-to-desktop-version-of-site | 00:47 |
prologic | it's a different resource? | 00:47 |
prologic | a link | 00:47 |
prologic | why do you want such a useless feature anyway? | 00:48 |
prologic | it's not that useful :) | 00:48 |
Yama | but.... | 00:48 |
prologic | serve up one content only | 00:48 |
prologic | and make it adapative | 00:48 |
prologic | using twitter bootstrap responsive for example | 00:48 |
Yama | ya.. dats the current state | 00:48 |
prologic | so it works on both mobile and desktop | 00:48 |
prologic | without serving up different content | 00:48 |
Yama | but big thumbnails and massive of code is delivered, too | 00:48 |
prologic | that's why there's JavaScript :) | 00:53 |
prologic | the web is comprised of two things mainly | 00:53 |
prologic | presentation - HTML/CSS | 00:53 |
prologic | application logic - JavaScript | 00:53 |
prologic | well three | 00:53 |
prologic | data - API(s), Resources, etc | 00:53 |
Yama | i try to mind JS T_T | 00:54 |
Yama | but well, since werkzeug, i can use ifs in ma templates | 00:54 |
Yama | thats a nice idea | 00:54 |
Yama | but would like to anyway give the usery an option to see the full website | 00:55 |
prologic | up to you | 00:57 |
Yama | ahhh | 00:57 |
prologic | templating should be used spariling ihmo | 00:57 |
Yama | they change the OS and browser | 00:57 |
Yama | well, shouldnt be much | 00:58 |
Yama | u can see current state here: https://yamahi.eu | 00:58 |
Yama | and i just would like to customize it more | 00:58 |
ircnotifier_ | 54137d2ad128 by prologic: More Python 3 compatibility fixes | 00:59 |
ircnotifier_ | e53a0306f948 by prologic: Fixing examples for Python 3 compatibility | 00:59 |
Yama | \o/ | 00:59 |
prologic | wow | 01:02 |
prologic | you run your own irc server too? | 01:02 |
Yama | na | 01:05 |
Yama | the game server/website is on a server, which is part of a irc network | 01:05 |
Yama | ^^ | 01:05 |
Yama | so i can use my own domain XD | 01:05 |
Yama | prologic executing this: config.read('msg.ini') | 01:07 |
Yama | would reload the config, right? | 01:07 |
Yama | hmm... i would need to set it to global i guess | 01:07 |
prologic | sorry, what? | 01:07 |
prologic | context? | 01:07 |
prologic | don't use globals | 01:07 |
prologic | :/ | 01:07 |
Yama | just reload a config file | 01:07 |
Yama | XD | 01:07 |
prologic | what's config? | 01:08 |
Yama | just messages to spam in irc | 01:08 |
Yama | a ini file | 01:08 |
prologic | no | 01:08 |
prologic | what is the object config? | 01:08 |
prologic | a ConfigParser instance? | 01:08 |
Yama | config = configparser.ConfigParser() | 01:08 |
Yama | config.read('msg.ini') | 01:08 |
prologic | right | 01:08 |
prologic | pydoc configparser.ConfigParser | 01:08 |
prologic | short answer: I don't know off the top of my head | 01:08 |
Yama | k | 01:09 |
prologic | but I think you have to re-read the file | 01:09 |
Yama | thx^^ | 01:09 |
prologic | be calling config.read() again | 01:09 |
prologic | I think | 01:09 |
Yama | thats what i think too^^ | 01:09 |
prologic | normally though I use argparse.ArgumentParser | 01:09 |
prologic | CLI options/arguments | 01:09 |
prologic | not config files | 01:09 |
prologic | usually | 01:09 |
prologic | and environment variables | 01:09 |
prologic | config files can get messy | 01:09 |
prologic | and quickly become an excuse to dump everything into them | 01:09 |
prologic | with all sorts of useless configuration options you never use | 01:10 |
Yama | i even changed the config options from the jaraco irc to load from ini XD | 01:10 |
Yama | if things are static for long time, i like to save them in ini's | 01:10 |
Yama | ya but configurableness is good if u publish things... | 01:11 |
Yama | yis, reading again works | 01:17 |
Yama | \o/ | 01:17 |
Yama | and i feel much more comfortable with setting-files XD | 01:17 |
Yama | i have only CLI args for backuping things and cleaning up old backups | 01:18 |
Yama | but all are executed via cron | 01:18 |
prologic | you should still use circuits :) | 01:18 |
Yama | i will try it out, that for sure | 01:18 |
ircnotifier_ | 6f2b203a0f97 by prologic: IHMO Bridge should behave like this but seems to be broken by design | 01:35 |
ircnotifier_ | fd43add2d8b4 by prologic: More Python 3 compatibility fixes for examples | 01:35 |
Yama | https://github.com/Nama/kirika/commits/master | 02:17 |
Yama | updates :D | 02:17 |
Yama | but ya no circuits yet | 02:17 |
ircnotifier_ | cea14dd43313 by prologic: Python 3 compatibility fixes for examples | 02:30 |
ircnotifier_ | 3523593f8d59 by prologic: Backed out 6f2b203a0f97 | 02:30 |
ircnotifier_ | 3c023e95633a by prologic: Python 3 compatibility fixes for examples | 02:30 |
ircnotifier_ | bada9bf8c71c by prologic: Python 3 compatibility fixes | 02:30 |
Yama | good think i didnt updated yet XD | 02:32 |
Yama | thing* | 02:32 |
Yama | mobiles = ('iPhone', 'IPod', 'Android', 'BlackBerry', 'Windows Phone') | 02:47 |
Yama | ua = str(request.user_agent) | 02:47 |
Yama | if any(word in ua for word in mobiles): | 02:47 |
Yama | mobile_user = True | 02:47 |
Yama | else: | 02:47 |
Yama | mobile_user = False | 02:47 |
Yama | :D | 02:47 |
Yama | the detection of flask isnt such well... so that i need to check the raw string | 02:48 |
Yama | iphone users need to jailbreak or use another browser for requesting desktop version.... haha XD | 02:49 |
Yama | my sublimelinter doesnt shows me any pep8 errors :/ | 03:01 |
Yama | gn8 | 03:34 |
ircnotifier_ | 637372079574 by prologic: Code Cleanup | 04:42 |
prologic | I need test users for my little irc server I'm writing | 06:23 |
prologic | :) | 06:23 |
ircnotifier_ | f32ca4b05413 by prologic: Make where the sample irc bot connects to configurable via sys.aargv[1:] and exit on disconnect | 06:25 |
*** sapiosexual has quit IRC | 07:15 | |
*** robert_ has quit IRC | 11:36 | |
*** FSX has quit IRC | 13:10 | |
ircnotifier_ | 4fb8ac774b64 by prologic: Updated .coveragerc to reflect protocol package structure | 14:02 |
ircnotifier_ | 26c697889434 by prologic: Consider two events equal if their name, args and kwargs match | 14:02 |
ircnotifier_ | e6eebdd6f61e by prologic: Improved IRC Protocol (and tests) to use a factory pattern for commands | 14:02 |
ircnotifier_ | c421ca4174aa by prologic: Fixed numeric handling in irc examples | 14:02 |
ircnotifier_ | a779df34d089 by prologic: Code Cleanup and Python 3 compatibility fixes | 14:02 |
ircnotifier_ | 19abd1637f4f by prologic: Backed out 26c697889434 | 14:02 |
ircnotifier_ | 02a29f56a7db by prologic: Python 3 compatibility fixes | 14:02 |
ircnotifier_ | 4c23be6c35e6 by prologic: Fixed event equality test in IRC Protocol tests | 14:02 |
ircnotifier_ | fb43b9dd4ff3 by prologic: Guard against invalid file descriptors | 14:02 |
ircnotifier_ | 411f17a11cca by prologic: Fixed disconnect event handler in test client | 14:02 |
*** koobs has quit IRC | 14:27 | |
Yama | hi | 14:43 |
Yama | brb, mirc update | 14:44 |
*** robert_ has joined #circuits | 18:01 | |
*** robert_ has quit IRC | 18:01 | |
*** robert_ has joined #circuits | 18:01 | |
kdb | Heya robert_ | 18:01 |
*** An_Ony_M1ose has quit IRC | 20:00 | |
*** An_Ony_Moose has joined #circuits | 20:01 | |
kdb | Howdy an_ony_moose | 20:01 |
*** FSX has joined #circuits | 21:30 | |
kdb | Hey fsx | 21:30 |
*** FSX has quit IRC | 22:36 |
Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!