• What are you working on? v7
    7,420 replies, posted
[QUOTE=/dev/sda1;35678173]Okay, well. I think automerge is done having a fit. Anyways, picture time. [img]http://i.imgur.com/pX3ap.jpg[/img] The API name/site name is censored as I'm still testing some security bugs. Not sure how bad they are. I'll find out. Flask + SQLite3 Here's some Jinja2/Flask templating magic: [code] {% for entry in entries %} <h2>{{ entry.title }}</h2> <p>{{ entry.body }}</p> {% else %} <p>Can you believe it? No entries here!</p> {% endfor %} [/code] I prefer writing that to any PHP/Ruby. Oh, also it has sandboxed execution and escapes HTML in dynamic scripting to prevent XSS attacks. Hooray.[/QUOTE] I love jinja2 as well and use it a lot with the GAE. There is also a php interpreter for it (not nearly as feature rich though) called h2o. It means I can easily keep a consistent UI between my plugin stuff (which has to be in php) and my server stuff (which can be in anything but I choose python) as I only need to write one set of template files for both.
[QUOTE=jaybuz;35682283]It's definitely more readable which is nice when skimming through code.[/QUOTE] Which is incredibly important since you spend as much, if not more, time reading code as you do actually writing it when you're working on bigger projects, especially if you're not the only developer. [editline]23rd April 2012[/editline] [QUOTE=/dev/sda1;35678173]Here's some Jinja2/Flask templating magic: [code] {% for entry in entries %} <h2>{{ entry.title }}</h2> <p>{{ entry.body }}</p> {% else %} <p>Can you believe it? No entries here!</p> {% endfor %} [/code] I prefer writing that to any PHP/Ruby. Oh, also it has sandboxed execution and escapes HTML in dynamic scripting to prevent XSS attacks. Hooray.[/QUOTE] [url]http://liquidmarkup.org/[/url]
[QUOTE=swift and shift;35681485]that's erubis, not ruby. [editline]23rd April 2012[/editline] I prefer writing @count.zero? rather than @count == 0. There's no difference, I just think #zero? looks nice[/QUOTE] Oh, I didn't know about that one! Using that now. I also didn't know about erubis yet.
Sorry if this has been covered before, but: What are the most widely used / new & upcoming methods of server side web development which aren't PHP yet still have a C-like syntax? (node.js I suppose, are there any others?) I'll be developing on windows and hosting on linux, so support for both platforms is required.
Why do you care if it has C like syntax?
[QUOTE=KmartSqrl;35687661]Why do you care if it has C like syntax?[/QUOTE] I find it much easier to quickly scan than other languages (perl, ruby etc), I'm comfortable with it and I'm not looking to put hundreds of hours into learning a new language for this one project - yet it'd be good experience not to use PHP. I respect that many people prefer other types of language, but it's not what I'm looking for.
How do you develop a new world of possibilities? It is the importance of tinkering with new ideas and the potential that they bear. Whenever you find yourself thinking, it's not just the idea that matters, but the entire process behind it. Do not just look at things directly, but feel their shape and form and become a part of them. No new things have the same significance as what matters the most to you. Believe in the work you do and never get ahead of yourself. When you start on new things, make sure to keep track of the old ones and never forgive a wasted possibility.
[QUOTE=TerabyteS_;35688368]How do you develop a new world of possibilities? It is the importance of tinkering with new ideas and the potential that they bear. Whenever you find yourself thinking, it's not just the idea that matters, but the entire process behind it. Do not just look at things directly, but feel their shape and form and become a part of them. No new things have the same significance as what matters the most to you. Believe in the work you do and never get ahead of yourself. When you start on new things, make sure to keep track of the old ones and never forgive a wasted possibility.[/QUOTE] nigga u high [editline]23rd April 2012[/editline] I'm sorry.
Hi again guys, I've got a few questions about content management systems since I'm doing a full-cycle (mostly) front-end job for an old buddy of mine. He's a fellow who wants to publish videos on both YouTube and show them on his site, along with some game articles and reviews he writes with a small staff for a little more than just fun. Now back when I was far more active in web development, everyone and their grandmother used Wordpress, and it was fair for a project like this. My questions are, has the industry changed much with their infatuation over Wordpress? Should I still be using a heavy skinning approach for my client like always with WP stuff? Are there any better alternatives out there that are popular or extremely fantastic in general? Should I be using Tumblr for something like this, or any other existing on-site publishing platform?
[QUOTE=StinkyJoe;35688525]nigga u high [editline]23rd April 2012[/editline] I'm sorry.[/QUOTE] Hi Stinky. Do you look at your PMs?
[QUOTE=Dotmister;35687789]I find it much easier to quickly scan than other languages (perl, ruby etc), I'm comfortable with it and I'm not looking to put hundreds of hours into learning a new language for this one project - yet it'd be good experience not to use PHP. I respect that many people prefer other types of language, but it's not what I'm looking for.[/QUOTE] You know you can use curly brackets in ruby if you want to right? The syntax for the languages you listed is not even remotely dissimilar enough to take "hundreds of hours". If you want good experience, step outside your comfort zone, maybe you'll find something better than what you've been using.
This...is...awesome: [url]http://vim-adventures.com/[/url] [editline]24th April 2012[/editline] [QUOTE=Dotmister;35687581]Sorry if this has been covered before, but: What are the most widely used / new & upcoming methods of server side web development which aren't PHP yet still have a C-like syntax? (node.js I suppose, are there any others?) I'll be developing on windows and hosting on linux, so support for both platforms is required.[/QUOTE] (takes cover) C# is actually kind of awesome.
[url]https://github.com/toaster468/FP2RSS[/url] Finally found the time to update my repo. Any critiques for my coding? (Other than PHP) [editline]23rd April 2012[/editline] Wow I totally forgot that half of my comments are outdated/completely off topic.
[QUOTE=toaster468;35692046][url]https://github.com/toaster468/FP2RSS[/url] Finally found the time to update my repo. Any critiques for my coding? (Other than PHP) [editline]23rd April 2012[/editline] Wow I totally forgot that half of my comments are outdated/completely off topic.[/QUOTE] you have 2 functions doing basically the same thing [url]https://github.com/toaster468/FP2RSS/blob/master/fp2rss.php[/url] [editline]23rd April 2012[/editline] When I did a FP browser for fun, here is what i did [php]function fp_start($action,$auth,$extra = NULL){ // $auth has both username and password together $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,'https://api.facepun.ch/?action='.$action.$auth.$extra); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); $result = curl_exec($ch); curl_close($ch); return json_decode($result, true); }[/php]
[QUOTE=jung3o;35692882]you have 2 functions doing basically the same thing [url]https://github.com/toaster468/FP2RSS/blob/master/fp2rss.php[/url] [editline]23rd April 2012[/editline] When I did a FP browser for fun, here is what i did [php]function fp_start($action,$auth,$extra = NULL){ // $auth has both username and password together $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,'https://api.facepun.ch/?action='.$action.$auth.$extra); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); $result = curl_exec($ch); curl_close($ch); return json_decode($result, true); }[/php][/QUOTE] now write that using only TCP Streams
[QUOTE=Bomber9900;35677028]can somebody tell me how vizze.net/dm/ looks? I'm nowhere near even close to finishing but i'm working with a bigger resolution and things tend to look fucked on smaller resolutions[/QUOTE] Seems like, I currently have a 17" 1280x1024 screen, looks like this to me: [thumb]http://i.imgur.com/wttFj.png[/thumb]
[QUOTE=Bomber9900;35677028]can somebody tell me how vizze.net/dm/ looks? I'm nowhere near even close to finishing but i'm working with a bigger resolution and things tend to look fucked on smaller resolutions[/QUOTE] you know you can just test it by making your web browser smaller or pressing ctrl++ or Ctrl+- (Ctrl+0 to set back to normal)
[QUOTE=jung3o;35697426]you know you can just test it by making your web browser smaller or pressing ctrl++ or Ctrl+- (Ctrl+0 to set back to normal)[/QUOTE] You're talking about the page zoom, to actually see the website smaller he'd have to resize the browser window. There's a few addons for chrome & firefox for that though, if you look around a bit.
Currently working on a .net project for the city that keeps track of dead homeless people.
[QUOTE=Torekk;35697324]Seems like, I currently have a 17" 1280x1024 screen, looks like this to me: [thumb]http://i.imgur.com/wttFj.png[/thumb][/QUOTE] Thanks, looks like I'll have to try an alternative to what i'm currently doing then.
Has anyone used Knockout JS before? I was using Backbone for a project I'm working on but I really don't need MVC, I just need a nicer way than jquery of auto-updating lots of info on the page.
[QUOTE=adamjon858;35702451]Has anyone used Knockout JS before? I was using Backbone for a project I'm working on but I really don't need MVC, I just need a nicer way than jquery of auto-updating lots of info on the page.[/QUOTE] Using it at work right now and I love it.
[url]http://xoom3r.net/[/url] Working on my portfolio website Basically some HTML with no fancy jQuery
[QUOTE=antiChrist;35704771][url]http://xoom3r.net/[/url] Working on my portfolio website Basically some HTML with no fancy jQuery[/QUOTE] No fancy JQuery?! Not from what I see: [code] <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> var scrollSpeed = 35; var current = 0; var direction = 'h'; function bgscroll(){ current -= 1; $('div.clouds').css("backgroundPosition", (direction == 'h') ? current+"px 0" : "0 " + current+"px"); } setInterval("bgscroll()", scrollSpeed); </script>[/code]
[QUOTE=rookwood101;35712403]No fancy JQuery?! Not from what I see: [code] <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> var scrollSpeed = 35; var current = 0; var direction = 'h'; function bgscroll(){ current -= 1; $('div.clouds').css("backgroundPosition", (direction == 'h') ? current+"px 0" : "0 " + current+"px"); } setInterval("bgscroll()", scrollSpeed); </script>[/code][/QUOTE] That's bordering on shit jQuery.
I the only bad thing I can see with that code is the fact that the DOM is being searched for div.clouds every time it needs to change the background position instead of caching it.
setInterval, setInterval with string argument, leaks variables into the global scope,
There's an [url=http://api.jquery.com/animate/]animate[/url] for a reason. :~) [editline]26th April 2012[/editline] Fuck off Charlie, I'm not a furry.
[QUOTE=Jelly;35717510] Fuck off Charlie, I'm not a furry.[/QUOTE] what
[url]http://vizze.net/blog[/url] - got bored and am working on a simple blog
Sorry, you need to Log In to post a reply to this thread.