The Geek Forum

  • April 27, 2024, 05:27:18 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Due to the prolific nature of these forums, poster aggression is advised.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Probie

Pages: [1]
1
Entertainment / Torchwood is ruined and you're cancelling Eureka
« on: September 01, 2011, 05:20:43 AM »

Explain America!

2
Anarchy / Simple Yes/No
« on: August 16, 2010, 08:33:57 AM »

That is all.

3
Anarchy / Pole Dancing
« on: May 20, 2010, 10:32:19 AM »

I tried pole dancing last night and it was really really fun. All my muscles are hurting today though, and i really need to work on my strength. This is the first hobby that has ever made me want to be stronger....aside from that brief pipe dream of being a body builder LOL.

Anyway, I would definitly recommend it!

4
Political Opinions / Dear the united states
« on: April 16, 2010, 03:58:06 AM »

Dear The United States,

I've noticed in recent months a decline in your appreciation for Nobel prize winner Barack Obama. Interestingly enough we have a general election coming up and we have three very wonderful candidates available. However we thought (in the interest of friendship) that we might give you one of our old duffers... I mean, interesting candidates in a swap. In short; please can we trade you David Cameron, Clegg and Gordon Brown for Barack Obama.

Yous faithfully,

The United Kingdom.

5
Hardware, Software, and Other Imperialist Crap / New Toy!
« on: January 29, 2010, 08:06:27 AM »

I've been doing piano lessons for about two months now and have recently found myself single, and lacking a piano to practise on. So on a tight budget I got myself one of these:

http://www.amazon.co.uk/Yamaha-YPT210-Portable-Keyboard-Including/dp/B002IS6952/ref=pd_sxp_f_r

I can't wait to go home and practise!!!!

6
Homework Help / Detta! (Or anyone else mathamatical!)
« on: December 03, 2009, 07:26:52 AM »

Hey, I'm trying to divide screen into squares for that i need to be able to divide 2 numbers by 2 different amounts which will equal a singluar value.

Working example

width of my screen 1152/16 = 72

height of my screeen 864/12 = 72

so i draw 16 squares 72 pixels wide across my screen and 12 square 72 pixels wide down my screen. Any ideas?

7
Homework Help / Quick C++ question
« on: November 05, 2009, 05:43:29 AM »

I'm doing a little proof of concept app using winapi and opengl. I have a main process which fires off a thread and within that thread it creates a window. Now the window isn't on the task bar it's a system tray app and the trayIcon object is a member of the window.

So thread class owns window, window owns tray, tray owns pop up menu. Now when i work this 'thread with window' into the final app, that will already have a working  trayicon and menu that will be associated with the other main app and i will just be running a window in a separate thread.

However for the current app its all a bit hacky...okay A LOT hacky. So I am having to add features to this app through the menu which then calls windowproc and windowproc is associated with the window as per usual. All these features work quite nicely...however!

When I called exit in my menu this goes to the big switch in the sky and calls close(), this then kills the trayicon and sends a mesage to wm_close destructs the window and used to close the app....however now we have this thread in the middle that owns the window when the window is close the thread is still running. I'm waffling... but the long of short of it is I did this:

class Window{
void* pParent; // going to be the thread that owns the window. Can't declare the proper type for a very good reason VC++ wont     
                    // explain and I can't find the right search criteria.
};

Window::Close()
{
if (m_trayIcon.IsVisible())
      m_trayIcon.OnDestroy();

   BluelineThread* pBlueline = static_cast<BluelineThread*>(pParent);
   if (pBlueline)
      pBlueline->m_bKeepThreadingAlive = false;

   if (m_hWnd)
      ::SendMessage(m_hWnd, WM_CLOSE, 0, 0);

}

pParent = this; // this happen in the window init

So what I want to know is....being that I know this is all hacky, how bad is it that I have done this? AND is it functional enough to leave in a prototype.

Also in my old company we could easily be able to pass a pointer of a parent to one of its children it was part of our model, so why can't I instance an object window in thread and thread in window? I'm sure it's very simple, but I just can't put my finger on it. Do I need to forward declare the class or something?



8
Anarchy / Holodeck.... Major hole in the concept.
« on: November 03, 2009, 04:07:08 PM »

What would happen if four people stood facing away from eachother towards the four main compas directions and walked outwards? They never explain.... Stupid Star trek.

9

JUST KIDDING!  :-D

Hey programmers of the world... My brain is melting! So I'm using WinAPI and a class that creates systray icons. The systray icon example I have uses MFC (I could right everything I know about MFC on my thumb) and I am trying to mold it into my winapi app (limited knowledge also!). So, so far I have created the recourse ico thingi, and it in turn auto generated the resource.h file.

My icon loading code looks like this :

HICON trayIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));

But has weird contents like this :

trayIcon = 0x01a20557 {unused=??? }
unused = CXX0030: Error: expression cannot be evaluated

similarly when I pass the hwnd obj to the system tray class its contents is as above ^

then when we go into the createSystemTrayIcon() method and the

m_hParentWnd = parent;

window is assigned...it all goes tits up!

Unhandled exception at 0x00415799 in blueline.exe: 0xC0000005: Access violation writing location 0x00000008.


So what do you think? Is there an ovbious mistake here. I'm not sure who else programs, so this is mainly directed towards ivan I guess. Any help would be really appreciated.

Here, someone else has the same issue...but no one responded:

http://thewinforums.com/topic/52955-create-window-problem/

10
Political Opinions / UK broadband levy - my kingdom for your onions!
« on: June 17, 2009, 06:33:09 AM »
http://news.bbc.co.uk/1/hi/technology/8102756.stm

This has annoyed me quite a bit because i think that British Telecom and the people who live in remote areas should incur the cost as they are the people who stand to benefit from the work that needs to be done. But it mainly upsets me because the government is just trying to muscle in on the internet and control it even more. It makes me feel sick that they can just charge in so unashamedly and say "this is ours now".

your onions people?

11
Homework Help / Grammar rule!
« on: May 20, 2009, 10:06:49 AM »

an before vowels       - I am an extremely motivated person

a before consonants - I am a highly motivated person

HOWEVER

if the vowel sounds like a consonant then you use the consonants one - I am a unicorn

seee?

12
Anarchy / It's a geek thing, we don't like wasting time!
« on: May 20, 2009, 09:11:51 AM »

Many of my geek friends have bags under their eyes and some avoid getting jobs because potential boss's don't 'get' their body clock. How do you sleep yours?...your sleep that is?

13
Homework Help / Planes, Distances and nonzero origins
« on: March 26, 2009, 11:02:08 AM »
If I have a plane equation Ax + By + Cz + D = 0 where A B and C are the normal of the plane and D is the distance from the 0,0,0, and I also have the real origin of the object in a 3D world which is nonzero (say for example something like -150, -150, -150 or there abouts) then is it possible to work out the distance from the nonzero origin? And if so can anyone explain it to me.

I have a page of rearranged equations and frankly its melting my brain. I think what i need to do is quite simple

1. work out the closest point of the plane along the normal from the origin.

2. use the origin and the point on the normal to work out the length of the 3D hypotenuse.


Any help would be very greatly appriciated. Even if its just a site that explains it in idiot for me.

Thank you.


14
Anarchy / Muffins
« on: March 26, 2009, 08:45:06 AM »

I'm going to make muffins tonight for my friends birthday. I could go for the obvious blueberry, but i was wondering if anyone had any special recipes or advice or they could think of something a bit special to put in them.... 







15
Anarchy / I'm going to be rich! Filthy RICH I tells ya!
« on: March 18, 2009, 11:55:46 AM »
For thirty seconds I thought I had just come up with the invention that was doing to make me million; I've been waiting for it to come along for a while now.

I've been bitching to my co-workers about how cold my hands are for weeks now, and although my body keeps warm from all the caffeine my fingers actually feel sore from the cold air from the air con and bad circulation. I figured I can't be alone.

This is where the invention comes in : Heated Keyboards!!!

Whilst sitting on the throne I was thinking "heat resistant material" and "optimum temperatures". Turns out its already been invented.

Damn. I hope I can pick one up though.


Anyone else come up with an invention only to find it has already been done?

16
Entertainment / The God Delusion
« on: March 04, 2009, 04:56:44 AM »
I just finished The God Delusion. Know, I had my reservations about reading this book. I saw Dr Richard Dawkins on an English Discussion TV show, and I had only vaguely been aware of him. I thought he seemed a little obnoxious and a trifle "know it all". However when I started it I was taken back, I found his arguments  (whilst a little pushing) extremely well thought out and comprehensive.

His anecdotally style of writing was fun and easy to get caught up in, and I also liked his Burka analogy.  I did however think that the text sort of trailed off towards the end; I'm not entirely sure if the text lost momentum or I did, but either way I don't think that says good things about the book.

Wait, I'm being a lot more negative than I mean to be. I did enjoy the book , it has inspired me to do a little more back reading and it has also left me with a few 'sound bites' to ensure that I enjoy each day as it comes. So I would give this book an 8/10 over all but a 9/10 because it's the first book I have read of its kind; I guess it will have a place in my heart.

Also since starting the book, I have seem Dawkins in other interviews, and I have come to realise that the obnoxiousness I saw in the first interview was a mistake, it's more intolerance of stupidity, which is quite understandable.

17
Anarchy / Embarrassing anecdote for the software developers among us
« on: March 02, 2009, 11:55:56 AM »

I just asked my colleagues to give me a hand with some code. I'm utilising some of the systems he put in place and I was getting a little stuck...now please don't laugh to loudly my face is already pretty red.

He just sat at my desk stepping through my code, we had both deduced that a NULL pointer was being de-referenced from somewhere, and obviously I was looking to the dynamic casts for the culprit.

Turns out that I was deleting something from the scene graph using a pointer I had declared but not initialized... He's a doctor of physics and is one of the smartest people I know.
I'm sure the temperature in the room just shot up?!?!

...I hate being a rookie, someone tell me it gets easier?

18
Entertainment / Battlestar Galactica
« on: February 27, 2009, 08:26:18 AM »

I am obsessed with the new version of battlestar galactica, my machine is called starbuck and if there was one fictional badass I could be it would be her, unless lara croft counts.

There is some snobbery about the new version and die hard fans swear by the original, but I think that is mostly hot air from people who have never seen the show. I'm gutted the series is ending soon for good and i cant wait to see what happens.

But my question is what do you guys think of BSG?




19
New Geeks on the Block / Probie - about me.
« on: February 27, 2009, 07:32:47 AM »

Hi I'm Probie,

 -I'm a c++ / graphics developer.
 -I'm looking for a small community to call my own, /. just isnt personal enough.
 -I want to meet geeks, they are hard to come by in the real world as they don't often leave the house.
 -I'm into metal music, getting drunk and tattoos... i also like science.
 -I'm from the uk.
 
and I'm 23 and a girl.

Yo! x

Pages: [1]