[VIEWED 21011
TIMES]
|
SAVE! for ease of future access.
|
|
|
|
deepak_bhatta
Please log in to subscribe to deepak_bhatta's postings.
Posted on 08-02-05 12:08
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Wanna discuss in the field of programming
|
|
|
|
gidilat
Please log in to subscribe to gidilat's postings.
Posted on 08-05-05 10:05
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
A neat trick. "a"[0] = 'k'; As you suspected, GCC catches the problem during compilation. MSDEV, on the other hand will not catch it if you compile as cl test.c If you create a project, and if /ZI is one of the compile time options, then MSDEV allows you to compile/link - but if you run it - you get a run time exception. Try compiling as: cl /ZI test.c BTW I am using vc7 from Visual Studio .Net 2003. "Back then memory was scarce" - it still is. Just depends upon what are programming. If you are programming a toy to be sold for pennies - then you wish like hell you had a byte more.
|
|
|
gidilat
Please log in to subscribe to gidilat's postings.
Posted on 08-05-05 10:21
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Since so much confusion is about const. Here is a link with something to chew about http://www.codeproject.com/cpp/complex_declarations.asp
|
|
|
testdirector
Please log in to subscribe to testdirector's postings.
Posted on 08-05-05 12:38
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
I'm running an old copy version 4.0 and the compiler cl says unknown option. So at least new one is keeping up, doing it the right way I think, providing an non-default option only. But finally I got access to www.cyberspace.org to compile in OpenBSD now. The gcc compiler gives a warning there saying assignment of read-only location but compiles. There is a segmentation fault when you run the program. A little better than no warning and segmentation fault!
|
|
|
testdirector
Please log in to subscribe to testdirector's postings.
Posted on 08-05-05 12:45
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Well, the memory is much cheaper now than then. I know what you are talking about... I've to think where the next bit comes from:-)
|
|
|
shree5
Please log in to subscribe to shree5's postings.
Posted on 08-05-05 12:52
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Guy(s) please do me a favor Most of my office time, I am hooked up in Linux. I do have a few administration skills for day to day use, but one problem is quite sucking me. I want to be able to install(?) Unicode Nepali so that I can browse Sajha and similar Nepali sites. I solicited a lot of info from too many sites but to no avail and I dont wanna consume space here to just repeat what I tried to fail. Here are the specs: FC3 (64) - almost "everything-install " (except certain sundry devel-packages) on AMD-64, Firefox, yum-med a few times but only to the official fedora repository And one more thing plz, with some (clean re-)boots, one of the two network cards doesnot get brought up, it doesnot always happen but only at times and it is the same network card eth0 that goes berserk, where should i be looking for diagnosis? thanks in advance keep rolling...
|
|
|
shree5
Please log in to subscribe to shree5's postings.
Posted on 08-05-05 12:56
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
wanted to further my statement of problem- initially it showed only english-type text and some cryptographs but after following almost every advice i found on web, the nepali fonts do show up but dont get rendered proper. esp with the samacharpatra site - http://www.newsofnepal.com i still dont get even the nepali type-faces.
|
|
|
testdirector
Please log in to subscribe to testdirector's postings.
Posted on 08-05-05 3:14
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
shree5, you 've too good a computer for you, hooked up all the time to it:-) And you get a hefty salary for that kind of work. Questions --------------- 1. What exactly happens? Does it spit out messages like "eth0: shree5 error, could not allocate buffers" etc. Please strive to describe it in as much details as possible while rolling. 2. I don't know what is the format of UNICODE in Linux, but will try to search. I think you need to install a different Nepali font if the one installed does not show up properly. Keep searching...
|
|
|
shree5
Please log in to subscribe to shree5's postings.
Posted on 08-05-05 4:10
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
thanks testdirector, [first the non-technical stuff] {salary?= nada; professor ko sasto khetala tyo ni civil engg ko manchhe + jati bujhe ni bujhi nasaknu lagyo ra ta shiva_bhakti *marga ma lagya :-)}; [technical stuff] Main() /*the box mainly hosts a smb unit, db (MySQL), "secured" html/php pages in apache, and phpBB accessible to proper authenticated users*/ { the room (office) has a musuem-full of machines interconnected thro a router and a couple of switches. so, i set up eth0 hooked to a direct static IP address-wala at the wall-port for the outside world, and eth1 to the local LAN switch (connected to router) for the LAN. when sth goes crazy, my windows' legacy tells me to restart it and when i do that, the boot-up msg shows (not always) "unable to bring up ethernet interface eth0 .....[FAILED]. " when i check the boot-log in /var/log...whatever (i m away now), i find the same message is logged but nothing more. Then i goto the GNOME desktop GUI under root login, and in the menu ..Network Devices>>choose eth0 and click "activate" and presto...its up and running again. just for fun, i try to "activate" eth1 and it says "unable to bring up ..." but it is already up since boot and does not make any difference. Initially it was just smooth, it just began to happen after i yum-med once, it asked me to restart and the "rog lage jasto chha". And one more thing, the indicator lamp for that port/NIC in the switch shows error signal while the computer is booting and eth0 is going to be down- boot hunda hundai bhavisyabani garchha}; Unicode_wala() {Some of the Linux bhaiyas in comp.cs.ca have suggested me that it might have been weird because the system is 64bit wala, and that i should go for FC4-32 wala binaries because they say some applications/API/SO's (i never heard about "YES OH" in windows, btw) are only for 32 bit, and i m seriously contemplating that too because as i have heard FC4 has by default this unicode thing as well as this "Xen" thing which will let me (well, apparently) as well as the desis to access it from anywhere and fix problems. Hope you will give me a cool advice.}; Anyway, please lemme know if i can write those "shiva-puran" and alike from a fedora environ, that would be really cool... thanks again;
|
|
|
shree5
Please log in to subscribe to shree5's postings.
Posted on 08-05-05 4:25
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
director saab, maybe i was not clear earlier. when the box reboots, the berserk NIC is "eth0" which is connected directly to a static-IP wala port leading to the univ IP-server but the indicator lamp for "eth1" which is connected to a switch in the LAN (wireless->router->switch->terminal) shows error although apparently there is no problem with the "eth1" . The FC3 server as such connects to two internet connections, one static (eht0) and another dynamic(eth1) and it is the eth0 that is behaving crazy. Why the indicator for a virtually OK -wala shows error and how, only bhole baba knows. thx again keep rolling...
|
|
|
arch119
Please log in to subscribe to arch119's postings.
Posted on 08-05-05 5:01
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
>>shree5 http://www.nepalinux.org/ Try the Nelp tool there. It might just work. Even if it doesn't, try to go thru the scripts to see which configuration / environment variables need to be monkeyed. I personally do not use GUI in linux but I remember that one cud change the language settings [ from that blue FC login screen ] to Nepalese, and all the menu and everything would come up in Nepali. Have u tried viewing sajha in that environment ?
|
|
|
shree5
Please log in to subscribe to shree5's postings.
Posted on 08-05-05 5:36
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
thanks arch119, i think that is my pot- i was looking for sth sorta canned black-box but able get the job done, how-its not my business. i will try this on monday and let you know how it behaves. yeh, some bhaiyas experimented by installing their own hindi-language thing and as u said, i can see "हिंदी" in X-term in runlevel 5 (?), under the menu settings...sth like that. however it just sucked, some of the items in the menu of firefox also started to appear in "हिंदी" and if i wanted to save a web-page and give it my own name other than default, all the letters whatever i type in the file-save dialog box would also be in "हिंदी", from firefox, i could not save the images too with a english-script name. then i had to loose more than a day until i succeeded in recompiling firefox with some configuration changes. bhole-baba ko aashirbaadle the menu items are now always in english, WHATEVER locale i log in, even Nordic or German, but that is OK. in the hindi locale proper, or in any locale for that reason, i can view sajha, and the fonts also appear but the rendering is screwed up, believe-me, you can't read a sense outta 'em. samacharpatra - http://www.newsofnepal.com is still screwed up, even the nepalese type faces dont appear, it all looks like some weird cryptography. Nepalnews' weekly magazines are fine and perfect, quite surprisingly. anyway, thanks a lot, will report u later whatever happens keep rolling... i wil l times even the menu items in fi
|
|
|
testdirector
Please log in to subscribe to testdirector's postings.
Posted on 08-06-05 8:34
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
shree5, As this thread is a big testimony, take my suggestions as ones from a bullshitter, as I'm talking from my decade-old experience with BSD. 1. You gave me a full nalibeli of your office; quite impressive. Can you tell me whether the eth0, eth1 are removable. The wireless is probably a PCMCIA card, or is it built into the system? Describe it as much as possible. If any of the cards are removeable, replace them, if you have spares, one at a time. Tell us about how it goes. 1.1 If so, remove first both of them, reboot, pay attention to the messages. Tell me about them. Tell me about it. 1.2 Then plug in eth0 only, tell me how it works (any error messages?). Does it ping to any known host out there? Link lights are OK? 1.3 Now remove eth0 and plug in eth1 and reboot. Tell me if eth1 works (e.g. ping to some host on that network). Link lights now OK? 1.4. Plug in both of the cards and reboot. Tell me if it works: remote hope that the cards are not mounted properly. 2. Can you also find a capture of all the damn messages from the time the LILO(??) says it is booting linux to the point where it asks you to log in. If you do not find a file, write it down yourself. Pay attentions to error messages from all other device drivers, including conflict of IO, memory and interrupt lines, etc. Send it to me and post it here. Keep working...
|
|
|
shree5
Please log in to subscribe to shree5's postings.
Posted on 08-06-05 2:07
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
thx director saab, let me explain a bit more 1. There is one server machine with two RJ45 (हो कि त्यस्तै के जाति हो, टेलिफोनको जस्तै तर अलिक ठूलो दूलोमा छिराउनी ) NICs. Of course, one is eth0, the other is eth1. 2. As the system hosts some internet stuff, eth0 is connected to a port which directly goes to the ISP. 3. The entire building is "hot" with wireless internet, so a wireless router snaps that in and distributes to other computers (which are not wireless-enabled) through a switch and RJ45 (?) cabling. On doing this, the internet connection is also shared but also we have an efficient and secured LAN alongwith. सिभिल ईन्जिनियरले कम्प्युटरको काम गरेसी त्यस्तै भद्रगोल हुन्छ। The "server" machine is also connected to the router because it has to "file-serve" the other janta-computers. This connectivity is thro the "eth1" in the server. 4. Sometimes, not always, when the server is reboot, the indicator lamp in the switch for the server's eth1 अलिक ढिलो पिलिक्क पिलिक्क गर्छ। That means there is sth wrong with eth1, i guess. But I can easily access the file-system of the server from the other jantas, which means eth1 is up. But if I try to access the machine from outside the LAN, i cannot, which means eth0 is down. Then, I suspect whether eth0 and eth1 are interchanged-kind-of-thing, so i do "ifconfig" : eth0 is down, eth1 is up, fine and doing its job. 5. If I go from Desktop>> Network Devices>> whatever and "up" the eht0 or simply command "ifconfig eth0/up" it works. for fun, if i did "ifconfig eth1/up" it says it failed to bring eth1 up but the thing is working fine. 6. This happened after i yum-med and did a few updates to get a dvd player/writer. 7. We have rather installed GRUB, but nothing is shown on the boot-log, i checked most of the things already. 8. The nepali font and unicode problem is in another machine also running FC3 and is just a workstation within the same LAN 9. I will try to dig into the boot-log again, weekend ma ta shiv_puja garnu parena? Thanks for ur interests Keep rolling...
|
|
|
sajhabusaima
Please log in to subscribe to sajhabusaima's postings.
Posted on 08-06-05 4:34
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
|
|
|
testdirector
Please log in to subscribe to testdirector's postings.
Posted on 08-06-05 4:51
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Well bro, first do ifconfig eth1 down Then do ifconfig eth1 up for fun. Keep worshipping...
|
|
|
testdirector
Please log in to subscribe to testdirector's postings.
Posted on 08-06-05 4:55
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Oh yeah, you actually can do a work-around which should keep you rolling for ever. If I remember correctly, under /etc/ directory or so there is a rc file for inetd. There at the end of STARTUP message or so, you should be able to add a line ifconfig eth0 up. If it succeeds, you should be up and running. Keep banging...
|
|
|
shree5
Please log in to subscribe to shree5's postings.
Posted on 08-06-05 5:12
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
director saab, i have those lines already in start-up script, i also freqent fedoraforums, but i m seriously contemplating wiping out the whole thing with fc4(32) because so many ppl told me that its happening because i m using the fc3 64-bit version, and some apps are of 32-b version and there are also so many other issues.... open source rocks but linux still sucks... My main problem that I still hope to get solved with the Sajha IT-ians is that of the Nepali unicode thing, which i will try as arch119 has pointed and maybe personally communicate with him afterwards.. thanks all for ur interests keep rolling...
|
|
|
testdirector
Please log in to subscribe to testdirector's postings.
Posted on 08-06-05 8:17
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
>> open source rocks but linux still sucks... Sounds like an IT engineer already. Keep it up:-) Apparently, it depends on who is talking. Overall, Windows XP is better than Linux for day to day jobs. The number of professional applications are too many for XP to ignore it. Now a days Linux has come a long way, too, especially in scientific arena where super-computing and clustering matters (using kinds of processors like yours). Linux has readily available ports for other processors. My experience with Linux was also not so good. I loaded Xilinx ISE on Linux, it never finished any synthesis, I mean never! I just then ripped Linux apart, bought Windows XP SP2 and I'm very happy with it. Also, I saw that Linux kept cranking my hard-drives too many times for no obvious reasons (slow). But I'll be working on Linux very soon.
|
|
|
Hushpuppy
Please log in to subscribe to Hushpuppy's postings.
Posted on 08-07-05 6:05
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
i did do my mis course..but i'm mostly a business . person..now i landed an IT job..where i mostly work with FLASH..dreamweaver..which was easy to grasp ..but then i need to most of my future projects..html conversions, more flash and finally start creating and hosting my projects over the net...i have a week..to do my homework..is there a book for dummies for flash and . net ...or how's the best way to approach..its weird jumping from marketing to production inthe same company..so i need your help...not a very intelligent question...but i guess its worth finding out..thank you guys..i'd really appreciate it..
|
|
|
arch119
Please log in to subscribe to arch119's postings.
Posted on 08-07-05 6:25
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
>>hushpuppy B4 learning flash and web development (that's where i think you are heading) , you need some basic ideas about simple web pages written in html. So here is your roadmap: 1) Learn the basics of html. (http://www.w3schools.com/html/default.asp) 2) Learn using simple images, gif animation in web pages and see the limitations of these techniques to make a web page attaractive. 3) Learn the basics of flash . (http://www.w3schools.com/flash/flash_intro.asp) There are a lot of good books on flash but first master these w3schools tutorials. 4) Once you know how to create html pages and embed your flash animations in them and wanna make them public, post a question in this thread once again. We will go in detail about that thing too. Html and flash aren't that difficult to learn. I can already see your creativity being expressed as weird flash animations. ;-) Enjoy.
|
|