Join us on Discord!
You can help CodeWalrus stay online by donating here.
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Sorunome

#46
Media Talk / Re: Star Wars Episode VII, who's going?
February 18, 2017, 11:06:13 AM
Quote from: Juju on February 18, 2017, 03:28:33 AM
There you go, the French title came out, "Les Derniers Jedi", which, as I said a few posts above, is plural.

Jedi is the plural of Jedi confirmed.
In german Jedi is both plural and singular.....
#47
Since the changed file is a file the mod only added itself it still uninstalls clean.

I do not plan on posting it there because i'm lazy >.>
#48
file Mentions.php
Find

function mentions_process_store(array $mentions, $id_post, $subject, $approved = true)
{
        global $smcFunc, $txt, $user_info, $scripturl;

        foreach ($mentions as $mention)
        {
                // Store this quickly
                $smcFunc['db_insert']('replace',
                        '{db_prefix}log_mentions',
                        array('id_post' => 'int', 'id_member' => 'int', 'id_mentioned' => 'int', 'time' => 'int'),
                        array($id_post, $user_info['id'], $mention['id'], time()),
                        array('id_post', 'id_member', 'id_mentioned')
                );

                if (!empty($mention['email_mentions']) && $approved)
                {
                        $replacements = array(
                                'POSTNAME' => $subject,
                                'MENTIONNAME' => $mention['real_name'],
                                'MEMBERNAME' => $user_info['name'],
                                'POSTLINK' => $scripturl . '?msg=' . $id_post,
                        );

                        loadLanguage('Mentions');

                        $subject = str_replace(array_keys($replacements), array_values($replacements), $txt['mentions_subject']);
                        $body = str_replace(array_keys($replacements), array_values($replacements), $txt['mentions_body']);
                        sendmail($mention['email_address'], $subject, $body);
                }

                if ($approved)
                        updateMemberData($mention['id'], array('unread_mentions' => $mention['unread_mentions'] + 1));
        }
}


replace with


function mentions_process_store(array $mentions, $id_post, $subject, $approved = true)
{
        global $smcFunc, $txt, $user_info, $scripturl;

        foreach ($mentions as $mention)
        {
                // Store this quickly
                $smcFunc['db_insert']('replace',
                        '{db_prefix}log_mentions',
                        array('id_post' => 'int', 'id_member' => 'int', 'id_mentioned' => 'int', 'time' => 'int'),
                        array($id_post, $user_info['id'], $mention['id'], time()),
                        array('id_post', 'id_member', 'id_mentioned')
                );

                if (!empty($mention['email_mentions']) && $approved)
                {
                        $replacements = array(
                                'POSTNAME' => $subject,
                                'MENTIONNAME' => $mention['real_name'],
                                'MEMBERNAME' => $user_info['name'],
                                'POSTLINK' => $scripturl . '?msg=' . $id_post,
                        );

                        loadLanguage('Mentions');

                        $subject_email = str_replace(array_keys($replacements), array_values($replacements), $txt['mentions_subject']);
                        $body = str_replace(array_keys($replacements), array_values($replacements), $txt['mentions_body']);
                        sendmail($mention['email_address'], $subject_email, $body);
                }

                if ($approved)
                        updateMemberData($mention['id'], array('unread_mentions' => $mention['unread_mentions'] + 1));
        }
}



EDIT: the spaces are because i copypasted out of nano :P

EDIT2: Disclaimer: I didn't test this but the fix is IMO so obvious that it shouldn't need testing :P Just a variable name collision with the variable $subject

EDIT3: the modified lines are line 261 and 263
#49
Media Talk / Re: Funny (and awesome) picture thread
February 14, 2017, 12:34:20 PM
Quote from: Juju on February 14, 2017, 08:51:12 AM
Yeah, I noticed that too. My guess is LGR actually uploaded it a week ago, some people had time to comment, then made it private or unlisted. As he brought it back in public, the published date was reset. I have a few videos on my channel who were uploaded up to a year before it says they were, myself.
IIRC that wouldn't reset the publish date, however, uploading as unlisted, giving the link out to a few people, and THEN making it public would
#50
Damn, both games/projects are so good :P
#51
Quote from: p2 on February 13, 2017, 10:12:02 AM
I was trying to change the title of my reply to Topic #87 when I realized that the current name was already 2 letters OVER the regular maximum title length (I guess you guys modded the database there again).
Could we maybe change the max length globally?
It should be a rather simple config file in clear text, @Sorunome should know where to look for it (hopefully) :)
You will probably have to also modify the DB to allow more chars for that column in VARCHAR, and these limits are usually hardcoded into SMF but rather simple to find.
#52
Randomness / Re: SXZvYWgncyBBUkc=
February 10, 2017, 09:42:07 PM
Quote from: p2 on February 10, 2017, 10:08:44 AM
I admit I might need a hint, I can't crack it xD
Base64 and then interpret the output data as actual raw hex / binary / whatever.

And think sideways
#53
Randomness / Re: SXZvYWgncyBBUkc=
February 09, 2017, 11:29:04 AM
Quote from: p2 on February 09, 2017, 11:28:22 AM
wtf...
okeyyyy it's no publicly used encryption, right? something self-developed?
Something i came up with while trying to fall asleep yesterday. Poke me if you want a hint
#54
Randomness / Re: SXZvYWgncyBBUkc=
February 09, 2017, 11:14:36 AM
I thought you messed up on the R, lol :P

Anyhow, good luck

+ZkOER4DSEPwAAeIhwwhLA==
#55
Randomness / Re: SXZvYWgncyBBUkc=
February 08, 2017, 11:06:24 PM
Quote from: p2 on February 08, 2017, 10:16:31 PM
Nice! I did expect it to take you longer tho.
This one shall be harder:

F5f7861ef6fff8f8f7861e0f5cf8ff8f8f8f0c01f1f9ff9fb

Good luck
If it is what i'm thinking it is then it is meh because it can be interpreted in multiple ways yielding different things

EDIT:
[spoiler=what i believe the solution is]
By now it is just a number guessing game
s = "f5f7861ef6fff8f8f7861e0f5cf8ff8f8f8f0c01f1f9ff9fbb"

s_new = ["","","",""]
for c in s[::1]:
i = 3
for cc in bin(int(c,16))[2:].zfill(4):
if cc == '1':
s_new[i] += "#"
else:
s_new[i] += "`"
i -= 1

s_new = "".join(s_new)

spacemap = [
3,
5,
3,
1,
2,
3,
5,
1,
3,
3,
2,
5,
1,
1,
1,
3,
3,
3,
1,
1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
]

i = 0
space_i = 0
ii = 0
for c in s_new:
print(c, end = '')
i += 1
ii += 1
if spacemap[space_i] == ii:
ii = 0
space_i += 1
print('  ', end = '')
if i == len(s):
print()
i = 0
space_i = 0
ii = 0


For those interested, the output is

###  #``#`  #`#  #  #`  #`#  #``#`  `  ##`  #`#  #`  #`#`#  `  `  `  ###  ###  ###  #  # 
#`#  #`#`#  ###  #  #`  #`#  #`#`#  `  #``  #`#  #`  #`#`#  `  `  `  `#`  #`#  #`#  #  # 
###  #`#`#  ###  #  #`  #`#  #`#`#  `  ###  #`#  #`  #`#`#  `  #  `  `#`  #`#  #`#  `  ` 
#`#  `#``#  #`#  #  ##  ###  `#``#  `  #`#  ###  ##  #####  `  #  `  `#`  ###  ###  #  # 

Making it a silly number-guessing game because letters are oriented in random ways and you don't know how wide they are etc.

Anyhow, it says something like "ASWILUS RULE, TOO!!"

So only the first word requires more number-guessing, in the spacemap, that is
[/spoiler]


EDIT2: Why am I spending so much time on this? What am I doing with my life?
#56
98: you lost the game
#57
Randomness / Re: SXZvYWgncyBBUkc=
February 08, 2017, 10:09:33 PM
f8e88 f999f 99699 f8f8f 7861e 00000 e9e99 99996 8888f f8f8f 66606 66606 66606 66606 66606 66606
#58
Quote from: DJ Omnimaga on February 08, 2017, 05:18:10 PM
What does nüf nüf mean? ???
It's a sound that p2 makes. Scientists are trying to figure out what this means since 1998.
#59
Media Talk / Re: Anime
February 06, 2017, 03:06:57 PM
Quote from: p3n4 on February 06, 2017, 03:06:21 PM
Quote from: Streetwalrus on February 06, 2017, 07:25:04 AM
Welcome to cw @p3n4, what kind of anime do you watch?
Hello!
I always liked the genre but never really got into watching it myself. Suggestions are always welcome :)
Swort Art Online!
#60
Quote from: PT_ on February 01, 2017, 07:47:47 PM
I will remove some :)

I've uploaded all the files to Github, in case anyone wants to help or give tips.

https://github.com/PeterTillema/Age-Of-CEmpires-I
I know this is only remotely related, but.... https://github.com/PeterTillema/Age-Of-CEmpires-I/blob/master/index.php#L84

It is bad practice to place ?> all at the end of a PHP file, as following whitespace would be automatically outputted. Now, if you had your PHP script generate an image or something the following whitespace would result in a corrupt image.
There are more examples where having ?> at the end with additional whitespace leads to weird bugs, hunting them down can be very nasty. So just omit ?> if it's all at the end of the file ^.^
Powered by EzPortal