@PeeHaa埽 Actually, now that I think on it, I think Twig is the first open-source project I contributed too, because I found it so awesome at that time :D
@ircmaxell the idea is nice, but then you a) have generic objects (which should not implement tostring) otherwise you need one tree of those objects just for one encoding.
better to encode into a generic format like XML and then pipe into post-processing.
@PeeHaa埽 the reason i find it easier when i'm wearing my design hat is that it emphasizes the "viewness" of a template; keeps me from even considering business logic, and the relatively small number of functions keeps it simple
@PeeHaa埽 of course it's up to the person writing to keep business logic out of the view, but it helps to keep me from doing so when i'm writing twig files instead of php.
anyone here familiar with puppet and can tell me how to manage modules in puppet? it feels kinda odd to use a provisioning tool that cannot provision it's own modules.
@dyelawn So as I read it what you are saying is: because I make bad design decisions I use some extra templating system with crazy syntax instead of fixing the design issues? :P
@ircmaxell I can tell vagrant to tell puppet where to look for modules on the host but that still requires me to checkout the modules into my repository which feels superfluous when in theory I should be able to tell puppet use module xy in version z and download it when necessary. just that i cannot figure out how to do that
@PeeHaa埽 1) i don't think the syntax is crazier than raw php, but that's too opinionated to really provide any value 2) i do occasionally make bad design decisions when i've been working on development for a couple months, then jump to a designer role. twig helps me not do that.
@ircmaxell modules like github.com/puppetlabs/puppetlabs-mysql. I can install them manually on the VM with puppet module install puppetlabs-mysql but since I am already using puppet it just feels natural wanting to do that through the puppet manifest and then simply tell the VM to install that.
@Gordon i use librarian (ruby people seem to prefer berkshelf) to grab cookbooks, which i think are similar to modules. so i have a simple shell script that first grabs all the cookbooks, then provisions.
@Gordon just a ruby gem. i have no clue about ruby, but it was super easy to install. i did it expressly for the purpose you're describing, just with cookbooks instead of modules
I'm building an analytic tool and although I can get IP address, browser and operating system from the user agent I'm wondering if there is a possibility to detect same user without using cookies or local storage? I'm not expecting code examples here just a simple hint to where to look further.
...
@Gordon then i can even use a Gemfile with bundler to install librarian (as well as other gems that might be pertinent; usually capifony, knife, and chef-rewind) if it's not there
I actually like Ubuntu, I installed it at my sister's laptop a few years ago, she is running it since, didn't get a single support call (she's hardly a computer expert) and it works.
@Gordon ok. bundler == composer; knife == "chef cookbook (which == puppet module) code generator"; chef-rewind == "some messy thing that seems like backwards inheritance that i don't see the benefits of over inheritance but all chef people are like, 'USE CHEF-REWIND'"
@Baba i understand that, but your detection rate drops when a bug is fixed, you're looking for 'the best method' so you can 'have' the bug integrated in you script but you can't rely on a bug due to it's nature
I use entities in XML and I don't understand my results.
I have an XML file wich calls an external entity, this is config.xml :
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE config [
<!ENTITY totalInstances SYSTEM "totalInstances.xml">
]>
<config>
&totalInstances;
</config>
Here i...
server {
listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
root /usr/share/nginx/www;
index index.php index.html index.htm;
# Make site accessible from localhost
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then not fall back to index.html
try_files $uri $uri/;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
2013/04/20 17:14:15 [error] 10950#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/nginx/www/geva/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /geva/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost"
@ircmaxell @dyelawn ok. I think I am approaching this from the wrong angle. I'll try git submodules and vagrants provisioning first before I try with a shell script or librarian
@dyelawn basically, you check out the modules you want into your project repo and then tell vagrant's puppet provider where the modules are. when you then boot the vm, puppet will use the modules. that means I will have them on the host, but I guess I have to live with that.
@dyelawn it feels kinda superfluous to me to have the submodules in my repo but seems to be less hassle than writing a shell script or using librarian. especially since I am trying this on Windows and my last attempt at using Windows+Ruby together was … lets say … improvable.
@Gordon the advantage i've found with librarian is that i can just pull down the git repo, run my shell script, and have everything installed (like .gitignore with vendor files in composer), so it's really portable.
First off this question in in relation to this question. My issue is that a friend of mine has upwards of around 300 or so arrays that she needs to insert into the database. I get the database part as you notice in the question I linked I have that part down. My question however arises on just ho...