248 Posted Topics
I've noticed some poor accuracy in the little read/new icon to the left of each forum on the homepage. I've seen a 'NEW' message for the assembly forum quite a few times over the past few weeks, only to find there were no new posts there. AFAIK, ususally after visiting … | |
Re: Keep in mind that many people are in a different timezone than you and are sleeping. Wait a few days or so before bumping the thread. ![]() | |
Re: The C++ code is giving me the expected result, was it your MIPS assembly which gives the problem? | |
Re: I won't hand the whole answer to you, as that wouldn't be helping you in the long term. As a starting point, how many minutes are there in every hour? You'll need to divide the number of minutes by that number (ensuring it's stored or cast as an integer so … | |
Re: Sscanf doesn't do octadecimal; it'll do decimal, binary, hexadecimal and octal. Octa and dec implies 8 and 10, so digits 0-9, A-H. CProgrammmmer, do you mean octal (digits 0-7) or octadecimal (0-H)? | |
Re: >so , if n is not useful then don't declare it. This is why I believe `-Wall` (and other compilers' equivalents) shouldn't be optional. | |
Re: If you have `sed` and `tr` then you could use to delete all instances of '\r' to convert from Dos to Unix, or to replace the end of each line with '\r\n' to go from Unix to Dos. Dos2Unix: `tr -d '\r' < dosfile > unixfile` Unix2Dos: `sed -e 's/$/\r/g' … | |
**NOTE** This code won't work at the application level. It directly addresses memory at 0xB8000 which will result in a segfault at the application level. This code must be part of an OS or an application in a not-so-secure operating system like DOS, where applications can directly address any part … | |
Re: As SHL said, no. In my experience, the only times you will **need** assembly is if you're developing and operating system, or you're developing on an architecture for which there isn't a compiler for a higher level langauge (eg C). High level languages were invented to be quicker to write, … | |
Re: See http://stackoverflow.com/questions/1699748/what-is-the-difference-between-mov-and-lea#answer-1699778 for information on the difference between a value and effective address. | |
Re: >open(c:/wampserver/tmp/sess_4bkd7oiqmi7298mhikv09447t6, O_RDWR It's trying to open a session file using a Windows-style filepath... That's odd. It might be a configuration parameter being set inside your PHP code, for example: ini_set('session.savepath', 'c:/wampserver/tmp/') You shouldn't need a line like the above, but it sounds like someone/something put that into your code, which … | |
Re: What's your question? You'll need to be more specific. | |
Re: You could use remote desktop software to log in remotely, then open a command prompt in the remote session. Or, the Professional editions of Windows come with a 'telnet shell server' service which you can enable. | |
Re: You probably shouldn't have re-opened this thread; you'll be better off starting your own thread. You've not added any relevant information to this thread which hadn't already been contributed by other members previously. | |
Maybe it's my browser or my screen width, but the Daniweb social sidebar's being doing this lately:  I'm running Firefox 23 on Linux, 1280x800 screen size. Not happening on Chromium 29, nor Midori 0.5.5 on the same PC. I've got 5 other browsers I can test with if … | |
Re: I very much like the new design. Clean and fresh. Nice. I like how my avatar fits nicely into the circular avatar windows better than a lot of people's, for example where the endorsements are shown at the top of a forum ^_^ ![]() | |
Re: Before doing any editing of partitions, back-up any important data onto a separate disk, just in case. Although partitioning tools like gParted are reliable, they're not perfect and there's always a chance that something happens (eg power outage) during the partion editing. | |
![]() | Re: >This is definitely going to be THE linux os of the future. No question about. Not meaning to be cynical, negative or anything, but a lot of people have said that about a lot of distros :) I like the look of sexy distros, I see the beauty there, but … |
Re: Once the problem is solved, I would suggest including something like: $res=mysql_query($query); if(!$res) { // Do something to catch the error - maybe display // an error message, send the admin an error report // by email or try the query again } To provide a more useful error message … | |
Re: x86 is an architecture that goes way back, all the way back to Intel's 16-bit processors. They named their processors things like 8086, and in later days 80186, 80286, 80386, 80486, 80586, 80686 and so on. Because of this, the 'x' in x86 is just a wildcard. As far as … | |
Re: If you're trying to learn Assembly without any programming background, you're not going to do very well. Assembly is such a nitty-gritty language that beginner programmers will find it difficult and tedious. This will probably put you off programming. Try a higher level language like Perl or Python. I don't … | |
Re: It's impossible to say. I'm an electronics enthusiast and I've diagnosed and repaired many faults in equipment in my life, but it's really hard to say it's one thing. It could be two bad PSUs in a row, it could be a fault on the motherboard, it could be something … | |
Re: @mrgreen Modern NICs can tell if you're using a crossover or not and configure themselves accordingly - I've used both types of cable with no issues. But if the OP's not got NICs capable of this, they should check it, you're right. | |
![]() | Re: mysqli_affected_rows() returns the number of rows which were *changed* as a result of the last query. mysqli_num_rows() returns the number of rows in the array/resource (i.e. the query result) returned by the query. Even if mysqli_num_rows *may* work for counting affected rows, it's probably not a good idea to do … ![]() |
Re: > I cannot use cpu interupts on windows, or can I? Whether or not you can use CPU interrupts under Windows depends on your version of Windows. XP has a 16-bit virtual machine thingy built in to support (most) old DOS and W95 programs, IIRC. >I dont think that my … | |
Re: The OP appears to have accidentally put their message inside a code block or list. Be more careful about this next time. | |
Re: You should be able to just `cd /usr/lib` ? That, or try `cd /lib/`. I'm not 100% familiar with Ubuntu, but I've never seen a distro without a /usr/lib directory. | |
Are there any other radio hams on Daniweb? Statistically speaking, there are bound to be some - I'm just curious :P 73s ZL2DBP | |
Re: I'd still like to have the option of making it go away; my view of Daniweb is widescreen enough without having the bar. | |
Hi, excuse me if this already exists, but could we have a means of syntax-highlighting code that is tailored to the forum that it's posted on, and optionally an author-specified language. I.e. on the C forum, the highlighing would be heavily tailored to highlight C code. You get the idea … | |
Re: >Nobody is taught to use comments anymore? It is so important to comment your code in Assembly, ESPECIALLY in ancient 16bit code where functions don't have names but numbers!! Amen | |
Re: >or the old school trucker's trick, sunflower seeds. Just the act of taking them one at a time and breaking it open and eating it is enough to keep your minnd from getting bored and putting you to sleep. I see, that's clever because you won't be looking at the … | |
Re: Just throwing this out there, I'm not for or against: Perhaps downvotes could be put on *downvoting*. | |
Re: Sounds like a partitioning problem... I googled your error message and someone said that [this](http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/boot-problem-after-installing-ubuntu-11-04-kernel-panic-not-syncing-vfs-919143/) solved their problem. | |
Re: From the command line: php -a assuming you've set your path variable correctly | |
Re: If you're just starting HTML/CSS/MySQL/AJAX/Perl/ASP/Javascript, then http://www.tizag.com/ covers the basics. | |
Re: @mathematician, not if it made virtual registers in memory... | |
Re: What work/knowledge/progress have you made so far? | |
Re: 1) Add '$'s (or whatever currency symbol) in front of your prices that don't already have them 2) The green text 'Your Food. Your Way.' can be a bit hard to read - maybe add subtle text shadowing or change the parent container's background colour to ease the contrast. 3) … | |
For fun, I want to write my own image format. I'm going to have to draw pixels to a Window, but I haven't found any nice, simple, light librarys that can do this. I've thought about using OpenGL, but it's kind of messy and over-complicated to write code for and … | |
Why don't we just give bogus code to people asking for us to do their homework? ;) I mean, it'd really teach them a lesson when their tutor/teacher/lecturer talks to them about their code... Discuss. ![]() | |
Re: http://en.wikipedia.org/wiki/Ethernet_physical_layer#Twisted-pair_cable should answer a lot of your questions. As you said, there are two for RX (RX+ and RX-) and two for TX (TX+ and TX-). Blue and brown are unused (PoE takes advantage of these). From memory, though, blue is used for ground in both PoE mode and normal … | |
Re: >However, I am still trying to understand the way in which the compare operator works for example >cmp eax, 0 I realise this is solved, but just to clarify, with `je` the order in which the operands are specified doesn't matter; both of these are valid: cmp eax, 0 cmp … | |
Re: You guys are missing one key element of the OP's question: >sudo chown -R . He has changed the ownership properties. Thus he should try chaning the *ownerhip* to match whichever user:group combination is attempting to access them when he runs into his problem. |
The End.