« first day (1340 days earlier)      last day (3833 days later) » 

00:02
@DaveRandom returned
@DaveRandom did you find it?
@JukEboX have you given me read only access? If so can you give me write access so I can remove the user/pass from the history?
oh yeah
ok you should have it now
ok sorted
Right, because of what I just did, it's probably easiest if you delete your local repo and clone the one from bitbucket again
I just rewrote history, which means your local repo won't play nice if you just try and pull, and at best you'll end up with a meaningless merge commit and at worst it will blow up in your face
but since there is now only one commit, you may as well just nuke your local copy and clone it again
moral of the story is: don't rewrite history unless you absolutely need to
LOL ok. I will delete local. Other than that do you see what my code is like so far?>
Granted it isn't JESUS code but it works
I want to do a GIT pull right?
I've seen a lot worse
00:13
@DaveRandom phew.
@DaveRandom i did a git pull but it is not pulling all the files down :(
@JukEboX Just delete the directory that contains your repo, and then open a cmd and go to the parent directory, and run git clone https://[email protected]/JukEboXAuDiO/the-competitive-network.git
@JukEboX which page are you trying to get working?
@DaveRandom out of curiosity do you ever squash commits or fix conflicts with rebase?
@DaveRandom Login and Logincheck.php
@cspray In what situation, sorry?
@DaveRandom oh crap hang on I have the wrong files in there
00:21
@DaveRandom Just in general. It was in regards to "don't rewrite history unless you absolutely need to". Was just wondering what "absolutely needs to" means for you
@JukEboX Meaning that's the wrong codebase or there are just some missing files?
I need to make a different code base
hang on I need to figure out how I did that
@cspray Well in this case it was to nuke some accidentally commited credentials. Actually I rewrite history quite a lot because I'm a dozy bastard, in reality for me that means "unless you're reasonably confident no-one else has pulled those changes into their tree yet"
Ah, ok
@JukEboX Have you got the fresh clone set up yet?
00:24
I've only just recently started using Git with other people and interested in how people do their workflows and what not. My first team-based development efforts was an improperly setup SVN.
@cspray I've only very recently figured out my own workflow properly
just made a new git DIR
The setup where if the server hard drive holding the repo got to about 6~ GB nothing would commit, nothing would sync it would basically turn into a lump
The last 7~ months I was there that hard drive hovered somewhere between about 9-6 GB
@cspray Yeh but that's just every svn setup ever
@DaveRandom I guess
It infuriated me
I lost untold hours of work to that damn thing
00:26
@DaveRandom
Ok I have a new link for you
svn is unbelievably stupid, I really just cannot comprehend how people work without local branches
it's a question of what you are used to I guess
more than used to
@DaveRandom sent you a new invite. That is for the one I need to work on. Its a little old but I can show you
it's a question of your interaction model
@JukEboX OK yeh I see it, do I have write access to it?
00:28
Yes
Connection file is in the ELEMENTS folder
OK give me a few mins
Well, and granted I haven't been doing this professionally for very long, but I've yet to see an interaction model that agrees with both SVN and my brain. ;)
The Login And logincheck are in the Corporate folder
@cspray There are lots of different models - nvie.com/posts/a-successful-git-branching-model
00:29
@ircmaxell I was working on this problem this whoel time I completely forgot about the game :)
@ircmaxell Brutal, is that from today?
@Danack Yea, I see that one linked to a lot
no penalty at all on the play
Never actually seen a system with it implemented though
00:29
At least it looks like an accident
@DaveRandom so I guess if I can figure out those 3 files I can do the rest myself
@DaveRandom foot above shoulder == instant penalty though?
well, he touched the ball before touching the other player. Pretty much an accident, not a penalty, I'd say.
aaaaaaanyway, back to work
But he touched the ball with his head
And he hit the guy with his shin
00:32
@DaveRandom should I change the connection info on the bitbucket page or on the files itself?
@Danack Didn't say it wasn't, I just meant it doesn't look like he meant to boot the guy in the face
And if I change the files on the local machine do I have to do a pull push or just a push?
@Danack nope: fifa.com/aboutfifa/footballdevelopment/technicalsupport/… still up to the discression of the ref to call it "careless" or "reckless"
that should be pretty clearly reckless, but I guess the ref saw it differently
@JukEboX It's quite complicated if you want to nuke stuff from history, do you want me to do it again and then you can just nuke you local and clone?
CLone didn't work last time
Sigh
I am using TortiseGit
00:36
@JukEboX use the command line for this
I tried It didn't take
delete the directory, then open a cmd and cd to the parent directory
Says git isn't a valid command
Oh right, you haven't rebooted maybe?
Don't bother at the moment
Where is git.exe installed?
@DaveRandom I already restarted
00:38
Your env vars aren't set up right then
ARGH. Git took forever to open
when I installed it. It doesn't seem to like my 64bit machine
What's the path to your git.exe?
C:\Program Files (x86)\Git
thats where it is installed
C:\Program Files (x86)\Git\bin
OK, hold down the windows key and press the pause/break key
00:40
Then click "advanced system settings"
Then click "environment variables"
Then in System variables find the one called "path" (case insensitive)
ok
Wait I have one that look slike this "Path"
not a lowercase "path"
That's the one (case insensitive, as I said) Select it and click "edit"
then in the "variable value" field, add ;C:\Program Files (x86)\Git\bin to the end of the value. DO NOT overwrite the existing value, you need to append the extra path to it, and you need to include the semi-colon
00:45
OK now if you open a new cmd (it will have to be a new one, it won't work in any you already have open) the git command should now work
There we go: )
.
OK right, give me a minute while I fix the history
ook let me know
Right done, if you cd to whatever directory you want your repos to live in and then run git clone https://[email protected]/JukEboXAuDiO/cfs-service.git you should be all good @JukEboX
here goes
There we go
Ok so
Now
00:50
Right, now give me a fews mins while I have a smoke and then I'll look at the actual problem :-P
Connection file I can do the PDO on
LOL ok no problem. Let me check on Dinner
@DaveRandom I have to fix something for dinner so can you give me a couple minutes? I will be back. I am sure we both need a break. Need like 15
@JukEboX if you're still there, what is the address you are putting into the browser to test this login page?
Also Login.php and LoginCheck.php seem to be the same file...
01:22
@JukEboX bitbucket.org/JukEboXAuDiO/cfs-service/commits/… - not sure if that's what you want but I have to go to bed, I'll be around tomorrow evening (approx 8pm UTC) if you want to continue. You can pull those changes down to your local repo with git pull to test
nite @all
@DaveRandom I am back
 
1 hour later…
02:39
Man it's quite in here
/join
 
2 hours later…
04:55
good morning
 
1 hour later…
06:04
morning
06:43
moinz
06:59
mornign
would that be a proper implementation of controller/view? paste.jesse-obrien.ca/5Mk
Good morning, folks.
@Patrick What's $handler?
The route?
the routehandler
@Patrick The matched route from the router?
07:15
yes
am trying to install cakephp but stopped by .htaccess issue. most of the solutions on the net gave me either 404 or 500 error or a blank page! I request you to please guide me to get out of this nightmare. stackoverflow.com/questions/24257690 thanks
Good morning. :-)
@now-r-never Solution: don't use cakephp.
good monins
@SecondRikudo at least this time I should ;) I followed community documentation, It didnt help me to make my htaccess work.
07:27
Someone with good knowledge should start building some table/post about the most known frameworks. Like: Symfony, Zend, Laravel, CI, CakePHP, Kohana, Silex,.. with a table of comparision. ( like this: media.konigi.com/interface/quicken-comparison-table-1.png ) With some feedback for each.
^ garbage. Stopped reading at "MVC" column
Good morning
obviously it's outdated
it's just wrong. MVC has nothing to do with any framework..
07:33
@AlmaDo s/famework/php framework
@Ocramius Okay okay. Two entities. Server, Client. One server has Many clients. I've put in an addClient(Client $client) method and followed annotation docs, but whenever I persist a Server, it's clients don't get persisted (from new, I mean). $server->getClients() is just null. I don't need to persist each individual client first do I? Is there anyway around this?
@PeeHaa debatable. Because.. in MVC, at least model layer will contain business-logic (nevermind if that pseudo-MVC because of PHP, or real MVC because of persistent state language). And framework can not contain any business-logic since that logic is project-specific. That's why my point - "MVC" can not be applied as a term when we are speaking about frameworks. It's just.. different things
Im am totally not yet 'into' this but what is you learn writing your own oo structure and merge it with a db orm like Doctrine?
@Duikboot Put it this way, I've just created a new controller and method, and I want access to the User objects in the database. I literally do: $userRepository->findAll(); and bam, one line of code I have every user object.
No SQL, no nothing. That's it
You mean 'thats it when doctrine comes in?'
07:37
@Duikboot I mean "that's all I need to do if I want all the users"
Because I have doctrine
Yeah indeed. :) that's pretty nice.
Other Question. I want to learn more about 're-usable-code'.
For now I am writing over and over and over my login/register classes. Isn't there an good article or something where package-dev comes in? I would like to digg deeper in re-usable code for multiple projects.
@Duikboot Hmm, I think the framework / microframework can provide the login / authentication process for you.
Like Symfony's firewall object set
@Duikboot Use Silex, or better silex-auth-skeleton
@AlmaDo "MVC enabling framework"
I was starting with silex a week ago. But look Let's say I write a login/register script. When you are logged in you have access to certain pages. ... How to make that piece of code {register+login+validation..} in 1 package for another project?
07:45
E.g. the JS MVC FWs
@Duikboot If you look at Symfony docs, they have a login thing in the cookbook. Involves setting up a login and logout route, having the fields for logging in as _username and _password id's, and a few other things. Once you've done all this, it 'just works'. That silex-auth-skeleton thing above is the base silex repo, with the symfony login thing figured out.
+ Doctrine
+ Auryn
+ Twig, and a few other niceties
morning
@Duikboot Here's an example of the firewall to make login, logout work. And everything else is protected by authentication: link
Would you suggest starting from the skeleton part or from an empty Silex project?
@PeeHaa I think Alma Do means that MVC is not something that is implemented in a framework, but in the application itself. So using any "MVC" framework and performing DB queries in your controller makes your application non-MVC, while having a bunch of files without any framework that separate your code to be data source - dispatch - presentation pretty much makes it MVC
07:50
@Jimbo User roles is defined as a string but set to an array in the constructor?
To get comfortable with with i?
@Patrick Where's this?
^ ignore me. I'm a complete noob in OOP & MVC
morning
07:52
@Patrick Ah, when persisted roles are comma separated in DB
"ROLE_USER, ROLE_ADMIN" (this is done by the framework for authentication, not me)
7 mins ago, by PeeHaa
@AlmaDo "MVC enabling framework"
@salathe morningi !
@Jimbo that sucks... :( why not use something with users/groups/permissions instead?
@SergeyTelshevsky Also MVC is not possible in only PHP :-)
07:55
^ because .. PHP dies (:
@Patrick Honestly haven't looked into it, the few roles available have been more than enough for me so far
Am I the only one who already feels dizzy when MVC is mentioned? :)
<-- this guy too ^
@Jimbo we are spending a lot of time right now converting from role based access to permission based access at work... doing it right the first time would have helped a lot :)
Iran v Nigeria was as painful to watch as listening to a Laravel developer trying to explain OOP principles.
:D
07:56
@PeeHaa MVC is impossible with single request-response flaw and php has nothing specific to do there. :)
@Leri This is the PHP room so there is your php specific ;-)
@Patrick Do you perform this in each individual controller or just a base area like that roles thing? I found ACL in the symfony docs...
we have a custom solution. So we have entities for each user/group/permission and then the user has a method may where we check for the permission
$user->may('manage_pages') for example
a group has multiple permissions and a user can belong to multiple groups
@PeeHaa I got Nigeria in the draw.
@PeeHaa You won't understand how deep that tweet is... I'm Nigerian :(
08:00
@iroegbu I know ;)
:D
@Leri btw, I've added Win script & some manual pages Is that readable?
When you set-upstream on a git branch is the upstream only for that branch?
Also what's upstream? :P I have a rough idea but wanna be sure.
@Leri why is mvc impossible?
@Fabien it's where you're pushes are headed
@FlorianMargaine How would you update the view when the model is updated in only PHP?
08:05
because MVC is about updating the view over time?
@AlmaDo At the first glance pretty readable. I have some real work to do so I'll have better look later. The most interesting part for me is api, atm.
@FlorianMargaine Classical MVC requires the model to have persistence
BTW, I think it's a good idea to think of real name. my-unit maybe? @AlmaDo
@SecondRikudo oh..
It's possible in Node for example, because you can have variables which are out of the request context. But not with PHP where you don't.
08:07
@SecondRikudo WEBSOCKETS! :)
@Leri may be.. I have bigger problems with manual right now. I.e. - many things to do..
@PeeHaa Good luck with that.
@SecondRikudo how do you call the mvc of php then?
@FlorianMargaine My Very Code.
On a more serious note, even though classical MVC cannot be achieved. What you might call "Web MVC" can be done by saving and rebuilding the Model's Object Graph with each request.
So, you get a hit to the controller, you construct the model graph, you make a change in the model graph, you save the changes to storage, your model then takes data from that model, and then everything is deconstructed.
Next request, everything is reconstructed from the newer state according to storage.
The idea that you separate input, output and logic.
That hasn't changed.
08:20
Anyone can recommend some package for working with IMAP painlessly?
Was chat offline for few minutes or was it just me?
@Leri it was
Help us make the comments awesome: Vote on them so that it's 11, 10, 9, ... meta.stackoverflow.com/a/260550/871050
Belgium - Argentina who's winning!?
@Duikboot Belgium Algeria, not Argentina. And it hasn't started yet.
Google "world cup" @Duikboot
08:28
alergia i mean :D srr
I got kicked in the hand yesterday and it immediately swelled up and bruised. Swelling has gone down now but it's very sore to squeeze. Should I bother trying to get an x-ray?
@Fabien: I'd recommend not getting medical advice from a bunch of programmers. :-)
Taking my own advice has the same issue :P
Please help us order the comments on this answer!
Can haz stars? ^
08:39
@Fabien Yes, you should bother. :)
But it's long blud. :(
Something just came up in my head... Is it hard to track images? What I mean by that.. : detect clicks, where it's used...
If it's broken you'll be having issues for a long time (probably, while (!EOL)). If it's not you only waste some time and money (depending on your health insurance) that worth here because of potential danger, imho. @Fabien
Wife and I will walk to A&E after work.
Needs two moar voats!
08:46
It'll be quite funny if it's broke. But I don't think it is. I have 7+ stress fractures in my right tibia but somehow I brak my hand.
@SecondRikudo better?
Perfect! Thanks :)
user924016
Morning
@Leri It's free here. NHS.
@AlmaDo Inside docs add link to the next/previous chapters. It's really annoying to get back and enter in different section. :)
@Fabien Great. We have the same system, however, awfully implemented. :)
08:55
Ours isn't exactly amazing. I've had a broken leg for over a year and a half.
any of you good with Symfony RequestParam annotations and constraints?
@Leri I'll do it when I'll finish the docs :p
What do you think about providing ACL metadata via annotations?
YO
Whats wrong with the following:
if(strpos($_POST['original'], "http://" || "https://") !== false) {
$stringURL = $_POST['original'];
} else {
$stringURL = "http://".$_POST['original'];
}
$string = file_get_contents($stringURL);`
@Leri your interest will be in "Testing API" + "Testing results" parts, it seems
09:04
@RahulKhosla strpos doesn't work like that. Read the manual entry.
If I type google.com I get an error.
@SecondRikudo Needle needs to be in a var?
@RahulKhosla You're providing a boolean to needle.
@RahulKhosla strpos($_POST['original'], "http://" || "https://") does NOT mean "position of http:// or https://"
"http://" || "https://" is a boolean, it's equal to true.
Im wanting, if userinput begins with http:// or https:// do this. else add http://
09:07
Just a small problem on associations
0
Q: Doctrine OneToMany - Correct object instantiation / persistence ordering and annotations

Jimbo My use case is simple. There are two entities: Server and Client. Each Server can have Multiple Clients. This should be pretty simple really... What I need I require the following as a result of this: Calling $server->getClients() will return all Client entities associated with that serve...

bugs.php.net/bug.php?id=67461 Interesting PHP version. lol.
@Jimbo OneToMany and ManyToOne on the other side
@bwoebi :P
you are using OneToMany on both sides
@Leri Terrible
09:11
@Patrick So the Client should have ManyToOne?
Also, does this means it's the "inverse"?
@RahulKhosla no one here will provide you with a correct solution you can just copy&paste, you won't learn it that way. I'll give you a hint though: strpos expects ONE string as its second argument. if you want to assert the absence of two different strings, you'll have to call strpos twice.
so OneToMany has mappedBy and ManyToOne the joinColumn
mornings
@PeeHaa Could you elaborate on that?
morning!
09:18
Mornign Dave
FIXED IT
Thanks @SecondRikudo
$string_input = $_POST['original'];
$http_s = 'http://';
$lets_check = strpos($string_input, $http_s);

if($lets_check !== false) {
$stringURL = $_POST['original'];
} else {
$stringURL = "http://".$_POST['original'];
}
@Jimbo Edited little bit. Rollback changes if you feel they are wrong.
@RahulKhosla You should probably be checking that $lets_check === 0 rather than !== false - you want to make sure it's at the very start of the string...
@RahulKhosla except now you no longer check for https at all...
@TobiasGies Yeh working on that, I can't use an array.. :s
09:26
cv-pls: Docs, Backlog | Tools: Explain, phpdbg, devdocs.io | Addons: [cv-pls], PHP Manual Linkifier | Snippets: ext/mysql | Reference: QAs
7
Any of you know whether this is the correct way to put a Constraint to a request parameter when using FOSRestBundle in Symfony? @RequestParam(name = "password", requirements = @PasswordPolicy, description = "Password")
@Leri For one I hate annotations in most cases. And for two what is that meta data of yours?
How can someone who doesn't work for Apple start work on something like github.com/ankurp/Dollar.swift 2 days after the thing is made public? I'm sorry but there's just no way that you can understand a language and its stdlib well enough to accurately see the gap that needs filling in that time...
Also I swear that I am going to hunt Lester down and take the ? key off all of his keyboards.
@PeeHaa Information that will be used to load relevant rule for ACL before it's actually used. For example, if callback has annotation @namespace\UserRoleAllowed(<list of allowed roles>) and @namespace\OtherPreconditionChecker() system should create those two classes, pass relevant dependencies to them and add to ACL. So while dispatching it automagically checks if requested route is available.
@DaveRandom he can still use the software keyboard or copy and paste them from the internet
09:41
Silex: Suggestions for adding a path in the head tags? I want to have a dynamic baseurl. github.com/duikb00t/2014_silexblog/blob/master/resources/views/…
Can I get some feedback on this controller/view implementation? http://paste.jesse-obrien.ca/5Nd
Is it violating the command/query separation principle?
@Leri Eeeeeew no don't do that
For all that is sacred don't "hardcode" the permissions / roles into annotations
That instantly kills any reusability
This is getting what I want.. but I don't think that's a good approach? {{ app.request.Host }}:{{ app.request.Port }}
@Gordon I guess I'll just have to shoot him in the face instead then.
@PeeHaa Fair point. What's alternative way i.e. what would you do?
09:51
@Leri What I am correctly doing is having an interface. And a file based and database based list which implement the interface which is used by my acl contanier thing
So, basically, permissions are pushed in database (i.e. easily modifiable source)? Did I get the point properly? ^
@Jimbo You are used with Silex?
@Duikboot Yesh
@Leri Yes. What I do is maintain a list of Class::method, role and permissions
@Jimbo And idea what I am doing wrong? I am trying to get the base url to load my assets like bootstrap... i.imgur.com/AMuR5mQ.png ( localhost is not the clean to use ;) ) Oh and I installed the 'twig bridge ' "symfony/twig-bridge": "~2.3",
10:04
Has anyone had the need to send large files via a website uploader?
@StephenWolfe Yes
@PeeHaa what did you use?
@PeeHaa ok what about on ur own website?
@Duikboot So you're trying to load assets right? Like JS / CSS files?
10:06
@StephenWolfe That is my own website ;)
Yes :)
addons.mozilla.org is broken?
@Duikboot Cool, so what you want to use is the {{ asset("js/base.js") }} kind of thing
You need to set up the twig directory first, one sec
10:06
yes @StephenWolfe
@PeeHaa I like the idea, however, it has one quite large drawback. Couples application with database.
@PeeHaa what size can it go up to?
@Leri No no no no no.
no
@Duikboot First, here's the code I'm using for the Twig service provider
        $app->register(new TwigServiceProvider(), [
            'twig.path'    => dirname(dirname(__DIR__)) . '/web/views',
            'twig.options' => [
                'debug' => (($this->config['environment'] === 'dev') ? true : false),
                'cache' => dirname(dirname(__DIR__)) . '/cache'
            ]
        ]);
@PeeHaa I am looking to upload design files going up to about 7gb
10:07
$app['twig']->addExtension(new AssetExtension($this, ['asset.directory' => '/assets']));
@PeeHaa You can tell by the jagged, poorly rendered custom font /runs
@PeeHaa What am I missing then? :D
@StephenWolfe I have set it up to 2G, but making it bigger is a matter of setting up the server config
@DaveRandom hahahahahahaa
10:08
@Duikboot See the above code, change the asset.directory to point to your assets directory
@PeeHaa ah just like changing the php.,ini
@Duikboot Then you can just do {{ asset('js/file.js') }} if your assets directory has js/file.js in it
$app['twig']->addExtension(new AssetExtension($this, ['asset.directory' => '/assets']));
@Leri I have an interface for this. I can simply choose whether I would like to use a simple file with an array in it, a yaml formatted file, json, from database or whatever floats my boat at the time
10:09
@StephenWolfe Yes
@PeeHaa lol @ the TnCs
Basically my uploader is a simple wrapper around github.com/Valums-File-Uploader/file-uploader
@Duikboot Yep, this means it'll use the /web/assets directory whenever you call {{ asset() }}
Or if you don't need to integrate the uploader in a website but just dropbox functionality:
@DaveRandom down btw
AssetExtension does not exists yet it says.
When I lookup that I see: use Entea\Twig\Extension\AssetExtension; @Jimbo
10:17
Hey guys can any one help me in this please stackoverflow.com/questions/24257759/…
@PeeHaa Dammit. Any idea how to start chatzilla in new FF?
Although I'm not totally confident I haven't just opened Chrome
@PeeHaa Better than annotations, however, still feeling kinda meh with that kind of acl.. If I won't come up with better idea, I'll be implementing that. thanks.
Oh wait I figured it out I think
Anyone knows of a tool to generate a curl command?
@Leri np don't forget to ping me if you figured out a better idea
@DaveRandom :P
@DaveRandom No idea. By downloading mirc?
:)
10:28
@PeeHaa no, because I'm not paying actual tangible money for a god damn irc client, I've never bought a copy and I never plan to
I also don't run cracked s/w unless it's absolutely necessary, and in this case I get along with chatzilla well enough, it was FF's fault that I had a problem
Also I'm wondering how long it's going to be before the FF website just redirects to the Chrome website
A week ago I found Quassel IRC for myself, if you have a private vps, this is the shit
@SecondRikudo what do you mean? generate it from what?
@DaveRandom yeah mozilla is making some reeeeally stupid choices
10:35
@Patrick I have a URL, and data, and headers, and I want to generate a single cURL command line from that.
@SecondRikudo a keyboard is a tool :)
@Duikboot Yep, that's the right one, I have the following in my composer.json (ignore dev-master nubs)
"entea/silex-twig-simple-asset-extension": "dev-master",
@DaveRandom I have NO cracked software at home now (apart from... Mac OS X because I want a hackintosh). Legit Windows 8, games bought...
(Got windows 8 key off reddit for £13 :D)
Feels good to be paying for games, music next
@SecondRikudo I think writing a quick class that puts the command together will be the easiest way. I don't think there is a premade solution for that
@SecondRikudo You could use Artax instead ;)
@PeeHaa obligatory you're a tool
10:40
@Jimbo No can do. command line cURL
@DaveRandom :)
@SecondRikudo Well if it's just a simple case of generating a POST request from those inputs always, should be about 5 lines or sth
Although if you have a message body you'll prob want to dump it to a temp file or sth
Unless you're actually executing it from PHP, in which case you can probably proc_open and write it to stdin
10:58
@DaveRandom Is you're a tool more a british thing?
like "nutter"

« first day (1340 days earlier)      last day (3833 days later) »