« first day (1241 days earlier)      last day (3699 days later) » 

12:01 AM
I made it in javascript.
ahem, pure javascript. no jquery.
anyone have a nexus 10 maybe?
 
user457812
SHORTER STILL [1,!1].map{|u|(1...1000).select{|i|v=731;i&1==0&&i.to_s.chars.all?{|k|k=1<<k.to‌​_i;v&k!=0&&(!u||v&=~k)}}}
 
user457812
user image
2
 
@nebulae Warren does
 
user457812
[1,!1].map{|u|(2..998).step(2).select{|i|v=731;i.to_s.chars.all?{|k|k=1<<k.to_i‌​;v&k!=0&&(!u||v&=~k)}}}
 
user457812
Ok, I'm done.
 
user457812
12:11 AM
.. maybe.
 
back
so what's the answer now?
 
user457812
Ok, reduced it to 100 characters.
 
Good day android programers
 
user457812
Also, the answers are 146 and 98 for repeating and non-.
 
(assuming 0 and 1000 are invalid)
 
12:20 AM
print len(list(set([int(''.join(p)) for p in permutations(list('000134679'), 3) if int(''.join(p)) % 2 == 0 ])))
It returns 105 for me
Let's play find the mistake
 
user457812
I consider my monstrosity more readable than that.
 
I didn't say it's pretty
And no, yours is definitely not more readable lol
 
I can read the Python! The Ruby made my stomach twist a little.
 
user457812
 
user457812
The way it works is mildly insane and relies on bit manipulation, which is kind of fun.
 
12:31 AM
[1,!1].map{|u|
Might try L2 Ruby tonight.
 
Got my mistake
It prints 99 now
And I thought perl was really weird
Apparently nil's ruby is even weirder
 
What was your mistake Ahmad?
 
It's the most ugliest solution ever, but it works:
print len(sorted(list(set([int(''.join(p)) for p in permutations(list('000134679'), 3) if int(''.join(p)) % 2 == 0 and not '00' in str(int(''.join(p)))]))))
I have these 3 zeros in there
 
Yeah
 
and it would count '100', '200' etc. to the accepted numbers as well
(I need those to have a string representation of 3 in three digits [003])
 
lol wtf
 
user457812
1:01 AM
I mades quesadillas.
 
user457812
@AdamS Simple explanation for that: anything other than nil and false is true, so 1 is true (non-false and non-nil) and !1 is therefore false.
 
user457812
It would work the same with 0 and !0
 
user457812
I get the feeling the Xerox sign in those photos has nothing to do with Xerox.
 
user457812
Python: not very good at code golf, not very good at writing nightmares
 
user457812
Ruby: it's basically Perl but looks different.
 
1:07 AM
Hrmmm. I see.
 
user457812
Eventually, it will get the reputation Perl does as well, though it's going to take longer because Perl doesn't get updates and Ruby does.
 
Except, I don't get the map over a [true,false] set?
 
user457812
It's a flag indicating whether to have unique digits (the u)
 
Ah. So it produces both answers?
 
user457812
Yes.
 
1:08 AM
So your answer will look like [98,146] or whatever it was?
 
user457812
No, it returns two arrays of the numbers that fit the criteria
 
user457812
The returned numbers themselves are strings but that's just how it goes.
 
Fun fact about perl: Larry Wall (the author of perl) was the grand price winner of the International Obfuscated C Code Contest. Not once, but twice.
No wonder perl is so crazy.
 
user457812
Well, what do you think Perl was written in?
 
user457812
You ask anyone who knows C to produce obfuscated code, given enough time they can and will pull insane crap out of their metaphorical hats
 
1:12 AM
I know it's written in C, but I was more referring to his talent(love?) for obfuscated code
 
user457812
Well, I'd say it's just a side-effect of knowing C and trying to write obfuscated code.
 
user457812
Perl can be horrifying, it's not necessarily horrifying
 
user457812
Though the running internet joke is that Perl code somehow morphs itself into psychotic messes overnight
 
Yup
Good night, I'm off to sleep
 
1:28 AM
=\
Restarting :|
Um
And now my N7 is locked up. Yay!
And heating up
Good thing I can pull the battery to reset it. OH WAIT.
 
user457812
Actually, pulling the battery is pretty easy.
 
Oh for fucks sake. Now Eclipse is doing that thing where it can't build projects cos "refreshing external archives". Guess I'm restarting again? :|
 
user457812
Just pry off the back plate and disconnect the battery connector
 
user457812
I wouldn't recommend try to actually remove the battery, though.
 
Managed to reset the N7 without pulling it apart :P
 
user457812
1:34 AM
That could break any number of things in it.
 
10 minutes later, finally deployed changes.
Now, who can remember what I changed?
Just listening to the SE podcast
softwarerecs.se is apparently a site?
Ooh. So 'tis.
So it can be used for general software, and for "what library should I use for this" etc too. Nice.
 
time to test if my app saves its state and doesn't crash when it tries to load it
hmm
 
user457812
1:55 AM
You are in for the a lot of fun there.
 
user457812
Also screw parcelable for being based on the world's ugliest hack
 
user457812
2:06 AM
Briefly considered rewriting the script as Perl to make it smaller and decided against it
 
user457812
2:17 AM
One fellow on the #ruby channel on Freenode managed to make it much shorter
 
Yah, Parcelable is giving me problems
 
"My phone gave me a message about having a virus." Oh dear.
 
hmm?
 
Bet you it next asks for her credit card...
SMS I just got.
 
from someone you know?
 
2:26 AM
Replied saying your phone can't get a virus but you can install apps that do malicious things, asked her what apps she's isntalled lately. Gah.
Yeah.
 
user457812
Current golf'd code: [b=(?2..'996').step(2).reject{|s|s=~/[258]/},b.reject{|s|s.chars.uniq!}]
 
2:41 AM
Oops I seem to have coded myself into an infinite loop. Nice work, Adam.
 
3:31 AM
0
Q: Avast android anti-virus detected "Android:Looter-Z" [PUP], in my app

user3400174I have this app "Networking Cables", someone sent to me email and tell me he found: "Avast android anti-virus detected "Android:Looter-Z" [PUP]" in my app, when I check my app No virus. What does this mean?????

The virus is everywhere
 
Oh my.
 
4:07 AM
Heya, Everyone :)
 
@zapl I think your question will get closed, but I added an answer. http://forum.avast.com/index.php?topic=147262.msg1069208#msg1069208
From the avast forums it appears just to be related to out of date definitions
hi little naruto how are you?
 
4:25 AM
I am cool :D How are you Steve ?
 
good, are you keeping up with the naruto manga?
 
Not these days, quite busy with projects :(
 
4:58 AM
morning
 
user457812
5:34 AM
I occasionally check in on Naruto just to see if it's finally freakin' over.
 
user457812
The answer is never yes.
 
user457812
At this rate, Bleach is going to beat it to the finish line.
 
6:06 AM
\o
 
6:32 AM
@Williams hi
 
6:46 AM
hey Nick
 
7:18 AM
Morning guys
 
user457812
bugs.eclipse.org/bugs/show_bug.cgi?id=35779 ⇐ Note: this has been going on for 11 years.
 
7:39 AM
good morning
 
8:24 AM
o/
 
8:35 AM
someone here who worked on JUnit in Android Studio
 
not directly junit but I just started with some testing for Android
 
in ADT/Android Studio ?
What testing are you doing ?
 
in AS, I am doing some json parsing testing
 
cool
 
I mock responses from a server and check if my json parsing works and if everything is correctly inserted into database
 
8:38 AM
I did not find any good documentation for JUnit in Android Studio
okay
If you have any link for the documentation JUnit in Android Studio, can you share ?
 
again: I don't use JUnit
 
okay fine
 
I am using the android.test package
 
8:52 AM
o/
 
\o
 
hi here
 
9:15 AM
Morning guys
 
9:49 AM
o/
 
10:23 AM
ohh a face, o/
 
@ArunKumar rejected. You join only for tech support. Although you have a good question/answer ratio, your English is pretty bad which also reflects in your chat speak.
@benlevywebdesign rejected. Bad question/answer ratio and you even ping in a private room with just you and another one.
 
user457812
You know, normally I'm ok with my cats sleeping on the bed with me
 
user457812
10:38 AM
But this one cat: no. He drools. A lot. It seeps into pillows and stuff. It's gross.
 
user457812
He just drooled on my tablet.
 
"sialorrhea" Learned a new word today
 
11:12 AM
I don't like that word, it sounds like there are terrible pictures on wikipedia
 
same for almost every word ending with -rrhea
 
Can't you learn words like "candy", not looking up what that word means exactly is so discomforting :D
 
 
1 hour later…
12:21 PM
Refactoring...
 
1:03 PM
hello folks :)
@ocus ocusrrhea
 
hey!
 
warren :D
howdy !
 
1:28 PM
Beautiful weather today
Almost 20°C
 
yeah it's great
 
yep
I had lunch in a parc, laid on the grass
 
nice
I thought it'll be cold today
Even took my jacket with me when leaving today
 
Good morning everyone.
 
heya mistrfu
 
1:41 PM
hey mistrfu
 
hey mistrfu
 
hey mistrfu
Better have everything 3 times.
 
^ agreed
was hoping someone would jump on the trend :P
 
lool
 
1:47 PM
It is definitely better!
Ahmad, next time lose the "a" please.
 
XD
 
Ocus could have just followed with the 'a'
Not my fault!
 
That iss correct, sorry for unfairly blaming you. OcuSSSSSSS!!!!
 
I did nothing wrong. I just spoke real words... urbandictionary.com/define.php?term=heya
 
No truer words have been spoken! kabuto! How unapologetically unoriginal!
 
2:00 PM
:(
aww
 
Oh... don't worry about it I still love you.
 
:D ^_^
 
>_>
 
rofl
 
Hey everyone !
 
2:04 PM
:D
Hi..I mean Heya...TGMCians
 
yo TGM
well time for some food
 
2:43 PM
user image
6
 
2:57 PM
hello all
 
3:40 PM
hey Emm !
 
man, chat is dead today...
 
I bet everybody is outside, enjoying the sun
 
indeed
 
it is nice here too
 
nice Earth day
 
3:48 PM
not nice here, you guys are lucky
windy and sort of dull
 
oh man
rainy
 
let me guess, are you from the UK?
 
yes
then again, it was bloody hot yesterday, sun shining and everything, turns out it was only 15C but it felt great
 
Talking about the UK, I had to watch a video on youtube to learn the differences between UK, Great Britain, etc
I think I have it down now...
I would like to visit England some day
 
hello
 
3:53 PM
I stopped for a few hours in Heathrow Airport but that doesn't count
hello Carl
 
hello Carl
 
Hi Carl
 
=.=
 
arg...
Our IOS developer sent out a notification on Friday
 
I have the whole United Britain thing mixed up in my head too. I think England is the one Island without Scotland, then Britain is the whole island including Scotland and UK is the whole thing including part of the island of Ireland? Do I get it right?
 
3:57 PM
that the new version of the app was available in the App Store
only he indiscriminately sent it to ALL users, including our Android ones.
and of course since it's some funky Itunes Store link, it crashes the Android app. -.-
so now I'm coming in seeing pretty much every beta user we have (and who knows who else, who is still on the legacy version) crashed over the weekend.
his response to all this: "oh well!"
 
Wow, that sounds nice, Carl
 
yep, HAPPY MONDAY!
 
mistrfu, I thought England and Britain were the same thing and UK was the island not including Ireland.
 
The UK is part of N. Ireland, England, Scotland and Wales. Great Britain doesn't contain that part of N Ireland.
 
But it's possible that I'm wrong
 
4:03 PM
@CarlAnderson find a way to crash all iphone users and tell him, "oh well"
 
Thanks, RED
 
I forgot about Wales... I always forget the Wales.
 
"oh yeah, sorry about that, I figured I'd try some IOS development.. does it crash the app...? Oh well."
 
Carl, if I may suggest something...
It may be more efficient to walk over and punch him in the face then say "oh well" as you walk away
 
LOL. I like the way you think codeMagic
 
4:08 PM
Why did no one tell me DST just occurred in Ontario? Hmmmmmm?
 
Just don't forget to say "oops" afterwards so it is an accident and you don't get fired
 
It appears I'm 40 minutes late to my Skype appointment.
 
Adam, it occurred in Seattle just this weekend too
as you may have noticed, it's significantly helping my mood.
 
It occurred all over north america...
except saskatchewan
they don't play that game.
saskatchewan knows whats up.
 
same with Arizona
 
4:11 PM
We used to not observe it in Indiana
parts of it anyway
 
Well, shit.
That's annoying.
 
you guys in Indiana and your timezones are all screwed up.
 
Was hoping to have a contract to sign today.
 
Lol, Carl. We used to be. Until Mitch "fixed" it
 
the only state in all of the 50 united states to have it's own page on Wikipedia to explain what the time it is.
The location of the U.S. state of Indiana at the boundary of the Eastern and Central time zones has led to the state being split between the two time zones as the official dividing line has moved progressively west from its original location on the Indiana–Ohio border, to a position dividing Indiana down the middle, and finally to its current location along much of the Indiana–Illinois border. Being on the western frontier of the Eastern time zone resulted in opposition from many in the state to observing daylight saving time for decades. The 2005 decision by the Indiana General Assembly ...
ok, nvm, looks like they've added a few since the last time I went there for a laugh.
 
4:15 PM
I guess some are still on central...
 
morning
 
o/
 
Well there's a big red button I could click all day. These stories are great.
 
My Skype conversation is delayed til tomorrow (or potentially this afternoon/evening). Damned timezones.
 
nice Ahmad :D
 
4:48 PM
> TGM has changed his profile picture :D
 
hmm
I will come back with new profile soon, lets see when
 
Sure :)
 
0
Q: Android Powered RC Car

Al BRobotics still remains out of reach for many students and researchers due to the high complexity of the hardware and the software, and their typically high cost. However the computing power, sensing capabilities, and intuitive programming interfaces of modern smartphones afford an inexpensive yet...

closed
seems all have more work and energy today because first day of the week
 
Did you all know that Android has the android.util.Patterns package? It has regexes for common input :|
Email, phone, etc.
 
5:03 PM
helpful
 
Hello
I need help with android
I would like to know if I can disable auto-suggestions in the manifest file
I have a webview that handles loging in users through their twitter acccount but auto-suggestions seem to be enabled
 
Set the autocomplete of form to "off"
In your html code if you can
 
I didn't write the html
 
like this
 
I load the login url from twitter API
 
5:15 PM
<form name="form" autocomplete="off" ..> ..</form>
 
you can set it to off on the webviews settings
 
Unfortunately, that will not work
ok
so I can do that using the webview?
 
webview.getSettings().formAutoComplete or something
 
let me try that; I didn't know there was a method to do that
 
the docs always come in handy
 
nice neb :)
 
what was that? that was briliant
 
neb, I hope you will search for me also :P
 
:)
Yeah, I will
 
5:19 PM
that is how neb says : "Google before asking" in a nice, elegant, polite way.
 
I did same here one day for one guy
 
I understand, I actually googled before asking
I appreciate it;
I cannot find such a method in the WebView Documentation
let me now try that
thanks
 
webview.getSettings().setSaveFormData(false);
 
I was already using that (setSaveFormData(false) and password as well
This does not work either (clearFormData())
 
For only password you can do like this
WebView.getSettings().setSavePassword(false);
 
5:25 PM
Maybe I am being misunderstood here; let me see if I can share an image of my screen
You see, the problem I am trying to solve is disable the keyboard from suggesting text right above the keys;
 
Oh
you can disable the suggestion from your keyboard settings of your device
I don't know how this can be done programmatically
 
14
Q: How to disable displaying "suggestions" on the Soft Keyboard

ThiraI want to turn off displaying "Suggested Words" on the soft/virtual keyboard when someone is using my application (only on certain Activities). For the default Android keyboard, this can be found under 'Settings' (under Word Suggestion Settings). Is there a way to disable it only within your app...

 
RED_, he can not because all stuff in webview
 
ah
 
5:30 PM
build a native app
lol
 
Only my solution will work in that case
Yeah Emm agreed
 
It is interesting how many people keep suggesting I should have googled first; I have googled and when I had no clear solution, I came here; thanks for your help TGM
 
coming here for a solution is not the right approach
that is what posting a question on SO tries to do
having a large amount of people looking at your question
and trying to provide an answer
 
No problem Een.. Sorry can not type long name :)
 
I understand, I came here for help; not for answers
hints help
 
5:34 PM
agreed Emm !
 
I posted a question on SO too;
 
what kind of help would not be an answer?
then share the link, and if we are interested or know about it we can help
 
I didn't type your full name because the rules state that we should not ping users in the same room
 
TGM has telling you that he didn't how to spell your name
not the other way around
also, if you spell the full name of someone in chat, it will not ping them
only if you place the @ prior to their name
 
cool; I didn't want to be rude or anything; so I thought he was making a point that I should have typed his full name
By the way, TGMCians, changing the keyboard settings didn't fix it
 
5:38 PM
Also, now that I think about it
and this is just a guess
 
what's wrong with suggestions anyway?
 
I don't know how you did
Settings > Language & Keyboard > Touch Input > Text Input > Prediction. You should be able to un-check Prediction
 
by not displaying suggestions you are modifying something that the User might have selected
 
I don't want them
 
as part of their configuration
 
5:39 PM
let me see that setting
 
I would expect Android not to allow you to do that via code
 
^
 
is like changing the device's language via code
 
In EditText for example, you can disable suggestions by setting inputType to no suggestions
but when you are in the webview, even the keyboard settings does not do it
 
right
but that is not a system wide setting
 
5:42 PM
isn't that suggestions like saved stuff?
 
I will keep trying until I get it
 
you can control what they EditText does because you are directly controlling its functionality
keyboard suggestions are a system wide setting, not just relevant to your app, it is up to the user to decide if they want them or not on their device, IMO
 
Fu Sensei!!
 
but again, I am just guessing
 
Here is the link
0
Q: How Can I Disable AutoSuggestions Through Android Manifest File?

EenvincibleI am using Twitter Login in my android app and I would like to disable the auto-suggestions when a user is trying to type their username (during the Twitter login process). It would be easy if I created the form fields myself since I could just set the inputType attribute to no suggestions in th...

Before all, you should have posted it
 
5:47 PM
lol
 
@Eenvincible you should rephrase your question, and post a picture if you can
 
> 10:37:58 PM UnsupportedOperationException: isDirectory is not implemented: isDirectory is not implemented
seems bug in AS 0.5.1
 
how in the world could AS possibly have bugs??
 
STOP
 
hahah carl.
 
5:58 PM
EVERYBODY PANIC
 
I refuse to panic
stop telling me what to do
 
RUN AROUND IN CIRCLES
 
AND TYPE IN ALL CAPS
HALP
 
KEEP CALM AND CAPSLOCK
 
5:59 PM
OKAY
That did it.
 
so I found out that you can make the money from youtube vids. well, i knew that, but I found out you can make quite a bit.
 

« first day (1241 days earlier)      last day (3699 days later) »