- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 19
- Posts with Upvotes
- 18
- Upvoting Members
- 13
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 1
student of engineering
- Interests
- Programming (of course), engineering, biking, politics, swimming, guitar
- PC Specs
- opensuse 13.2 on AMD A6-6310
231 Posted Topics
Re: Whole codes? Well hint's are okay, but I won't cause fuss and try to figure out a completely running programme. Think about how you determine the length of a string? Null-terminated? Fine. I'd start like that: Run through the string, till \0 comes. Decrease the register (let's call it the … | |
Re: hi cpsusi, I can't find anything wrong with your assembly. The C++-output however looks awful. And I also don't have a clue why it perform worse than your C++-code. A reason might be, that MASM puts tons of unnecessary stuff to your simple code. Try NASM instead. That really is … | |
Re: Yeah. If you really have assembled your above code and copied it into the mbr, than the mbr is of course corrupted. You need at very least the correct primary partitions and the magic code at the end. Like so: https://en.wikipedia.org/wiki/Master_boot_record | |
Re: I wouldn't. Simply increase a counter by one each time a valid number is entered and add this value to a variable sum. After the loop you can divide the sum by the counter and you get your result. This will be faster and lighter on ram. | |
Re: Are you running the same .run-file over again (I confess, I have never used teamspeak)? A .run-file should put the programme somewhere in your bin- or opt- directories (install). If your installer hasn't done so, you can then create a .desktop-file pointing to the executable. You can then place this … | |
Re: It strongly depends. Also on you personal preference. 1) In normal desktop or server like environments, ASM isn't widely used anymore. But compiler-developers still need a very good knowledge of ASM and machine code. I also heart that some parts of modern DBS are still based on pure ASM. 2) … | |
Re: I'd try something like this: 1) I'd create static strings with all your written numbers, eg `_zero DB 'Zero',0` etc. 2) I'd put all addresses into a look-up-table, like `array DD _zero, _one, ...` 3) Then, as the input (BIOS or OS) will be ASCII, you have to convert it … | |
Re: Hi Makrand, these messages aren't errors but warnings to force you to improve your coding style. If you don't fancy that (like I do) you can set your PHP.INI variable "error_reporting" to "E_ALL^E_NOTICE". This stops php to reports these warnings ([URL="http://de.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting"]http://de.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting[/URL]). If you don't have access to the PHP.INI have … | |
Re: Is there any particular reason you're trying to convert rather complex C-stuff to even more complex ASM stuff? If it works in C then hurray. If you're really heading to convert it, you'll either end up rewring the whole TCP stack or link the C-functions into your ASM-project which makes … | |
Re: I won't read or even test your code. This is a good start: Have a look at an ASCII-table. The number 0...9 have a defined representation there. You need to subtract the this offset, then multiply it by 10^x and add it to your result. | |
Re: it does involve a loop. I'd call anything else bad coding. why don't you draw yourself a table with the actions you'd do when having to solve it by hand? this is often (and definately in this case) a good start for an algorythm: Moving a byte into a register, … | |
Re: Sorry, haven't coded PHP for a long time. But this is basicalyy how I did it: 1) set up a 404-page in your .htaccess-file (don't know right now without looking it up, but there's plenty of stuff on the net) 2) you 404-file reads the full URL with the $_PHP-something-variables … | |
Re: Java has the benefit of being multi-platform too. You can compile it once and run it on pretty all major operating systems. If you plan a software from scratch and can avoid system specific things like kernel-calls, than you'd be safe with C++ as well. You just have to compile … | |
Re: It'd be good when you post the whole error message including line-numbers etc. Otherwise finding the error is like finding the needle in a haystack. | |
Re: Well these tools basically do a certain task and messure how fast it can be acomplished. But these tasks are not that easy to make up. You have a lot of statistical invarieties, you have driver-issues you have to ensure the OS gives you the needed privileges and so on. … | |
Re: Haven't tried your code, but as I can find just one "form", I'd take this is your front-end for the upload. You have forgotten to add "enctype="multipart/form-data". So the correct form'd be: <form method="post" action="<?php echo $_SERVER['PHP_SELF']?>" enctype="multipart/form-data"> Hope that helps. | |
Re: Certainly doesn't help to post a question twice. Especially not when posting such long source codes. First off, tidy up your code. The one and only hint I can give: use a look-up-table with all the characters you want to eliminate, eg vowals db 'a','e','i','o','u',0 and then go through your … | |
Re: I'm glad to hear you solved your printer-problem. The unsupported dongle hasn't got anything to do with opensuse. It's a missing linux-driver and every distro is affected by it. I am afraid it won't work, but you can try to update your kernel. This is safe. Add a new repository, … | |
Re: Accessing Windows functions from ASM is fairly difficult. But if I get you right, that's not what you want. Interrupts are also not accessible when having an OS running between your software and the CPU. If you intent to write your own interrupt-handler, you can test it with an emulator. … | |
Re: or @readfile("./path/to/your/file"); to output the content of these files. Take care that you might want to manipulate the headers for the correct content, name and size. | |
![]() | Re: Hi, have a look here: [URL="http://www.php.net/manual/en/function.mail.php"]http://www.php.net/manual/en/function.mail.php[/URL]. You can simply modify the headers. Greetings, Simon |
Re: It's "illegal" to "use" a computer properly? What's BootCamp for, then? Since when is it "illegal" to run software on "my" hardware? The only thing I can think of, that you actually loose warranty. But that's the case width almost all manufacturers. Anyway. Some OS's do have problems with the … | |
Re: Hi jsepeta, there are two possibilities (I can think of right now). 1) Try [URL="http://www.virtualbox.org/"]http://www.virtualbox.org/[/URL] Don't know if it's working under Lion. Don't know if you can virtualize Mac on Mac. But have a look and search a bit with google and Co. 2) Make a second partition with Disk-Utilities … | |
Re: that strongly depends on the features you request. You can include your sourcecode with %include "source.asm" during compilation time or you try to access the file in runtime via the kernel. For then first solution, NASM should be perfectly alright. Accessing the file in runtime can be quite tricky, but … | |
Re: I can't help thinking why on earth you wanna do that. I'm debugging websites, so I can give you some advice. Visit [URL="http://ipinfo.info/netrenderer/index.php"]http://ipinfo.info/netrenderer/index.php[/URL]. There you can render websites with old versions of the IE from any browser. As the output is an image it should (!) also word on an … | |
Re: what have you then been looking for? 1. in your posted file you need the attribute "name" in all of your <select>-tags. this makes php reefer to that value. 2. in the file search_result.php you do something like this: [CODE]<?php $destination=$_REQUEST["destination"]; //your array passed to your file $year=$_REQUEST["year"]; // -"- … | |
Re: Hi! Clear subjective answer: NASM is the best. Why? MASM is a Microsoft product. I've never worked with it but I can imagine that you have to stick to MS Windows. I personally started with NASM. I still love it. The syntax is very strict and therefore clear. Once learnt … | |
Re: How about? [CODE]SELECT `name`, `address`, `number`, `company`, `reservation` FROM `db`[/CODE] | |
Re: Why do you want to open it in a browser? PHP needs to be executed on a server. Anyway: Right click on the document. If there's no item called "Open with" then try holding these keys: Shift, Ctrl, Alt and Cmd. I don't remember which one is the beste choice, … | |
Re: @ardav: that doesn't necessarily help either. You don't know if "drink" really is an array. Additionally, I'd suggest to check that as well: [CODE] ... if(isset($_POST['drink'])) { $drinks = $_POST['drink']; if(is_array($drinks) && count($drinks)>=2){ ... [/CODE] then you can be sure not run into a memory leak. cu, Simon | |
Re: Hi Paul... ...and welcome to the wonderful world of multi-os-users! You know what? I'm using the same configuration as you but have also many Linux clients running. For years now, my best solution is the bare minimum: FTP. This is simple, reliable and can be accessed by all major and … | |
Re: Hi BenzZz, as far as I understand this is a HTML-problem. Try setting the initial value with [CODE]value=""[/CODE] to an empty string. Otherwise I can suggest: - Open your source code in your browser and see if you have any artifacts from your php parser - make sure you have … | |
Re: Hi davy_yg, first, put a file named ".htaccess" in the folder you want to protect. Right now, I'm not sure, if you actually have to put something in it, or if apache won't let anyone access that page when the file exists. Just fish for some info if it's not … | |
Re: Hi Drugs, first suggestion: use explode(): [URL="http://de2.php.net/manual/en/function.explode.php"]http://de2.php.net/manual/en/function.explode.php[/URL]. This is in my opinion one of the most powerful functions in php. At least I use it every day. It helps you tu truncate the data. If you only want to show specified dates, you can simply generate a timestamp with mktime … ![]() | |
Re: Hello siva, first of all, if you design your website well, it shouldn't be much of a problem to do a booking directly from an android-based webbrowser. Personally, I am very satisfied with the quality and speed of displaying websites on almost any mobile devices. If you still want to … ![]() | |
Re: Hi Katana24, You could write your code in C++ (XCode). You can then install XCode or install your environment from scratch. But I advice you to use XCode as it's very simple yet powerful and you do have all development headers already installed on your system. But there are open … | |
Re: Hi Mary, did the upload work? What does the output of [CODE]echo $_FILES[p_img][name][/CODE]say? Does your form have [CODE]enctype="multipart/form-data"[/CODE]? And are uploads allowed by your php.ini-settings? ~Simon ![]() | |
Re: I can agree on that. Basically every computer can get a virus (which is nothing else than a normal programme). Theoretically you can crash your computer by installing good software (Photoshop, Cinema, iLife, etc). But who buys viruses on CD? You can get them only within spam-mails or unserious server. … | |
Hello altogether, I am supposed to work through a project written in C++ and QT for Windows platforms. Now I am not an expert in window-related stuff. I installed MinGW 3.4.5 and QTSDK on Win XP SP3. I am using the tool "qmake" to create a makefile with all dependecies … | |
Re: Hi newbie14, yes you can. You can access database via TCP virtually on every server. Have a look here: [URL="http://de.php.net/manual/en/function.mysql-connect.php"]http://de.php.net/manual/en/function.mysql-connect.php[/URL] Hope that helps - Simon | |
Re: Visual Basic? Hey guy, you're in an Apple-world now! | |
Re: Hi masterjiraya, never ever send user-credentials via hidden textboxes. Use cookies or even better the inbuilt Session-Management from PHP. Have a look here: [URL="http://www.php.net/manual/en/book.session.php"]http://www.php.net/manual/en/book.session.php[/URL]. Don't be afraid of the massive text, it's actually very simple ([URL="http://www.php.net/manual/en/session.examples.basic.php"]Basic Examples[/URL]). Hope that helps, Simon | |
Re: Hi Programmer12, you have to change the php.ini. Have a look for lines with the options [CODE]post_max_size[/CODE], [CODE]upload_max_filesize[/CODE] and maybe [CODE]max_execution_time[/CODE] I'm not sure about the last one. Try the uploads with the default value and increase it, if you have problems. Feel free to ask further questions, Simon | |
Re: Hi MasterGBerry, yes you can. I don't know want your plan is exactly. But I do it this way: [CODE]Redirect permanent myoldlocation mynewlocation[/CODE](or was it the other way round?) Have a look in the official manual: [URL="http://httpd.apache.org/docs/current/mod/mod_alias.html#redirectmatch"]http://httpd.apache.org/docs/current/mod/mod_alias.html#redirectmatch[/URL] What you could also try to archive is your own redirection using PHP … | |
Re: Hi, perfect hint: [URL="http://www.php.net/manual/en/reserved.variables.server.php"]http://www.php.net/manual/en/reserved.variables.server.php[/URL]. It's the manual for all information concerning your visitor. Look at "REMOTE_ADDR" for the IP-address. To lock an account you simply count how often the user tried to log in in with a wrong ID. Simply place a file into a temporary folder named with the … | |
Re: Well, simply check if the content is equal to the data already stored in your database. | |
Re: Hi divyakrishnan, for me it seems as if you're using Windows. Simply try [code]$file='\\\\\\\\HOSTNAME\\file.txt';[/code]. As I'm mainly using Unix, I don't know exactly how the address-structure looks like in a Windows-Domain. But as long as you mask you slashes correctly, it should work perfectly when you use the address given … | |
Re: Have you guys tried Carbon Copy Cloner ([CODE]http://www.bombich.com/[/CODE])? It's free and works perfectly for me. I cloned two partitions to an external drive. After that I could even boot the system from the second HD. For me, I just can advice that. | |
Re: I advice you to have a deep look into your code or in the internet. This problem could be caused by anything. You could have a typing error, or try to connect to a computer without ftp-server, or your extension doesn't work or your firewall, router... What about connecting to … | |
Re: Yeah. Have you GD installed? Check that and look on [URL="http://php.net"]http://php.net[/URL] for some help. |
The End.