« first day (2449 days earlier)      last day (2514 days later) » 

10:00 AM
what type is data
 
user443346
Intent*
 
maybe make a File object from that path, and use File methods for the renaming etc
 
user443346
 
does renameTo return true or false
 
user443346
Just a sec, I suppose false but i'll test it first
 
user443346
10:05 AM
Jup, false
 
ok
if you make it so that it returns true, it should work
 
user443346
:DDD
 
user443346
Fuck off
 
user443346
Tim at his finest :D
 
honestly I don't know. I googled for a bit but no answer
 
user443346
10:08 AM
It's weird right? Guess it shouldve worked already..
 
targetsdk?
 
> It's possible that the reason that renaming failed is that the file is still open.
 
user443346
@MuratK. 25
 
@Code-Apprentice yes! hmu
 
user443346
Hmm, could be indeed, no clue how to check this
 
10:11 AM
Do you have access to it? Check the logcat without a filter
 
also hello from google zürich o/
 
user443346
My logcat doesn't output anything usefull at all :( and hi Ahmad o/
 
hello ahmad
 
\o
 
user443346
Tim, the issue is in the from file.
 
user443346
10:15 AM
from.exists() == false
 
10:37 AM
Parody account or not, I'm surprised that's got so many RTs and favourites
You're at Google's office in Zurich @Ahmad?
 
yah!
 
That is so cool!
What for?
 
I'm giving a workshop
8 googler's dedicated their day to help our open source project
close some tickets
and stuff
fix bugs
:D
 
What's the workshop on?
 
on getting started with the open source project
 
10:39 AM
Replacing Windows in the UK's NHS would be great
 
that open source project being github.com/kiwix
ubuntu in the public sector?
this is gonna go bad
the city of munich switched to ubuntu and nobody could figure out how to do anything anymore
2 years later they switched back to windows
 
yeah
 
yah
 
on catalonia we use ubuntu i nthe public system tho
but a custom made version
veeery veery sleek and windows-y
 
we do?
 
10:42 AM
You just need a windows skin over a linux OS
like Zorin OS
 
but you can't solve the driver issues like this
 
What driver issues?
 
yeah w0mp, lincat
what driver issues?
 
uh... gen public people then?
 
Also see that open source project you're working on, is the install not really big if you have the entire wikipedia on your phone
 
10:43 AM
'cause my mom uses windows
 
yeah
Universities, high schools and generalitat public offices since 200X, but not all of them
 
windows \o/
 
only those that can afford whole software changes
 
hum
 
they planned to move the justice department to linkat by 2018 when i left indra
 
10:44 AM
Happy Friday!
 
and agricultura is 50% 50%
!/friday
bot dead.
 
That was fast Eric, almost instantaneous XD
 
sad bot.
 
yyup
 
Sooner public government work spaces get rid of windows the better, would save a shit ton of money in the long run
 
@MarkO'Sullivan unless they move to mac
lol
 
OH JESUS
no
Open source or gtfo
 
@MarkO'Sullivan and less security software costs as well :D
 
"Please stand by as this little beach ball spins for your ticket"
 
10:46 AM
the cost of windows vs linux in public service front end is miserably low
 
All they have to do is say "We'll save x amount of millions per year if we switch to a new system, so we can spend that on other healthcare areas"
 
compared to the infraestructure cost of the hardcore ERP's behind it
the cost of a new windows HP computer with a valid liscense for the catalonia gov. was 190€ / unit
good deal btw
the cost of a SAP R3 backend server starts at 20mil / year
 
@MarkO'Sullivan yep! but it's managable
4 gb for the entire wikipedia in german
(without pictures)
 
awesome
 
10:50 AM
And that's why our govt has around 17 years of JavaEE systems XD
 
!/tell Eric toass
 
@Eric (☞゚ヮ゚)☞ That's where you're wrong kiddo
 
lol bot is back
 
@MarkO'Sullivan most download our custom apps like: play.google.com/store/apps/…
 
Raghav is not a bot CF!
 
10:51 AM
lol i see what you did there
 
That's a good idea, is there demand for other wikipedia topics apart from Medicine?
 
toass raghav?
yeah, all kinds of things
we have a bunch of custom apps
 
to-ass
 
AH
it's mostly used by people in developing countries
or people living in rural areas with bad internet
 
How do you handle Wikipedia updates? Like do your users have to redownload the entire app to get updates every so often?
 
10:54 AM
yeah you have to update the entire thing
it's a pain
but there's no way around it
 
tristan to adam said something(toass)
 
we compress too much so we can't really do incremental updates
 
I can see that being a big pain
So you package the entire wikipedia in an APK and then make it available to download?
Could you not use their API to do incremental updates? (not sure what's possible with their api)
 
we could but we compress all the content
strip out all the unnecessary things
and use a custom file format
so it's hard
 
just store it all in Realm
sorted
:D
 
10:59 AM
@Ahmad TristanOrAdamSaidSomething
 
sounds like something tim will tell
 
@RaghavSood LOL
loool mark
 
@Tim would agree with me. Realm is the solution for most of your problems
 
I can't do the strike through the text >.<
 
11:01 AM
When you cut the education budget to fund the military
 
XD
 
lol
 
@Ahmad why not strip the website server side, then deliver the data thro Realm Mobile Database, and use a offline first approach to it?
with a landing setup that lets you pick topics and calculates approximate initial download size
 
landing setup on the app?
 
initial fullscreen setup
runs back to ionic cave
 
11:14 AM
Get back you ionic troll!
 
Mark it's three dashes on each end of the text
Or realm.strikeThrough
 
11:32 AM
repost
 
and the mimimi train goes tuuuuuuuut
 
🚂🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃‌​‌​‌​🚃🚃🚃🚃🚃🚃🚃
 
some guy who was in my class in the last semester in uni, just posted on FB that he graduated. 1,5 years later than myself. Dafuq. How can you be delayed that long
 
user443346
Tim, I fixed my issue
 
11:39 AM
he failed i guess?
 
user443346
File from = new File(absolutePath.substring(7)) fixed it, just removed the file:// part
 
but it means he failed 3 times on the same semester
@Jordy nice Jbro
 
@RaghavSood lmao that escalated quickly
 
user443346
How can I force a activity to stay portrait mode, I need to upload this demo within 45 min and can't be arsed to fix the issue. To i want to force it temporary to Portrait only.
 
11:46 AM
<activity
android:name=".....Activity"
android:screenOrientation="portrait"
on your manifest
 
user443346
Also just copied it from SO. Was a little lazy :p
 
user443346
But thanks Mehdi ^^
 
12:01 PM
TGIF
@ColdFire Thanks CF :D
 
@CptEric do you want to implement it
cause we don't have people working full time
 
Season 3 of Rick and Morty, starting on July 30! :D
https://www.youtube.com/watch?v=DeAw6aXHzcY
 
YES
omg <3
 
user443346
NICE
 
user443346
<3 Best serie
 
user443346
12:04 PM
Im mr meeeeseeeks, look at meeee
 
i was fearing a big rick roll
but it was really rick and morty
x3
 
took them only 3 months
 
you were ricked, but not rolled, womp
3
did you see the lib I posted yesterday btw? :P
 
yeah
xD
 
give it a try I say
enjoy paella
 
user443346
12:11 PM
In 3 hours I have a 3 week vacation, finally
 
user443346
Called hasAlpha() on a recycle()'d bitmap! This is undefined behavior!
 
what a luxury
 
user443346
Guess I need it :D
 
\o/
 
three weeks, damn
 
12:12 PM
I would sleep for 3 weeks
 
> JPEGs images were designed to make detailed photographic images as small as possible by removing information that the human eye won't notice. As a result it's a Lossy format, and saving the same file over and over will result in more data being lost over time.
 
maybe 2 weeks sleeping
 
damn I only just found out about this xD
 
1 week watching tv shows
 
user443346
I'm spending my time for 2 weeks on the beach in Turkye followed by a week of doing nothing @ my home. Drinking some cocktails, beer, etc.
 
12:13 PM
and interrupting each days "activities" by saying hi on this chat :D
 
user443346
Yeah, I'm going to post a picture here every day of me on the beach just to make you guys realise work is not everything
 
show that pot belly
 
user443346
:D
 
oh trust me, we already know work is not everything
there is only pretty much nothing to do about it XD
 
:D
 
12:18 PM
have you ever been procrastinating to do a task thinking that it's a piece of cake, and wondering why it has been estimated to a few days, only to realize on the due date that it's actually not so obvious and that you need time? XD
 
every time
 
haha!
 
"tim how long do you think this will take?" - "I think a couple hours" .. 2 days later "about those couple hours..."
 
future valve employee
 
I am just really bad at estimating. Mostly because most of the things I have to do I have never done before
 
12:22 PM
reminds me of this
 
last week my task was to try out docker and see if we could use it to set up a specific kind of service. "Tim how long will it take" - "boss man, I don't have a clue"
yeah true mehdi
 
I tried the "I don't know how much" approach, and it never got accepted as a valid answer
"when do you think you'll know?" "I don't know! I need to read about it and see"
the day after "Hey, how's it going? any news?"
 
yup
 
Morning :)
Tim - The gays are taking over!
 
yo graeme
 
12:32 PM
Tell you what though, I liked Merkel more before I knew she was a.... well... one of those types.
Hey CF
 
o/ Graeme
care to be more specific? :D
 
She voted against Marriage Equality
 
ah
 
that wasn't a secret at all lol
 
1000 listed slack groups: standuply.com/slack-communities
even though i doubt I'll be productive ever if I join another chat room :D
 
12:35 PM
What wasn't a secret?
 
I don't think she did it out of conviction
 
that merkel was/is against it
 
but she has to appease her right wing base
 
I never said it was a secret, I said I didn't know she was
 
she already know it was gonna pass so she could play it safe
 
12:40 PM
Still not happy about it :P
 
@MehdiB. same for me. Literally every time
 
XD
sucks to work on services and delivery :P
R&D positions are the best and most fun!
 
D&D positions are the best and most fun!
 
My last session was in December.. :(
 
and I still haven't played
I bet I'd really like it
 
12:54 PM
We should do Room 15 D&D
Bhav isn't invited.
 
HAHAHA!!
 
lol
 
D&D is life
 
sounds serious
 
Well, Roleplay is life. But, still.
 
12:55 PM
and life shouldn't be shared with bhav
 
I didn't say that outright.
 
that was just a conclusion XD
serious question: doesn't the dot at the end of sentences sounds a little dry and serious?
I've noticed that most english speakers I've interacted with on chat end their sentences with a dot
 
it does if you are just chatting in a casual chat room
 
that's what I thought (I only use them on professional exchanges or when I'm upset XD)
 
@TimCastelijns always better to over estimate than underestimate. I told the CEO that one of the major features which was planned would take 6 months for the Android app
 
1:01 PM
how do you calculate 6 months worth of work? It's got to be full of wild estimates
 
Realistically, it'll take less than that but there's a lot of unknowns
 
how do you estimate an unknown?
 
I only use dot's when I'm upset too
Usually people only notice subconsciously
 
It's pretty impossible until you do a bit of research into the problem really
 
what do you mean.
 
1:02 PM
Lol.
 
I notice it. But it has also got to do with the impression I have of you graeme
 
lol. <- really cold
 
XD
 
the only thing that's colder is
lol...
 
"lol" -> funny, "lol." -> sarcastic fuck off with your shit joke
7
 
1:03 PM
yes basically
 
"lol..." -> yay +1 post count
 
why is it that tim sweeps in stealing my joke and reps all the stars
 
hahahaha
 
@Ahmad lol.
 
1:05 PM
lol...
 
hey. I watched that movie not long ago. Really good
Apr 19 at 11:22, by Tim Castelijns
have you seen The Big Short?
 
Such a good movie
I've seen it twice
 
I should start controlling my facial expressions, just found myself laughing while reading this
people will think, what an idiot, all day smiling
 
I like the part where he is at the table with some rich guy who is explaining how they rip off people, not realising they are screwing up the world economy
 
What? You want to start laughing uncontrollably with a straight face instead?
 
1:06 PM
I've watched it two times as well
 
Mark - at least acknowledge that I'm smiling XD
 
The movie annoyed me because everyone who fucked with the economy got off without going to prison
 
damn you. I have to watch it again now to keep up
 
didn't know how the financial crisis happened before this
 
same
honestly after watching it I still didn't understand half of it
a lot of unfamiliar words
 
1:07 PM
I didn't either after watching it once
second time I understood most of it
next on my list is Margin Call
which is about similar things
a bank in crisis mode because they realized that these MBS are shit
 
what are MBS?
 
mortgage backed security
 
mortgage backed securities
 
@TimCastelijns I'm working on it
@MehdiB. MacBook Sucks
 
basically betting on someone else paying their mortgage
 
1:11 PM
"and who doesn't pay their mortgage? Nobody, right?"
 
Raghav - XD
so they were basically giving away too much mortgages without calculating the risks?
 
yep
 
> It was triggered by a large decline in home prices after the collapse of a housing bubble, leading to mortgage delinquencies and foreclosures and the devaluation of housing-related securities.
they just thought they were raking in free money
 
literally everybody was taking on mortgages without even having enough income
or in extreme cases no fixed income
 
because the banks were so eager to provide them, thinking they would make easy money off of them
 
1:15 PM
yep^
 
Interesting, and it's all explained on the movie, right?
 
Awesome!
 
but in more detail with more fancy words, spread over 2 hours - which made it more difficult for me to understand
The United States (U.S.) subprime mortgage crisis was a nationwide banking emergency, occurring between 2007-2010, which contributed to the U.S. recession of December 2007 – June 2009. It was triggered by a large decline in home prices after the collapse of a housing bubble, leading to mortgage delinquencies and foreclosures and the devaluation of housing-related securities. Declines in residential investment preceded the recession and were followed by reductions in household spending and then business investment. Spending reductions were more significant in areas with a combination of high household...
 
yeah but in the movie there's also a group of people who seen the crash coming
 
1:22 PM
and what happened to all the "mortgage delinquents"?
 
you mean the people who failed to pay the mortgage?
 
they lost it all
 
or is it because the banks seized so many houses and put them for sale, that the houses prices went down (too much offer)
I see, so it didn't matter that there were so many of them
 
it did, because the banks had so much invested in them
it was not of the banks that the house prices went down. It was because the prices peaked shortly before, and after a peak it can only go down. They went down fast
 
but if they just sold them all, they would have gained much more, no? (the paid drafts before the seizure + the sales price)
ah I see
but why didn't they wait longer to sell them (until the prices go up again)
My questions would sound stupid as I don't know much about finances :D
 
1:28 PM
no, because the mortgage was higher than the house's worth at that time. Selling meant losing money
 
then why not waiting for the prices to go up to sell?
 
I don't know anything about it either. I just make it up while I type
 
XD
 
but some stuff I mention sounds logical so I press send anyway
 
hahaha, indeed they do
 
1:29 PM
I think they don't wait because the chances that they are going up again are very low
and everybody knows it, so everybody is like "better sell now before it goes further down"
market is flooded -> prices drop further
it's also how the stock exchange works. Supply and demand make the price
 
I see, that sounds logical
 
I know right? I hope it's also true or I will look silly
 
hahahaha
at least you tried XD
And i would expect it to be at least 40% correct
 
I'll take it
 
1:43 PM
Eric - theguardian.com/world/2017/jun/30/… - WTF is that little dot between Spain and France in Cataland?
 
andorra
 
lol
 
lol
 
wow germany was the last major country in the EU?
 
@Graeme lol
 
1:51 PM
ahmad do you know about returning files in a flask handler?
 
yah
 
Is it possible to return a param with it, using send_file?
 
what kind of param?
a header?
 
I want to include the orientation of the file (it's an image)
 
do you want to give it back as a response?
 
1:55 PM
yes. Like how you upload a multipart/form-data
 
hmm not sure I follow
so in its header?
 
nah just pretend I want to send a file as response, along with it I want to send an arbitrary key/value pair
 
I have a styles question - who in here is el33t style knowledge person
 
I know style
 
I might actually make an SO question - which is very rare for me
 
1:57 PM
@tim you can return a tuple in python functions
 
yup post a question
 
return file, xyz
 
So, thumbTint is an attribute which you can set
 
yes but it is flask specific
 
It controls what porterDuff is applied to your controls.
 
1:57 PM
how or where would you display that key value pair tim?
 
I've gone through my theme and all of it's parents and no where ever does thumbTint get overriden - yet my thumb for my SwitchCompat is slightly transparent - so somewhere it's set.
If you don't have an attribute in your theme heirarchy, where is it getting that value?
 
I am sending back an image that is either landscape or portrait, but the flask service is the only part of the system that knows which of the 2 it is
in the app I need to know for displaying
 

« first day (2449 days earlier)      last day (2514 days later) »