You are not logged in.

#1 2013-09-30 02:53:04

Cheesecake
Member
Registered: 2013-09-30
Posts: 3

Registration question

I just now created my account after a lot of research on that registration question.
There seems to be a bug. Where i live, it is currently week number 39 on my machine, but its Sunday night and i am UTC-06:00. I tried many different hashes to the question and when i finally answered it right, the only thing i had changed was that i advanced the clock to October 1st so it was week 40.

Offline

#2 2013-09-30 02:58:42

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,420

Re: Registration question

Welcome to Arch Linux.  Any chance you could post or email me some examples.  I would not have expected this bug to show up except on the last day of the month/year.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#3 2013-09-30 10:40:45

Awebb
Member
Registered: 2010-05-06
Posts: 4,132

Re: Registration question

It's the last day of a month, so... :-)

Offline

#4 2013-09-30 13:18:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,420

Re: Registration question

Awebb wrote:

It's the last day of a month, so... :-)

It is now.  When I posted (last night) it was not yet the last day of the month here on the West coast of North America; and no part of the world was yet into October.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#5 2013-09-30 13:52:01

Awebb
Member
Registered: 2010-05-06
Posts: 4,132

Re: Registration question

Your post happened Today 04:58:42 over here (GMT+1 with DST) and the server is in Germany. Dateception?

Offline

#6 2013-09-30 13:59:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Registration question

Cheesecake, can I have another slice can you please open a bug report? You need a separate account for the bug tracker, so you have to register there too.

Offline

#7 2013-09-30 14:40:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,420

Re: Registration question

Awebb,

What I am wondering is what happens if someone is in a different month than it is either in Germany or UTC.  For example, as I post this, The Western Pacific is into next Month.  Europe is not there yet.  I'll get there in about 16 hours.

At the time I posted last night, the entire world was still in September.  I am having trouble envisioning why the OP had to tweak his date to next month.  I want to understand.

Last edited by ewaller (2013-09-30 14:41:42)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#8 2013-09-30 15:08:21

Cheesecake
Member
Registered: 2013-09-30
Posts: 3

Re: Registration question

This is what i had tried
d2e084143fcb04ffc0e548123e1f62fc19c5d73906b36e7771a085079cbf4d3c
eedb85ab90d324a555a45560d75c88cecf23721990c3b6353697d707e6465c74
a2c6c14110a317833ac8f2fbae7080ee844af7469b2aa702876548dcf4c588077
6e2ae11dad0616f66bbb2b6e6556f580bb987fd911d7132aa6bee2bfc7cc7b52
b767e3bd870dbdf1a06d1a90e059f490ad024936c5424cd01ada2df947d4783b
cbcce0aff2d5e7dd60e78135b8364c5d1662a870dd9b41f5fd1ff868098b681f

date -u +%W$root|sha256sum|sed 's/\W//g'
date -u +%W$(uname)|sha256sum|sed 's/\W//g'
date -u +%V$root|sha256sum|sed 's/\W//g'
date -u +%V$(uname)|sha256sum|sed 's/\W//g'

and this is what worked (after i had tweaked the date)

date -u +%W$(uname)|sha256sum|sed 's/\W//g'

                 
62bc3e8b1d6ea4e0e676a5bcff5df928d828e96af936be6cc8ff11f00c6ab37b

ewaller wrote:

Awebb,

What I am wondering is what happens if someone is in a different month than it is either in Germany or UTC.  For example, as I post this, The Western Pacific is into next Month.  Europe is not there yet.  I'll get there in about 16 hours.

At the time I posted last night, the entire world was still in September.  I am having trouble envisioning why the OP had to tweak his date to next month.  I want to understand.

I changed the date to the first of next month because it was in the next week. I assume i could have picked any day from September 30 to October 6 but i picked a day closer to the middle of the week to be on the safe side.

Last edited by Cheesecake (2013-09-30 17:43:25)

Offline

#9 2013-10-01 13:29:38

Awebb
Member
Registered: 2010-05-06
Posts: 4,132

Re: Registration question

I thought so, I always asked myself, why October was the important part, but I dismissed the thought as "better safe than child support".

Offline

#10 2013-10-06 00:04:58

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: Registration question

I currently get week 39 - not week 40 - even though it is October 6th. Am I missing something?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#11 2013-10-06 00:18:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Registration question

@Cheesecake
It used to be %W but https://bugs.archlinux.org/task/32649

Offline

#12 2013-10-06 00:50:59

Steef435
Member
From: age
Registered: 2013-08-29
Posts: 339
Website

Re: Registration question

cfr wrote:

I currently get week 39 - not week 40 - even though it is October 6th. Am I missing something?

From man date:

%U     week number of year, with Sunday as first day of week (00..53)
%V     ISO week number, with Monday as first day of week (01..53)
%W     week number of year, with Monday as first day of week (00..53) 

%V returns 40.

Shouldn't all machines return the same value because of the -u flag, regardless of local settings? Assuming the user set his time zone right. I don't understand why you expect a problem at the end of a month.

Offline

#13 2013-10-06 00:58:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Registration question

$ date -u
Sun Oct  6 00:56:22 UTC 2013
$ date -u +%V
40

cfr, please post your output.


Edit: Typo.

Last edited by karol (2013-10-06 01:14:16)

Offline

#14 2013-10-06 01:02:25

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: Registration question

It's because the posts above (mostly) used %W not %V. I get the expected results with %V.

$ date -u
Sul  6 Hyd 01:01:29 UTC 2013
$ date -u +%V
40

EDIT: I also don't understand quite why failures are expected given that the -u flag is passed.

Last edited by cfr (2013-10-06 01:03:29)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#15 2013-10-13 22:16:23

Cheesecake
Member
Registered: 2013-09-30
Posts: 3

Re: Registration question

Steef435 wrote:
cfr wrote:

I currently get week 39 - not week 40 - even though it is October 6th. Am I missing something?

From man date:

%U     week number of year, with Sunday as first day of week (00..53)
%V     ISO week number, with Monday as first day of week (01..53)
%W     week number of year, with Monday as first day of week (00..53) 

%V returns 40.

Shouldn't all machines return the same value because of the -u flag, regardless of local settings? Assuming the user set his time zone right. I don't understand why you expect a problem at the end of a month.

the server is in Germany right?
when i posted this

Germany   early Monday morning
US         late Sunday night
Germany   %W   ==>  40
US         %W   ==>  39
Germany   %U   ==>   40
US         %U   ==>   40

because it was on Sunday night the %U would have made it work for me in the US and maybe this was what i was supposed to do. But, I first thought the server used %W and the only problem was because his hash was different from mine because he was in a different week.
If i was supposed to use %U then that just delays the problem to Saturday night registering people.

Germany   early Sunday morning
US         late Saturday night
Germany   %W   ==>  39
US         %W   ==>  39
Germany   %U   ==>   40
US         %U   ==>   39

Offline

#16 2013-10-13 22:51:17

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: Registration question

Right. But the question is why the -u flag doesn't avoid that problem.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#17 2013-10-23 16:01:36

gpunkt
Member
From: terminated.
Registered: 2010-05-17
Posts: 54

Re: Registration question

Hello there,

Could someone be so kind and give some tipps on the solution OR point out the answer?
A friend of mine, familar with linux but having some problems with the configuarion of arch, is trying to get into the .org forums of archlinux because the dotDE aren't that active.
And second question: WHY is this question there in the first place? to scare of newbies? This question wasn't there back when I joined, it seems the forum wants to be "elite"...

Offline

#18 2013-10-23 16:06:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Registration question

gpunkt wrote:

And second question: WHY is this question there in the first place? to scare of newbies? This question wasn't there back when I joined, it seems the forum wants to be "elite"...

https://bbs.archlinux.org/viewtopic.php?id=104892

Offline

#19 2013-10-23 16:21:20

gpunkt
Member
From: terminated.
Registered: 2010-05-17
Posts: 54

Re: Registration question

karol wrote:
gpunkt wrote:

And second question: WHY is this question there in the first place? to scare of newbies? This question wasn't there back when I joined, it seems the forum wants to be "elite"...

https://bbs.archlinux.org/viewtopic.php?id=104892

the question is %W(andsoon) at the moment but it should be %V as we've worked out... but maybe it's part of the question.
I can understand this action against spammers but the question should work.

Last edited by gpunkt (2013-10-23 16:22:38)

Offline

#20 2013-10-23 16:31:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Registration question

gpunkt wrote:
karol wrote:
gpunkt wrote:

And second question: WHY is this question there in the first place? to scare of newbies? This question wasn't there back when I joined, it seems the forum wants to be "elite"...

https://bbs.archlinux.org/viewtopic.php?id=104892

the question is %W(andsoon) at the moment but it should be %V as we've worked out... but maybe it's part of the question.
I can understand this action against spammers but the question should work.

https://bbs.archlinux.org/viewtopic.php … 3#p1333623

Offline

#21 2013-11-06 17:16:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Registration question

Some people still have problems with registering: https://bugs.archlinux.org/task/37630

Is there a way I can help with this?
There's also a chance that people are having issues with copy-pasting and not with the forum registration question itself.

Offline

#22 2013-11-06 17:19:40

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,794

Re: Registration question

That bug was because the author didn't have his UTC set correctly and was running it right before the week switched. Because of that, it was giving him the wrong week number. Completely user error and would only be a problem for a few hours a week anyway.

Last edited by Scimmia (2013-11-06 17:22:30)

Offline

#23 2013-11-06 17:22:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Registration question

Scimmia wrote:

That bug was because the author didn't have his UTC set correctly and was running it right before the week switched. Completely user error.

I got the same answer as he did and I run

date -u +%V$(uname)|sha256sum|sed 's/\W//g'

minutes after he posted the report.

How can I make sure I have UTC set correctly?

Offline

#24 2013-11-06 17:23:06

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,326
Website

Re: Registration question

karol wrote:

There's also a chance that people are having issues with copy-pasting and not with the forum registration question itself.

Scimmia wrote:

That bug was because the author didn't have his UTC set correctly and was running it right before the week switched. Completely user error.

Overall, it seems to be working...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#25 2013-11-06 17:25:11

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,794

Re: Registration question

timedatectl should tell you what UTC is. As of right now, current is "Wed 2013-11-06 17:24:41 UTC"

Offline

Board footer

Powered by FluxBB