« first day (826 days earlier)      last day (1334 days later) » 

2:00 AM
hello
anyone here?
 
boom
 
bam
 
blam
 
dy-no-mite
 
big-boom
 
2:10 AM
we're two wild and crazyyy guyss
I really hope you guys get that quote lol
 
unfortunately, i do not >.<
 
Steve Martin and Dan Aykroyd on Saturday Night Live
 
lol, nope. i don't watch tv
 
Aw it's an oldie lol. Here's a clip.
They come in at 0:45
 
i can't watch youtube :P it burns too much data, i have to go to a library or something
 
2:14 AM
Ah gotcha
 
when you live in the middle of nowhere, internet is really expensive
 
2:44 AM
sum(prime_factors(300)) % len(prime_factors(300)) = 2
sum(prime_factors(90783)) % len(prime_factors(90783)) = 0
got those working. sadly the others do not ):
 
 
2 hours later…
4:45 AM
The palindrome theory for that kata doesn't really hold up. @Sam If you think about it, any number can be made a palindrome with enough turns. It just so happens that the first 3 have the right number. I think it's just a coincidence.
 
5:01 AM
Also, consider why the word "holes" is all capital letters in the instructions. @Sam possibly a hint.
 
5:46 AM
@Sam Something about?
 
 
2 hours later…
Sam
7:38 AM
@zachgates7 Yeah, I did consider that, although I couldn't make any reasonable sense out of it.
11 hours ago, by ByteCommander
You have experience with Python error messages?
 
kinda
 
Sam
11 hours ago, by ByteCommander
I have a question on AU where somebody got an import error.
11 hours ago, by ByteCommander
It's that link, if you want to try...
... and, morning!
 
Morning!
ImportError? Well, seems like there's an error importing something, but as it's not own-written code, I cannot really help there.
 
Sam
@Byte ^
~ Sam's MitM Communication Services.
 
Sam
7:52 AM
This is so annoying. Codewars keeps timing out. -_-
 
Same for me... just when I wanted to sign up :p
 
Sam
:/
 
yay, no timeouts anymore
oh nice, you can link your account with GH
 
Sam
Yeah, you can.
 
Okay, signed up...
Where can I see other clan people?
 
Sam
7:59 AM
I don't actually know where the list of clans is.
 
I mean, the other people in Stack Exchange clan
 
Sam
Oh, you have to join first.
 
I did, I think
 
Sam
Ok, then you should see some people under "Allies".
 
OIC
thanks
 
Sam
8:01 AM
np
Finally.
 
Wow, 16 people from Stack Exchange already.
 
Sam
Successfully submitted my solution xD
That's grown quickly :o
 
> Submission timed out. Please try again.
hmpf
 
Sam
Don't worry, you'll get used to it :p
 
Hi folks! Back again... o/ :)
 
Sam
8:05 AM
Hiya!
 
Hiya
 
Still codewaring?
 
no
 
Sam
I am.
 
I'm analyzing my chances of winning the election.
 
8:06 AM
What election?
 
One kata completed, and now I have to go for 30 mins - 1 hour. Cya!
 
Sam
Cya!
 
cu later
 
seeya
Decent rep income from that self-answer ever since it was promoted. xD
 
Sam
8:13 AM
Nice :D
 
I got my first Mortarboard (200 per day) badge two days ago for one question I first wondered if it's worth to answer at all... ;)
Have to say that was on AskUbuntu.
 
lol :D
 
Sam
Congratz confetti
 
You know if there are elections on other SE sites too?
 
Yes.
 
8:21 AM
Thanks for the confetti btw. That answer score jumped from 0 to about 16 in a single night.
> There are no active community moderator elections at the moment. (on AskUbuntu)
 
keyword: active
There were one for Super User just earlier this year.
 
Of course "active". Why should anything else interest me. Unfortunately, SU is not my cup of tea yet...
Oh, and I'm sorry that I can't vote for you, @Unihedro. My rep on SO did not really grow much past the association bonus :(
 
It's alright :p
You're only 22 rep away anyways, it shouldn't be hard to get within two days by editing :p
 
150 is needed to vote?
I guess I'm leaving an SO tab open then over the day and see what happens...
 
Affirmative.
 
8:38 AM
Problem is that every time I visit SO I feel depressed because there are so many things I have less than no idea of... :P
annoyed because the chat hangs again! - had to hit "retry" 3 times!
Anyway: breakfast time. brb
back. Now I feel fully awake finally.
 
Sam
Wb.
 
9:03 AM
@Sam Did you get any further with your mystery number kata?
 
Sam
Nope.
 
Did you try at all? :)
 
Sam
xD
Well...
I had another look at it, and just thought, "Eh, I'll come back to it later..."
 
9:19 AM
returns
Back to Code Wars :D
 
Sam
Wb :D
I'm doing the Hello world function one atm.
 
easy one :D
 
Sam
Yeah, but it's more of a creativity challenge than anything else.
 
13 hours ago, by Sam
This looks hard. :o
Hmm... going to try that one first, let's see what it is.
 
Sam
All the best with that :p
 
9:22 AM
doesn't look that hard
 
Sam
That's what I thought when I saw that palindrome.
But...
 
I've spotted how to get the results, now on to implementing.
 
Sam
:o
 
The instructions provide a really big hint.
 
Nai
Hi.. I am new to this Chatroom! Glad to be here^^
 
Sam
9:24 AM
The "HOLES" part?
 
@Nai Welcome! :)
@Sam yup
 
Sam
@Nai Hiya!
 
Nai
Hi all .. :)
 
Sam
@ProgramFOX I never really figured out what that meant :|
 
@Sam I guess I learnt interpreting challenges very well from PPCG...
 
Sam
9:25 AM
@Nai So, what brings you to this weird part of the internet? ;)
@ProgramFOX True.
 
Nai
haha ... let's say from being trouble? ^_^
 
@ProgramFOX Heh, only 7 people have solved it.
 
@Unihedro O_O
 
Sam
It's still in beta, so.
 
9:27 AM
How can you upvote one?
 
You need honor
 
Sam
@Nai Do have a fav programming language?
 
It's a privilege thing
@Nai Hiya!
 
@Unihedro oh, I see
 
Nai
VB.Net but now using C# according to JOB
@sam
 
9:28 AM
Btw, while completing Beta challenges gives you honor, only the ranked ones counts towards ranking up on your levek, so watch that. :p
 
Sam
Yay, another C# coder xD
 
Nai
@Sam ;)XD
 
Morning!
 
> Submission timed out. Please try again.
argh
 
@ProgramFOX ikr
 
9:30 AM
@Nai Hello! Welcome to the TPC :D! How old are you
?
 
Nai
btw. I live in Burma. So this is the day bfore a long long holidays!! YAYY! Because of National Water Festival! ^^
@GabrielTomitsuka 21
 
@ProgramFOX Always happens to me
 
Now submitting :D
argh, stop timing out!
Finally!
 
Shame Cap doesn't live in this room.
 
Sam
Well I've decided what I'm going to do for my hello world function. I'll borrow the code from Wav.Net's sine wave generator to produce a tone at a randomly selected frequency and then convert the returned collection into bytes, and then iterate over the bytes till I find part of a match of "hello world!".
 
9:35 AM
@ProgramFOX You did it? Wow. Giving a small hint?
 
@ByteCommander Read the instructions carefully...
 
Hmm...
 
Sam
@ProgramFOX :O
 
Doing that later, I guess.
 
Currently working on Reverse polish notation calculator. My main focus is to rank up. :P
 
9:42 AM
Did the Final Submit. 8th person to solve it! :D
 
Sam
@Unihedro Huh, never seen that before.
 
@Unihedro fun!
 
Sam
@ProgramFOX :O Congrats!
 
u kiddin me
 
^ I thought that once too with a different one, although approved and no beta... :P
@ProgramFOX You are one of the maintainers of SmokeDetector, aren't you?
 
9:45 AM
@ByteCommander yep
 
> how can we mere mortals see whether a user is blacklisted (by Smokedetector) and why?
 
you can't
 
@ByteCommander ya kant
 
Sam
new Room.Users["ProgramFOX"].Fame++;
 
9:46 AM
However, it might be a good idea to have !!/isblu
 
That means?
 
will add that after the Reverse Polish Notation Calculator
@ByteCommander "is blacklisted user"
 
Sam
@ProgramFOX Surely it's stored somewhere in the repo?
 
@Sam No, the file is .gitignore'd.
 
Sam
Oh.
Gotcha.
 
9:48 AM
@ProgramFOX Aren't those commands restricted to the maintainers?
 
@ByteCommander "Privileged users" have access to non-admin commands.
 
@ByteCommander Some commands are, but I don't think !!/isblu has to be, when it's going to be implemented.
also, commands can only be executed in Tavern on the Meta and Charcoal HQ, not in other rooms
 
Is there a list available somewhere? And what are privileged users?
 
And privileged users have... well, more privileges than others.
 
SE privileges or special SmokeDetector privileges?
 
9:52 AM
@ByteCommander 2
 
SmokeDetector privs
 
Aww... So no chance for me to get them. :P ;)
 
Sam
Speaking of Smokey, I had another idea to help combat the dupe report posting. @Pro If Yam did supply Smokey with the relevant data and if/when he posted a report, Smokey could echo back the reported post's URL back to Yam so the Pham/Gham can skip past that particular post, and therefore stop dupes from ever occurring.
 
k
good idea
 
0
Q: How to increase the selected tab height in tab widget?

Ramees I Followed the below code for changing the height of selected tab.But i didnt get as i expected. mTabHost.getTabWidget().getChildAt(0).getLayoutParams().height = 90; mTabHost.getTabWidget().getChildAt(1).getLayoutParams().height = 80; mTabHost.getTabWidget().getChildAt(2).getLayoutParams(...

 
9:59 AM
@Sam WUT? Did not understand 1 single sentence... :P o.O
 
Sam
@ByteCommander It's kinda complicated if you don't know who Yam/Gham/Pham are.
 
@Sam BotExchange framework incoming.
 
Sam
xD
 
True. And I don't. So I guess we leave it at this state?
 
@ByteCommander You can ignore it. Or you can do some internet searches to figure it out, most of our discussions about it are public.
... Except the parts which are not, but you don't have to care about the parts we discussed privately.
 
10:01 AM
No, better not. Too much effort for no outcome...
 
Sam
lol
 
woot
I chose to use Javascript because it has eval().
 
Sam
My rank is too low :/
 
Meh, I'm doing a proper implementation in Python :p
without eval
 
Mine too... (low rank)
 
10:05 AM
@Sam On the front page, take the "Rank Up" route for challenges. You'll be led to more difficult ones, but those boosts your rank meter quicker than other ones.
 
Sam
@Unihedro Yeah I have already.
 
@ProgramFOX My solution is almost a one-liner, except I decided to fold inline scopes into multilines. :p
 
Sam
But unfortunately, I've completed most of the more difficult C# katas.
 
Time to learn a new language :p
 
Sam
Ugh :|
I guess I could do with brushing up on my JS.
 
10:09 AM
These timeouts are driving me crazy...
 
ikrz
in Maid Café (メイド喫茶) on The Stack Exchange Network Chat, 49 secs ago, by Sakurai Tomoko
http://www.ign.com/articles/2015/04/09/esa-says-preserving-old-games-is-illegal-‌​because-its-hacking
 
Yay, all RPN tests passed!
Yay, I can haz 7 kyu! :D
 
:D
 
Sam
:D
 
Lunch, cya!
 
10:19 AM
So much of my life is wasted re-submitting after the submission times out.
seeya
 
Sam
Cya!
 
> java.util.stream.IntStream.of(count).max().orElse(0);
Java 8 is sooo much better than Java 7.
 
Sam
has almost finished his "hello world" function...
5
 
Three years later...
 
Sam
xD
 
10:22 AM
This thing is seriously slow
 
Sam
Ikr
It wasn't this bad when I first joined.
 
Yeah. Just try typing 1, 2, 3, 4, 5... each in one line.
That makes me really prefer skype and qTox for longer discussions... (additional to the privacy)
 
ha?
Privacy with Skype? You're kidding. :P
 
that was more referring to Tox, to be honest...
 
10:26 AM
Still in nightly build state though
Bwah! Regex. (puke)
 
Sam
Behold:
public static string Greet()
{
    var bytes = new List<byte>();
    var samples = SineWave(TimeSpan.FromSeconds(100), (uint)Math.Log(0x4E110) * 10000, 0x3051D / 197917);
    var secretIndexs = new[] { 380039, 6222777, 61154, 8727493 };

    foreach (var secretIndex in secretIndexs)
    {
        var sampleBytes = BitConverter.GetBytes(samples[secretIndex]);
        bytes.Add(sampleBytes[0]);
        bytes.Add(sampleBytes[1]);
        bytes.Add(sampleBytes[2]);
    }

    Console.WriteLine(Encoding.ASCII.GetString(bytes.ToArray()));
^ That's my "hello world" function :P
 
dead
 
@Unihedro dead? who?
@Sam WTfuuuck is this?
 
Sam
It's my version of a "Hello world!" function :p
 
<-- is unable to identify any hello... :(
 
Sam
10:37 AM
Exactly xD
> stdout: Hello world!
It basically generates a sine wave and at specific points along the wave it'll pick out 3 byte segments until it reaches the final index.
 
Sure. "Hello World!". WHY THE HELL...???
 
Sam
Then it just encodes the final stream of bytes using ASCII to output "Hello world!". xD
 
I'll send this code a programmer friend of mine when he starts to annoys me again...
 
Sam
:D
 
No other purpose detectable.
What is it? C, c++, c#?
 
Sam
10:42 AM
C#
 
Hmm... He does c++. Should not matter.
 
A programmer who only does one language is not worth bothering with.
 
Sam
... submitting the code is another story. -_-
 
He also learned Java, but hates and sucks at it...
So now he will probably never ever use anything else than his Borlan C++ Builder any more... :P
 
Sam
I learnded english.
 
10:46 AM
@Sam muahahahaha
 
^ we see.
 
Enjoy having your time spent waiting for it to accept your solution.
 
Sam
Eh, thanks.
... maybe I should introduce codewars to Mr. Hammer.
 
Who's that?
 
10:48 AM
:O
 
Sam
You have to be joking @_@
> Expected string length 12 but was 11. Strings differ at index 0.
Expected: "Hello world!"
But was: "hello world"
 
>_>
 
That "expected" and "but was" is always scrambled, isn't it?
 
Sam
It is for this kata.
Damn you ineiti.
Well, back to the drawing board.
 
Not going to use a conventional return eh? :p
 
Sam
10:52 AM
NEVER!!!!
xD
It's just a matter of recalc'ing the "Secret indexes" again.
 
32 mins ago, by Unihedro
Three years later...
 
Sam
Actually, it just took me 3 seconds.
// New indexes: 3374651, 6222777, 61154, 6738889
// Old indexes:  380039, 6222777, 61154, 8727493
 
@Sam Link to original task?
 
returns
 
10:57 AM
Welcome back!
 
Sam
Wb!
 
I'm going to do the "Mysterious function" in Ruby too.
 
Sam
The timing out is mad.
looks at other solutions Seriously. -_-
 
Whenever I attempt a solution in JS, it's a terrible hack. xD
 
Sam
:D
 
11:07 AM
Honestly? This gives a submission timeout? I just want to view the solutions without getting a knot in my head...
> public class HelloWorld {
public static String greet() {
return "hello world!";
}
}
 
Sam
You need to remove the exclamation mark.
 
No, actually not! It has to be like this. And after hitting "Submit" the 10th time, it finally worked without editing anything.
 
Sam
:o
 
But look at this jaw-dropping piece of code:
public class HelloWorld {

  public static interface EnterpriseCustomType<Type> {

    Type getAsType();

  }

  public static class CustomString
      implements EnterpriseCustomType<String> {

    private final String value;

    public CustomString(String value) {
      this.value = value;
    }

    @Override
    public String getAsType() {
      return value;
    }

  }

  public static interface CustomTypeProvider<Type> {

    Type getCustomType();

  }

  public static final class CustomStringProvider
I just spilled my cup of java coffee seeing this...
But at least you can see where the "hello" and the "world" come from.
 
Sam
Minus points for that :p
 
11:11 AM
So still not obfuscated enough, I guess...
What about: ?
import java.util.Arrays;

public class HelloWorld {

  public static String greet() {
    return Arrays
        .stream(
            Thread.currentThread().getStackTrace()[1].getClassName()
                .replaceAll(".*\\.", "").split("(?=\\p{Lu})"))
        .reduce((x, y) -> x + " " + y).get().toLowerCase()
        + "!";
  }
}
Looks pretty nice and complex - no word at all! :)
 
Sam
Eh.
Simple reflection.
needz moar nombarz
 
You prefer morse encoding?
public class HelloWorld {
  public static String greet() {
    String hello = "hello world!";
    return toNorm(toMorse(hello));
  }
  public static String[] mch = {"•-","-•••","-•-•","-••","•","••-•","--•","••••","••",
      "•---","-•-","•-••","--","-•","---","•--•","--•-","•-•","•••","-","••-",
      "•••-","•--","-••-","-•--","--••","-----","•----","••---","•••--","••••-",
      "•••••","-••••","--•••","---••","----•","•-•-•-","--••--","••--••","•----•",
      "-•-•--","-••-•","-•--•-","-•--•-","•-•••","---•••","-•-•-•","-•••-","•-•-•",
 
Sam
Nice xD
still sees "hello world"
 
The following one MUST impress you (at least a little bit):
public class HelloWorld {
  public static String greet() {

    String[] fancyAnsiMessage = new String[] {     // it's really just ASCII, but hey - it sounds better...

      "        __           __ __                  ",
      "       / /_   ___   / // /____              ",
      "      / __ \\/ _ \\/ // // __ \\            ",
      "     / / / //  __// // // /_/ /             ",
      "    /_/ /_/ \\__//_//_/ \\___/              ",
      "                                            ",
      "                             __     __ __,  ",
 
Ugh.
 
Sam
11:16 AM
Eh.
@ByteCommander Java I assume?
 
6 kyu!
 
Jep. Java.
 
Sam
:O
@ProgramFOX Congrats!
 
All of them were Javas
I have 6 kyu too...
 
Sam
@ByteCommander I could tell by the insanity.
 
11:18 AM
Aargh. And type it wrong. >:P
Ugh! That one looks like it modifies the String class so that although he has a return "bagel"; at the end, it actually seems to output hello world!... That hurts.
import java.lang.reflect.*;

public class HelloWorld {

  public static void bagelify (String bagel, Object newVal, Field f ) {
    try {
      Field modifiersField = Field.class.getDeclaredField("modifiers");
      modifiersField.setAccessible(true);
      modifiersField.setInt(f, f.getModifiers() & ~Modifier.FINAL);

      f.set(bagel, newVal);
    } catch (Throwable t) {
    }
  }
  public static String greet() {
    String hello = "hello world!";
    String bagel = "bagel";
    String helloBagel = "Nicholas Cage, 1946 - Banana Pudding. May he rest is peace.";
 
catch Throwable? pukes
 
      "                Y.                      _             \n" +
      "                YiL                   .```.           \n" +
      "   much world   Yii;                .; .;;`.          \n" +
      "                YY;ii._           .;`.;;;; :          \n" +
      " such hello     iiYYYYYYiiiii;;;;i` ;;::;;;;          \n" +
      "            _.;YYYYYYiiiiiiYYYii  .;;.   ;;;          \n" +
      "         .YYYYYYYYYYiiYYYYYYYYYYYYii;`  ;;;;          \n" +
      "       .YYYYYYY$$YYiiYY$$$$iiiYYYYYY;.ii;`..          \n" +
 
0
Q: How to format an existing .docx file in PHPword?

madhuI'm using PHPword libraries to formant an existing .docx file, But i could only replace a particular item from the original document. I want to change the styling of the whole document. Can anyone tell how to achieve this. My Code: <?php require_once 'phpWord/PHPWord.php'; $PHPWor...

 
11:33 AM
@Unihedro Why?
 
Sam
lol
 
Sam
@Uni I've just had a brilliant idea for a kata xD
> Spam Classifier
 
Wow, the codewars discussion board doesn't work.
 
Sam
Given a group of test cases, the coder has to successfully determine whether a sentence is "spammy" or not.
 
11:36 AM
@Unihedro Removed by author, no action required.
 
Upvoting does nothing, posting does nothing, not even collapsing works.
@its_notjack Question ban in 3... 2... 1...
 
@Unihedro Qua?
 
@Unihedro Did your tests finally end?
 
@GabrielTomitsuka no
 
@Unihedro When will they? End of this week?
 
11:43 AM
Argh... so when submitting code in Code Wars, a test fails -- but that test is private, so I cannot see what fails -_-
 
Near Thursday. I'm in Easter break atm.
@ProgramFOX Write your own tests to try to narrow down the generalization and edge cases. :p
You can use "Run Tests" to run the tests box given as a sample.
 
I'm running some tests from my browser console right now - much faster than submitting :p
I believe I already found the error.
 
@Unihedro That means you could write your first line of code on Oratio. I really would like to have progress on the marketplace.
 
@GabrielTomitsuka What HAS he actually done?
Just wondering.
 
@its_notjack Really, you're not the HR manager.
But 2 commits.
 
11:49 AM
@its_notjack Come up with the idea?
#rekt
 
@Unihedro is pushed from chair I'm so sorry I every questioned you, o' mighty god of the room!
 
(Now playing: Janji - Horizon)
@GabrielTomitsuka K
 
@Unihedro Great! When are you disposed to do it?
 
Hmpf, that one test keeps failing...
aha, I believe I found out why...
This Kata is more difficult than it looked...
 

« first day (826 days earlier)      last day (1334 days later) »