Posts
 
Reputation
Joined
Last Seen
Ranked #592
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
93% Quality Score
Upvotes Received
19
Posts with Upvotes
18
Upvoting Members
13
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
6 Commented Posts
~96.7K People Reached
About Me

student of engineering

Interests
Programming (of course), engineering, biking, politics, swimming, guitar
PC Specs
opensuse 13.2 on AMD A6-6310
Favorite Tags

231 Posted Topics

Member Avatar for Vongola_Takeshi

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 …

Member Avatar for Nivre
0
4K
Member Avatar for cpsusie

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 …

Member Avatar for Zack_7
0
12K
Member Avatar for printf

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

Member Avatar for sDJh
0
151
Member Avatar for Rafael_4

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.

Member Avatar for DavidB
-1
241
Member Avatar for RikTelner

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 …

Member Avatar for sDJh
0
214
Member Avatar for The Old Man

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) …

Member Avatar for sDJh
0
190
Member Avatar for Hadi.M

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 …

Member Avatar for gusano79
0
241
Member Avatar for mak96

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 …

Member Avatar for honeymehta
0
871
Member Avatar for jack_7

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 …

Member Avatar for sDJh
0
445
Member Avatar for supermastereu

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.

Member Avatar for sDJh
0
441
Member Avatar for munchlaxxx

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, …

Member Avatar for sDJh
0
188
Member Avatar for anil14353

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 …

Member Avatar for Bachu
0
4K
Member Avatar for ckide

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 …

Member Avatar for invadev
0
310
Member Avatar for haider885

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.

Member Avatar for k99rs
0
348
Member Avatar for ala_2

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. …

Member Avatar for sDJh
0
238
Member Avatar for davy_yg

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.

Member Avatar for sDJh
0
141
Member Avatar for C-Money

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 …

Member Avatar for sDJh
0
804
Member Avatar for NewbieChameleon

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, …

Member Avatar for sDJh
0
638
Member Avatar for MasterHacker110

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. …

Member Avatar for Schol-R-LEA
0
204
Member Avatar for daniel36

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.

Member Avatar for sDJh
1
108
Member Avatar for stephen_UK

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

Member Avatar for Tapioca77
0
510
Member Avatar for BruceSmith

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 …

Member Avatar for Tannus
0
448
Member Avatar for jsepeta

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 …

Member Avatar for MichaelLAX
0
364
Member Avatar for hanintalal

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 …

Member Avatar for sDJh
0
183
Member Avatar for mnewsome

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 …

Member Avatar for jbennet
0
197
Member Avatar for akasekaihime

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"]; // -"- …

Member Avatar for veedeoo
0
267
Member Avatar for utkarshsahu

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 …

Member Avatar for utkarshsahu
0
3K
Member Avatar for mackyflores

How about? [CODE]SELECT `name`, `address`, `number`, `company`, `reservation` FROM `db`[/CODE]

Member Avatar for sDJh
0
78
Member Avatar for geekme

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, …

Member Avatar for mikulucky
0
133
Member Avatar for inni2626

@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

Member Avatar for magento12
0
246
Member Avatar for fantasyprints

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 …

Member Avatar for cocolio
0
227
Member Avatar for BenzZz

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 …

Member Avatar for broj1
0
158
Member Avatar for davy_yg

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 …

Member Avatar for Zahinize
0
184
Member Avatar for Drugsxxx

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 …

Member Avatar for diafol
0
130
Member Avatar for siva28

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 …

Member Avatar for diafol
0
98
Member Avatar for Katana24

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 …

Member Avatar for stevenros
0
160
Member Avatar for mary_forum

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

Member Avatar for diafol
0
1K
Member Avatar for Aneesha

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. …

Member Avatar for jsepeta
0
911
Member Avatar for sDJh

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 …

Member Avatar for sDJh
0
319
Member Avatar for newbie14

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

Member Avatar for newbie14
0
132
Member Avatar for lsvife
Member Avatar for jingda
0
225
Member Avatar for masterjiraya

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

Member Avatar for karthik_ppts
0
6K
Member Avatar for programmer12

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

Member Avatar for programmer12
0
89
Member Avatar for MasterGberry

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 …

Member Avatar for sDJh
0
106
Member Avatar for devindamenuka

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 …

Member Avatar for sDJh
0
111
Member Avatar for jacksantho
Member Avatar for sDJh
0
74
Member Avatar for divyakrishnan

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 …

Member Avatar for sDJh
0
102
Member Avatar for stevenros

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.

Member Avatar for jingda
0
276
Member Avatar for rpv_sen

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 …

Member Avatar for rpv_sen
0
2K
Member Avatar for gonidelux

Yeah. Have you GD installed? Check that and look on [URL="http://php.net"]http://php.net[/URL] for some help.

Member Avatar for gonidelux
0
163

The End.