Go to advanced search

by rurwin
Fri Jan 06, 2017 4:53 pm
Forum: Networking and servers
Topic: how can I send emails from my raspberry pi without gmail?
Replies: 17
Views: 9646

Re: how can I send emails from my raspberry pi without gmail

I'm locking this. It's a necro of a three year-old post and although the new info is maybe useful, it's off topic.
by rurwin
Fri Jan 06, 2017 9:45 am
Forum: General discussion
Topic: Keyboard not working!
Replies: 8
Views: 2033

Re: Keyboard not working!

Sneak up on the problem. Start off with a stock Raspbian Lite. If that works then install one thing on it and try again. Keep going until it stops working.
by rurwin
Thu Jan 05, 2017 8:51 am
Forum: Troubleshooting
Topic: USB keyboard & mouse suddenly not working??
Replies: 26
Views: 41568

Re: USB keyboard & mouse suddenly not working??

davehelmuth wrote:I made this video, because it is easier to follow video instead of reading.
If you have a smart-phone, the app "Fing" lets you find the IP address of the Pi much easier than searching through your router's web pages.
by rurwin
Fri Dec 30, 2016 5:54 pm
Forum: Automation, sensing and robotics
Topic: Measuring duty cycle
Replies: 8
Views: 4189

Re: Measuring duty cycle

Using the Pi to generate a radio signal is a subject that will be closed down fast on this forum. It is illegal to do this unless one is an expert on radio engineering because the signal coming out of the Pi is not just 433MHz but has many strong harmonics. The primary user of the 433MHz band is the...
by rurwin
Wed Dec 28, 2016 9:45 am
Forum: General discussion
Topic: Rpi, Putty and sending a "Break" command/signal.
Replies: 15
Views: 6611

Re: Rpi, Putty and sending a "Break" command/signal.

Here's my method of dealing with passwords FWIW. I write them down. I know that's supposed to be very naughty, but bear with me. I write them in a little book that is sitting here on a shelf in my home. The only hackers who are ever going to see it are the ones that physically break into my house to...
by rurwin
Sun Dec 25, 2016 1:51 pm
Forum: General discussion
Topic: Using RPi in a commercial project
Replies: 27
Views: 8571

Re: Using RPi in a commercial project

I dunno. Raspbian is a distro specially for the Raspi (not sure of the legalise with regard to PIxel on x86), and using Raspbian on the Pi comes with no restriction as long as you use it on the Raspi. There are no licence issues AFAICT. I'll lok in to it more a week or two in to the new year. I bel...
by rurwin
Sat Dec 24, 2016 7:41 am
Forum: General discussion
Topic: Using RPi in a commercial project
Replies: 27
Views: 8571

Re: Using RPi in a commercial project

johnb_summers ...raspberry pi was slowly going like all the others and using the machine to gain money vie licence fees,... Perhaps I have missed an important point here. What licence fees are your referring to? So far I have never been asked for license fees for using the Pi in any way and was not...
by rurwin
Thu Oct 27, 2016 9:35 am
Forum: C/C++
Topic: How would you ...... in C ? (+ other C discussions)
Replies: 187
Views: 26959

Re: How would you ...... in C ?

True, but then you need #define DAYS_IN_FOUR_YEARS_ASSUMING_CENTURIES_ARE_LEAP_YEARS_WHICH_THEYRE_NOT_REALLY 1461 #define DAYS_IN_FIVE_MONTHS_ASSUMING_THEYRE_THE_RIGHT_FIVE_MONTHS 153 #define JULIAN_DAY_FOR_1ST_MARCH_1BC_ASSUMING_THE_GREGORIAN_CALENDAR_WAS_USED_BACK_THEN_WHICH_IS_WRONG_BY_OVER_A_MIL...
by rurwin
Wed Oct 26, 2016 11:21 pm
Forum: Off topic discussion
Topic: Lol- The joking thread
Replies: 316
Views: 81175

Re: Lol- The joking thread

This may be more depressing than funny but I've found log entries at work that include -0 (negative zero, not indicating subtraction) and -2-1=1. It has given one of my co-workers and I some amusement deciding whether zero is positive or negative. Several, if not most of the ways to represent signe...
by rurwin
Wed Oct 26, 2016 5:27 pm
Forum: C/C++
Topic: How would you ...... in C ? (+ other C discussions)
Replies: 187
Views: 26959

Re: How would you ...... in C ?

Here's mine. #include <stdio.h> double DayNumber(int day, int month, int year) { long a,b,c; if (month > 2) { month -= 3; } else { month += 9; year -= 1; } a = ((year%100) * 1461) / 4; b = ((year/100) * 146097) / 4; c = (month * 153 + 2) / 5; return a + b + c + day + 1721118.5; } void Date (double d...
by rurwin
Tue Oct 25, 2016 11:41 am
Forum: Python
Topic: Strange input "" bugg?
Replies: 1
Views: 502

Re: Strange input "" bugg?

You are using Python 2 on the Pi and Python 3 in Visual Studio. In Python2 input() evaluates what you type in as Python code. That's handy if you type numbers but if you type words then it tries to find a Python object with that name. It's also a security hole, which is why Python 3 changed it to re...
by rurwin
Tue Oct 25, 2016 10:57 am
Forum: C/C++
Topic: How would you ...... in C ? (+ other C discussions)
Replies: 187
Views: 26959

Re: How would you ...... in C ?

Round 6: A pair of functions to convert betwween a Gregorian date and the Julian day number. You can assume all the standard C library except the date functions (maybe you're writing that library). A Gregorian date is a normal one represented by three integers: Day, Month, Year The Julian day number...
by rurwin
Tue Oct 18, 2016 5:22 pm
Forum: C/C++
Topic: How would you ...... in C ? (+ other C discussions)
Replies: 187
Views: 26959

Re: How would you ...... in C ?

A few minor fixes, plus learning again why nobody ever uses scanf. #include <stdio.h> struct fred { char* command; int deltaX, deltaY; } table[] = { {"forward", 1, 0}, {"left", 0,-1}, {"back", -1,0}, {"right", 0,1} }; int X = 0, Y = 0; int main() { char c[256]...
by rurwin
Tue Oct 18, 2016 3:22 pm
Forum: C/C++
Topic: How would you ...... in C ? (+ other C discussions)
Replies: 187
Views: 26959

Re: How would you ...... in C ?

I'll wait until I get home to debug and finish it, but something like: struct fred { char* command; int deltaX, deltaY; } table[] = { {"forward", 1, 0}, {"left", 0,1},...}'; int X = 0, Y = 0; int main() { char c[256]; int n; while (scanf("%s %d\n", c, n) == 2) { for (in...
by rurwin
Tue Oct 18, 2016 10:35 am
Forum: C/C++
Topic: How would you ...... in C ? (+ other C discussions)
Replies: 187
Views: 26959

Re: How would you ...... in C ?

I would suggest you at least make sure your answer compiles and does what the specification asked for ! :roll: And you indicate any required header files/libraries. PeterO Mine compiles in a console project in MSVC and outputs the required 12,1,2,3,4,5,6,7,8,9,10,11 AM, then PM. 12 prints as 12AM ;)
by rurwin
Tue Oct 18, 2016 10:12 am
Forum: C/C++
Topic: How would you ...... in C ? (+ other C discussions)
Replies: 187
Views: 26959

Re: How would you ...... in C ?

if (h == 12) printf("%d pm", h); else if (h >= 12 && h < 24) printf("%d pm", h-12); else if (h == 0) printf("%d am", h+12); else if (h >= 0 && h < 12) printf("%d am", h); else printf ("invalid time: %d", h); Because maintainability i...
by rurwin
Mon Oct 17, 2016 4:10 pm
Forum: Beginners
Topic: Maximum Voltage
Replies: 10
Views: 4158

Re: Maximum Voltage

following the rule of thumb of 1 Kilo-volt per millimeter a spark distance 0.25mm should be enough for 250 Volt before they would spark over. If I understand correctly, and I'm no expert, no voltage under 300V* can strike an arc. You can get sparks at lower voltages, but only by breaking an existin...
by rurwin
Thu Oct 13, 2016 9:42 am
Forum: General discussion
Topic: What I really want.
Replies: 41
Views: 6408

Re: What I really want.

If you need a static IP, then yeah a label would be nice. It would be another step in manufacturing though -- basically doing the sort of stuff we ae suggesting and printing the label on the production line. That's another wage to pay or at least a few seconds longer per Pi. Static IPs are not the m...
by rurwin
Wed Oct 12, 2016 2:46 pm
Forum: General discussion
Topic: What I really want.
Replies: 41
Views: 6408

Re: What I really want.

There are two other ways to go about it that cost nothing. 1. If you have a smart phone, the app Fing scans your network and displays the MAC and IP addresses of every device on it. A new Pi is obvious in the listing. Once you know the IP address you can SSH into it to extend the SD partition and se...
by rurwin
Fri Oct 07, 2016 12:45 pm
Forum: Staffroom, classroom and projects
Topic: Project for beginners - a simple MP3 player
Replies: 11
Views: 25893

Re: Project for beginners - a simple MP3 player

Instead of putting random files into the shuffled list, put them all in and then swap random pairs around sufficient times to ensure they are thoroughly mixed.
by rurwin
Sun Sep 25, 2016 9:02 am
Forum: General discussion
Topic: which PI do I have?
Replies: 15
Views: 3030

Re: saäfhisqwrf

Those pictures don't show all models. Maybe only the boards currently on sale. https://www.element14.com/community/docs/DOC-78141/l/identifying-your-model-of-raspberry-pi It's a model 1. If it has three components next to the USB instead of a hole, it's a very early model 1. https://www.element14.co...
by rurwin
Fri Sep 09, 2016 2:02 pm
Forum: General discussion
Topic: RASPBERRY PI AS CMRI
Replies: 6
Views: 1378

Re: RASPBERRY PI AS CMRI

I am confused. I know MS-DOS is unavailable. I had to migrate away from it myself some time around the turn of the century. And yet lots of such instruments are offered for sale. Maybe MS-DOS in ROM is still available. Maybe India can still license it. If your requirements are like these: http://www...
by rurwin
Fri Sep 09, 2016 7:18 am
Forum: General discussion
Topic: RASPBERRY PI AS CMRI
Replies: 6
Views: 1378

Re: RASPBERRY PI AS CMRI

The Raspberry Pi does not have a CPU that can run MS-DOS, but there are ways around that. More concerning is the fact that MS-DOS can not be licensed. For several years now it has been impossible to legally* create an MS-DOS PC. There are ways around that. There's FreeDOS created for the same sort o...
by rurwin
Thu Sep 08, 2016 9:27 am
Forum: Raspberry Pi OS
Topic: Unknown daily transfers
Replies: 12
Views: 2237

Re: Unknown daily transfers

pi-anazazi wrote:...have an old notebook with two bridged interfaces and wireshark as a tool for such questions...
It's easier to get a Netgear GS105E; it does port mirroring. But make sure it is exactly that model -- the spec sheets are not helpful and, for example, the GS105UK is much dumber.
by rurwin
Tue Sep 06, 2016 7:50 am
Forum: Beginners
Topic: When to use an external Power supply
Replies: 4
Views: 2084

Re: When to use an external Power supply

Another reason is that a motor is an inductive load and such things put spikes of voltage on the power supply. Always put a reverse-biased diode across the motor terminals and preferably use an entirely separate power-supply if they are at all high-power. The same goes for relays -- anything with co...

Go to advanced search