geekhack
geekhack Community => Off Topic => Topic started by: 7bit on Sun, 03 July 2011, 04:31:33
-
I need some test data for the next group buy.
Please send messages to 7bit_r4 in the following input fpormat:
ORDERID quatity
or
FGCOLOR/BGCOLOR/TEXTSTYLE/KIT
Please don't forget to add your e-mail address!
Color names:
WHITE
RED
GREEN
BLUE
YELLOW
ORANGE
BROWN
LIGHTBLUE
GREY
VDGREY
BLACK
CLEAR
Text styles:
A|ALL CAPS, centered
C|Camel Case, centered
L|Camel Case, top, left
Kit names:
FULL |120|70|Full
STD |109|60|Standard
NUM | 21|15|Number Block keys
MOD | 16|22|Modifier keys
ALP | 28|15|A-Z keys
FUN | 16|10|Function keys
PUN | 20|12|Punctuation keys
CUR | 10| 8|Cursor keys
MODIFIER | 20|18|Modifier kit
ONEHALFMOD| 14|18|1 1/2 units Modifier kit
FUNCTION | 69|30|Function kit
NUMERIC | 63|28|Numeric kit
POS | 60|30|POS kit
NOPOO |0|0|Noppoo kit (whithout space)
CHERRY1800|0|0|Cherry 1800 kit (for old and new version; no space)
APPLE |0|0|Apple specific keys
FULLADD |0|0|Full Add-On (MODIFIER,...,APPLE)
JRET |2|2|J-shape return plus 1.25 units shift
LRET |2|2|L-shape return plus 1.25 units shift
SPACE |1|1|6.25 units
SPACEOLD |1|1|7 units
SPACEPOS |1|1|7 units
SHIFT125 |1|1|ISO Shift key
CZ |0|0|Czech language kit
DE |0|0|German language kit
DK |0|0|Danish language kit
ES | 23|18|Spanish language kit
FI |0|0|Finnish language kit
FR | 29|18|French language kit
IT |0|0|Italian language kit
SE |0|0|Swedish language kit
SI |0|0|Slovenian language kit
NO |0|0|Norwegian language kit
UK | 8| 7|UK language kit
DVORAK | 22|18|Dvorakistanian language kit
COLEMAK | 14|10|Colemakian language kit
This is the stuff you can order in the test, it will not everything be available in the real group buy; prices will be different as well.
Thanks!
-
Bloody perl!
# Can somone explain why
if()
{
my $line=$_;
}
# is not the same as
while()
{
my $line=$_;
last;
}
# ?
-
Because an if statement is different from a while loop in any programming language?
-
\KL, you didn't fully read the second sample--you missed the "last". The logic is seemingly the same.
7bit: I don't think perl automatically assigns $_ for the if statement. Thus it's value when evaluating "my $line = $_;" is whatever was in there previously, perhaps even nothing if it was never assigned. Note, however, that the if statement did actually read and consume a line of input. You just didn't assign it to anything thus it is gone.
If you do "if ($_ = ) ..." then it will do what you want. But at that point you may as well just write "if (my $line = )...".
-
I need some test data for the next group buy.
Please send messages to 7bit_r4 in the following input fpormat:
ORDERID quatity
I am confused. Assuming your typo "quatity" was meant to be "quantity", I don't know how that is an ORDERID. Or is ORDERID not a literal keyword, and instead and you want me to replace with FGCOLOR/BGCOLOR/TEXTSTYLE/KIT, which in turn is from the values you described above? I can send such a sample.
And perhaps a n00b question, but how are NUM and NUMERIC different? Or FUN and FUNCTION?
No crazy colors? I think light blue text on violet caps would totally rock. Or red on violet. Anyhow, I'll PM a sample.
-
Do you want positve test cases or some nasty negative test cases that could break your script? I can do both.
-
I'm assuming this really is test data. No way I'm buying all this.
I ran your set of values through a tool call PICT, which you can read about at http://www.testingmentor.com/imtesty/2010/10/28/combinatorial-testing-selecting-the-right-values-part-2, or download a the Windows program from http://download.microsoft.com/download/f/5/5/f55484df-8494-48fa-8dbd-8c6f76cc014b/pict33.msi
In short, it generates all pairwise samples. So each possible pair of fgcolor/bgcolor is present, each possible pair of fgcolor/textstyle, bgcolor/textstyle, and so on. It results in a much smaller set of test data than enumerating all possible combinations, yet by still having all possible pairs of values it will do a good job of helping you catch any bugs that result from combinations of things.
I sent two samples, one with good data, one with bogus values as well.
-
As long as this Group Buy has clear keycaps I'm sweet.
Sending a PM through now.
-
Because an if statement is different from a while loop in any programming language?
if it where C++ I would write something like,
if(read>>str) { .. }
and it would read one line of the file into str.
It is equivalent to:
read>>str;
if(read) { .. }
Well, never mind. Perl has also got its benefits.
\KL, you didn't fully read the second sample--you missed the "last". The logic is seemingly the same.
7bit: I don't think perl automatically assigns $_ for the if statement. Thus it's value when evaluating "my $line = $_;" is whatever was in there previously, perhaps even nothing if it was never assigned. Note, however, that the if statement did actually read and consume a line of input. You just didn't assign it to anything thus it is gone.
If you do "if ($_ = ) ..." then it will do what you want. But at that point you may as well just write "if (my $line = )...".
Thanks!
That explains it.
I've never properly learned Perl.
Just using it for its regular expression abilities. :-)
-
I am confused. Assuming your typo "quatity" was meant to be "quantity", I don't know how that is an ORDERID. Or is ORDERID not a literal keyword, and instead and you want me to replace with FGCOLOR/BGCOLOR/TEXTSTYLE/KIT, which in turn is from the values you described above? I can send such a sample.
And perhaps a n00b question, but how are NUM and NUMERIC different? Or FUN and FUNCTION?
No crazy colors? I think light blue text on violet caps would totally rock. Or red on violet. Anyhow, I'll PM a sample.
NUM kit contains only the num-pad keys, whilke NUMERIC is (like in Round 3) full of extra ikeys like 1-90 for row 1, or buttens like /*-+\-= in the most weird locations.
FUN kit contains all regular function keys.
FUNCTION kit contains things like: RELOAD, STOP, RUN, KILL, AGAIN, ETC.
I will post a real Round 4 thread once iMav got finished with Round 3.
-
You think it's possible to set up a wiki for 4 from the start so there's something to reference? Or perhaps have your script put links in the names to some pictures/descriptions? That would eliminate 46.5% of the questions. :)
-
You think it's possible to set up a wiki for 4 from the start so there's something to reference?
yes seriously consider this...there were so many repeated questions from round 3 regarding the kits and how to order
-
We totally need to get arrow keys like this made up...
(http://i51.tinypic.com/24xlus9.jpg)