38 Discussion / Question Topics

Remove Filter
Member Avatar for Excizted

Hello, I hope someone is more knowledgeable in Java than me while still knowing PHP! The following Java code makes a hash from a string, and I need a PHP equivalent that makes the exact same hashes. Simply md5() does not do the trick, and I looked at some PHP …

Member Avatar for Excizted
0
1K
Member Avatar for Excizted

Hello Daniweb, I'm rebuilding a Flash-based website in PHP/HTML maintaining the same MySQL database. My problem now is, the user passwords are hashed of course - I need to use the same hash in the new application for old users to be able to still log in. But since the …

Member Avatar for Excizted
0
234
Member Avatar for Excizted

Hello Daniweb, I want to make a custom visitor tracking tool and like Google Analytics it must be able to track how long time visitors spend on each page. How do you recommend doing this? I thought of using the Javascript onload event to start counting time serverside and then …

Member Avatar for tinymark
0
115
Member Avatar for Excizted

Hello, We are two geeks doing a lot of coding, documentation and designing (PhotoShop, Illustrator, InDesign and FireWorks). We both carry a laptop, have our personal stationary PC's and then we have a couple o' iMac's that we dedicate to working with these stuff together. It is important that we …

Member Avatar for Fortinbra
0
112
Member Avatar for Excizted

Hello, I have a server that I have decided to divide into VM's using HyperVM with OpenVZ, so that some friends can play around on the server and that I can have several Linux distros on one server. I am wondering if I should install nothing on the host other …

Member Avatar for ryan461
0
131
Member Avatar for Excizted

Hello Daniweb, In 3D space I have generated a path which jumps between points in a grid of 100x100x100. When simulating movement through this path, I tried making a bezier curve of the points in the path, but the results were not good enough. I googled a lot, and the …

Member Avatar for Excizted
0
417
Member Avatar for Excizted

Hello people, I would like to add an extra monitor to my productivity box. But back then I chose a motherboard without built-in graphics, so I only got the two ports provided by my graphics card. I hope you could advice me how I could upgrade my PC to support …

Member Avatar for Excizted
0
275
Member Avatar for Excizted

Hello! :) I'm trying to achieve an 'engine' of a kind in a DLL project. I have successfully made a DLL that works, but as simple as Hello World. Now I'm coding a framework into the DLL project, but I'm having some trouble with the singleton function. Im getting this …

Member Avatar for oktalist
0
197
Member Avatar for Excizted

Hello, [I]Before you get scared away - my issue does not particular seem to relate to Quaternions or Vectors. More generally, it appears to be something compiler or C++ standard related, as my return call from the function is acting strange. You can eventually start reading the [U]concluding issue at …

Member Avatar for Excizted
0
196
Member Avatar for Excizted

Hi people, I'm trying to compile my C++ project under Windows, which it should be able to. I've got a whole bunch of dependency libraries. When I compile everything seems fine until these error pop up: [CODE]1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\rpc.h(27) : error C2598: linkage specification must be at global scope 1>C:\Program …

Member Avatar for Excizted
0
916
Member Avatar for Excizted

Hi, I'm working on a shared library with a various of dependency libraries. They are all currently linked dynamically (shared object). I'd like a few of the libraries linked statically TO the main shared object. When I go ahead and try to link these libraries (.a) I get an error …

Member Avatar for tarakant_sethy
0
155
Member Avatar for Excizted

Hi people, I'm trying to match strings from a pattern containing[B] wildcards[/B]. Basically I need to be able to go through a stack of strings, and see which of them matches my pattern. Fx [B]My*.txt[/B] will match only one of these. [U]MyFile.txt[/U] [I]MyFile.php[/I] I'm aiming to end up with a …

Member Avatar for NathanOliver
0
5K
Member Avatar for Excizted

Hello, I have a derived class, that I'm trying to delete. This causes a segmentation error, though. I'm fully aware of the virtual destructor thang, but I'm using it all the way around, and still this issue occurs. I'll post my headers only, please tell if more is required. DataStream.h …

Member Avatar for Excizted
0
3K
Member Avatar for Excizted

Hello :) My program is supposed to load some data into a buffer - but it fails. This is where i get a segmentation fault... [CODE]char* buf = new char[size + 2];[/CODE] Where my debugging tells me that size is correctly containing the value "1957" which is the actual size …

Member Avatar for Excizted
0
189
Member Avatar for Excizted

Hello :) I've got this resource (as in files on the pc) management system, that had been tested but now seems to be malfunctioning. I've been debugging for way too long now, and I can't figure out the issue. I'm going to post some of my code first, and then …

Member Avatar for Excizted
0
719
Member Avatar for Excizted

Hello, I've been using Dvorak on my Linux machine for a long time, and I've finally convinced my sister to do the switch as well. Using Microsoft Keyboard Layout Creator (MSKLC) I easily managed to install Dvorak layout, but shortcuts like Ctrl+C doesn't move, it's the same spot, so after …

Member Avatar for caperjack
0
228
Member Avatar for Excizted

Hi. I'm just trying out Ruby on Rails, and I'm trying to create some application that takes a hostname from the user and then checks if it is connectible through Net::SSH and if it is, it should check if a file is present. Quite simple, and I also almost reached …

Member Avatar for Excizted
0
186
Member Avatar for Excizted

Hi. I have multi-language functionality on my page, and the settings are saved in a cookie, so that the user may change something different than his browser language. But this is whats happening: [U]/home.php?setlanguague=en[/U] The page shows it's text in English, and prints my user info aswell as the content …

Member Avatar for Excizted
0
107
Member Avatar for Excizted

Hi people. I'd like to use MySQL in my application - would be an easy way for me to store users. But then I'd have MySQL credentials in my app, visible for everyone with a HEX editor, I'd suppose? And even though that MySQL user will have low privileges, then …

Member Avatar for Excizted
0
163
Member Avatar for Excizted

Hello. I'm in possesion of this laptop with an old Pentium Dual-Core T2080, of socket type PPGA478 (says Intel web). I wanted to upgrade it, and found a lot of processors called PGA478. So now comes the billion dollar question: Is there any difference? Can I use the PGA processor …

Member Avatar for caperjack
0
2K
Member Avatar for Excizted

Hello. :D I've been working on a project for couple months now, on Linux. When I invited a new team member, of course he came with his Windows. I want to hear [B]your opinion[/B] on how to make the development easy cross platform. Usually I would just tell him to …

Member Avatar for Excizted
0
123
Member Avatar for Excizted

Hey. I'm having an annoying problem, that I can't seem to figure out. In my page when I echo long messages, I do an in-code linebreak at around 100th character, to keep at all in my view. But when I do that I also get the line breaks and indents …

Member Avatar for almostbob
0
157
Member Avatar for Excizted

Hey ! I've been using NetBeans for quite a long time, and totally addicted to it. Therefore there was no mercy when my mate wanted to join my project. - He had to get it too. He's one of those Windows guys tho x) I installed him MinGW and MSYS, …

0
65
Member Avatar for Excizted

Hi. I have some, probably, very basic questions. :D I'm making an engine, which will be script driven. But I'm concerned with the performance of plain text, even if it was loaded to the memory. I want the scripts to be executable very fast, since there would be a lot …

Member Avatar for Dave Sinkula
0
125
Member Avatar for Excizted

Hi :) I am certain of when to use static_cast, but often I can get satisfactory results by writing the target type in a parenthesis. For example: [CODE]void* data = somePointer; SomeClass* new_ptr = static_cast<SomeClass*>(data);[/CODE] seems to work when replaced with [CODE]void* data = somePointer; SomeClass* new_ptr = (SomeClass*) data;[/CODE] …

Member Avatar for Excizted
0
142
Member Avatar for Excizted

Hello. I remember once I googled a topic, and I kept stumbling upon a linux command, that would allow me to get some info on a binary application, including it's architecture. Basicly, I could see if the program was build for x86_64 or for x86. Now I actually need this …

Member Avatar for Excizted
0
102
Member Avatar for Excizted

Hello. I'm going to create a stack of pointers to objects, and I need to implement an identifier with the best performance. Those objects are custom classes. I'm wondering what would be best for performance. Either of these two ways, or maybe a third better way?. 1) Making an std::map …

Member Avatar for Excizted
0
134
Member Avatar for Excizted

Hello. I'm needing to store the IP adress as a variable in my application. I was then wondering, what the most efficient way of doing this would be? I would simply make 4 integers, and then in a setter function, read four arguments, and pass them into those four integers, …

Member Avatar for Excizted
0
207
Member Avatar for Excizted

Hi people. :) I'm making a function callback system for a console, so I would dynamically be able to send a function pointer to my console class, and then it would be callable from the console. Well, it works - but only with functions that are not member of a …

Member Avatar for Ancient Dragon
0
259
Member Avatar for Excizted

Hi all :) Currently I have a console for my program, which in short words, executes the function named what you write. The thing is, the functions needs, for several reasons, to be members of a class. Currently I have the code below. Manager is a class that needs to …

Member Avatar for Agni
0
146
Member Avatar for Excizted

Heyloo ^_^ I've stumbled upon this code :D [CODE]#define VERSION_MAJOR 1 #define VERSION_MINOR 1 #define VERSION_PATCH 2 #define VERSION ((VERSION_MAJOR << 16) | (VERSION_MINOR << 8) | VERSION_PATCH)[/CODE] I've been searching for some time now, unable to understand what << 16 and << 8 does, and why. I converted VERSION …

Member Avatar for Excizted
0
149
Member Avatar for Excizted

Hello. I'm wondering if I'm duplicating this class by doing the following. [CODE]SimpleClass *point; SimpleClass sc; sc.somevalue = something; point = new SimpleClass(sc);[/CODE] This post is quite tiny, I'm not being lazy, but I couldn't think of anything else needed for this question. Thanks :)

Member Avatar for mrnutty
0
96
Member Avatar for Excizted

Hi everyone... I have a silly problem.. Somehow I managed to faceroll or something, hitting a shortcut which shows all indents as arrows and all spaces as dots. Here is a picture of the problem: [url]http://img97.imageshack.us/img97/8789/problemyf.jpg[/url] I've looked the options through, but since I don't know what this thing I …

Member Avatar for Excizted
0
88
Member Avatar for Excizted

Hi. I have a little question, that which answer may mean death to my class plans. I have a superclass (or parent class if you will) that I have to delete when I'm done with it, but does that affect the subclass (or child class if you will)? Simple question, …

Member Avatar for Excizted
0
162
Member Avatar for Excizted

Hello all :) I'm working on a DLL with various of functions I later need in other applications. I have many classes, and most of them I need a global instance of. I've tried various things such as a singletonptr, singleton, global instantiation. What I need to achieve is the …

0
47
Member Avatar for Excizted

Hi. I have a problem I cant find a solution to, since I am unable to describe the problem in a searchable way. I make a hWnd for each contact the user has: [CODE=C++]contact[atoi(rowC[0])].hWnd = CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG4), hWnd, messengerBox);[/CODE] messengerBox is defined like this. [CODE=C++]BOOL CALLBACK messengerBox(HWND hWnd, UINT message, …

Member Avatar for Excizted
0
432
Member Avatar for Excizted

Hello DaniWeb. ;) I have a problem with char->tchar conversion, that i cant seem to solve. I want to launch another program, anh the relative path to that program is fetched from MYSQL. [CODE] updateBox = CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG2), hWnd, updateDiag); hThread = (HANDLE)_beginthreadex(NULL, 0, Blah::Start, NULL, NULL, NULL); [COLOR="red"]_stprintf(patcherLoc, _T("%s/Patcher …

Member Avatar for Excizted
0
239
Member Avatar for Excizted

Hello eveyone! :) I am making a rather huge application, and I'm starting to face a global problem. Whenever my application is doing sommething, i have a functional [B]progress bar setup to show the progress[/B].[B] My problem is now[/B], that, atleast on Windows Vista / Windows 7, my application whitens …

Member Avatar for Excizted
0
379

The End.