« first day (2862 days earlier)      last day (2312 days later) » 

Wes
Wes
13:02
tbh it's not much different from how it should be
I need to break it apart though and try to add a or some test(s) in here
make a fake object
Wes
Wes
first step is to get rid of globals, so you can test it
that is, _SERVER and WS_ROOT
blaaaah
@Ekin o/
Here's a stupid one. Trying to work with CQS while generating a unique incrementing number. I have generator and storage classes. How should I approach generating the next number and incrementing the value in storage as the caller? It seems like it's neither the generator's nor storage's responsibility to do that
Actually, I can split the generator to have two methods - one to get the last/current reference, and one to generate a new one. That makes sense to me
13:20
I just watched Gordon Ramsay watch Cocaine getting made and then he tastes the cocaine water like he is taste testing caviar.
LOL! After he tastes it he is like "Wow.... wow wow... wowowowowowowowowow"
@StatikStasis you sure its cocaine?
Cocaine water before it becomes paste. Still hasn't been mixed with other chemicals to make it more consumable. The cartel does that.
See the video I linked above on Daily Motion. It is really interesting. @mega6382
@tereško You might find the video interesting too. Insightful video.
44 mins ago, by Statik Stasis
Watching this series with Gordon Ramsey discussing cocaine. Did not realize how much of cocaine traffic came out of Albania into UK. I know little about Albania. https://www.dailymotion.com/video/x69k9s2
US and Mexico : UK and Albania.
Require recommendations for a nice laptop mainly for programming. My current specs on the upgraded 5 year old HP pavilion g6: i5 3rd gen, 8 gigs of ddr3 ram, radeon graphics, 120 GB ssd + 1 TB hdd.
Looking for an upgrade or a laptop of similar specs.
dell xps 13 or 15 or hp specter or thinkpad T or X series
Seems like my laptop won't live anymore. :/
Also preferrably no Windows laptops. I don't to pay for a license I wont use.
I've heard some good deal about Thinkpad, do they have some good variants in the low end?
Wes
Wes
13:33
@Sean can't understand the question. more info?
@Wes Yeah i'm thinking it's kind of dumb. I'm writing a simple generator which takes the last number from storage, increments it by one, returns it and saves the new value. So I split it into generator and storage classes.
What I've done is make the storage a dependency of the generator, but it should probably just be seperate and have the calling code responsible for persisting the new number, right?
@Tiffany dat whitespace ;)
I wanted to try and follow CQS, which meant the usual method to generate a new number, update the generator object's state then return the new number can't be done (in one method)
Wes
Wes
still struggling to understand, show any code?
13:39
Your CQS ain't my CQS
Yeah I'm probably thinking that
And hopefully a good battery.
In my head CQS stands for Command Query Separation
Wes
Wes
cqs is a guideline, it's not the end of the world to have a function that does both C and Q
it depends
thanks gordon :B
Well yeah, that's what I'm trying
Wes
Wes
13:40
put the code somewhere?
where we can see it. not where the sun don't shine
Wes
Wes
clearly gordon wants to help, so bye
want but cant. I need to head to the gym in a couple minutes.
That works but it doesn't feel right to me. Also, having a method to generate & to retrieve adds dealing with the situation where retrieving is called before generating.
Adding complexity for complexity's sake kind of seems stupid
Wes
Wes
13:44
what's "reference" ?
err, a unique number
you are probably overthinking it
if it works, it works. if it doesnt hurt you, then just use it as it is.
Wes
Wes
@Sean in which way that doesn't fulfill cqs?
@Wes It does, but my problem is that it doesn't feel right
Wes
Wes
what does loadLastReference do?
ah
13:54
Returns the last (highest) generated number from storage
Wes
Wes
like that fetches from mysql or something?
Yeah. In reality right now it's table with one row containing a number column and a few other bits of metadata
@Tiffany umm, looks pretty sane to me
Wes
Wes
loadLastReference returns int, but it's string in getGeneratedReference @Sean
means that in the storage it's always an int, but ReferenceGenerator converts it to a string?
@bwoebi except $current_path = array_diff($path, $root_path); ... unless you are absolutely certain that root path is not repeated multiple times in path :D
Yeah, this is a bit loose because the business decisions around what it's for are changing by the day. The previous / existing format is incrementing numbers but it wouldn't be farfetched to say they might want it to follow a different format before it's done
Also there's no real need for it to be a number, it's just a unique label. Won't be used in any kind of maths
Wes
Wes
14:10
@Sean but it's too simple code to write anything that makes sense gist.github.com/Netmosfera/fc8b40038f5fd0a1751d8f5ef70c19b8
14:24
Musk was emotional throughout, alternating between laughter and moments where he had to regain his composure.
playing linkin park in the end on an endless loop intensifies
He needs a break.
They are trying to find a Number 2 executive I read to take some of the load off of him.
Wes
Wes
i try so hard
@tereško sensei welcome back
@StatikStasis A certain Roy Philipose CEO of rp38, comes to mind :P
14:35
I was about to link that.
=D
Feel bad for the guy. Definitely lots of cringe.
oof
@StatikStasis I don't, I consider that to be a fault of poor upbringing, where you call your child so special and so unique, that they start to believe it and think that they are entitled. And that they don't have to work hard to achieve objectives/goals. Unless, he has mental issues, then I do feel sorry for him.
14:53
posted on August 17, 2018

New Cyanide and Happiness Comic

15:04
@bwoebi aren't there better ways to do it? granted, I don't know when that function was written, may have been before the "better ways" were in the language.
@mega6382 Reddit actually ragged on this guy so much that he removed himself from YouTube. He needs help. A lot of sociopaths on reddit that sometimes feed off of doing that kind of stuff to people. I feel bad for him for that reason.
Heading to lunch- back in a bit.
there @tereško ?
what?
@tereško users cannot neither accept an answer nor vote for posts (question and answer) in the mobile screen size, do you think is it ok? (the sad part is 60% of our users use mobile)
no, it is not ok
it's actually terrible
15:13
well if I don't hide that box (containing vote and accept answer icons), then the width will be small in the mobile size .. people cannot read the content correctly
Any opinions on the Lenovo Thinkpad L470 for a developer?
@2dsharp seems like a good option .. because of CPU core i7
@Shafizadeh the problem is that your mobile design is bad
I like the thinkpad series. My roommate won't shut up how his ideapad is way cheaper and better than a thinkpad because he's got superior specs and the good looking-lightweightedness.
@tereško yes :-(
15:21
@tereško O_O Is that acceptable CoC... tsk tsk =p
o/
15:52
@mega6382 I couldn't access my webservers via HTTP because I had them on a private subnet :X
Where should i ask "what is the best way" questions, SO or codereview?
Neither
Code review is for existing code. SO is not for subjective questions
16:10
@Jony just say somewhere that something is clearly the best way then wait for people to correct you....
@mega6382 Oh. It's probably not supposed to be on a public subnet. Back to private -_-.

I have my webservers on a private subnet, security group with outbound pointed at the NAT instance. Sound right?
@Fabor Yes
Wes
Wes
who is up for an unpaid logic problem i cannot (actually) solve? :B
i have a range of integers A that starts at $a0 and ends at $a1 (inclusive)
i have a range of integers B that starts at $b0 and ends at $b1 (inclusive)
"joint ranges" are said ranges that either overlap or are adjacent. for example
a = [0, 5] (0 inclusive to 5 inclusive) is adjacent to b = [6, 10]
a = [0, 10] overlaps b = [5, 15]
find whether two ranges are "joint ranges" or not
@mega6382 I guess if the NAT instance is basically setup to just FW on requests through. Currently it's still timing out when I go to the public IP of the Webserver.
Wes
Wes
the expression i could come up with is not the most elegant... there's gotta be a better way. ping me if you want more info :B
16:23
Not seeing anything from tcdump. So the http request isn't even getting to the box.
SG has "80 tcp 0.0.0.0/0" for it.
Wes
Wes
this is the expression i could come up with gist.github.com/Netmosfera/0b44678ac458e6c66c029e65ff457408 it works but it doesn't seem it should be that complex
Are there currently known issues with subscribing to internals? A visitor in ##php on Freenode is saying they're getting bounces from [email protected] and [email protected], and lists.php.net currently times out for me
<Schroeder> "The recipient server did not accept our requests to connect. Learn more at support.google.com/mail/answer/7720 [pair1.php.net. 76.75.200.58: timed out] "
Embarrassingly ongoing issues.
16:58
@Wes Make a 1 wider on both sides and array_intersect?
Wes
Wes
it's not an array. it's 4 values, a0 a1 b0 b1
oh
:)
@2dsharp I'm developing on a NAS with 0.5 gb ram and a non-intel ARM cpu. It's fast enough.
Wes
Wes
if they were arrays i would do it with array_diff but that doesn't include contiguous ranges anyway
but, I've got Eclipse running on an 8 core i7 with 16 gb ram
17:01
Isn't it just a0 - 1 >= b0 or a1 + 1 <= b1
Don't really feel like thinking more about it though :P
Wes
Wes
lol it's ok :B
i am trying that just because. i have tests
oh god
:p
and the production server is a modest Xeon thing
/me is gonna game
which one
Wes
Wes
17:04
nope, fails :B
Right
Yeah obviously
...
nvm me :P
What is it?
data structures?
Wes
Wes
yes
@wes what is the use case?
Wes
Wes
17:09
save memory mostly. rather than storing 1000 consecutive integers in an array of 1000 elements, you store only integer start and integer end
Wes
Wes
[0,1,2,3,4,5,6,7,8,9,10] is represented as [0 => 10]
would XOR be of any use?
So a generator?
Wes
Wes
no?
17:11
or check if the lowest value of range A is LTE the highest value of range B
Wes
Wes
it's not that simple
maybe i will put it in a separate repo
17:21
Well, I guess I'm going to be doing hardwood flooring installs from now on. :p
@Wes I suggested array_intersect earlier but did not know they were not in an array. What if you just create a class to check. Method inside can check if overlapping, if both are return result, if not initiates another method to check if adjacent, if it is returns which set is the earlier set, else returns sets are neither overlapping or adjacent.
@Allenph We're doing this in our house very soon. How are you getting into that? Family member? I love woodworking. I do furniture.
@StatikStasis Have a friend that does it. Have to pay the bills...
After working on code it can be a nice break just doing something with your hands; crafting, woodworking, painting, whatever.
I guess.
Well... I like it.
Does he have a big business?
17:27
No. He works for someone who owns a business.
ah! Sometimes you never know what that can open up. A lot of times these places are in need of better organization, planning, database solutions to run the business better. Could open up to something if they will entertain it.
17:46
@StatikStasis +1 for handcrafting.
Here is a table I did a while back for our back porch: imgur.com/a/DRrNt
hard wood
3
giggity
The link was several photos that I had posted to reddit back when I made it.
@Wes I love my band saw.
18:06
@Wes Is that Pretty Handy Paul?
Wes
Wes
don't know what that is
@Wes PHP
Wes
Wes
:B
@Wes composer install hardwood-floor
Wes
Wes
:B
18:14
hmm
looks like I have found another decent military sci-fi book series
Nice day
I heard an interesting concept a while back that I thought was being made into a movie but I have not seen it. Modern soldiers with modern weaponry end up going back in time to medieval times against soldiers with swords etc.
It's a video game is it not? Empire Earth.
played that one years ago too ...
boring as hell :)
like simcity
I don't know. I do not remember a name.
Think it was a book.
@StatikStasis sounds like you need look into: graphicaudiointernational.net/our-productions/series/…
18:23
@StatikStasis I think that was called Avatar
or star wars, when all those furry things attacked the ATAT walkers
@StatikStasis again +1 for books, and -1 for me for not reading any except manuals..
guys any one knows free screen sharing api
with audio
API?...no
VNC perhaps ?
No like skype but free
@Artier you have a phone
use it
unless you are actually having it as a service ... in that case - there is no (decent) solution
18:27
Apple's facial time perhaps ?
more seriously.. i could imagine that MS Office Lync will have some COM api that you could use via PHP
@Code4R7 I want desktop screen share.. with audio in website
live I presume..
that would mean streaming things...
@Code4R7 yes
perhaps VLC could do that?
Wes
Wes
twitter.com/KinaVeryGay/status/1029919827287310336 ... mike pence's site got hacked and it's hilarious
18:30
don't know.. I can not be of any help
@Code4R7 Ok
anyone else knows?
@Wes good. Let's put it this way: Pence is the reason why I think people, who call for "impeach Trump" are delusional
@tereško Saved! Thank you!
@Machavity LOL! =D
@StatikStasis the correct link to save would be audiobookbay.nl/?s=deathstalker
18:34
unless you want something like Camtasia
I think this one in particular: audiobookbay.nl/audio-books/deathstalker-series
@Tiffany that rounds like something, that requires a lot of ... emm ... skin :D
@tereško err, what?
@Tiffany it just sounds like "Camtasia" is something that has lot of "CamGirls"
maybe it just a guy's perspective
Camtasia is nice because it shows the mouse on the screen. VLC can record your screen but doesn't show where the mouse is.
OBS has recording capabilities now
but OBS has a bit of a learning curve
18:38
I "borrowed" a copy of Camtasia from someone one time.
I assumed he wanted realtime
humble bundle had Camtasia a while back for like 20 dollars
Yeah OBS I heard is good.
the good thing is that there are TONS of guides for OBS, probably the most used for twitch streamers
I'm glad Twitch came out and streaming games became popular because it caused the price on video capture cards to drop a good bit. Especially Black Magic.
Wes
Wes
18:40
been using composer for years and i still don't understand min-stability :B
welcome to the club
@Wes I have yet to use it. =/ I need to learn it.
Lousy networking -_-
Like pinging a black hole
back to the "books", @StatikStasis, if you like "space operas" (think Farscape, Babylon 5 ... maybe old Star Wars), then you will like Deathstalker series
but it's not a "hard sci-fi"
I've saved the other links you sent - I will check them out. Always looking for something to listen to at work while I do tedious work.
18:45
btw, if you a looking for audiobooks, 'Graphic Audio" is always better than "Audible"
@Wes I still don't understand composer. It was quite alpha years ago, so I left it.
My friend recognizes the cover- thinks he may have listened to it some.
Wes
Wes
@Code4R7 fortunately you don't need to understand it completely in order to use the basic functionality
I think my problem is that I'm working alone. Nobody wants my job anyway :)
No need for SVN even..
doing everything myself.. including all mistakes
can't blame anyone too.. that's the hardest part lol
It's about more than sharing code
18:54
Hey, how to set 'title' of html document if 'include "index.php"' is in that file? Title of index.php remains for my another document :/
Thank you! :)
evenin
megaaaaaaaaaaaaaa :(
What's up Mega?
18:59
@Allenph My dick :p
@Fabor what happened?
Gross.
@mega6382 Ping my webserver. NAT instance receives ping. END. Getting no response from the webserver. Seems like everything is so straight forward it's hard to know where it may be wrong.
...I tried doing something silly on the production web server... changing the HTTP server response... and now the website won't load ... but it didn't break it on dev... >.<
unless it's pure coincidence, but that's uncanny timing
"something"?
@Fabor can you share with me your email address? I have 3 videos, I think you should watch, and see if you didn't do any of the steps that he, did and do that.
19:02
@Fabor changing the HTTP server response
is there a vba chat? Or can I ask a question here
I have code that will search through a user's Outlook(including shared inboxes) and reply to an email depending on the Subject phrase you input in the worksheet cell. I did have it working a couple days ago, but now I can not seem to get it to work (was deleted).
@Fabor check your email
19:06
windows updates happen..
Danke
Need access
wait
good talk
@Fabor done
Cheers
19:14
@Tmacjoshua I like the idea of replying to shared inboxes via Excel.
@RedLemon here is the answer you will not like: include-oriented programming is a way to madness
I would expect Outlook could do it with rules...
I never do Excel because of that locale thing: SUM() does not work in the Dutch version, they've changed function names to Duch too. So SUM() becomes SOM()
So changing locale breaks everything instantly. For years now. I can't think of anything that breaks faster :)
I mean, even the EOL policy of PHP is better.
7.0 will end this year before 5.6...
how can anyone build anything with enterprise level support on that..
I have the code for it but I saved over it and can not figure it out now
@StatikStasis have you tried reading "Lost Fleet" series ?
19:21
@Tmacjoshua there should be something related on FreeNode
@tereško Never heard of it.
sorry @Tmacjoshua can't help you out.. my DIM and SCREEN syntax knowledge is dusty. The last time I did anything with basic was 20 years ago...
@StatikStasis I really liked it: goodreads.com/book/show/112292.Dauntless ... @Tiffany tried it too, but her general reaction was "meh, not impressed"
@Code4R7 No worries just a bit frustrated
@tereško I'm reading The Way of Kings at the moment. Haven't formed an opinion yet about it. It's a fantasy novel by Brandon Sanderson.
19:23
I can imagine. If your organisation supports it, I recommend changing your knowledge path towards a better language (not necessarily PHP)
it's tagged as "high fantasy" ... those always require a lot of "investment"
@tereško if it's what I remember, it's not bad
Yeah it is. It was highly rated and someone recommended so I thought I would give it a shot.
@tereško meaning you have to be high to read it :P
Brandon Sanderson is the only who completed The Wheel of Time series after the author died.
19:25
@mega6382 no, usually it means "elfs and pixies" as oppossed t o low fantasy (like Game of Thrones)
None yet.
@tereško I guess my initial reaction was "meh," but after reading some more, I started to enjoy it more. However, I haven't finished it... so take that for what you will
@StatikStasis I love his mistborn series
I've heard that was good too.
@Tiffany "have not finished" is what I put in the "meh" category ... as opposed to "kill it with fire" category
19:27
mind you, I have like eight million books I haven't finished and a good majority of them I liked, I'm just bad at finishing things...lately...
what I liked was the depiction of "space battles"
yeah, I did too, they were very realistic
... instead of the usual "WW2 in space"
and "space is tiny" tropes
and I hadn't thought about the distance between ships would affect how things would be seen and how they would react, it was nice to see that bit of science added to something fictional
19:30
@Tiffany that was what impressed me the most
@StatikStasis basically, yes - the "Lost Fleet" and the "Lost Stars" series avoids that
I'm going back to Brideshead Revisited now.. (the good old one with Jeremy Irons)
cya
Wes
Wes
This file is intended with 4 spaces instead of 2.
tv tropes is looking for a lamp-stack developer... but must have 8+ years of PHP exerience
Wes
Wes
another reason to hate javascript. no one before javascript used 2 spaces indentation, there was 4, 8, tabs, spaces, but never 2 spaces
@Tiffany unfortunately, that company has experienced an SJW infestation (it actually might be why they are looking for new developers .... since developers tend to not excel in "office politics")
19:37
@tereško Do you play KSP?
I have intentionally avoided it
Why? Seems right up your alley.
I currenty have 300h+ play-time on Oxygen Not Included (and that had only a little bit of physics)
I have "plans" IRL
Yeah...that's pretty much all I've been doing since I quit my job, so I understsand.
you should be looking for a new one, ASAP
last time I took the "extended vacation" I had savings enough for a year
I don't think you are in the same position
19:39
I have applied for everywhere near here.
I'm just going to go work a crap job for money until new listings come out, but yeah. I screwed up.
you should also look at remote-job options
I haven't had much success when looking for those.
There's a billion and 95% are not real.
you should still try
Yeah...
also, since you are from USA, you can use the SO's jobs thing
19:43
I've been afraid to use SO.
why?
My profile is full of really bad questions.
you can ask admins to delete few of the worst questions
what you are lacking are actually answers
Yeah. I used to think SO was Yahoo answers.
1
Q: How should I store multiple, related models when configuration control is required?

KurucuMy problem: I plan to store a "project" in a database, where a project is composed of multiple items e.g. documents, and each document has multiple items e.g. paragraphs. Paragraphs may cross-reference to paragraphs in other documents. Many teams exist, and each team may have many projects. Team ...

write an answer for this thing
in couple of weeks you an get a bronze in and
it will also be a good exercise for interviews
lets put it this way Shafizadeh has almost 6k points ... and you probably have about a year more practical experience than him
and Samayo had (before he deleted) something like 10k
19:51
@mega6382 Videos don't really cover my issue :P
... then again, @Fabor has been slacking too
Is it slacking if it's intentional? :p
last time I was looking for a job, all I has to do was send my SO profile link and it was good enough to bypass a need for a "pre-interview screening exercise" (and get a full room of "team-leads" in the in-person interview)
@Allenph I am very tempted to get this. Is it a lot of fun?
@tereško But now you've been banned before you'll have to tell them you have a "record" :p
19:55
I am actually thinking about making a sock-puppet
(and everyone with 100+ points should too)
@StatikStasis It's a lot of fun, and really good at annihilating any form of human contact including significant others.
Sounds like my kind of game.
@Allenph since you now have free time: what "development book" have you been reading?

« first day (2862 days earlier)      last day (2312 days later) »