Archived Programming Thread

Status
Not open for further replies.

Belisar

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Aug 12, 2008
Messages
1,940
Reaction score
506
Gender
Hidden
Country
Germany
i missed a programming thread here so i decided to make one for the nerds and geeks like me. ;)

feel free to ask for help, to help, to post your programms or to discuss with other members. i don't see the need for a programming language restriction.
any of them goes.
 
Last edited:

plop

Registered User
初心者/ Shoshinsha / Beginner
Joined
Oct 12, 2006
Messages
30
Reaction score
0
Gender
Male
Country
Finland
ugly hello world contest? First one should be easy to beat =)

----

#include <stdio.h>

short int hello[]={0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x77, 0x6F, 0x72, 0x6C,
0x64, 0x21, 0xA};

int main(void)
{
long long i;
for(i=0;i<13;i++)
printf(hello+i);
return 0;
}
 

Belisar

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Aug 12, 2008
Messages
1,940
Reaction score
506
Gender
Hidden
Country
Germany
#include <stdio.h>

int main()
{
int i;
char arr[] ={"Hello World\0"};
for (i = 0; i < 12; i++)
printf("%d", arr);
printf('\n');
}

hello world in ascii-mode :>
 

getsome

Registered User
下級員 / Kakyuuin / Jr. Member
Joined
Jun 27, 2008
Messages
63
Reaction score
5
Gender
Male
Country
United States
hello in japanese

<?php

echo "herro";

?>
 

Kazi

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Jul 20, 2008
Messages
858
Reaction score
56
Gender
Male
Country
Germany
hello in japanese

<?php

echo "herro";

?>
lol :amuse

@thread:

Code:
<?php

include( '<link rel="stylesheet" href="talkaboutcsstoo.css" type="text/css">' );

?>
? ^^
 

Belisar

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Aug 12, 2008
Messages
1,940
Reaction score
506
Gender
Hidden
Country
Germany
lol :amuse

@thread:

Code:
<?php

include( '<link rel="stylesheet" href="talkaboutcsstoo.css" type="text/css">' );

?>
? ^^
it's not "hello world". :sweat
 

Kazi

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Jul 20, 2008
Messages
858
Reaction score
56
Gender
Male
Country
Germany
I didn't say it would give out "hello world" xD
I just wanted to know if its also allowed (or in topic) to talk about CSS programming and as well html :amuse
 

Belisar

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Aug 12, 2008
Messages
1,940
Reaction score
506
Gender
Hidden
Country
Germany
loool i thought you wanna participate in "ugly hello world" contest as well ^^

every language is allowed and welcome here. from assembler, basic, fortran over haskell, sql to java, c++ and xml. you can even discuss brainfuck. :XD

tell your programmer friends here about this thread. more people more fun though. ;)
 
Last edited:

Kazi

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Jul 20, 2008
Messages
858
Reaction score
56
Gender
Male
Country
Germany
well then ...

Code:
main    ldy #$00
.1      lda str,y
        beq .2
        jsr $fded ; ROM routine, COUT, y is preserved
        iny
        bne .1
.2      rts
str     .as "HELLO WORLD"
        .hs 0D00
 

plop

Registered User
初心者/ Shoshinsha / Beginner
Joined
Oct 12, 2006
Messages
30
Reaction score
0
Gender
Male
Country
Finland
Python is fun too. Asm is one of the 'want to learn in future, when i have the time' things =)

Code:
#!/usr/bin/env python2.5
print 'Hello MangaHelpers!'
And I didn't know I could use [ code][ /code] tags
 

Belisar

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Aug 12, 2008
Messages
1,940
Reaction score
506
Gender
Hidden
Country
Germany
Python is fun too. Asm is one of the 'want to learn in future, when i have the time' things =)

Code:
#!/usr/bin/env python2.5
print 'Hello MangaHelpers!'
And I didn't know I could use [ code][ /code] tags
i love python :wtf

kazi what language is this?
 

Kazi

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Jul 20, 2008
Messages
858
Reaction score
56
Gender
Male
Country
Germany
that's assembler ^^, plop said it already "asm"
 

getsome

Registered User
下級員 / Kakyuuin / Jr. Member
Joined
Jun 27, 2008
Messages
63
Reaction score
5
Gender
Male
Country
United States
<?php
$kazi = $_GET['kazi']

if ($kazi == "cool") {
echo "Awesome Deviant Art! I just got a Wacom Bamboo Fun and\n" .
"have both Photoshop CS3 and Corel Painter X. I'm having\n" .
"trouble shading, any suggestions?/tutorials you know of?";
}
else { echo ":("; }
?>
 

plop

Registered User
初心者/ Shoshinsha / Beginner
Joined
Oct 12, 2006
Messages
30
Reaction score
0
Gender
Male
Country
Finland
kazi: which assembler should should i pick for learning? Gas is the thing to use for inline asm with gcc, right? Nasm works with icc? Does it make any diffirence what I pick?
 

Kazi

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Jul 20, 2008
Messages
858
Reaction score
56
Gender
Male
Country
Germany
@getsome
Code:
<?php
$cool = $_GET['Knowledge of search maschines']
?>
;) ... really just search, there a tons of tuts ^^, well i could giv a link too
Code:
<?php
$getsome = $_GET['User:getsome']

if ($getsome == "independent") {
    echo " ;)" ;}
else { echo "http://browse.deviantart.com/?qh=&section=&q=Tablet+Tutorial"; }
?>
@plop: I'm not that much in asm, but i would pick gas. the gcc compiler is the best to minimize the given instructions. nasm is nearest to the intel syntax though
why do you want to learn asm anyway? i don't really like this language =/
__________________

hello world in java
Code:
public class HelloWorld {
 
  public static void main(String[] args) {
    System.out.println("Hello World!");    
  }
}
 
Last edited:

plop

Registered User
初心者/ Shoshinsha / Beginner
Joined
Oct 12, 2006
Messages
30
Reaction score
0
Gender
Male
Country
Finland
Just for the fun of it. I'm not a programmer or anything, i just tinker with stuff occasionally. Only languages i can write are c (not c++) and python.
 

Kazi

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Jul 20, 2008
Messages
858
Reaction score
56
Gender
Male
Country
Germany
i'm also not a programmer >.>
i just have a basic understanding of a few languages, not more
though i'm really good at css and xhtml
 

Belisar

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Aug 12, 2008
Messages
1,940
Reaction score
506
Gender
Hidden
Country
Germany
plop
The Netwide Assembler (NASM) is an assembler and disassembler for the Intel x86 architecture. It can be used to write 16-bit, 32-bit (IA-32) and 64-bit (x86-64) programs. NASM is considered to be one of the most popular assemblers for Linux[1] and is the second most popular assembler overall.[2]
that would be suitable.
 

Red Hood

Registered User
中級員 / Chuukyuuin / Member
Joined
Oct 30, 2008
Messages
179
Reaction score
5
Gender
Male
Country
Puerto Rico
Assembler Language...!! this is great. I have to take that class this semester. Now i know where to find some help around when the prof start giving asigmments.:p
 

getsome

Registered User
下級員 / Kakyuuin / Jr. Member
Joined
Jun 27, 2008
Messages
63
Reaction score
5
Gender
Male
Country
United States
@getsome
Code:
<?php
$cool = $_GET['Knowledge of search maschines']
?>
;) ... really just search, there a tons of tuts ^^, well i could giv a link too
Code:
<?php
$getsome = $_GET['User:getsome']

if ($getsome == "independent") {
    echo " ;)" ;}
else { echo "http://browse.deviantart.com/?qh=&section=&q=Tablet+Tutorial"; }
?>
@plop: I'm not that much in asm, but i would pick gas. the gcc compiler is the best to minimize the given instructions. nasm is nearest to the intel syntax though
why do you want to learn asm anyway? i don't really like this language =/
__________________

hello world in java
Code:
public class HelloWorld {
 
  public static void main(String[] args) {
    System.out.println("Hello World!");    
  }
}
i've done a lot of searching and found some good ones, but most of them are just speed painting vids, not exactly step by step tutorials. the one problem i'm having is figuring out which brush works best for the task at hand. i figured color pencils for sketching but i'm still not sure which one to apply for shading, specifically skin and hair.

thanks for the link!
 
Status
Not open for further replies.
Top