« first day (1365 days earlier)      last day (3597 days later) » 
00:00 - 17:0017:00 - 00:00

5:00 PM
in the school for which you are making the site
 
I don't make the site for a school.
 
I always do searching before asking, but I have seen nowhere satisfiable answer
 
@tereško Do you have any other idea? I doesn't make the page for a organisation or something like that.
 
5:20 PM
@tereško a question I got asked: How would you do data integrity validations when your database is not ACID compliant? (i.e. Mongo)
 
@SecondRikudo Would "pray" be a valid answer? :P
 
@PeeHaa No, you'll just have to do it in the application-level code.
Question is where :)
 
:)
 
In the Domain Object? In some sort of Validator object?
The mapper? :|
 
@SecondRikudo not sure how much "not being ACID" has to do with this. It's more about "not being SQL"
 
5:25 PM
@tereško Well, there are nosql database which do data integrity checks.
CouchDB for example
one of the letters in "ACID" means that the database is responsible for the validity of data in it
 
@SecondRikudo I don't think what you want is possible.
 
@NikiC Sure it is. My answer about praying makes it possible :P
 
@NikiC What... validate data..?
 
@SecondRikudo Maybe I don't understand what you mean, could you be more specific?
But ensuring data integrity without support from the database sounds absolutely impossible to me
 
acid is not about validating @SecondRikudo
 
5:27 PM
@NikiC Why? Make sure that all data entering into the database follows certain rules
That's what I mean "username is between 5-50 characters" "email is unique in the database"
 
ahhh
well, that has nothing to do with acid ^^
 
that ^
 
It's a good thing I asked then ^_^
 
anyway, you have two options as I see it: push the integrity checks into domain layer or create another indirection between mapper and noSQL storage.
the former would be preferable
but
this seems like "using the wrong tool" scenario
 
Acid is the crazy shit that databases do to ensure that you don't loose any data even if your CPU happens to catch fire in the middle of a transaction ;)
 
5:29 PM
^ he's too fast
 
@tereško Well, the usecase is something that will have billions of records, across many nodes in a cluster
We will use with Mongo or Cassandra.
 
5:48 PM
@SecondRikudo Either you care about data integrity (and use an appropriate solution) or you don't and use mongo
 
Umm @tereško you're about to get suspended
 
meh
I'm currently playing The Pit
 
6:13 PM
Suspended for?
 
@Fabien flags
 
6:39 PM
@NikiC or that take care to swamp IO before anything else bad could happen to your data.
 
7:00 PM
evenigns
 
heya mr dave
 
Yo Dave
 
7:20 PM
To format and legit windows or not to format. That is the question.
Screw it. May as well.
 
@Fabien You can generally legit-ify windows without formatting if it's the same version
There are a bunch of license key changing tools, I think there's an official M$ one
 
Yeah I was thinking so but after all the remove WAT etc I have done... format might not hurt
 
7:35 PM
@DaveRandom , waiting for you patiently
 
@rdlowrey what's the reasoning behind not respecting the ssl/crypto_method for the proxy patch?
(always using METHOD_ANY)
@shortCircuit for what, sorry?
I am very forgetful...
 
For you to show up and me to ask a question
 
Oh right, well go for it
Not promising I will be able to give you a good answer though
Although I can probably direct you to someone who will, depending what it is
 
regarding yesterday's lesson ... B+ trees are used in database indexing ... I was wondering, when I did a normal tree, I had a predefined structure, but now the variables inside the structure depend on parameters provided by users in create table , even if I am not doing a b+ tree , like, just taking a structure as input (which uptil now I was thinking to be a representation of create table), how do I access its properties,
the whole thing is kind of blur
 
Evenings
 
7:43 PM
'vnngs
 
@shortCircuit Ahh right, yes I can't give you a good answer to that question. Anything more than the most trivial indexing is basically black magic as far as I can tell. @AlmaDo might be able to help you out but I suspect he is afk, quite possibly until Monday
It would probably be worth asking a "proper" question on the main site
@RonniSkansing sup dawg
 
But it would be closed , because I don't have a code , but i'll try, this profile has been a little lucky, unlike the previous qblocked on 1st week
 
@shortCircuit It's not a case of luck, it's a case of asking good questions ;-) but you are right, if you can't demonstrate a concrete code problem then you might not do so well on SO - programmers.SE might be a better fit
 
@DaveRandom that's wong, I'm always here, but rarely active on weekend
 
@DaveRandom messing around with angular.. abit tired.. just baking up abit.
Enjoying your weekend?
 
7:48 PM
I have spent today being way too hot
 
not sure what's the question about b-trees
 
Which a lot of people here will laugh at, because it's only been about 27C
"only"
I do not deal well with anything over about 22
 
Its been nice
 
@AlmaDo Honestly I don't understand the question. @shortCircuit is trying to learn about some of the theoretical concepts behind RDBMS implementations and while I can help with the basics, stuff like arbitrary indexing is somewhat beyond my understanding
(in terms of how to implement it)
 
8:03 PM
YES that's one!
 
You watching the match?
 
Hmmm?
Oh sorry, I was busy not giving a flying fuck
 
@David yeah
 
If that was a dutch player who did that it would have been a red
Robben was straight through on goal
 
Yes 100%
 
8:07 PM
This brazil team is awful. Jo is playing instead of Fred, I dunno who's worse
 
The entire team kinda sucks imho
 
They sound like two builders. I dunno how a nation of 200 million people has fred and jo as the 2 best strikers it's unbelievable, especially being brazil
They should bring on fat Ronaldo. He's probably still better than Jo
 
@DaveRandom well, that depends of many things. Different DBMS may have different implementations and limitations or specifics of some index engines or structures
for instance, MySQL barely supports such simple thing as hash indexing (only for MEMORY engine)
and it focuses mainly on b-tree..
 
HAHAHAHAHAHA
 
8:16 PM
Oh man
If this is another trashing haha
 
maybe I should watch it after all
 
Damn. Download windows from MS site. use MS tool to make a bootable USB and I get an invalid .iso error.
 
Take a look at this: pastebin.com/WdnXjvwy
 
Le sigh.
 
Have I done it right?
Verifying the password etc?
 
8:17 PM
David Luiz with a beautiful header right to the 6 yard box
 
@PeeHaa Stop trying to out do ze Germans plz.
 
:D
 
Anyone watching the match? :o
 
Yeah
 
Not good for Brazil.... again.
 
8:19 PM
It could be another trashing in the making
 
Wouldn't be surprised if everyone got fired.
 
@RahulKhosla Please double check the return value of the password_verify function
 
I can see a red card for David Luiz at some stage. He gets very hot headed
 
@David No one will give you a red card. Rest easy.
 
@NikiC So:
if ($_POST['password'] == password_verify($_POST['password'], $db_hashed_password) && password_verify($_POST['password'], $db_hashed_password) == true {//do somethign}
?????
 
8:22 PM
Went to Costco today. There was a tub of mayonnaise. A massive fat tub... perhaps a bucket might be a better description.
 
@RahulKhosla No, I meant, look at the return type the function has
 
@RahulKhosla password_verify returns a boolean.
 
It returns true.
 
and think about whether your comparison makes sense
 
Please read both password_verify and password_hash manual entries.
 
8:23 PM
I almost bought a 90" TV too but I didn't have a spare £9,000.00
 
Basically: If someone enters an empty password, he'll always be logged in ;)
 
Ahhh so
if (password_verify('$_POST['password']', $hash)) {echo 'Password is valid!';}
 
@SecondRikud I have now edited again my question with an own try code and shown what I expect.
 
@RahulKhosla yes ;)
 
Gotchya thanks.
 
8:25 PM
@RahulKhosla Read
 
@RahulKhosla Now also consider the case that there is no user with that email
and also the case that $_POST['password'] is not set
 
I see they still haven't fixed the bug whereby entering console commands into chat doesn't work
 
@SecondRikud What dows rov-pls mean?
 
It means "please reopen this question"
@Grischa j.mp/18eUa3Q
 
8:34 PM
First time in a few years I miss having a CD/DVD drive :(
 
8:54 PM
@NikiC I checked the following:
Just email = No + reverse
Wrong email, Right pass = No + Reverse
Right on both = Yes + Correct cases and special characters
No email, no pass = Yes, should I be using my if-statment like:
&& empty($_POST['email'], $_POST['password']) {} ?
 
i want to know if this is a good question: how do I use ajax to take a php script I already built to plug directly into an ajax chat room?
 
@RahulKhosla not exactly sure what you mean there. best to put it into code, then it's easier to understand ^^
 
trying to move away from the border of ban
 
Sure gime a sec.
 
it's been longer than a sec
 
9:02 PM
@NikiC This seemed to work pastebin.com/eS5YhmFj
 
@RahulKhosla empty($_POST['email'] == false) doesn't really make sense ^^
 
But it worked.. :s
I have no idea how.
 
for what?
 
It echo'd No
 
you don't really need to check the case that an empty email was provided
 
9:07 PM
@DaveRandom How long does a rov-pls take?
 
what you need to check is the case where the provided email is not in the database
 
I need to check if the form is empty.
 
why?
 
If I click submit, it echo's Yes.
 
even after you removed the $_POST['password'] == before the password_verify?
 
9:10 PM
Yup
 
weird
 
so should I keep this?
 
anyway, this is what I'd have written:
if ($db_hashed_password && password_verify($_POST['password'], $db_hashed_password))
This checks that fetchColumn() actually returned something
it should also handle the case of the empty form
Additionally you should extend if (isset($_POST['submit'])) towards if (isset($_POST['submit'], $_POST['password'], $_POST['email'])) to ensure that there are no notices if form fields were not submitted
 
9:27 PM
@Grischa ...as long as it takes, it largely depends what time/day it is (so how many users are online). You only need one more vote now, I imagine it won't be too much longer :-)
 
@NikiC I just tried
if (isset($_POST['submit'], $_POST['password'], $_POST['email'])) { and still "Yes".
 
@DaveRandom Thank you. Now it is open again. Maybe you can help me their.
 
9:57 PM
 
Hi everyone, can someone help me with a quick advice pleas e?
 
@MohamedAnisDahmani Never pick up smoking
yw
 
good one, but mine is with PHP :)
 
In that case: don't ask to ask
 
user895378
@DaveRandom Ah, I didn't even think about that. I'll make it respect the ['ssl']['crypto_method'] context setting between now and RC3.
 
10:02 PM
@PeeHaa ahahahhaa
 
I have a bunch of users on a users table., 3 groups on a groups table and a messages table.

Each group contains a number of users.

I use the messages table to send short messages to the group and I have a boolean value that tells if the message has been read or not.

How can I know who, among the group's users, has read the message that I send to the group?
 
Don't store the group that read it but the user
Using the user it should be easy to find out what group read it
Unless users can switch groups in which case you need to store both
But having a single person read the messages for the entire group seems odd to me
 
Hello :)
 
hey @Jocelyn
long time
 
Yes, I had stopped visiting SO
 
10:08 PM
Well, users can be assigned to many groups or just one.
The message I send is stored in the messages table with the ID of the group it is intended to and a value that defaults to: "not read"

When a user logs in to his account he will see that he has a new message.
When he reads it the value will be : "message read"

How can I keep the value "not read" for the other users of that group
 
Don't do it based on group
It just doesn't make sense
 
okay, how should I proceed then ?
 
Have the field group to know which group the message is for and add an extra column for the user in the group
 
assuming we have 50 users in that group?
what is the best approach?
 
The question is whether you are going to insert rows per group message for every user or whether you are going to log which users have read said message
I think those are the two approaches you have
 
10:13 PM
Every user has the possibility to send a message to a predefined group including the one he is in. Then all those who are among that group will be notified and could read the message.

I can manage all the operations mentioned except one: I want to keep the notification for an unread message for the users who did not yet read it among that specific group.
 
Just create individual rows per user
 
say the group "Admin" has 3 users and one among them sent a message to the group.
If 2 of them did read their how should do to keep the third notified?
 
Unread table with message id and user id
 
so following your approach, use relational tables to save "Unread" for all the users?
 
Yes
Or do it the other way around and store a record for everybody how has read it
 
10:16 PM
so for a group of 100 users save 100 rows ?
 
But I would do the first I think
@MohamedAnisDahmani yes
 
hmm
that requires some thinking...
isn't that too heavy ?
 
That entirely depends on your application whether you do A or B. I cannot make a judgement
 
ok, I am going to give that a try
Thank you very much
PeeHaa !
 
np
 
10:20 PM
yeah, no ponies! :)
 
:-)
 
heheh
ok @HamZa I'm going to ask something scary
Is there any foolproofish regex to remove unneeded whitespace in a HTML document?
Or a decent and fast library that you may know of
 
@PeeHaa Not that I know of
 
k tnx
 
10:33 PM
@PeeHaa do you mean like minify the html?
 
Yes exactly that
 
grunt does things like that no?
 
Also removes stuff like the closing body and html tag
 
@PeeHaa Rule of thumb though. Compile on the server and no compiled files in Git.
 
10:34 PM
JS
...
 
You can specify what you want to compile I believe
 
Its for a dynamic PHP site
 
@Fabien "compiling html" sounds weird..
 
Compressing then :P
 
10:37 PM
I need that only as something that can do it on the fly in php :)
 
30
Q: How to minify php page html output?

m3tsysI am looking for a php script or class that can minify my php page html output like google page speed does. How can i do this?

 
Doesn't gzip do a great job?
 
Yeah saw that, but that pattern looks broken
 
hehe hellish anyways
 
You working on your templating? :)
 
10:39 PM
s/working on/dicking around and trying shit
 
It's a way I guess.
But not what you're after...
 
The problem probably with that is:
 
Formatting. BBIAB... hopefully
 
You could always just use the last pattern /(\s)+/
 
{% spaceless %}
    <div>
        <img src=""> <strong>foo</strong>
    </div>
{% endspaceless %}
The space between <img src=""> <strong> would also be removed
I guess
 
10:41 PM
Isn't that a job for CSS?
 
@Fabien It is, but I don't always have control over what people do
 
otherwise &nbsp; ?
Ah right
Bastards
 
How to change the php.ini file? I find my with phpinfo, but I don't know how access it.
 
do you see something wrong in this sql statment?? $read = $pdo->prepare("SELECT title,content FROM news WHERE (title LIKE ? OR content LIKE ? ORDER BY date DESC) UNION title,content FROM pages WHERE (title LIKE ? OR content LIKE ? "); (because its not working)
 
Yeap bastards
 
10:42 PM
I'll be back.
 
@Grischa you access it like how you access any file on your system
 
@HamZa thank you. I changed now /www to / for the FTP path on the web. Then I could access /etc/php5.3/php.ini ?
 
@Grischa Are you on a shared hosting'?
 
@HamZa I think so.
I don't use a own server, if you mean that.
 
@Grischa then you most likely can't change it
 
10:52 PM
I see. How to get useful error messages in PHP?
 
@Grischa google it, first result :)
 
I was already their, but if I can't change the php.ini file
 
@Grischa Read the full thread. There are some htaccess solutions and some php-fu. Again, shared hosting is crap and you should get a vps if you want to get serious
 
It is only a hobby project.
 
@Grischa Have you thought about setting up a local server? You might even create your own VM or use vagrant
 
10:58 PM
I don't know this things and I think I can't handle it.
 
@Grischa What's the goal of this project and what's the deadline?
 
The goal of the whole project? It is to help pupils.
 
I see...
@Grischa Are you on windows?
 
Yes, why?
 
@Grischa some might kill me for this: you might install WAMP and develop locally. You can install extensions, mess with the configuration etc...
 
11:05 PM
I don't think the errors would help me ;-(
 
wut?
 
I can't change a function, how I would like to and nobody will help me, because they want questions from programmer with more knowledge.
 
@Grischa in the top of your php file add
error_reporting(-1);
ini_set('display_errors', 'On');
And spend 30 min trying to setup something so you can work locally =] you will enjoy it
 
@RonniSkansing I have a little cms with create the site with several files, what file exactly I have to change? I think I can also use a php sandbox but all this wouldn't help me.
 
@Grischa sorry, I did not catch what you where trying to do at all. If you are on shared hosting you probably do not have access to the .ini file.
 
11:14 PM
@RonniSkansing exactly but you also can help me with my PHP problem. I don't understand why nobody will help me, because this is don't much work for you guys and I spended many hours without results.
 
lies
 
ssssh
 
@Grischa I have not seen any question/php problem. If you have something in a pastebin or something, maybe..
No need for a invite to a chat room =]
 
Good lawd there's a lot of dodgy chrome downloads ranked highly on bing search results.
 
11:18 PM
@Grischa it's a bit harsh if you're doing this for a good purpose but the reality is that if you can't do it and you don't know someone who can do it for free then you need to hire someone. This small problem you're talking about might take hours to solve especially because of the communication barrier over chatrooms
 
First legit Windows OS evar!!! My MS cherry.
 
:P
 
@RonniSkansing Do you have see my question about converting CSV tables? I can put it on pastebin, but I need the changes.
 
yes, it seems to have some -- points..
 
Guys when resetting object properties do you use unset() or set the property to null?
 
11:21 PM
@Hamza I don't know how to hire someone I can afford. I have asked two guys, who helped me already on SO, but they have not the time for this freelancer job.
 
@Grischa I am not sure how to help you with that question.. It is abit hard to read.. or I am having a hard time understanding the specific issue..
Did you write it?
 
@RonniSkansing the function now create tables with a start row and a end row variable paramter. I need for every new table a line like CreateLangTable($file, 105, 124, 5); the last paramter is for a internal link for this table.
@RonniSkansing No, I didn't write the working code like it is mentioned in the beginning.
 
@Grischa I probably missed that part. I am afraid I can not help you. You need a minimal understanding of the code you are using to get help with it. Honestly the code in the question you should just throw out and start from the bottom or hire someone
 
@billmalarky Null. Unset is weird.
 
unset(null)
 
11:28 PM
@Danack seconded, but I always like to ask around before going with my gut.
 
@Ronni You mean the working code???
 
@billmalarky btw unset actually may have different effects that just setting null.....theoretically doing reflection on the class might(?) no longer show the property existing for the class. The same as when you don't declare the property before using it.
 
@Grischa yes, almost everything I read of code in that question, working or not, imo the quality is too low.
 
@Danack I was actually wondering that myself, but currently I"m too lazy to test it. I'm just doing the null thing.
 
imho unset should just blow up
 
11:30 PM
And I'm too scared to test it.
 
fuck it, I've got xdbug going gimme a few min
 
@Ronni but it works perfectly and I have waiting many days to get it from somebody.
 
@Grischa sorry, it is my best advice
 
@rdlowrey Gasol to the bulls and Melo staying with the Knicks
 
@Ronni liked I already said: I don't know how to hire someone I can afford. I have asked two guys, who helped me already on SO, but they have not the time for this freelancer job.
 
11:34 PM
Then there is only one option left.
You will have to learn it all yourself, and do it yourself
 
@Danack okay it appears that when you define object properties but don't set them, they default to null of course but do show up on the object. If you unset the property they are dropped off the object entirely. Setting them to a value, then setting them to null keeps them on the object but back to the default state of null.
 
@Ronni I have a full-time job and I think their are people, who searching such a freelancer job.
 
@billmalarky As I said, unset is weird.
 
@Danack So it would be unwise to use unset mainly because you usually want to know that properties "exist" even if they are null to help with readability and understanding the object.
 
@Grischa sure, but how will you know if they wrote you horrible code
or make sure it will not be too expenssive next time you need to update
security etc etc
 
11:37 PM
@Grischa You really don't understand programmers. Any programmer who has free time will be working on their own projects. Almost no hackers (apart from the most unimaginative ones) are sitting around waiting for a project to work on.
 
@Grischa free lancing does not mean what you think it does :P
 
The 'free' is highly misleading.
@billmalarky Pretty much. The not being slapped by anyone else who has to work on the code is a nice benefit though.
 
@all I'm definitely not good enough to apply PHP like a real programmer and certainly I don't understand programmers ;-). I had in the years in which the project exists (12 years) even programmers who helped me without paying for it.
 
@Grischa Let's just say stackoverflow might be a bad place to search for free programming services
 
@HamZa I have got 2 perfect answers from other questions , which helped me a lot and I know that I can't find free programming services here.
 
11:52 PM
Much installing
 
@Fabien maybe you could try this out chocolatey.org
 
Meh. I just VM everything these days.
All I need from Windows is git, vagrant and virtualbox
 
and console2
 
My laptop here is missing VT-x =[
 
11:57 PM
Fresh os requires a fresh wallpaper
Anyone wanna help pick?
 
I hate wallpapers
 
simple backgrounds are the best. I use a solid black color
 
How can you hate wallpapers?
Just pick a nice dark one.
 
@HamZa Same here only blue
 
00:00 - 17:0017:00 - 00:00

« first day (1365 days earlier)      last day (3597 days later) »