« first day (1354 days earlier)      last day (3587 days later) » 

12:00 AM
@cspray It could be worse. At least there's no significant whitespace
 
shivers
I never could get into Python for that reason
 
Here's the thing: I like Python. I really hate that I like it.
 
I could see liking Python
But I really can't get past the white space
I know that sounds silly but I'm just too OCD
It was hard enough to stop typing parentheses (sometimes) and semi-colons (all the time)
 
:)
 
Also the first time I ran into a bug that boiled down to some weird tabs vs. spaces issue I would put my fist through my computer
 
12:03 AM
It could be worse, it could be VB
 
hah!
I was just reminiscing about my first "programmer" job
Writing VBA
 
Dim thing = func(var1, var2)
func var1, var2 ' Yeh, thanks, not even consistent in parens for calling the came thing
 
I put programmer in quotes because I wasn't actually paid as a programmer. I was just some drone doing shit in Excel that shouldn't be done in Excel
 
Also whoever decided ' was an acceptable comment char needs shooting in the face
right, I'm being shouted at and need to go to bed
nite@all
 
See ya
 
12:05 AM
Same here. Only without the shouting
noight
 
@cspray I am the VBA king, and it is possible to be a real programmer writing VBA, but that tends to go with a desire to open an artery on a daily basis
Right, really going now
nite
 
Still can't figure out how to edit this query to not show the current ID without compromising the query. pastebin.com/Kt4weqkj
I tried AND id != :downloadID
 
@RahulKhosla If you don't want a field to be returned in the query don't use SELECT *?
 
I need to select about 1000 results
Wish SQL had something like * But :downloadID
 
12:13 AM
@cspray If you're suggesting I use BETWEEN I can't. I'd have to select 1–100 skip 101, then go to 102–300
 
No, I'm not suggesting you do anything other than not use SELECT *
What does using between have anything to do with the original problem of "to not show the current ID"?
 
How would I not use SELECT *?
Can you give me an example?
 
@RahulKhosla By manually listing the actual fields that you want returned in the query
Seriously?
 
Again
I have 1000 fields.
Im not going to list 1,2,3,4,5
 
@RahulKhosla And you need all 1000 of those fields in this query?
 
12:15 AM
Yes.
It searches the FULL db
The query is for a Related Product listing
 
I don't think I understand your actual problem. What are you trying to do?
 
List related products with the same tag.
 
Ok, and what is the problem with your current query again?
 
But it does all that, BUT.. it also shows the product that its relating to.
Basically I need to exclude the current id.
 
@RahulKhosla Ah
Ok, I gotcha
I think something like: pastebin.com/DmDaG2Ry
That's me completely guessing on some of your internal things and I obviously can't test it
But you needed to put the parentheses around your where clause
If I had to guess that's why it wasn't working when you attempted to add it to the query
 
12:21 AM
A bit confused :P
Whats <>?
 
not equals
 
Also thanks, il try it out.
 
I have no idea if it'll work or not. I don't fully understand the need for a query using that many fields and don't know your DB schema
 
@cspray What's $yourValidatedUserInput supposed to be? Im assuming the id?
 
@RahulKhosla Wherever it is you're getting the ID from
 
12:23 AM
Ok thanks
@cspray Didn't work, thanks anyways though.
 
 
4 hours later…
4:36 AM
Can anyone please help me find how I create a cookie for an adult site that will allow users to get to sub pages only after hitting the accept button at the index page... So if they try to go to any sub page first it will redirect them to the index page until they hit the accept button.
 
5:02 AM
@antman1p setcookie() and isset()
 
@Magikaas ohayou gozaimasu ^_^
 
5:32 AM
Hello, yall
I haven't been in these rooms in forever
 
6:02 AM
haha yeah I haven't been in here in a while
 
guete morge
 
good morning
 
6:26 AM
0
Q: What's the issue in printing the array data into excel sheet using excelwriter php class and downloading the same file?

PHPLoverI'm trying to write PHP array data into an excel sheet using some library. If I tried with sample data array it's getting written to the excel file. But when I tried to loopover my array and tried to print the array data to excel file it's not getting added to excel sheet. I also have to download...

 
6:41 AM
Ello peoples :)
 
good morning
what's a good word?
 
@AlmaDo puppy?
 
hm. that may work
 
That's what I call UX: shbobo.net (mouseover images)
 
^ E_NOT_WORKING
 
6:51 AM
@SergeyTelshevsky lol
 
honestly, for about 40 seconds I moused over the images just to understand what was the purpose of this effect and how does it work
 
oh, so that required js ..
 
by the way, this is some damn good method to attract users to the content - make a weird visual effect that noone understands
 
that's why I disable js for all sites by default
and so I have only white-list where js is enabled
 
lol a hover effect with onmousemove XD
 
7:03 AM
@PeeHaa my laptops battery was empty. couldnt watch the game to the end :P
 
7:15 AM
@Gordon I didn't get a chance to see it either, but heard it was a good match
All goals within the extension
 
7:27 AM
morning everythings
 
sigh we're just things :\
 
morning
 
morning!
can anyone help me in this question stackoverflow.com/q/24490407/3151394
 
^ you have an answer
 
@AlmaDo not working
 
7:34 AM
so comment it
 
@TheRealHamza Then at least comment that it doesn't work
So they know it doesn't work and say what doesn't work about it or what you want it to in comparison to what it does
 
hm.. that answer, in fact, is crap..
 
@Magikaas it gives me error sale.date in query
 
@TheRealHamza I don't see you giving your table's structure anyway, so he gave your date column an arbitrary name
though
@TheRealHamza You could just change it to sale.sale_date >_>
 
7:39 AM
@Magikaas okay on it
 
@TheRealHamza so you're using string data type to store dates, aren't you?
 
@AlmaDo yes
 
@TheRealHamza that's a shame. Every time you're inserting date as a string into string column a little kitten dies
 
@AlmaDo then how should we save it.
 
int datatype
unsigned
is my guess
 
7:44 AM
^ by the pits of hell, no
 
if you are saving timestamps
No?
Then what
 
if it's timestamp - then it's TIMESTAMP
 
If you save it as date, does it still save timestamps?
Oh
 
it it's date, then it's DATE
if it's date & time then DATETIME
 
@Magikaas yes this works but now it is only showing date which is present in both tables
 
7:45 AM
@Gordon Booooooo. It was freaking awesome!
 
I never knew about that, lol
 
@Magikaas sorry!
 
data type TIMESTAMP
 
morning
 
@TheRealHamza About what? I wasn't talking to you then :P
 
7:45 AM
@RonniSkansing moring
@Magikaas okay
 
@TheRealHamza 2 subselects in select? (altough I don't like that method..)
 
hello everyone
hello @tereško
I have a query kindly look over this problem
I want to save data as
 
@Naruto I did thought of any other method
 
but its getting save as
 
Seems Laracon is going on atm/soon? Got some spam in my inbox from twitter about.. maybe make some drinks, take a shot each time that Taylor is worshipped as a guru
 
7:48 AM
 
@DevilAbhi please use pastebin or something
 
the code i used is this
@RonniSkansing i already used pastebin
 
yea I was talking about the pictures
=]
 
@DevilAbhi what kinda error you get?
 
hmm ... they say Latvia has the 6th fastest internet in the world: pcmag.com/article2/0,2817,2460098,00.asp
 
7:51 AM
@AlmaDo IIRC you use signed INTs when timestamp may be less than 1970
 
@SilverBullet i posted 1 image wrong
 
@SergeyTelshevsky I use DATETIME IIRC
because it works well with such kind of issues
 
@tereško it was 2nd and 4th the last times I had seen similar articles
 
I want to save data like this
In 1st image users are getting save in different arrays
but in the second link the contacts are getting save in 1 array
how to save all users in 1 array as in contacts
?
 
@DevilAbhi Noone will tell you
 
7:53 AM
angelina_jolie@gmail.com, nice
 
You have to try and solve it yourself
 
and, more, if intention is to use dates before 1970, then int may be worst kind of solution since signed has same limitation in negative direction. (bigint may "save a day", but if we'll want to store too past dates.. crap)
 
Then if you can not solve it, make the minimal code to show where you are stuck
and then we can help you get "unstucked" =]
 
@RonniSkansing I am a android developer
I arrange php codes by searching
Idk php @RonniSkansing
 
^ this excuse may work one time. may be two or three. But not each time
 
7:55 AM
You are selecting all the column,
so they are stored in array
$username = $post[0]['user_name];

Store every value like this
 
@DevilAbhi then pay someone to do the work for you
 
as salam o alaikum
 
^ peace to you too
 
@SilverBullet thanks for giving answer but i didn't get
but people here doesn't want me ask question
anyways thnks all
 
8:00 AM
I hope you are aware that answering vague any of your questions is not our job
 
^ s/vague/
 
anyone knows a decent youtube player for ubuntu desktop with keyboard shortcuts and playlists?
 
I know. main youtube page
 
I saw that coming
keyboard shortcuts?
play/stop at least
 
sure. It's up to your browser
 
8:06 AM
@SergeyTelshevsky which OS?
 
^ he stated it
 
@RonniSkansing kubuntu
 
hmm dunno then =/ maybe you can find a nice browser plugin
 
@AlmaDo I don't know what browser is able to have plugins with custom global shortcuts
 
I deeply enjoy LastPass
All my logins now have 100 character unique passwords
 
8:10 AM
.. and that little secret "master password" ?
 
@SecondRikudo occasionally I stumble upon of pages that do not support passwords >20chars
in case someone might be interested, this is what I found so far: flavio.tordini.org/minitube
 
@SecondRikudo nice
using a portable version or how do you handle "non-native" computers?
(when you do not have your own computer with lastpass installed)
 
@RonniSkansing linux .. but since he specified "ubuntu", he probably wont be able to compile anything on his own
 
@tereško actually, you can do that on ubuntu.. But normally there's no need (well.. I'm not ubuntu user, but tried it for some time)
 
@AlmaDo yes .. I can, you can, some other people in this chat room can. But people who, when asked for OS, answer "ubuntu" - usually cannot
 
8:18 AM
@tereško ubuntu based linux if you will
 
fair. I'm slackware user, so normally that's what I'm doing - compiling programs.
kubuntu .. is ubuntu + kde ?
 
@SergeyTelshevsky you are digging the hole deeper
@AlmaDo ubuntu + kde + some QT tools
 
ok, my guess was right..
 
@tereško you run bsd?
 
I think it also had a separate repo
@RonniSkansing for servers - yes
and my next laptop will probably run it too
 
8:20 AM
@AlmaDo 32 chars, upper, lower, numbers, symbols
 
What do you run for your private computer? atm I am on a mix of win8, debian and mint
 
@SecondRikudo don't you think that your "security" now has a single point of failure ?
 
@tereško How so?
 
@SecondRikudo that's what I'm calling "security by obscurity"
 
8:21 AM
@RonniSkansing mostly win7/8.1
 
If someone gains access to my LastPass account?
 
@tereško when do you use win7?
 
@SecondRikudo that , or is LastPass goes out of business
@RonniSkansing when on my netbook at home
 
@tereško If LastPass goes out of business, that would be a problem. Although all passwords are kept on the computer, and encrypted with the LastPass password, so that's still recoverable
 
8:23 AM
 
As for gaining access, if you can get past a 32 character password + 2FA, I don't know what would stop you.
@salathe Morning kitteh
 
@SecondRikudo there is actually a DoS attack for sites, where you pass an extremely large password in login/registration form
 
good mornings
 
@SecondRikudo I can easily pass any password. There's a special method in USSR that we're using for this. It's called Thermal-Rectal CryptoAnalysis
 
hi @RonniSkansing I see you run debian.How do you like it in comparison with linux mint for example?
 
8:25 AM
normally it's performed with soldering
 
@AlmaDo Where you approach the guy with a blowtorch and have him tell you the password?
Yeah, thought so :P
 
@DevilAbhi can you mail me what is the last error you have got?
vigneshwaran17691@gmail.com
 
@tereško Which is why I limit my passwords to 72 characters when using blowfish
(i.e. the accepted password length)
Anything past 72 gets truncated anyway with CRYPT_BLOWFISH
 
moin
 
8:27 AM
@tereško Easy. Cheap. Reliable. That's our way
 
@SilverBullet Posting your email in a public, indexed chatroom is an excellent way to get horse porn spam into your inbox.
 
@SilverBullet i am using this code
 
hahaha nice one @SecondRikudo
 
@SecondRikudo Its none of your business
 
@AlmaDo Lies. I've never seen a wrench sold for 5$
 
8:28 AM
@SecondRikudo I've already subscribed him for all russian porn-spam mailers
 
@SilverBullet Oh? None of my business? I'm trying to help you and that's your reply?
 
@GotalovePHP well. My mint is with cinnamon and the debian runs without a window manager (or what it called, cli only)
 
@SecondRikudo so you weren't here, obviously
 
I don't know why I bother. I'll just ignore and move on.
 
@SilverBullet data is saved as this
 
8:30 AM
^ please. You were asked not to post pictures here such way
 
androidy
 
@SilverBullet i want to save as api.androidhive.info/contacts
 
use links to pictures
 
@DevilAbhi do you have a question, or are you just here to post screenshots ?
 
Sup @JoeWatkins
morning
 
8:30 AM
oh okay @RonniSkansing I only got a glimpse of debian recently thats why I asked.So its command based.What do you run on it mostly?
 
@SecondRikudo remove header(....)

and do vardump like

var_dump($users);
 
sup @RonniSkansing
 
Two tiny avatars in one day?
Today was a good day.
 
@tereško i am asking question to silver bullet
and showing what work i did
 
remove the line that starts with header
 
8:31 AM
 
@SilverBullet are you saying to me
?
 
@DevilAbhi they mean use image post like imgur
 
YES, do var_dump($users);

see what you got as output
 
instead of direct image post here
 
@GotalovePHP you can install a window manager if you want. On the debian I only set up a few tools, vim, php, python etc.
 
8:32 AM
@DevilAbhi @SilverBullet I won't see your reply, don't bother answering. Please take your spammy discussion elsewhere. Posting a multitude of pictures without asking a clear question is not appreciated.
 
@JoeWatkins not much. Coffe, morning bake, considering what to code or read today
 
hmm ... interesting: gitter.im
 
same same, I think I know what I'll code today ... mustering energy ... and getting stoned, obviously ...
 
@RonniSkansing alright.Thats how they do it for production webservers right?rookie question
 
8:34 AM
@JoeWatkins you drink coffe?
 
nope, I'd rather smoke a crack pipe actually ... soo much awake ...
 
@SilverBullet i used this
 
@GotalovePHP I do not understand what you mean?
 
(tea, all the tea)
 
that has caffeine as well right
 
8:36 AM
@SecondRikudo it's probably not public , because I get E_DOESNT_WORKY
 
yeah, but coffee more per cupful ... I sometimes have coffee with the chocolate in when driving late ...
 
@SilverBullet and i get this
 
@tereško Do you have access to the cv-pls group?
 
dunno
 
8:37 AM
@RonniSkansing I meant for webservers they install lamp on an OS platform that has no GUI right??
 
mornings
 
@DevilAbhi are those correct values?
 
moin chris
 
@GotalovePHP yea mostly people do not install a GUI/UI/Window manager or what it is called.. to avoid wasting resources (and because bash/whatever is powerfull).. dunno about windows servers
 
okay.Thanks@RonniSkansing
 
8:40 AM
no @SilverBullet
 
widnows comes with windows, there's no stopping it ...
if you are using a windows webserver, seek help ...
 
hehe
I dare not
 
I mean the values, not the order. the value of name, email etc
 
@GotalovePHP np
 
8:42 AM
@SilverBullet just the problem is it is saving data in different arrays
kindly look over the image above
 
@iroegbu I think that part is also mentioned in "Javascript: the good parts"
 
I never knew of the 'private' thingy
 
@iroegbu you probably haven't really explored the closures all that much
 
8:48 AM
I never liked the idea of nested functions
 
you really should play more around with them
 
@iroegbu Nested functions and closures are one of JavaScript's most powerful features.
 
it would also equip you with few new tools for php
 
You should really make the effort to learn them, if you want to use JavaScript on a higher level
Also that ^(*2)
 
/s/most powerful/only/
 
8:50 AM
lol
 
now you are just trolling , @JoeWatkins
 
Hi everybody.. Can anyone know magento?
 
I totally suck at js - since I can't see advantages in that "nested closures" Suggest me good reading about that - I'll be grateful
 
Thanks... I'll get to work on it immediately.
 
8:53 AM
@AlmaDo then you probably need to learn more JS =P
 
'nin @Jimbo
 
@tereško that's the truth. So what's a good start to understand why nested closures is so good? (no questions about - why just single closures are good)
 
I honestly don't know
 
(:
 
8:55 AM
I cannot remember how I got to this point
 
okay. I'll do it "hard" way. So start from google
 
@TheLittleNaruto Ohayou gozaimasu :P
 
@AlmaDo , do you know how closures work ?
 
@tereško I hope so
 
then try to make a <select> replacement with them (a class-less widget)
 
8:57 AM
@tereško You mean like, supply only an <input> and have it act like a <select>?
 
@tereško what do you mean "replace"
 
^ Sometimes we'll do iptables -A INPUT -s 0.0.0.0/0.0.0.0 -j DROP and, finally, computer security will be fulfilled by 100%
 
@SecondRikudo @AlmaDo I meant a "fully functional skin of <select> form element"
 
ok
I have no experience with it (: But I may try
 
9:04 AM
@tereško I'm sure there's a jQuery plugin for that... :D :D :D
 
I think the "lesson" part is to try it and get the idea why some thing is good
 
@tereško Ah, so you mean I get a markup like
 
@SecondRikudo and they all are terrible actually ... even our "jquery programmers" make the select replacements by hand
 
<label>Select:
    <select>
        <option>options</option>
        <option>more opetions</option>
    </select>
</label>
 
@SecondRikudo no, that's what you have at the beginning
 
9:06 AM
And have JS replace the <select> with more visually appealing (and completely functional) element
@tereško Yes, you get that as input
 
yes
then you hide the original and make it so that every action done to a replacement will actually change the original element
so that you still can submit the form
and you should make it in such a way , that it works independently of the amount of selects in your page
 
I have no idea how it should look like, but.. google knows everything :(
 
also, keep in mind that a native select will collapse, if another select is opened or you click outside of it
 
@Magikaas A baby likes quick reply though! ;)
 
which means that you have shared state for all the selects at some level (and it should be protected from accidental tampering)
 
9:10 AM
@TheLittleNaruto I only just then noticed I had a message :P
@TheLittleNaruto that was 5 am for me xD
 
@Magikaas OMG! I am sorry! I was not knowing that! ( _ . _ )
 
Hehe ^^
 
@Magikaas While talking to you, I feel like I am talking to a gal! :D
 
@TheLittleNaruto Th-Thank you?
 
9:14 AM
-1
Q: How to get intersection point of parallel segments?

user1518183I use the algorithm below to determine point of intersection of two segments. Unfortunately, this algorithm does not work when two segments are parallel. How can I modify this algorithm to achieve the desired result? I tried to find a solution, but I was unsuccessful. Thank you. To find an inter...

^ well.. in another dimension, may be..
 
@AlmaDo wat
 
@DaveRandom dat
 
lol
 
9:34 AM
Man! DaveRandom is a small baby just like me.
 
9:51 AM
How am I supposed to find the source of an error when it just says "server error"?
 
@Billy Where did you see that error message?
(I doubt it was in a server log file...)
 
@Billy Any sort of logs? Tried debugging the your code or reverting whatever changes you made?
 
I am trying to integrate adaptive-images.php to my site
So, I do know the source I guess, but not the cause..
But the script shouldn't have errors.. so I must be doing something wrong
I had a problem with permissions yesterday so I gave the script 777 permissions, and that cause the 500 internal server error
 
@Billy Did you also put 777 on files the script has to use?
 
@DaveRandom So, apart from the "your api suckz" last night - which I am of course always grateful of ;) I managed to get async calls working :D link You pass in a callable, and the response body is returned into it
 
9:55 AM
@Magikaas I didn't, I just checked their permissions and its 755, is that ok?
 
@Billy a) you basically never want 777 permissions for anything b) 500 errors are always accompanied by a more descriptive error message in the server log fils
@Jimbo You probably won't like what I'm doing but I'm doing it anyway, I'll come back to you when I'm done.
 
I just gave 777 as an example while debugging, you should not ever put 777 on production files, that is true
And as Dave said, 500 errors should also leave an error message of some description in your server's log file
 
@DaveRandom I thought 777 was something I should avoid.. but when I asked in here about it last night I was just told to go learn nginx.. I just want to integrate one simple script not learn a whole new thing
I hate it when people do that..
 

« first day (1354 days earlier)      last day (3587 days later) »