50 Archived Topics

Remove Filter
Member Avatar for Mushy-pea

Hey. I've been working on a home brew game since late last year, writing an engine in Haskell and GLSL that includes 3D graphics, basic physics and programmable game logic. The version in the second video shows the first appearance of lighting and importation of OBJ files (the cube was …

0
304
Member Avatar for Mushy-pea

Hi. In August I built a PC using a second hand Biostar TA990FXE "Extreme Edition" motherboard and AMD FX-6100 six core CPU @3.3 GHz at the core of it. I recently installed the Oracle Virtualbox VM on Windows 10 and tried running a couple of Linux and BSD OS instances, …

Member Avatar for rproffitt
0
275
Member Avatar for Mushy-pea

Hi. I've developed a bit of an interest in encryption as well as programming in Haskell since I last used this forum. So I decided to build a symmetric block cipher and test its properties to gain more of an understanding of such things. This is for research purposes as …

Member Avatar for Mushy-pea
1
304
Member Avatar for Mushy-pea

This snippit is a follow up to my first snippit, namely "Simple website hit counter" which is written in Perl. It does exactly the same thing using PHP. "Boring", you might say? Well, I have my reasons for wanting to learn this language and one needs to start somewhere :) …

Member Avatar for LastMitch
1
330
Member Avatar for Mushy-pea

Hi. I've been trying to get this simple function in Haskell to let me call it for many hours and come to a problem I can't find an answer for. The function is of type Float -> Float -> [Int] so I need to pass it two Float values. I've …

Member Avatar for TrustyTony
0
120
Member Avatar for Mushy-pea

Hi. After many years of having a hobbyist interest in programming but doing other things for a job, I've decided it might be time to attempt a career change to application development. The other areas I've worked in, such as teaching English to non - native speakers, aren't directly relevant …

Member Avatar for stultuske
0
313
Member Avatar for Mushy-pea

Hello again. I got a fancy prancy new mobile phone recently with video capture :p . I want to transfer a video I made on it (of me playing the guitar, badly) to GoogleTube, but the file is too big to put in an MMS message. I have a Yahoo …

Member Avatar for amna masood
0
157
Member Avatar for Mushy-pea

Hello everyone. I'm trying to install a Ralink tech. wireless PCI network card on netBSD 3.1. I've looked at a netBSD online manual page and it says there is a driver for this chipset in the distribution I'm using (namely ral(4)). However, after booting up with the card physically installed …

Member Avatar for johny09
0
234
Member Avatar for Mushy-pea

I invented an encryption algorhythm today and used it to "hide" the information in an unused password I came up with. This was done on paper, not with a program. However, I am planning to start laying some code down for this today (in Haskell, partly as an exercise to …

Member Avatar for Michael_Knight
0
120
Member Avatar for Mushy-pea

Hello blog readers. So I was thinking, "how can I seriously depress the lovely Daniweb visitors today?". Then it hit me: The End of All Life (EAL). I was reading an article in Physics World a few years ago about some predictions on the long term survival prospects of life, …

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

I was in a pub in Manchester recently for my friend Chris's leaving do (he's got a job in Spain :p ). Somehow a brief discussion about Mac OS X got started (yes, OK I started it). Most people I've met who've used it seem to think it's great because: …

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

Well, I asked Dani and she said I could create a Haskell catagory in code snippits just by submitting a Haskell program :p . What self respecting code repository would be without one? So here goes, this program calculates the nth triangular number, given n by the user. Steven.

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

This is my first working perl script that does anything useful; that being to count the hits made on a web page and display the count graphically. To make the counter work on your web page (should you wish to), you will need to create images for the number tiles …

Member Avatar for Mushy-pea
0
197
Member Avatar for Mushy-pea

Hi. I live in Japan and recently bought a second hand laptop, with Japanese Windows XP on it. When I got it home I promptly installed Opera 9.61 (my favourite browser :) ) and started browsing away. The only problem is that the install program thought I was Japanese and …

Member Avatar for Mushy-pea
0
119
Member Avatar for Mushy-pea

Hi. I've got this issue on my Vista laptop that's been there since I got the thing about six months ago. The system clock falls behind the actual time at a silly rate, which can be up to several minutes in a session but varies sporadically. Then every so often …

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

Hi. I've got a Packard Bell laptop that is specified as having 1 GB of RAM. However, looking in the Windows system information and the BIOS both show it as having 896 MB. Does anyone know how I would go about determining whether the missing RAM is being used for …

Member Avatar for jbennet
0
110
Member Avatar for Mushy-pea

Hi everyone. Could anyone tell me how I can enable non - admin users to run programs installed by the admin user? I installed Opera 9.1 as an admin, but I'm not sure how to allow other users to access it. Any advice appriciated. Steven.

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

Hello everyone. I informed Google of my forum website URL via the standard method recently. Within about five days, it started finding search terms inside my forum when given "Mushy-pea [search terms]". Nice one Google, I thought :) . However, when you click links that go from Google directly to …

Member Avatar for Mushy-pea
0
127
Member Avatar for Mushy-pea

Hello everyone. I recently "migrated" my 8 year old computer from Windows 98 to NetBSD 3.1. The installation went fine and the machine is able to connect to the internet through a local router :) . However, I still have a couple of questions to ask: 1. When you run …

Member Avatar for blud
0
134
Member Avatar for Mushy-pea

Hello everyone. Does anyone know if there is a way to start a child process from within a script, then capture the child's standard output and exit code? From looking at the docs it seems that [code=perl] $status = system("command"); [/code] lets you capture the exit code but not STDOUT. …

Member Avatar for Mushy-pea
0
129
Member Avatar for Mushy-pea

Hello everyone. I added an ethernet adapter card to a computer of mine yesterday and the keyboard stopped working. I've checked the connection and it's fine. The keyboard appears to be disabled at BIOS level because I can't get into setup by pressing DEL during the boot process. Windows still …

Member Avatar for Mushy-pea
0
69
Member Avatar for Mushy-pea

Hello everyone. I need to write a Bash script to remove blocks of text from a given file. The idea is, the text to be removed will be marked by appearing between certain delimiter characters i.e. [code] Here's some text and ~this bit gets removed~, where tilda is the delimiter. …

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

Hello everyone. I'm still working on that forum system I mentioned a bit ago (perlBB). Hopefully it'll be ready for Christmas :p . However, I ran into a strange problem while I was re-writing parts the two functions below. [code=perl]sub enter_post { my(@field, $input, $offset1, $offset2, $n, $name, $field_length, $flag_guest, …

Member Avatar for swampyankee
0
86
Member Avatar for Mushy-pea

Hello everyone. Is it allowed to have a "use" statement inside an eval that is compiled separately to the enclosing program (i.e. eval EXPR, not eval BLOCK). The reason I want to do this is, I have modules of code that I don't want to be compiled every time my …

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

Hello everyone. I am currently working on the HTML / Javascript front end of a web forum system (perlBB). I have a couple of questions that would I would like to ask. 1. Is the way to include an external javascript file in a page like this? [code=HTML] <head> <link …

Member Avatar for Mushy-pea
0
276
Member Avatar for Mushy-pea

Hello everyone. I decided to try out XAMPP ( [url]http://www.apachefriends.org/en/xampp[/url] ), which contains a pre configured distribution of Apache 2.2.3. My intention is to use it for some local testing of a web application that uses Perl scripts. I got Apache running easily enough and it runs the sample Perl …

Member Avatar for mangokun
0
194
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. 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'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. 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'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. 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 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. 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'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 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 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 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 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 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

The End.