Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




BDFL - Memuneh
58503 posts

Uber Geek
+1 received by user: 9946

Administrator
Trusted
Geekzone
Subscriber

Topic # 110942 19-Oct-2012 21:50
Send private message

This might make some happy around here... After a while I've decided to implement the encoding needed to allow posting code. Please use the existing [code] tags (BBCODE guide here):


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace MvcDemo.Models
{
public class MovieDB
{
public int ID { get; set; }
public string Title { get; set; }
public string Director { get; set; }
public DateTime Date { get; set; }

}
public class MovieDBContext : DbContext
{
public DbSet<MovieDB> Movies { get; set; } 
}
}

<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>

<img src="pulpit.jpg" alt="Pulpit rock" width="304" height="228">





Create new topic
805 posts

Ultimate Geek

Trusted

  Reply # 703808 19-Oct-2012 22:45
Send private message

 

#include

main()
{
printf("Hello World");

}



5680 posts

Uber Geek
+1 received by user: 786

Trusted
Subscriber

  Reply # 703809 19-Oct-2012 22:52
Send private message

That looks suspiciously like the Microsoft example of how to use MVC ;)

 
 
 
 


mjb

922 posts

Ultimate Geek
+1 received by user: 21

Trusted

  Reply # 703840 19-Oct-2012 23:50
Send private message

mattRSK:
  
main()



In the words of a good friend,

int main(); int main(); int main(); int main(); int main(); int main(); dammit!

(also, you're missing argc and argv, but I'll let you off)




contentsofsignaturemaysettleduringshipping

6393 posts

Uber Geek
+1 received by user: 2832

Moderator
Trusted
Subscriber

  Reply # 703849 20-Oct-2012 00:11
Send private message

About time :)

Good Job, now go outside, it's dark cold and raining at the moment but the fresh air is good for you I've heard.




Michael Murphy | https://murfy.nz
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router Guide | Electric KiwiCommunity UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial


805 posts

Ultimate Geek

Trusted

  Reply # 703966 20-Oct-2012 11:22
Send private message

mjb:
mattRSK:
   
main()



In the words of a good friend,

int main(); int main(); int main(); int main(); int main(); int main(); dammit!

(also, you're missing argc and argv, but I'll let you off)


I'll admit it was a terrible rushed job.

3360 posts

Uber Geek
+1 received by user: 378

Trusted

  Reply # 703973 20-Oct-2012 11:36
Send private message

 
if (1 = 1) { echo 'Zeon is obviously l33t h@x0r programmer' };







BDFL - Memuneh
58503 posts

Uber Geek
+1 received by user: 9946

Administrator
Trusted
Geekzone
Subscriber

  Reply # 703999 20-Oct-2012 12:58
Send private message

mattRSK:
mjb:
mattRSK:
    
main()



In the words of a good friend,

int main(); int main(); int main(); int main(); int main(); int main(); dammit!

(also, you're missing argc and argv, but I'll let you off)


I'll admit it was a terrible rushed job.


Wheedle style?




5680 posts

Uber Geek
+1 received by user: 786

Trusted
Subscriber

  Reply # 704001 20-Oct-2012 13:00
Send private message

freitasm: Wheedle style?

After seeing Zeon's example above using assignment instead of equality... ;)

mjb

922 posts

Ultimate Geek
+1 received by user: 21

Trusted

  Reply # 704080 20-Oct-2012 18:12
Send private message

Behodar:
freitasm: Wheedle style?

After seeing Zeon's example above using assignment instead of equality... ;)


That's fine, in some languages... but the combination of that, braces, and 'echo', I'm not sure which language it is!




contentsofsignaturemaysettleduringshipping

gzt

8878 posts

Uber Geek
+1 received by user: 1185


  Reply # 706327 25-Oct-2012 15:32
Send private message

Just noticed the code tag does not escape bbcode.

Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Public Wi-Fi plus cloud file sharing
Posted 18-Aug-2017 11:20


D-Link NZ launches professional Wireless AC Wave 2 Access Point for businesses
Posted 17-Aug-2017 19:25


Garmin introduces the Rino 700 five-watt two-way handheld radio
Posted 17-Aug-2017 19:04


Garmin announces the Foretrex 601 and Foretrex 701 Ballistic Edition for outdoor and tactical use
Posted 17-Aug-2017 19:02


Brightstar announces new distribution partnership with Samsung Knox platform in Australia
Posted 17-Aug-2017 17:07


Free gig-enabled WiFi network extends across Dunedin
Posted 17-Aug-2017 17:04


Samsung expands with connect Gear S3 Frontier
Posted 17-Aug-2017 15:55


Fact-checking Southern Cross Next cable is fastest to USA
Posted 17-Aug-2017 13:57


Thurrott says Microsoft Surface is dead last for reliability
Posted 16-Aug-2017 15:19


LibreOffice 5.4 works better with Microsoft Office files
Posted 16-Aug-2017 13:32


Certus launches Cognition
Posted 14-Aug-2017 09:31


Spark adds Cambridge, Turangi to 4.5G network
Posted 10-Aug-2017 17:55


REANNZ network to receive ongoing Government funding through to 2024
Posted 10-Aug-2017 16:05


Chorus backhaul starts with 2degrees
Posted 10-Aug-2017 15:49


New Zealanders cool on data analytics catching benefit fraud
Posted 10-Aug-2017 09:56



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.