Recent Posts
SeC Gaming
the Lounge
New Lounge Topic
New Gaming Topic
Due to Bots, Database and Security issues, weve temporarily moved to www.speakeasyclinic.net

You are not connected. Please login or register

Weak Friday night

Go to page : 1, 2  Next

View previous topic View next topic Go down  Message [Page 1 of 2]

1 Weak Friday night on 2013-11-09, 00:05

Guest


Guest
Nothing to do

Blah

What a boring Friday night

What is everybody up to tonight?

2 Re: Weak Friday night on 2013-11-09, 00:07

Not much, bored as hell myself actually. Just having a few beers Very Happy

View user profile

3 Re: Weak Friday night on 2013-11-09, 00:09

Guest


Guest
Word

Me too

Im drinking a Bohemian style Lager

its pretty damn good

4 Re: Weak Friday night on 2013-11-09, 00:11

No idea what that is but...

View user profile

6 Re: Weak Friday night on 2013-11-09, 00:14

Guest


Guest
Yes that is indeed what Im drinking

Im enjoying it thoroughly

Easily the best part of this boring, sleepy night.

7 Re: Weak Friday night on 2013-11-09, 00:16

Style - Czech Pilsener |  5.00% ABV

Would drink that, also pink text for the lulz Very Happy

View user profile

8 Re: Weak Friday night on 2013-11-09, 00:18

Guest


Guest
Looks red to me

Ok now its pink wtf

9 Re: Weak Friday night on 2013-11-09, 00:18

pink...

View user profile

10 Re: Weak Friday night on 2013-11-09, 00:19

Guest


Guest
You dont even own much less know how to use a gun

11 Re: Weak Friday night on 2013-11-09, 00:20

Sym wrote:You dont even own much less know how to use a gun
Well that was random Razz

View user profile

12 Re: Weak Friday night on 2013-11-09, 00:21

drunk.

or something.

View user profile

13 Re: Weak Friday night on 2013-11-09, 00:23

Guest


Guest
RStudios wrote:
Sym wrote:You dont even own much less know how to use a gun
Well that was random Razz
I just realized her sig haha

14 Re: Weak Friday night on 2013-11-09, 00:23

ok, back to normal Razz

View user profile

15 Re: Weak Friday night on 2013-11-09, 00:24

Guest


Guest
One day soon Ill be able to hack this site.....

16 Re: Weak Friday night on 2013-11-09, 00:25

Sym wrote:
RStudios wrote:
Sym wrote:You dont even own much less know how to use a gun
Well that was random Razz
I just realized her sig haha
..who says I don't know how to use one?

View user profile

17 Re: Weak Friday night on 2013-11-09, 00:27

Sym wrote:One day soon Ill be able to hack this site.....
Doubtful, its pretty secure (I checked) That bug is just a fail in the bbcode tag formating

View user profile

18 Re: Weak Friday night on 2013-11-09, 00:27

Guest


Guest
I meant hack as in do what your doing haha

Im going to school for web development so I should be able to find stuff like that relatively soon

19 Re: Weak Friday night on 2013-11-09, 00:29

Practicing my Russian Very Happy

I'm gonna workout and go swimming in a little bit though.

View user profile

20 Re: Weak Friday night on 2013-11-09, 00:30

Its just a bug on how the server side parser doesnt close bbcode tags right, I had to download the punbb source to find how it worked after frost accidentally did it lol.

View user profile

21 Re: Weak Friday night on 2013-11-09, 00:32

Guest


Guest
Your a programmer right?

My best buddy is a programmer

22 Re: Weak Friday night on 2013-11-09, 00:33

Bla125 wrote:Practicing my Russian Very Happy

I'm gonna workout and go swimming in a little bit though.
wish we had pool around here.

View user profile

23 Re: Weak Friday night on 2013-11-09, 00:33

Guest


Guest
Bla125 wrote:Practicing my Russian Very Happy

I'm gonna workout and go swimming in a little bit though.
Who goes to the gym on a Friday night at 9 pm?

You healthy bastard!

You live in Washington right?

24 Re: Weak Friday night on 2013-11-09, 00:33

Hey sym that just reminded me, you know much programming yet? FB run a comp once a year and its coming up end of november, if you wanna have a play (first round is normally pretty easy)

https://www.facebook.com/hackercup

View user profile

25 Re: Weak Friday night on 2013-11-09, 00:34

Guest


Guest
I know very little

The most sophisticated program I ever wrote was a calculator

Im still a newb big time

I would need a refresher before I could do anything however

26 Re: Weak Friday night on 2013-11-09, 00:34

Sym wrote:Your a programmer right?

My best buddy is a programmer
yeah, self taught since i was 12... started freelancing when i was like 17... 28 now

View user profile

27 Re: Weak Friday night on 2013-11-09, 00:34

Guest


Guest
You sound like my friend

Doing calculus in middle school?

28 Re: Weak Friday night on 2013-11-09, 00:37

My entry from last years first round... Did it in PHP for the lulz

Beautiful Strings - The problem:

When John was a little kid he didn't have much to do. There was no internet, no Facebook, and no programs to hack on. So he did the only thing he could... he evaluated the beauty of strings in a quest to discover the most beautiful string in the world.

Given a string s, little Johnny defined the beauty of the string as the sum of the beauty of the letters in it.

The beauty of each letter is an integer between 1 and 26, inclusive, and no two letters have the same beauty. Johnny doesn't care about whether letters are uppercase or lowercase, so that doesn't affect the beauty of a letter. (Uppercase 'F' is exactly as beautiful as lowercase 'f', for example.)

You're a student writing a report on the youth of this famous hacker. You found the string that Johnny considered most beautiful. What is the maximum possible beauty of this string?

Input
The input file consists of a single integer m followed by m lines.

Output
Your output should consist of, for each test case, a line containing the string "Case #x: y" where x is the case number (with 1 being the first case in the input file, 2 being the second, etc.) and y is the maximum beauty for that test case.

Constraints
5 = m = 50
2 = length of s = 500

Solution:

Code:
$f= fopen("input.txt","r");
$out = "";
$m = 0;
$x = 0;
 
function calculate($string){
  $stack = array();
  $string = preg_replace('/[^a-z]+/i', '', strtolower($string));
     for ($i = 0; $i < = 25; $i++) {
       $a = substr_count($string, chr(97+$i));
         if ($a > 0 ){
           array_push($stack, $a);  
         }  
     }  
 
 rsort($stack);  
    for ($i = 0; $i < count($stack); $i++) {
       $return_value += $stack[$i]*(26-$i);
    }
return $return_value;
}
 
while($line = fgets($f)) {
    if( $x == 0){
        $m = $line;
    }else{
      $output .= 'Case #' . $x . ': ' . calculate($line);
         if( $x < $m ){
            $output .= "\n";
         }
    }
    $x++;
}
file_put_contents("output.txt", $output);

View user profile

29 Re: Weak Friday night on 2013-11-09, 00:37

we dont do calculus in middle school lol, its just called math Very Happy But I was in the top class for everything except english

View user profile

30 Re: Weak Friday night on 2013-11-09, 00:39

Guest


Guest
Way above my head haha

I have to take a programming class spring term, so Im sure Ill get my brush up.

31 Re: Weak Friday night on 2013-11-09, 00:39

Sym wrote:
Bla125 wrote:Practicing my Russian Very Happy

I'm gonna workout and go swimming in a little bit though.
Who goes to the gym on a Friday night at 9 pm?

You healthy bastard!

You live in Washington right?
It's better to go late rather than not go at all. And I do live in Washington.

Also I have a pool and sauna in my apartment which is nice Smile

View user profile

32 Re: Weak Friday night on 2013-11-09, 00:40

Guest


Guest
Man math is one of those things where you either get it or you dont

People in my class are so lost.....I mean I dunno....maybe paying attention might help!

33 Re: Weak Friday night on 2013-11-09, 00:42

Yeah the skill of some ppl last year was both epic fail, and crazy good... It was taking hundreds of people like 12+ hours to submit code for that problem. I took just over an hour because i kept reading it thinking WUT? fastest was like 15mins.

View user profile

34 Re: Weak Friday night on 2013-11-09, 00:42

Guest


Guest
Bla125 wrote:
Sym wrote:
Bla125 wrote:Practicing my Russian Very Happy

I'm gonna workout and go swimming in a little bit though.
Who goes to the gym on a Friday night at 9 pm?

You healthy bastard!

You live in Washington right?
It's better to go late rather than not go at all. And I do live in Washington.

Also I have a pool and sauna in my apartment which is nice Smile
Yea Im going to the gym on Sunday and Monday(no class woot)

35 Re: Weak Friday night on 2013-11-09, 00:47

Guest


Guest
RStudios wrote:Yeah the skill of some ppl last year was both epic fail, and crazy good... It was taking hundreds of people like 12+ hours to submit code for that problem. I took just over an hour because i kept reading it thinking WUT? fastest was like 15mins.
I would have no idea where to even begin...

36 Re: Weak Friday night on 2013-11-09, 00:47

Sym wrote:Man math is one of those things where you either get it or you dont

People in my class are so lost.....I mean I dunno....maybe paying attention might help!
If they cannot grasp basic math then they shouldn't be doing development, they should have done design instead.

In programming its nearly all algebra and triganomatry

View user profile

37 Re: Weak Friday night on 2013-11-09, 00:49

Guest


Guest
Good thing Algebra is easy haha

Thats what Im doing now as a refresh since I haven't been in school in a long time

38 Re: Weak Friday night on 2013-11-09, 00:52

Just wait till you ever have to do something as simple as rotating an object on the screen..... here comes the cos/sin/tan you thought you would never use as a kid lmao

View user profile

39 Re: Weak Friday night on 2013-11-09, 00:55

Guest


Guest
Luckily Im not going to heavy into the programming end.

Im gonna be more development.......at least that's the plan as of now.

3/4x + 1/2= 6/8

This is what im doing right now

Really easy shit

40 Re: Weak Friday night on 2013-11-09, 01:01

i dunno how universitys class the differences... but development is normally the programing side (or at least the application an structure) design is the gfx side and basic HTML

I'm more into the high lvl backend programing, but i do work with PHP and javascript frontend too.

First time I ever had to work on a payment system i was soooo shitting myself lol

View user profile

41 Re: Weak Friday night on 2013-11-09, 01:06

Also protip:

Once your leave uni, FORGET everything they told you about standards and how to do shit, 0.5% of it is relevant to the actual industry lol. Read up, stay current with the latest tech and ideas and work on that aspect.

I have worked with so many 'new' graduates on projects and had to recode a whole bunch of shit because they are programing things based on techniques that haven't been used in 5-10years

View user profile

42 Re: Weak Friday night on 2013-11-09, 01:07

Guest


Guest
So funny how you guys call it Uni

Well pretty much everywhere else in the world calls it that

We call it college haha

Dumb Americans

43 Re: Weak Friday night on 2013-11-09, 01:11

If your getting a degree its Uni
If your getting a shitty qualification (ie: NVQ in england, maybe some sort of certificate that you can do something in America) its called College Very Happy

Main difference is uni = 3-4+ years
College = 1-2 years

View user profile

44 Re: Weak Friday night on 2013-11-09, 01:12

Guest


Guest
Yea in America its still college

45 Re: Weak Friday night on 2013-11-09, 01:15

Please tell me they don't call Harvard / Yale and MIT colleges LOL

View user profile

46 Re: Weak Friday night on 2013-11-09, 01:16

Guest


Guest
Indeed they do

Why do you think they call it college football and not University football haha?

47 Re: Weak Friday night on 2013-11-09, 01:17

Lol good point, thats bad tho... lmao

View user profile

48 Re: Weak Friday night on 2013-11-09, 01:21

Guest


Guest
To us Americans college and University are the same thing

No difference haha

I kinda like your system better......right now I would be in college as Im in a 2 year school currently

49 Re: Weak Friday night on 2013-11-09, 01:22

actually colleges and universities have a different curriculum (i believe).

View user profile

50 Re: Weak Friday night on 2013-11-09, 01:23

MissSym wrote:actually colleges and universities have a different curriculum (i believe).
Yes obviously Razz

View user profile

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 2]

Go to page : 1, 2  Next

Permissions in this forum:
You cannot reply to topics in this forum