Go to advanced search

by jojopi
Sat Nov 12, 2016 4:17 pm
Forum: Raspberry Pi OS
Topic: Why is Jessie asking for a password?
Replies: 29
Views: 17811

Re: Why is Jessie asking for a password?

Debian 8 GUI does not accept raspberry as the password which leaves you in a loop of incorrect credentials, with no way to recover. If you see a message such as "incorrect password", then your credentials are being rejected. Otherwise the password is correct, but the GUI is failing to launch. There...
by jojopi
Fri Nov 11, 2016 11:29 pm
Forum: Python
Topic: "No Such File" Error - opening as "w"?
Replies: 7
Views: 4346

Re: "No Such File" Error - opening as "w"?

IOError: [Errno 2] No such file or directory: '/mnt/NAS_A/Mongo_TemperatureLogs/MongoTempLog_24h.2016-11-08.tab' Doesn't seem right that "w" would trigger such an error unless there were something wrong with the rest of the URL path. Exactly. Neither "w" nor "a" require the file already to exist. (...
by jojopi
Thu Nov 10, 2016 9:26 pm
Forum: Beginners
Topic: Superblock last mount time in the future
Replies: 21
Views: 5273

Re: Superblock last mount time in the future

/dev/mmcblk0p2: Superblock last mount time (...) is in the future /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY (i.e., without -a or -p option) fsck died with exit status 4 An automatic file system check failed! Now I am even more suspicious that you are running wheezy. If fsck dies o...
by jojopi
Thu Nov 10, 2016 6:15 pm
Forum: Beginners
Topic: Superblock last mount time in the future
Replies: 21
Views: 5273

Re: Superblock last mount time in the future

Next time I try to boot the fsck during boot fails with "Superblock last mount time (..., now ...) is in the future" What else does it say? That particular error is not considered an unexpected inconsistency. It should be fixed in preen mode without manual intervention. Nov 10 14:17:06 raspberrypi ...
by jojopi
Thu Nov 10, 2016 12:04 am
Forum: General programming discussion
Topic: What toolkit for X apps?
Replies: 70
Views: 10873

Re: What toolkit for X apps?

Raspbian Light, which should be called Raspbian Heavy without GUI. Or "Bloaty McBloatface"? I have even done the RAM disk only thing with Linux, and it works great as long as you have at least 128MB of RAM total (give 100MB to the RAM Disk so you have some work space, and have a full 28MB of system...
by jojopi
Wed Nov 09, 2016 3:03 pm
Forum: Troubleshooting
Topic: Better mousedriver?
Replies: 10
Views: 1629

Re: Better mousedriver?

In the simple editor in my Raspberry Pi3 the cursor doesn't care to sens the spaces (or other special characters) so I need to be very careful where I place the cursor before I press the left button. In most applications, to select a word you can double click it. To select a phrase, double click on...
by jojopi
Tue Nov 08, 2016 12:29 am
Forum: Off topic discussion
Topic: SD Card Curruption, OS dependant?
Replies: 19
Views: 2945

Re: SD Card Curruption, OS dependant?

RISC OS on the other hand has a much caching system I suppose you have missed out the word "simpler", but perhaps "more antiquated" would be truer. Like your unsubstantiated claims that Linux programmers use bubble sort and linear search, the idea that demand paged memory is a "well known issue" is...
by jojopi
Mon Nov 07, 2016 5:09 pm
Forum: General discussion
Topic: iptables bug?
Replies: 5
Views: 1395

Re: iptables bug?

I saw nothing to suggest it was not supported. Its simply a range of numbers Whenever a program accepts some numeric parameter there will inevitably be both a minimum and maximum value that are allowed. The documentation says "Note: you cannot currently create a rule with a recharge time greater th...
by jojopi
Sat Nov 05, 2016 7:02 am
Forum: General discussion
Topic: iptables bug?
Replies: 5
Views: 1395

Re: iptables bug?

I cant find anything to suggest a limit of 1/day is illegal. Is this a bug? Did you find anything that says it is supported? One packet per day strikes me as such a ridiculously low average that you might as well drop the traffic or logs altogether. It is a good idea to run "dmesg" after a system c...
by jojopi
Sat Oct 29, 2016 7:45 am
Forum: Other programming languages
Topic: C89, and C99 vs C99 (I was wrong).
Replies: 39
Views: 6409

Re: C89, and C99 vs C99 (I was wrong).

There is no different ANSI C99 versus ISO C99. ANSI sells the international standard, now properly INCITS/ISO/IEC 9899-1999 (R2005). Yes, you can still use old-style function declarations if for some reason you need compatibility with 28-year-old compilers. But then it is your responsibility to pass...
by jojopi
Fri Oct 28, 2016 8:14 am
Forum: Advanced users
Topic: External serial keyboard as input
Replies: 9
Views: 4519

Re: External serial keyboard as input

echo HELLO > /proc/$(pidof cat)/fd/0 If you test that with anything other than cat, you will see it is not sending input to the program at all. It is just sending output to the terminal the program happens to be running on. I have never encountered a UART keyboard (unless you include Sun Type 5). M...
by jojopi
Sat Oct 22, 2016 11:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Issues found while scanning a matrix keyboard
Replies: 14
Views: 3053

Re: Issues found while scanning a matrix keyboard

In my case the 1.5V result at the column means the four diodes were dropping about 0.45V each. You would normally expect a 1N914 or 1N4148 to be closer to 0.65V, but that is at a current of 1mA or more. This circuit conducts at most 66uA, limited by the 50K internal pull-down resistor in the input G...
by jojopi
Sat Oct 22, 2016 9:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Issues found while scanning a matrix keyboard
Replies: 14
Views: 3053

Re: Issues found while scanning a matrix keyboard

The described situation works for me. In fact, I can put up to four 1N4148 diodes and a 10K resistor all in series between the row pin driving high and the column pin pulling low. Then the voltage at the column is down to 1.5V, but still just enough to read as high. Five diodes is too many. Somethin...
by jojopi
Fri Oct 21, 2016 10:47 pm
Forum: Troubleshooting
Topic: Can't get past login-screen
Replies: 6
Views: 3508

Re: Can't get past login-screen

I can't log in from the login-screen but is fine when i login from ssh with the same username and password, what could be the problem? Do you actually see a message such as "incorrect password"? If the screen just goes blank and then returns to the login dialog, your GUI session failed to launch. C...
by jojopi
Fri Oct 21, 2016 9:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Issues found while scanning a matrix keyboard
Replies: 14
Views: 3053

Re: Issues found while scanning a matrix keyboard

VIH is the minimum voltage that will be seen on an output pin when it is High and the current draw is at the maximum level. Normally the output will be at or near 3.3V when High. The worst-case output voltages should be called VOL and VOH, while the names VIL and VIH are used for the levels require...
by jojopi
Fri Oct 21, 2016 12:57 pm
Forum: Raspberry Pi OS
Topic: Disabling ext4 journaling remote
Replies: 11
Views: 4740

Re: Disabling ext4 journaling remote

Also you really DO NOT want journalling on an SDCard. I know that you probably consider it a virtue, but you have wasted another two posts in this thread. The intent of the commands in the original post was to disable journalling. You are advising the poster to do exactly the thing he wanted to do,...
by jojopi
Thu Oct 13, 2016 9:43 pm
Forum: C/C++
Topic: The MagPi does C :-)
Replies: 124
Views: 26838

Re: The MagPi does C :-)

My advice to any C programmer would be always to compile with "gcc -Wall". Many of the people posting C questions on the forum would have had at least some hint to what their problem was if they had been using the diagnostics. Unfortunately, telling people to enable warnings is incompatible with tea...
by jojopi
Mon Oct 10, 2016 11:23 pm
Forum: Advanced users
Topic: Enabling core dumps in raspbian jessie
Replies: 9
Views: 5947

Re: Enabling core dumps in raspbian jessie

/etc/sysctl.d/core.conf: kernel.core_pattern = /var/lib/coredumps/core-%e-sig%s-user%u-group%g-pid%p-time%t kernel.core_uses_pid = 1 fs.suid_dumpable = 2 Did you create that file? I do not have it on any of my Raspbian or Debian systems, and can not find any package that might own it. ls -l /var/li...
by jojopi
Mon Oct 10, 2016 8:38 pm
Forum: Advanced users
Topic: Enabling core dumps in raspbian jessie
Replies: 9
Views: 5947

Re: Enabling core dumps in raspbian jessie

limits.conf has been updated for both hard and soft limits, so no issue with ulimit. Have you actually verified that "ulimit -c" in a shell says "unlimited", instead of the default "0"? Does "sysctl kernel.core_pattern" also say "= core"? Any possibility your processes are faulting in a directory w...
by jojopi
Mon Oct 10, 2016 11:29 am
Forum: General discussion
Topic: arm_freq non changing?
Replies: 20
Views: 7604

Re: arm_freq non changing?

That won't tell you what frequency it's running at, " scaling_cur_freq " contains the upper limit value for turbo. It won't change once the Pi has booted and will always contain the default of 1200, or whatever overclock/underclock value you've set in config.txt. As the name suggests, scaling_ cur ...
by jojopi
Mon Oct 10, 2016 11:08 am
Forum: Raspberry Pi OS
Topic: Raspbian Jessie (64bit) for RPi3?
Replies: 145
Views: 140440

Re: Raspbian Jessie (64bit) for RPi3?

The fact that it takes so long implies that its doing division/remainder in a loop and not the sieve method. Each thread is effectively: #include <stdio.h> #include <math.h> typedef unsigned long long integer; #define max_prime 20000 int main() { integer c, l, t, n=0; int rep; for (rep=0; rep < 250...
by jojopi
Fri Oct 07, 2016 1:08 pm
Forum: General discussion
Topic: Is it normal for raspbian to just crash?
Replies: 40
Views: 7520

Re: Is it normal for raspberrian to just crash?

Do american key boards really have an @ where the " should be? what a pain. No. Actually modern GB layout has @ where " should be. When bit-paired designs died out, British companies including Acorn , Apricot , and Sinclair adopted layouts very similar to the US. Somehow IBM won and forced you to a...
by jojopi
Mon Oct 03, 2016 11:54 pm
Forum: General discussion
Topic: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Replies: 44
Views: 6931

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$

i've downloaded Elinks. same problem tho For me it seems that links transliterates ä as "a:", whereas elinks (if the system is misconfigured for non-ascii) uses "ae". Not quite the same, but in both cases clearly intentional. What are you seeing? Do you still have locale warnings on commands such a...
by jojopi
Mon Oct 03, 2016 11:12 pm
Forum: General discussion
Topic: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Replies: 44
Views: 6931

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$

You have had two problems: links seems not to want to display accented letters literally, even on a correctly configured system, as Heater already confirmed. I do not know if that can be fixed or not. Just use elinks as RaTTuS suggested on day one. LC_CTYPE="UTF-8" is an invalid setting (you cannot ...
by jojopi
Sat Sep 17, 2016 12:25 am
Forum: Other programming languages
Topic: shell: redirect stderr and append? using iwlist
Replies: 5
Views: 1298

Re: shell: redirect stderr and append? using iwlist

"2>&1 1>> FILE" is not terribly useful. Redirections are processed from left to right, so this first attaches stderr to the initial stdout (which are normally the same anyway), then directs stdout only to the file. To redirect stdout and stderr together you need the order "1>> FILE 2>&1". Or to redi...

Go to advanced search