101 Discussion / Question Topics

Remove Filter
Member Avatar for Mushy-pea

Hello everyone. I read a couple of tutorials on x86 assembly a while ago. It was made clear in these that certain instructions need to be included at the end of a program to make it close properly. However, there was some inconsistency about how a program should be terminated. …

Member Avatar for Purple Avenger
0
113
Member Avatar for Mushy-pea

Hello everyone. I was just wondering if it is OK to do this: [code=perl] if ($beer == $wine) {# Some code} elsif ($beer == $vodka) {} else {die("Oh dear! Neither condition satisfied!")} [/code] i.e. have an empty block attached to an if, elsif or else. It might sound like an …

Member Avatar for zabina
0
217
Member Avatar for Mushy-pea

Hello everyone. Has anyone heard of Sigur Ros (the band from Iceland)? I got their last album for Christmas and its A - mazing :p . They even invented their own language to sing on the songs. If you don't have a clue who I'm talking about, think of the …

Member Avatar for pty
0
31
Member Avatar for Mushy-pea

Hello everyone. I always run Perl scripts on a web server with [code] #!/usr/bin/perl -T [/code] at the top (i.e. taint mode on). I try to do the same when testing scripts on my local machine and this often works fine. But somtimes (when running from the command line) I …

Member Avatar for KevinADC
0
91
Member Avatar for Mushy-pea

Hello everyone. I had an idea for an encryption system based on irrational numbers a while ago and wrote down a rough specification. It is basically like this: 1. Decide on an irrational number to define the encryption, e.g. pie, e or an irrational n root of a number. It …

Member Avatar for Rashakil Fol
0
64
Member Avatar for Mushy-pea

Hello everyone. I read ~S.O.S.~'s signature today and it reminded me of somthing. The essence of it was a claim that you can't doubt logic or perception. About a year ago I had some experiences that brought logic and perception into direct conflict. These experiences might be called "daylight hallucinations" …

Member Avatar for Mushy-pea
0
149
Member Avatar for Mushy-pea

Hello everyone. I've been working on a web application (written in Perl) called perlBB for about 11 weeks ( [url]http://sourceforge.net/projects/perlbb[/url] ). I'm getting close to finishing an early version. However, suitable testing methods have become a bit of an "issue" for me on this project. So far I've been testing …

Member Avatar for MattEvans
0
329
Member Avatar for Mushy-pea

Hello everyone. If you're a regular Perl user you might already know this; the developers of Perl 6 are using a prototype version of the Perl 6 interpreter written in Haskell to do various "proof of principle" testing. It's called Pugs (maybe a pun on the Haskell interpreter Hugs). However, …

Member Avatar for KevinADC
0
90
Member Avatar for Mushy-pea

Hello everyone. I am getting close to completing an early version of my open source forum system perlBB ([url]http://sourceforge.net/projects/perlbb)[/url]. I was wondering if someone could give me some advice about distribution of code between modules. In the scenario that the perl scripts in my system are run non - persistantly …

0
33
Member Avatar for Mushy-pea

Hello everyone. Does anyone know why Unix developers seem to have an obsession with the words foo and bar? Anyone who has read many Unix manual pages or the official Perl documentation will know what I mean. They appear as example variable or parameter names all over the place! Maybe …

Member Avatar for Infarction
0
108
Member Avatar for Mushy-pea

Hello everyone. I'm sure a few people around here have played a few computer games. But how many cheats do you know? To set the ball rolling I'll list my favourite ever cheat first: Game: Star Wars Knights of the Old Republic (Xbox) What: Turn Zalbar the Wookie into a …

Member Avatar for Ancient Dragon
0
71
Member Avatar for Mushy-pea

Hello everyone. Which of these do you prefer? As people who know me would agree, I'm a bit of a depressive ******* somtimes :sad: . So, obviously I'm voting for the Chronicles (which for the uninitiated, is one of the darkest fantasy series' ever written). I do really like the …

Member Avatar for jwenting
0
93
Member Avatar for Mushy-pea

Hello everyone. I was writing somthing in C++ today and a little "issue" occured to me. How can you avoid the possibility of a buffer overrun when reading from STDIN into a character array? In this simple example [code]#include <iostream> using namespace std; int main () { char *some_text = …

Member Avatar for Salem
0
100
Member Avatar for Mushy-pea

Hello everyone. I would imagine a fair few people who hang around in this forum have done or are doing computing related degrees. I was just wondering, do computer science / related degrees these days contain material on upcoming new computing technologies like quantum computing and biological computing? You can …

Member Avatar for Rashakil Fol
0
111
Member Avatar for Mushy-pea

Hello everyone. I've been using my parents computer for a while to do various usefull stuff. It has Windows 98 SE and has been on broadband with no virus scanner or firewall for months. Before that it was on dial up for years with no protection. Thankfully it's still going …

Member Avatar for Xpenetrator
0
136
Member Avatar for Mushy-pea

Hello everyone. I recently came accross the concept of Turing completeness (in languages). I was wondering, is there a general method for determining if a language is Turing complete? Or is it one of those intuitive things where you just have to look at it for a while and go …

Member Avatar for Rashakil Fol
0
91
Member Avatar for Mushy-pea

Hello everyone. I've run into a problem with regular expressions; the extraction "variables" ($1, $2, $3 etc.) are read only and scoped to the current block. If you need to do two regex extraction operations in the same block, is there a way to reset the ($1, $2, $3 etc.) …

Member Avatar for Mushy-pea
0
141
Member Avatar for Mushy-pea

Hello everyone. I've tried several times to use associative arrays in my Perl scripts, but each time I have got syntax errors I can't understand. Based on the tutorials I've read I have tried to do things like this: [code=perl]sub test_function { my($key, %table); %table = ('word1', 'Perl', 'word2', 'is', …

Member Avatar for Mushy-pea
0
111
Member Avatar for Mushy-pea

Hello everyone. I'm trying to write a small Perl script to test a web application I'm developing. The problem is it needs to open a cookie file in the "Temporary Internet Files" folder and Windows seems to be denying it access. The shell seems to be blocked from accessing this …

Member Avatar for Chaky
0
114
Member Avatar for Mushy-pea

Hello everyone. A few weeks ago I finished programming a javascript drop down menu system for my website. When I had ironed out the bugs it worked fine in IE 6. Later I got Opera 9 on my computer and the menus don't work in it. In fact, my pages …

Member Avatar for Rhyan
0
118
Member Avatar for Mushy-pea

Hello again. Allow me to describe my opinion on software design: C and C++ should be abandoned (or substancially modified) as the default languages used for the writing of native executables and operating systems. The reason? Giving the programmer arbitrary control over pointers is un-necessary and leads to many bugs. …

Member Avatar for Rashakil Fol
0
87
Member Avatar for Mushy-pea

Hello again. I am writing a bulletin board script at the moment (Perl BB sound good :p )? While writing some code to update a text file I encountered this situation. I need to open the file, append data to the end, then set the write offset to a particular …

Member Avatar for MattEvans
0
342
Member Avatar for Mushy-pea

Hello again. You might remember I posted a question on this forum recently asking if anyone knew of good Perl based forum software. Well, I decided to write my own forum script for my website to find out how such a thing is done. While I was wading through hundreds …

Member Avatar for harishankar
0
107
Member Avatar for Mushy-pea

Hello again from the Pea. Could someone please tell me what lol means since it seems to pop up in various posts all over the place. Lots of Love perhaps? I hope so :p . Steven.

Member Avatar for StuartP1989
0
40
Member Avatar for Mushy-pea

Hello everyone. I've been working hard recently to improve my website, which I'm using to promote a music event (hence the user title). I've decided to add a music themed forum in order to broaden the audience of the site. I'm determined to use a Perl based solution because: 1. …

Member Avatar for cyfm
0
70
Member Avatar for Mushy-pea

Hello everyone. I am trying to write a drop down menu Javascript and have run into a little problem. I need to change the (opacity=0) value inside this custom style: [code]<style id="menu_style" type="text/css"><!--.menu {z-index: 3; filter: alpha(opacity=0); position: absolute; left: 200px; top: 100px; width: 180px; height: 210px; background-color: #0000FF}[/code] The …

Member Avatar for Mushy-pea
0
132
Member Avatar for Mushy-pea

Hello everyone. As you may have gathered from some of my previous posts ([URL]http://www.daniweb.com/techtalkforums/thread49024.html[/URL]), I have an interest in operating system design :p . So I was thinking maybe Daniweb would be enriched by an "Alternative operating systems" forum. There are various interesting alternative OS projects out there, as you …

Member Avatar for Dani
0
95
Member Avatar for Mushy-pea

Hello everyone. I am writing a Perl script that will be installed on a Linux host. I need the script to be able to access the current time / date environment variable somtimes. I've looked through a list of the standard CGI variables that can be accessed through $ENV but …

Member Avatar for lordspace
0
96
Member Avatar for Mushy-pea

Hello everyone. I am planning to write a program, part of which will be able to calculate the value of an irrational number to an unlimited number of places. I will probably use a C++ class to implement a custom array to store these numbers. However, I need to know …

Member Avatar for Rashakil Fol
0
68
Member Avatar for Mushy-pea

Hello everyone. I'm writing a perl script to implement some active content on my website. Does anyone know if there is a source code library to convert an integer variable to an equivalent character string? I've managed to do the reverse, i.e. [code]sub char_2_int{ for ($c = 0; $c < …

Member Avatar for Mushy-pea
0
117
Member Avatar for Mushy-pea

Hello everyone. I heard on BBC radio 4 recently that some UK pubs will be serving beer, wine and pub meals at 1982 prices for one day soon. That's £0.62 per pint. Why? The 25th birthday of The Good Pub Guide, apparently. The question is; on what date will this …

Member Avatar for UrbanKhoja
0
34
Member Avatar for Mushy-pea

Hello everyone. I have an AMD system I would like to sell, with the following specifications: *CPU: AMD Athlon 1.3 GHz (200 MHz FSB). *Memory: 512 MB (SDRAM, 133 MHz) -> see note. *Nvidia GeForce 4 Ti 4200 graphics card (250 MHz GPU clock, 250 MHz memory clock, 64 MB …

Member Avatar for 'Stein
0
99
Member Avatar for Mushy-pea

Hello everyone. I've seen computers crash a few times in my time :p . From what I've read it seems that when a computer "freezes" or stops responding it may be down to the following causes: 1. The operating system kernel has detected a serious problem and has sent the …

0
65
Member Avatar for Mushy-pea

Hello everyone. I have an Nvidea GeForce 4 Ti 4200 card with 64 MB. The core clock is 250 MHz and the memory is at the same frequency, as standard for this model. Does anyone know if it is possible to overclock the GPU and memory? If so, could you …

Member Avatar for mikeandike22
0
73
Member Avatar for Mushy-pea

Hello everyone. I'm trying to write some Javascript code to make a logo on my website flash periodically between two differently coloured versions (i.e. a simple "swap image - restore image job). Here is a simplified version of what I am attempting, with no loops added yet: [code] <html> <head> …

Member Avatar for kgweb
0
144
Member Avatar for Mushy-pea

Hello everyone. I was trying to compile a Linux kernel module yesterday called vmmon (which you need to make VMware work on Linux) for the 2.6.16.7 kernel. First I installed a GCC package made for my distro, Puppy Linux 2.00. The package turned out to be for a slightly different …

Member Avatar for Narue
1
197
Member Avatar for Mushy-pea

Hello everyone. Nice forum you have here. Here are a few details about me. Name: Steven Tinsley Nickname: Mushy-pea Age: 24 Location: Wales, United Kingdom (leaving for England as soon as possible). Grew up in: Rochdale (UK). Education: BSc Physics (Surrey, 2005) Occupation: 1. Trying to get a "proper" job. …

Member Avatar for happygeek
1
106
Member Avatar for Mushy-pea

Hello everyone. Does anyone know at what offset the boot sector of a FAT 32 file system starts? I mean just past the BIOS data block, where the executable boot code is found. I'm trying to build an image file of ReactOS that I can run in QEMU. Any help …

0
72
Member Avatar for Mushy-pea

Hello all. I decided to use some PHP scripts on my website recently. :p I know all you need to do is write a .php file with PHP code embedded within (<?php ?>) tags, then upload it to your host. What I was wondering is, does the code stay in …

Member Avatar for mmonaco27
0
201
Member Avatar for Mushy-pea

Hello everyone. I know the API of an operating system is a collection of functions within the kernel that are available for applications to use. My question is, how do you call these functions into action from within a C program, if you're compiling the source to run on Linux? …

Member Avatar for mostafadotnet
0
139
Member Avatar for Mushy-pea

Hello everyone. I recently picked up a legal copy of OS X Tiger for x86 from the official Apple open source website. I am going to attempt to install it on an AMD Athlon based PC with 256 MB RAM and no SSE support. I will then attempt to grab …

Member Avatar for John A
0
205
Member Avatar for Mushy-pea

Hello everyone. I recently installed the QEMU (0.8.2) CPU emulator / virtualisation system on Puppy Linux 2.00. I managed to get it to run by pointing it at an ext3 image that contains the Puppy 2.00 root filesystem. This is just to see if it works, my intension is to …

Member Avatar for Mushy-pea
0
156
Member Avatar for Mushy-pea

Hello everyone. I'm trying to get a webcam to work with Puppy Linux 2.00. This distro has a 2.6.16.7 kernel. I tried to load the module usbvideo.ko using: [code]modprobe usbvideo[/code] The result was: [code]usbvideo: Unknown symbol v41_compat_ioct132 usbvideo: Unknown symbol video_devdata usbvideo: Unknown symbol video_unregister_device usbvideo: Unknown symbol video_register_device usbvideo: …

Member Avatar for John A
0
202
Member Avatar for Mushy-pea

Hello everyone. If I save an XML document in ANSI format, should I identify it's character set as ISO-8859 in the DTD? Thanks. Steven.

0
82
Member Avatar for Mushy-pea

Hello all. I am trying to write an SSJS application to process the submissions from a form on my website. I downloaded the Mono .NET compiler, which has a JScript.NET compiler in it. I believe JScript.NET is a superset of Javascript (and my host has a Javascript runtime engine) so …

0
82
Member Avatar for Mushy-pea

Hello fellow web designers. I used Dreamweaver to place a rollover image on one of my web pages. It uses Javascript. When I looked at the code it had written, it includes the following null hyperlink on the image: [HTML]<a href="#"><img src="rochfest-logo.gif" onmouseover="stuff" onmouseout="more stuff"></a>[/HTML] Is there any chance this …

Member Avatar for FC Jamison
0
109
Member Avatar for Mushy-pea

Hello everyone. Does anyone know if it is possible to redirect a browser with Javascript? If it is, could someone please give me a clue as to how it is done? I have searched the w3schools tutorial where I started learning Javascript but can't find anything on this. Any help …

Member Avatar for Mushy-pea
0
136
Member Avatar for Mushy-pea

Hello everyone. I recently launched the website [URL="http://www.rochfest.co.uk"]http://www.rochfest.co.uk[/URL] to help promote Rochfest. Please check out the site if you get time. What I wanted to ask is, is it possible to launch pop-up windows using javascript? If it is, how is this done? If this is not possible, do you …

Member Avatar for FC Jamison
0
171
Member Avatar for Mushy-pea

Hello everyone. A few months ago I started experimenting with Live CD and installable distributions of Linux on my PC, having stuck with Windows before then. I learnt a bit about hard disk partitions and multi boot systems, as well as finding out how many open source OS's are available …

Member Avatar for hollystyles
0
301
Member Avatar for Mushy-pea

Hello everyone, just joined this forum. Does anyone know if there is a function in Windows XP that allows you to write to the boot sector of a FAT12 3.5" floppy disk? If there isn't, do you know of any software out there that would allow me to do this? …

Member Avatar for fry
0
86

The End.