« first day (1504 days earlier)      last day (3426 days later) » 
00:00 - 14:0014:00 - 00:00

user457812
12:11 AM
Ruby currently beats Python in performance, libraries, package management, and flexibility.
 
user457812
The only things Python has going for it are indentation-based scope (nevermind that actual scope rules in Python are completely fucked) and generators (i.e., lazy enumeration of collections)
 
user457812
I need my brain to be less fried today.
 
o/ Good morning guys
 
nobody uses these 2 languages for performance…
speaking about else, I think it depends
 
user457812
You'd be surprised.
 
user457812
12:20 AM
After all, saying "nobody" means you're automatically incorrect there.
 
yes, this is just shorthand.
if one needs speed, and dynamic typing™, there's Clojure
 
user457812
Clojure's a piece of crap tied to the JVM. It's a waste of time.
 
Ruby is tied to Ruby VM as well then
 
user457812
Granted that's just kind of the case for most Lisps
 
user457812
Ruby's not actually tied to the MRI VM.
 
user457812
12:22 AM
There's Rubinius, which does JIT compilation; RubyMotion, which does static compilation; MRI/YARV, the reference implementation of Ruby; JRuby, the JVM implementation; etc.
 
MRI VM or JRuby (JVM) or …
or there's also compiler to machine code?
oh, OK
 
user457812
Oh, and mruby, the Ruby implementation intended for embedding and mobile systems.
 
user457812
Also MacRuby, but it's deprecated.
 
looks like it got very cool
 
user457812
Rubinius and RubyMotion are good for performance, JRuby is semi-good but obviously has you stuck in JVM land and therefore cut off from anything useful. MRI currently beats Python 3, which says nothing good about Python 3 (nevermind that nobody is adopting Python 3 while everyone hopped on board with Ruby 2.x). mruby is off doing its own thing and I haven't gotten around to doing anything with it.
 
user457812
12:25 AM
Also, RubyMotion compiles native executables for Mac OS, iOS, and Android (via JNI).
 
user457812
Wouldn't be surprised if there's also a .NET implementation of Ruby I'm ignoring because I generally ignore .NET.
 
user457812
There's also Mirah, which is kind of like a Ruby→JVM bytecode compiler sans stdlib and a few tweaks to make it more JVM-friendly.
 
user457812
Oh, and then there's Opal, which compiles Ruby to Javascript.
 
sounds sort of wasteful, because a language is not suitable for big projects anyway as long as it has no decent static&strong type system
 
user457812
Depends on how well you break things up and how clear it is what your code is doing.
 
12:28 AM
and people spent many resources on Ruby :D
 
user457812
That said, node.js exists and I keep trying to tell people how god damn stupid that is.
 
of course, but type system makes everything a lot easier
why should I bother thinking about types in my head when compiler can do it for me?
 
user457812
You're going to be thinking about them anyway, the difference is whether you annotated all your things with types.
 
well, not all types must be explicitly annotated
unless you are talking about Java
 
user457812
Java can die in a fire.
 
12:30 AM
thinking — yes, but not constantly checking them
and some complex types are not very easy even to spell or type
but easy for compiler
 
user457812
The other thing is that, in the case of RubyMotion, it is doing some type checking since it's being statically compiled.
 
that must be cool in theory :)
 
user457812
Your source code doesn't need types to handle types. The thing you're being in favor of here is static compilation and analysis.
 
user457812
i.e., you want a compiler.
 
user457812
Now if you're arguing in favor of static typing, that makes more sense, because that's an aid to the programmer. The compiler could determine this crap all on its own.
 
12:35 AM
yep, I'm talking specifically about static typing, which doesn't imply that types must be specified explicitly
 
user457812
Yes, it does.
 
user457812
Otherwise you're talking about sometimes-static-sometimes-duck
 
user457812
Type systems are annoying in how many terms they have
 
user457812
Scala's possibly being the most offensive to me now
 
user457812
At any rate, need to eat.
 
12:38 AM
in theory, I don't care about compiler, as long as there's clever type checking (which also allows IDEs to provide other help to me, lazy human) and nothing that inevitably limits performance in the end…
so I don't necessarily want a compiler
@nil I mean, they don't always need to be annotated
in Scala, not all terms are unique, some are just sort of a "syntactic sugar"
but it's complicated as hell :/
anyway, it's not necessary to abuse the language to create cryptic code
from practical point of view, Scala allows to do some nice things
it's sort of new C++ (haha, of course not)
 
 
4 hours later…
4:17 AM
@Envious Welcome. Please read the room rules room-15.github.io
 
4:53 AM
Thanks..
 
5:15 AM
Sure
 
5:43 AM
I think it's around Friday, right?
 
nana!
It sure is Friday
How's the trip going?
 
It's awesome! I got typhooned last night, it:s flooded everywhere, power outages. Loving it :)
 
Sounds amazing!
 
It is. Now we're driving south, hoping we can catch a flight elsewhere. But the beaches up north were amazing while the sun was up.
Usually you have power for most of the day, with at least one outage every day. This can last from an hour to a day.
 
@nana how's your vacation here at phil.?
 
5:56 AM
How is US?
 
oh still at ph?
 
It's great. I am in Palawan right now. How was the typhoon in Cebu?
 
Still good
 
Driving from El Nido to Puerto Princessa, just stopped in Roxas.
 
cool
did you ever try the Crocodile soup?
 
6:00 AM
Wasn't too good around your parts last week. Wait...were you there when we got all that snow out east?
 
I wasn't. I left on the 17th.
I ate crocodile before and I got another crocodile meat here, but I think they mixed in chicken and pork thinking I won't notice :)
 
I don't know if you heard but they got something like 6ft of snow
Well, this app has given me enough of a headache, I'm off to bed
Talk to ya later
 
Oh good so they mixed pork and chicken huh
 
6:21 AM
Ttyl cM
I think they did.
 
 
3 hours later…
8:56 AM
\o
 
o/
 
\o/
 
o/
 
~o~
 
@Ahmad party?
 
9:02 AM
lol
 
Morning
 
anyone from .de participating here: cscg.de ?
 
Morning!
 
9:23 AM
heeeeey
morning
 
\o
 
is it possible for a TextView to hold text as text and text url as url at same time
Ex: TextView.setText("My Text : www.text.text"); output My Text www.text.text (as LINK)
 
It's a little tiny-little snow at my place
yes
there are attributes for that or you can use spannable
 
yeap they are android:autoLink
 
9:26 AM
bb Den (y)
you can only know the lib description by the readme file .. 0 o
 
10:15 AM
Morning
 
http://tools.android.com/tech-docs/tools-attributes
cool stuff - didn't know about most of that
 
I'm trying to add a notification popup if something succeeded or failed. Whenever I search for any combination of "android notification" I get either cordova related stuff or something like this http://www.tutorialspoint.com/android/android_notifications.htm
I want to create a notification "in the app" as a small popup...
Well, how is that called?
 
Toast?
Dialog?
 
@cygery Aaaah! Thanks man! I now remembered that name from Cordova :)
 
yw :)
 
10:20 AM
is it possible to use new camera2 api in android API<21 ?
 
afaik no
 
Gradle build finished in 2 min .. normal ?
 
oh, I recalled. I have a silly question, but not sure if it's worth asking on stackoverflow
it's like "how to use PopupWindow without pain and suffering?" in short.
basically I want
1 — the view that's inside must be laid out normally
2 — I choose an existing view as anchor, and choose *which corner* of existing View should be tied to *which corner* of the popup window
 
0
Q: callback cannot be resolved to a variable

bh.amirI have been trying to add a facebook like button into my Android App. I followed everything from the facebook developers site including from installing facebook-sdk to following their code. On doing everything I now find a error in my App which I am unable to go through. I searched through a numb...

 
Sarge : static public boolean backEnabled = true;
 
10:33 AM
public static without final makes jesus cry
2
 
@Abdellah what's this?
maybe there is a higher level alternative to PopupWindow that everyone uses and doesn't talk about it?
 
sometimes when the PopupWindow fill the hole screen the backbutton close the app
 
oh my god
 
you declare static public boolean backEnabled = true; in the MainApplication (that extands extends Application)
 
OK, got it. The back button isn't a problem for me, though.
probably I will attempt implementing my own PopupWindow.
 
10:42 AM
The easiest way to do (not be best) is to create an invisible relative layout that will display your "popup" with some x,y
Like this for example :github.com/nhaarman/supertooltips
 
o/ Warren
 
@PedroOliveira I thought about it, and even FrameLayout should be enough.
probably it will be inside a sort of Dialog — this will allow the "main" layout to stay intact.
 
Yes it's a solution. Other thing I did on another project I have is a fragment. With transparent background
 
yep, fragment is fine too, but one needs a place for it prepared?
or Fragment can be added just "on top of everything"?
 
10:53 AM
You mean a container view. YEs it's true
 
how to fetch phone contacts in android..
??
 
so Fragment is not cool then (for this purpose)
 
plz provide me valid tutorial with valid profile image with mobile number
 
on the other hand, Fragment can survive Activity death
but for PopupWindow I don't need this
 
There are a few pros and cons
the transparent viewgroup on top of the views is the easiest one
 
10:55 AM
and… it has some drawbacks?
 
afaik no.
 
awesome :)
 
Is there any way to wait an action until 2 asynctask finished their task?
should I use an executor or a cyclic barrier?
 
@ZouZou Listeners don't work?
If you're doing some background operations like fetching metadata from a server and you have to wait for them both to stop I think executors would be the better solution.
 
Yes, one fetchs some result from our db and another from google server. I need to wait that both tasks complete to build the adapter
as now, my mate is using an integer (set to 2). On each onPostExecute, this int is decrease by one and the method called in onPost build the adapter only if the int is set to 0
I was wondering what would be the standard way to approach this
 
11:02 AM
Make sure the method that sets the int is synchronized and that the int is volatile.
But since they don't depend on each other executors is the best/cleanest way
 
ok I will dig into this
 
Nvm about the synchronized volatile stuff. It's on onPostExecute. No need for that.
 
yes, it should inly run in the UI thread tho
I think providing an executor to asynctask#execute is the proper way to do this kind of stuff
 
Pedro if you can comment this code gist.github.com/a92b102d0d68e35da246
which one is cool flaticon.com/search/enlarge ?
 
11:20 AM
@Abdellah the code seems okay. I'm not familiar with butterknife but apart from that i see nothing wrong.
@ZouZou You don't need asynctasks when you're using executors.
 
So why there is an executeOnExecutor (Executor exec, Params... params) method ?
 
Never used that. I always use ExecutorService. But I will have a look on that.
 
@kabuto178 HAPPY BIRTHDAY DUDE! :D ...... KTHXBYE! :)
 
@PedroOliveira I would think creating an executor with two threads, then execute my two asyncTask passing this executor.
 
And what's the advantage of that? The use of the callbacks?
 
11:27 AM
Then do something like while(!exec.AwaitTermination){}
 
Pedro (y) but I will ask you something later :P
 
yes, this is the central point of using it
what do you think?
 
Seems okay. But I see so many people avoiding async tasks lately that I don't see if it's really a good solution.
 
you mean users?
 
"people that program android"
 
11:32 AM
Then I don't get what do you mean by avoid lately :)
 
RL with 720x1200 background image size .. so this is why I got OutOfMemoryError ?
 
I don't know, I've seen posts like "async task leaks memory" and things like that
and by lately I mean "last time I checked" ahaha
 
haha
well I don't think I'll have this kind of problems, they are not doing a huge stuff tho
 
If I use picasso to set the background so I will not get this problem ..
 
12:11 PM
it's so fucking freezing outside
@Envious Your access has been revoked due to coming in and being a help vampire.
Point in case:
1 hour ago, by Envious
plz provide me valid tutorial with valid profile image with mobile number
contrary to popular belief we are not the search monkeys behind google
this is the guy you're looking for
apparently the guardian doesn't know the difference between europe and EU
 
Or maybe there is no second language on those countries like Switzerland ahaha
 
it is the Guardian.... what do you expect? :D
 
lol true
 
12:29 PM
OS X is really retarded
today I figured out that it has [unavoidable] mouse input delay that makes mouse movement feel sluggish
there's an application that tries to fix it, and it works, for some cases :D
I wish I come back in time and not buy MacBook Pro™
 
why do you need mouse?
loose ability to use gestures - not wanted
 
Yeah
if you really want a mouse then go for the apple mouse thingy
I have that one, works pretty nice
 
magic mouse?
 
why camera API has no something like camera.getParameters().showGrid(true);
omg need to draw my own on surface
 
Relevant mouse:
 
12:38 PM
lol
 
everything that doesn't work in Apple world is called unneeded
if something is later implemented, it becomes needed
and people pretend that _someone else_ said that that thing is unneeded
 
nope
I need ability to cut -> paste files
os x here is like stupid
 
it's just Finder.
then you are kind of an exception
 
well, since we are not talking about linux, finder is to be used file manager here
 
I got an impression that Apple users brainwash themselves
yes, it's the stock file browser
 
12:40 PM
if not cut -> paste files - then how?
 
replacing it is probably bad idea
I used XtraFinder application, it adds some features to Finder
 
but me agrees about brainwash - some things are fantastically easy to get used to once you go with mac and then you lack them in other OSs and can't really explain why )))
 
Awesome deal: .io domains for $20 at namecheap!
usually those are $70 or something
 
I can list some things that gonna be missing in other OSes:
stock E-mail app
Time Machine
Menu bar on top of the screen (not very important)
Keychain Access (probably can be replaced by something else, but the key feature is that other apps can request access to it and it can be convenient)
 
Time Machine is for backup?
 
12:46 PM
also, fonts
yes, it's for backup
it's very well done
Oh, and also there's a real terminal (shell)
but I can install Cygwin, right?
also, Homebrew — don't know how to replace it
there's chocolatey.org — but its packages are not updated very often as I see (the ffmpeg package that is there is somewhat outdated)
 
0
Q: Show "Loading..." dialog in onCreateView

ArmaI have these codes in my project: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { int intPos = getArguments().getInt(ARG_SECTION_NUMBER); View rootView; rootView = inflater.inflate(R.layout...

 
hard...
a colleague of mine just heard yesterday that one of his friends died...
the mood in our office is accordingly low...
 
that's really bad
 
1:01 PM
for us it is hard to see him physically here but mentally not in this universe
I have been lucky and never lost someone really close.... yet
 
it's hard..
 
I can imagine... the hardest part so far was that I had to see my dad crying at the funeral of his mother. I haven't seen her in years but that literally ripped my heart
I was 28 and it was the first time I saw my dad crying
 
coincidentally, today I heard that one guy which I knew (not really close, though) hanged himself oO
 
winter depression
 
I can't understand, what must go so wrong that the self-preservation instinct stops working… and there are always some possibilities to fix the shit, instead of finally giving up
 
1:09 PM
there are stronger and weaker minds out there
some can deal with a lot of suffering and others can't
 
my condolences :(
 
yeah... we try to guide him through the day
 
1:23 PM
weird our power just went out
 
@WarrenFaith yep… probably he wasn't an Android developer
 
there must be some defect switch in the house
 
^ first world conclusions
 
-1
Q: How to get date from 2014-11-25T21:40:39+00:00 in java

DevrathI have a date & time format as 2014-11-25T21:40:39+00:00 How can I get the Date from this Date I am trying to get as: Oct 21,2014 Which is te easiest way to achieve this !

a 4k rep asking this question
 
I'm trying to contact LG via chat to see if my work tablet will receive Lollipop
Brazilian support had no information, let's try the American
great, it's offline
 
1:30 PM
of course it's offline, it's black friday
 
that's no excuse not to work
 
they are probably at best buy trying to slaughter some people to buy a cheap case for their smartphone
 
brazilian black friday clichê: everything for the half of the double
 
@zouzou wtf. some people really need to be introduced to this thing called google.
lol gui
so the iPhone is still 1.5k, eh?
 
@Ahmad And its not like it's his first post on SO lol
 
1:32 PM
if course he knows google... how else would he find about SO?
the iPhone 6 started selling here weeks ago
 
Yeah zouzou, sad sad
 
starting at USD$1300
 
:0
 
phew the price of the nexus 6 is so.. troll
 
I know right?
makes no sense to buy a nexus now
 
1:36 PM
yeah will keep my nexus 5
 
nexus was great because of the awesome price
 
I mean I don't think that's a good strategy
yeah exaclty
 
once I heard of the price, I got the oneplus one
 
and now its like the same as en iPhone
 
yeah
 
1:37 PM
every time I read "I know right?", I picture in my mind a nonconformist, dissatisfied girl
 
LOL
maybe I'm a girl, who knows
everything's possible on the internet
 
user image
3
 
1:42 PM
hahah
best yo mama joke
 
Woot, my copy of Super Smash is in the post!
Too bad it's the weekend D:
 
I would say better yet
game through the weekend!
 
But mail isn't delivered over the weekend
 
@Glitch wii u?
 
Yep!
 
1:49 PM
Still hesitating whether I should get it or not...
 
If you like Nintendo titles, yes
 
@Glitch I liked SSBM (gamecube) but I don't have a wii...
 
If you still have the Gamecube, you can use the controllers on the Wii U for Smash
 
@Glitch I know but I need to buy some kind of bridge. So in total it might cost 380 euro
 
In Australia they were selling the basic bundle for $180
came with two games
 
1:54 PM
your best bet is probably to buy a N64 with mario kart
:D
this is the only thing you need
 
Mario Kart 8 on the Wii U is better :P
Get the Mario Kart 8 Wii U bundle
 
nah old school rocks
 
HD Nintendo is better :P
 
like the IA is so cheated, they are so slow and BIM they have like an infinite boost which comes from nowhere
 
@Glitch the premium black one right?
 
1:56 PM
@HamZa Yeah. I don't think they manufacture the basic ones any more.
 
After reading the specs I've realised that the black ones are better
 
they're exactly the same except the black one has more internal memory (8GB vs 32GB)
I just put a 128GB thumb drive in my basic one to boost capacity
 
right + accessories...
 
oh yeah, mine came with the accessories added as a package
should be able to get a good deal now that Christmas is coming
 
00:00 - 14:0014:00 - 00:00

« first day (1504 days earlier)      last day (3426 days later) »