ascii2utf-8
by Hiisi
Hi.
I need to convert a bunch of ascii-files to utf-8 encoding. Now files
have the following encoding:
$ enca poster.tex
7bit ASCII characters
Whatever I do (enca, iconv) I'm unable to change it to utf-8.
Is it possible at all?
TIA
--
Hiisi.
Registered Linux User #487982. Be counted at: http://counter.li.org/
--
Spandex is a privilege, not a right.
13 years, 6 months
Boot blocks of a bootable CD
by JD
Given a bootable CD or DVD (either the medium itself, or the iso file),
is there a way to extract the boot blocks from it
for use in creating a different bootable Cd or DVD? Would it even work?
13 years, 6 months
gnupg secret key vs session key
by Geoffrey Leach
My use of gnupg is very simple (or so I thought)
I created a user (defaults accepted) with a nice long passphrase
I then encrypted a file using --symmetric
I decrypt the file
%gpg -d ...
You need a passphrase to unlock the secret key for ...
<enter the secret key from user creation>
gpg: Invalid passphrase; please try again ...
two more attempts, same result
gpg: 3DES encrypted session key
Enter passphrase:
entering the passphrase created above works fine.
I understand that secret key is different from session key, but I don't
understand why the passphrase is not acceptable in the first case, but
is in the last.
13 years, 6 months
Re: Computing cpu's clock in cycles per second
by Wade Hampton
Did you look at using the RDTSC instruction to read the
cycle counter?
http://en.wikipedia.org/wiki/Time_Stamp_Counter
Sample this over an interval to get an estimate
of the clock frequency based on this counter.
__inline__ unsigned long long int rdtsc()
{
unsigned long long int x;
__asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
return(x);
}
I use gettimeofday() calls to check the wall-clock time,
usleep(n) to sleep for a long time (second or more),
and rdtsc to compute the cycles.... Seems to work
well.
Cheers,
--
Wade Hampton
13 years, 6 months
Re: Scottrade streaming quotes fixed with java jre
by T.D. Telford
Thanks to the suggestion of Pscium, I removed the openjdk and installed the java jre. The non trivial instructions do to this are at:
fedorasolved.org/browser-solutions/java-i386
I use the x86_64 version of firefox, so used the 64 bit version of java jre.
Unfortunately, to see the problem you need a Scottrade account. Once you login, there is menu on the left hand side: Scottrader streaming quotes. If you use the openjdk the 3 major national stock market averages are messed up and there is a large blank space at the top of the screen. With the java jre this is fixed.
Thanks to all that replied.
Regards,
Doug
13 years, 6 months
Re: Re: Are all cores unlocked?
by Kenneth Marcy
On Sep 22, 2010, JD <jd1008(a)gmail.com> wrote:
On my notebook, which has an old 2.2 GHz athlon65 uniicore (3700+),
cpuinfo shows cpu MHz as 798.103
OK
Does that mean that as I am typing this message, the cpu is running
at only 790MHz??
Approximately, yes. Your machine is also not discharging its battery quite so fast, nor is it generating more heat unnecessarily for the modest level of CPU activity you are now requesting of the machine.
How an I speed it up?
Ask the CPU to do more work. Recalculate a large spreadsheet. Spell-check a long document. Do a database lookup. Better yet, do them all at the same time. If your bandwidth, as opposed to the machine's, isn't interested in all that excitement, but you still want to exercise the processor more, find some program to run in the background while you do less compute-intensive tasks. For example, you could join the folding@home project:
http://en.wikipedia.org/wiki/Folding@home
Or you could just be content that your computer knows how to run in an idle mode instead of racing around at top speed when it doesn't have anything to compute at the moment (which is most of the time, usually).
One of the larger challenges of contemporary computer science is to figure out how to use, most efficiently and effectively, the multiple processor resources now more commonly available. Software has to be made aware of how to best use the newer hardware, and this is a non-trivial task.
Ken
13 years, 6 months
Re: Scottrade streaming quotes errors on latest fc13
by T.D. Telford
Scottrade streaming stock quotes is initiated from firefox, and uses a Java applet.
fc10 is fine and the fc13 dvd install, with no updates is good, but the latest fc13 changes (as of today) show the major index quotes are missing and there is a big blank area at the top of the display.
Since I manage my stocks with this program, I will not be able to use fc13 until it is fixed.
Regards,
Doug
13 years, 6 months
connecting to facebook chat
by Dj YB
Hello,
I am inside a campus network and trying to connect to chat.facebook.com using
kopete on port 5222
this is not working for me, I have tried to consult my network admin since I
thought the problem reside in the network firewall configurations.
he claimes that he can see successful connection from my ip on this port
(5222) however both Kopete fail to connect and trying 'telnet
chat.facebook.com 5222' gives timeout error every time. trying the same for
jabber.org fail also.
Assuming my net admin know his job Is there a chance something I did can block
me from getting to this service?
my firewall is configured using the gui to only allow incoming SSH but I did
nothing regarding outbound connections.
Thanks in advance,
YB.
13 years, 6 months
FC12 Boot partition too small to Upgrade to FC13
by Tod Thomas
I need to upgrade to Fedora 13 but my boot partition is too small (200
MB) and it needs to be at least 500 MB. The boot partition is followed
by an LVM volume goup composed of a 145 GB root LV and a 5GB swap LV.
How can I 'safely' decrease the size of the volume group and increase
the size of the physical boot partition?
Thanks in advance.
- Tod
13 years, 6 months