248 Posted Topics

Member Avatar for Assembly Guy

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 …

Member Avatar for Assembly Guy
0
308
Member Avatar for sruthisru

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.

Member Avatar for diafol
0
253
Member Avatar for ITOzann

The C++ code is giving me the expected result, was it your MIPS assembly which gives the problem?

Member Avatar for ITOzann
0
239
Member Avatar for rookieNeedsHelp

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 …

Member Avatar for rookieNeedsHelp
0
434
Member Avatar for CProgrammmmer

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

Member Avatar for Assembly Guy
0
128
Member Avatar for nitish.mohiputlall

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

Member Avatar for Assembly Guy
0
171
Member Avatar for aravind07k
Member Avatar for Manopriya

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

Member Avatar for rubberman
0
126
Member Avatar for Assembly Guy

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

Member Avatar for Assembly Guy
0
461
Member Avatar for sagngh8

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

Member Avatar for mathematician
0
788
Member Avatar for minyoung.han.127

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.

Member Avatar for Assembly Guy
0
180
Member Avatar for facarroll

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

Member Avatar for Assembly Guy
1
238
Member Avatar for Henshens
Member Avatar for jessicarobort
Member Avatar for mukulnimker7751

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.

Member Avatar for mukulnimker7751
0
232
Member Avatar for bintang

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.

Member Avatar for Assembly Guy
0
672
Member Avatar for Assembly Guy

Maybe it's my browser or my screen width, but the Daniweb social sidebar's being doing this lately: ![a3cb98be35ec8e6d2965b6bd8fadca06](/attachments/small/4/a3cb98be35ec8e6d2965b6bd8fadca06.png "align-left") 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 …

Member Avatar for Assembly Guy
0
204
Member Avatar for pritaeas

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 ^_^

Member Avatar for diafol
0
1K
Member Avatar for davy_yg

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.

Member Avatar for ronald577
0
90
Member Avatar for Anila_1
Member Avatar for iamthwee

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

Member Avatar for Assembly Guy
0
175
Member Avatar for rohan.verma.52012

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 …

Member Avatar for minitauros
0
268
Member Avatar for mblan180131

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 …

Member Avatar for Assembly Guy
0
246
Member Avatar for drdhungana

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 …

Member Avatar for Assembly Guy
0
192
Member Avatar for jean122

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 …

Member Avatar for jean122
0
348
Member Avatar for angela.hach.1
Member Avatar for enwan moses

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

Member Avatar for jquizzzzz
0
135
Member Avatar for Rahul47

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 …

Member Avatar for Rahul47
0
2K
Member Avatar for MasterHacker110

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

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

The OP appears to have accidentally put their message inside a code block or list. Be more careful about this next time.

Member Avatar for happygeek
0
68
Member Avatar for Stuugie

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.

Member Avatar for mike_2000_17
0
272
Member Avatar for Assembly Guy

Are there any other radio hams on Daniweb? Statistically speaking, there are bound to be some - I'm just curious :P 73s ZL2DBP

Member Avatar for Assembly Guy
0
158
Member Avatar for Ancient Dragon

I'd still like to have the option of making it go away; my view of Daniweb is widescreen enough without having the bar.

Member Avatar for gerbil
0
202
Member Avatar for Assembly Guy

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 …

Member Avatar for Dani
1
282
Member Avatar for lupacarjie

>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

Member Avatar for lupacarjie
0
9K
Member Avatar for imBaCodes

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

Member Avatar for Troy III
1
617
Member Avatar for Ancient Dragon

Just throwing this out there, I'm not for or against: Perhaps downvotes could be put on *downvoting*.

Member Avatar for Assembly Guy
0
330
Member Avatar for m_ishwar

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.

Member Avatar for paulas24
0
379
Member Avatar for sushants

From the command line: php -a assuming you've set your path variable correctly

Member Avatar for Squidge
0
143
Member Avatar for dolfinchris

If you're just starting HTML/CSS/MySQL/AJAX/Perl/ASP/Javascript, then http://www.tizag.com/ covers the basics.

Member Avatar for crescendo
1
171
Member Avatar for Captain119
Member Avatar for Haquo
Member Avatar for Assembly Guy
0
690
Member Avatar for arthur5645
Member Avatar for mxood

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

Member Avatar for mxood
0
281
Member Avatar for Assembly Guy

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 …

Member Avatar for Assembly Guy
0
394
Member Avatar for Assembly Guy

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.

Member Avatar for diafol
0
238
Member Avatar for ziadkassam

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 …

Member Avatar for rubberman
0
178
Member Avatar for bamysim
Member Avatar for pbj.codez

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

Member Avatar for Assembly Guy
0
336
Member Avatar for Venter

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.

Member Avatar for itpixie
0
155

The End.