Tag Archives: NUMBER

W Hotels Worldwide Sends CFDA {FASHION INCUBATOR} Designers on Fashion-Focused Inspiration Trips Aro

By Business Wirevia The Motley Fool

Filed under:

W Hotels Worldwide Sends CFDA {FASHION INCUBATOR} Designers on Fashion-Focused Inspiration Trips Around the World


W Hotels Takes
Council of Fashion Designers of America‘s Emerging Designer Program Out of New York City for the First Time, Offering a Global Platform for Exposure and Inspiration


From Barcelona to Bali, Designers to Stay at W Hotels & Retreats across the Globe, Gathering Inspiration for Spring 2014 Collections

NEW YORK–(BUSINESS WIRE)– W Hotels Worldwide and the Council of Fashion Designers of America (CFDA) today announced the second phase of their multi-layered partnership as they unveiled the weeklong trips on which the CFDA {FASHION INCUBATOR} designers will embark in order to seek inspiration for their upcoming collections. The dynamic group, which includes designers from fashion and accessories brands Ari Dein, Burkman Bros., Daniel Vosovic, Emanuela Duca, Isaora, Jonathan Simkai,Reece Hudson, NUMBER:Lab, Timo Weiland and WHIT, will draw creativity for their Spring 2014 collections from the vibrant destinations and cutting-edge W Hotels they visit around the world.

“W Hotels is proud to be a partner of the CFDA {FASHION INCUBATOR} program, and together, we have created a unique global platform to elevate exposure and drive business for these rising fashion stars,” said Carlos Becil, Vice President of Brand Management, Starwood’s Luxury and Design Brands, North America. “In addition to the designer showcases at W Hotels around the country, these ten inspiration trips allow each designer to leave home and soak in the energy, creativity, and spirit of dynamic destinations around the world to inspire their next collection.”


Passports and Sketchbooks in Hand, Designers Jet Off in Search of Fashion Inspiration

American menswear design brand Burkman Bros. and womenswear designer Jonathan Simkhai will separately travel to the newly opened W Bangkok, set in the pulsating heart of the city near glittering temples and spicy street markets. Founded by brothers Ben and Doug Burkman, the contemporary menswear collection Burkman Bros. is heavily influenced by travel and incorporates prints and fabric treatments from countries around the world. Jonathan …read more
Source: FULL ARTICLE at DailyFinance

Joining 2 Files

By Daniel Gate

HTML Code:

File "A" (column names: Nickname Number GB)
Nickname Number GB
PROD_DB0034 100A 16
ASMIL1B_DATA_003 100B 16
PSPROD_0000 1014 36
PSPROD_0001 100D 223
.....


HTML Code:

File "B" (column names: TYPE DEVICE NUMBER SIZE)
TYPE DEVICE NUMBER SIZE
1750500 hdisk2 100A 16384
1750500 hdisk3 1010 73728
1750500 hdisk5 1015 36864
1750500 hdisk4 1014 36864


I have two files above. On both files, “Number” (on A) and “NUMBER ” (on B) are the join connector for these 2 file.

The output I want after the join is:

HTML Code:

Nickname Number GB TYPE DEVICE NUMBER SIZE REMARK
PROD_DB0034 100A 16 1750500 hdisk2 100A 16384
ASMIL1B_DATA_003 100B 16 -- -- -- -- (no match)
-- -- -- -- 1750500 hdisk3 1010 73728 (no match)
PSPROD_0000 1014 36 1750500 hdisk4 1014 36864
-- -- -- -- 1750500 hdisk5 1015 36864 (no match)
PSPROD_0001 100D 223 -- -- -- -- (no match)


Please advise.

Source: FULL ARTICLE at The UNIX and Linux Forums

Python regular expression screen scrub

By kaf3773

Hi

I am trying to write a python script that executes a command to screen scrub results below
I will appreciate it very much if you can help me with a python script that can
pick the percentage USAGE in the second column based on the supplied queue number in the first column


import re
content = """NUMBER of Queues = 5
SYSTEM Treshold = 80%
==================================================================

QUEUE USAGE TOTAL book1 book2

------------------------------------------------------------------

0001 18% 822 481 98

0002 16% 345 765 88

0003 10% 400 300 166

0004 15% 994 322 177

0005 17% 348 297 131

---------------------------------------------------------- """

m = re.match("(0001)/(d{%})", content)
if m:
print m.group(0)
print m.group(1)


When i run this from the command prompt nothing shows up

I was able to get this screen scrub done using php preg_match_all
but i want to do the same with the re module in python.

Please suggestions and help will be very much appreciated

Thanks

Source: FULL ARTICLE at The UNIX and Linux Forums

Python:Picking values from a table

By kaf3773

Hi

I trying to write a python script that executes a command to get the following results below
I will appreciate it very much if you can help me with a python script that can
pick the percentage USAGE in the second column based on the supplied queue number in the first column
Thanks in advance.

NUMBER of Queues = 5
SYSTEM Treshold = 80%
==================================================================

QUEUE USAGE TOTAL book1 book2

——————————————————————

0001 18% 822 481 98

0002 16% 345 765 88

0003 10% 400 300 166

0004 15% 994 322 177

0005 17% 348 297 131

———————————————————-

Source: FULL ARTICLE at The UNIX and Linux Forums

Yacc rogram

By zolafencerhello, actually i want to generate rgram in yacc able to do do several operations separated by ‘;’ and after show all the results separated by ‘;’ again.
My code do just one operations and i couldn’ t find solution to do several ones separated by ‘;’. I thought may be i can do a do… while but i don’t know how to do it for my example. If someone can help me please.
here is my .y for just one operation

%{ double vbltable[26]; %}

%union {
double dval ;
int vblno; }

%token NAME
%token NUMBER

%type expression

%%
statement_list:
statement ‘n’
| statement_list statement ‘n’
;

statement:
NAME ‘=’ expression { vbltable[$1] = $3; }
| expression { printf(“est %gn”, $1); }
;

expression:
expression expression ‘+’ { $$ = $1 + $2; }
| expression expression ‘-‘ { $$ = $1 – $2; }
| expression expression ‘*’ { $$ = $1 * $2; }
| expression expression ‘/’ {if($2 == 0.0)
printf(“erreur ! Division par 0”);
else
$$ = $1 / $2; }
| ‘(‘ ‘-‘ expression ‘)’ { $$ = -$3; }
| NUMBER { $$ = $1; }
| NAME { $$ = vbltable[$1]; }
;
%%

int yyerror() { printf(“erreur”) ; }
int main () { yyparse(); }

and here is my .l

%{
#include “y.tab.h”
#include
extern double vbltable[26];
%}

%%

([0-9]+|([0-9]*”.”[0-9]+)) { yylval.dval = atof(yytext); return NUMBER; }
t; { ; }
” ” { ; }
[a-z] { yylval.vblno = yytext[0] – ‘a’ ; return NAME;}
“$” { return 0;
/* symb. de retour pour fin de fichier */}
n { return yytext[0]; }
. { return yytext[0]; }

%%

thanks
Source: The UNIX and Linux Forums