Re: [Emc-users] g-code database

2016-12-26 Thread Nicklas Karlsson
Yes the menu item Tools/SQL and executed "SCRIPT '/tmp/dbscript.sql'" did this, 
now I have an *.sql file.

Tommorow is and ordinary working day so it might be a week or two before I have 
time to continue with more g-codes or *-codes. It is simple work and ought to 
be useful then done so I will try to do it eventually.


On Sun, 25 Dec 2016 16:42:58 +
Dave Caroline  wrote:

> It perhaps would be useful as a .sql file so it can be placed in a
> mysql/web database
> 
> Dave Caroline
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


-- 
Nicklas Karlsson 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] g-code database

2016-12-26 Thread Gene Heskett
On Monday 26 December 2016 08:26:54 Mark wrote:

> On 12/25/2016 03:31 PM, Gene Heskett wrote:
> > Then still as root, nano /etc/resolv.conf and make it read:
> >
> > nameserver 192.168.xx.1 (where xx is your local networks 3rd set of
> > numbers)
> > order hosts,dns (or order hosts,nameserver either seems to work
> > fine)
> >
> > Write it, close nano, and chattr +i /etc/resolv.conf. cat it to be
> > sure its correct.
> >
> > Cheers, Gene Heskett
>
> /etc/resolv.conf is a soft link to /run/resolvconf/resolv.conf.  If
> you delete the soft link and create a real resolv.conf in /etc there's
> no need to go through the chattr nonsense since it won't be the file
> resolvconf tries to write to.
>
> Mark

I tried that, Mark.  And it was wiped before I could apply the chattr +i.  
Perhaps 10 seconds elapsed time.


It is/was a softlink on wheezy, but on raspi-jessie its a real file that 
is generated by resolveconfig.

root@raspberrypi:/home/pi/linuxcnc/configs/sheldon-lathe# 
ls -la /etc/resolv.conf
-rw-r--r-- 1 root root 86 Sep 23 00:08 /etc/resolv.conf

That isn't a link.  And I didn't remove the link, I edited the real file. 
Then, not knowing what the armhf debian-jessie uses for a 
network-manager clone, I just brute forced the retention of the settings 
with a chattr +i on both that, and /etc/network/interfaces.  I like 
stuff that Just Works(TM) and it works without generation of any 
muttering in the logs.  Its something I have been doing since 
network-destroyer arrived on the scene around a decade ago. Back then it 
had so many dependencies you couldn't remove it, but a/o wheezy you can 
remove it without eviscerating the system, so most of my wheezy machines 
have had it removed.

Thanks Mark.  I hope you had a nice Christmas.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] g-code database

2016-12-26 Thread Mark
On 12/25/2016 03:31 PM, Gene Heskett wrote:
> Then still as root, nano /etc/resolv.conf and make it read:
>
> nameserver 192.168.xx.1 (where xx is your local networks 3rd set of
> numbers)
> order hosts,dns (or order hosts,nameserver either seems to work fine)
>
> Write it, close nano, and chattr +i /etc/resolv.conf. cat it to be sure
> its correct.
>
> Cheers, Gene Heskett

/etc/resolv.conf is a soft link to /run/resolvconf/resolv.conf.  If you 
delete the soft link and create a real resolv.conf in /etc there's no 
need to go through the chattr nonsense since it won't be the file 
resolvconf tries to write to.

Mark

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] g-code database

2016-12-26 Thread Nicklas Karlsson
I already filled in two machines but no parameters. I used code and number as a 
unique key but hit problem because there are codes without a number.  It make 
sense the commands are unique and I will think about this a little bit further.

I also put in reference for available codes and machine dialect. It make sense 
because then it is possible to add a description for each one of them.

Maybe I continue on database today or postpone it for a while once database i 
figured out it is just an hour or so on each machine.


On Mon, 26 Dec 2016 11:20:19 +
Dave Caroline  wrote:

> I have started to do a mysql version
> output at
> http://www.archivist.info/cnc/gcode/
> 
> changes, added parameters, added an ID, fixed a few things, added some
> missing codes
> 
> and not finished...
> there is a link to the .sql at the bottom of the page
> 
> Dave Caroline
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] g-code database

2016-12-26 Thread Dave Caroline
I have started to do a mysql version
output at
http://www.archivist.info/cnc/gcode/

changes, added parameters, added an ID, fixed a few things, added some
missing codes

and not finished...
there is a link to the .sql at the bottom of the page

Dave Caroline

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] g-code database

2016-12-26 Thread Andreas Pettersson
http://gcodes.net

checked here?

On Dec 26, 2016 3:33 AM, "TJoseph Powderly"  wrote:

> Nicklas
>
> On 12/25/16 23:30, Nicklas Karlsson wrote:
> > Then trying to figure which g-codes or more precise *-codes in general
> could be useful for EDM I started to write a database of codes for
> different machines. I currently covered Linuxcnc and Sodick wire EDM.
> PDF-file is attached and I may send openoffice database file if anobody
> want.
> >
> > A database is useful because it could be viewed in several "directions"
> and searched. Storage is not yet perfect but then it is I guess it would be
> good to have among the documentation.
> >
> >
> > I have a few m-codes suitable for EDM machining but they are all in the
> user defined area M100-M199. It would be good to use more or less standard
> codes. I also have N-codes for old Agiecut.
> >
> > Could anyone point towards *.codes for other machines?
> ask at cnc-zone
> http://www.cnczone.com/forums/archive/index.php/f-644.html
> >
> > Nicklas Karlsson
> >
> >
> > 
> --
> > Developer Access Program for Intel Xeon Phi Processors
> > Access to Intel Xeon Phi processor-based developer platforms.
> > With one year of Intel Parallel Studio XE.
> > Training and support from Colfax.
> > Order your platform today.http://sdm.link/intel
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] g-code database

2016-12-25 Thread TJoseph Powderly
Nicklas

On 12/25/16 23:30, Nicklas Karlsson wrote:
> Then trying to figure which g-codes or more precise *-codes in general could 
> be useful for EDM I started to write a database of codes for different 
> machines. I currently covered Linuxcnc and Sodick wire EDM. PDF-file is 
> attached and I may send openoffice database file if anobody want.
>
> A database is useful because it could be viewed in several "directions" and 
> searched. Storage is not yet perfect but then it is I guess it would be good 
> to have among the documentation.
>
>
> I have a few m-codes suitable for EDM machining but they are all in the user 
> defined area M100-M199. It would be good to use more or less standard codes. 
> I also have N-codes for old Agiecut.
>
> Could anyone point towards *.codes for other machines?
ask at cnc-zone
http://www.cnczone.com/forums/archive/index.php/f-644.html
>
> Nicklas Karlsson
>
>
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] g-code database

2016-12-25 Thread Gene Heskett
On Sunday 25 December 2016 12:42:51 Nicklas Karlsson wrote:

> Yes indeed it would and I could or really should change this.
>
> I however do not have anywhere to store so that it could be accessed
> via pulic access to internet.

That is not so hard to do. Two things need to work, actually 3.

1. Your local network should be protected from the drive by kids, and the 
best way to do that is with a router, cabled between your modem, and an 
8 port switch. The switch needn't be a special, but the router will need 
the flash memory resources to allow you to reflash its firmware with 
something like dd-wrt, whose source is German and has NO "back doors" 
for any spook agency.  Its firewall is penetrable only by its own NAT 
rules. Look at my sig. That Port Forward is to this machine, and apache2 
listens to that port. Nothing else I didn't ask for gets thru that 
routers firewall. Nda, zero Zip. And in the time I have been running 
dd-wrt, only  one person has gotten thru it, a friend of mine whose a 
better network guru than I am.  And I had to give him the passwords.
So my whole home network, is running in a class d block in the reserved 
range of 192.168.xx.yy, which routers do NOT forward unless configured 
to do so, even then they cannot forward to another 192.168.xx.yy 
address.

2. Your local network, to simplify things, should be /etc/hosts file 
based, and this /etc/hosts file should contain a list of addresses, one 
per line, in the format of address(tab)FQDN(tab)alias alias alias. Mine 
is around 18 lines now because of all the localhost stuff there by 
default.

3. I like static addresses so I can remember each machines address if the 
lookup fails.

Since network-destroyer will tear down if it can, no later than the next 
reboot, by overwriting the next two files if it can, its important to do 
as root, a chattr +i path/to/file as soon as you are finished with the 
write and close of the next 2 files.
First, as root nano /etc/network/interfaces
=this is mine adjust yours using this format===
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

auto lo

# The loopback network interface
iface lo inet loopback
address 127.0.0.1
netmask 255.255.255.0

auto eth0

# regular network for coyote.den
iface eth0 inet static
address 192.168.71.3
netmask 255.255.255.0
gateway 192.168.71.1

auto eth0:1

# to access reset to 192.168.0.1 routers/switches on the 2nd cat5 port
iface eth0:1 inet static
address 192.168.0.3
netmask 255.255.255.0
==
the last, eth0:1 is so I can access a router that has been reset to 
defaults.

Don't forget to chattr +i as soon as its written
Then cat it to check for typo's, or network-mangler damages,
If its screwed chattr -i and re-edit it.

Then still as root, nano /etc/resolv.conf and make it read:

nameserver 192.168.xx.1 (where xx is your local networks 3rd set of 
numbers)
order hosts,dns (or order hosts,nameserver either seems to work fine)

Write it, close nano, and chattr +i /etc/resolv.conf. cat it to be sure 
its correct.

if on jessie, do 'systemctl daemon-reload', endif 
then /etc/init.d/networking restart
ifconfig eth0
check to see if the local addess is correct, if not, do another 
networking restart, I've had to do it twice a couple times.  

get out of root with a ctl+d, then ping -c3 one of your other local 
machines.

If one doesn't work, make sure its on, the net cable is plugged in and 
you don't have any typu's in your editing. If that works, try all the 
other machines on your local net.

Then to test the router, ping -c3 yahoo.com.

You should now have full access to the world net, and if you turned the 
routers ping response from an outside address off, you are as close to 
invisible to the rest of the worlds script kiddies as you can be.  Sleep 
well.
 
It is not that hard to do and I am 82.

Oh, if the link in my sig doesn't work, pm me. I can't test it from 
inside my local network without using my local address. I have to access 
that from my local address at that port number.

> Obviously there need to be more dialects 
> added.
>
> Some *-codes only make sense for certain machines, cuttning tool
> parameters and others. I could try to figure some extra fields for
> this.
>
>
>
>
> On Sun, 25 Dec 2016 16:42:58 +
>
> Dave Caroline  wrote:
> > It perhaps would be useful as a .sql file so it can be placed in a
> > mysql/web database
> >
> > Dave Caroline
> >
> > 
> >-- Developer Access Program for Intel Xeon Phi Processors
> > Access to Intel Xeon Phi processor-based developer platforms.
> > With one year of Intel Parallel Studio XE.
> > Training and support from Colfax.
> > Order your platform today.http://sdm.link/intel
> > ___
> > Emc-users mailing list
> > 

Re: [Emc-users] g-code database

2016-12-25 Thread Nicklas Karlsson
Yes indeed it would and I could or really should change this.

I however do not have anywhere to store so that it could be accessed via pulic 
access to internet. Obviously there need to be more dialects added.

Some *-codes only make sense for certain machines, cuttning tool parameters and 
others. I could try to figure some extra fields for this.




On Sun, 25 Dec 2016 16:42:58 +
Dave Caroline  wrote:

> It perhaps would be useful as a .sql file so it can be placed in a
> mysql/web database
> 
> Dave Caroline
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] g-code database

2016-12-25 Thread Dave Caroline
It perhaps would be useful as a .sql file so it can be placed in a
mysql/web database

Dave Caroline

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] g-code database

2016-12-25 Thread Nicklas Karlsson
Then trying to figure which g-codes or more precise *-codes in general could be 
useful for EDM I started to write a database of codes for different machines. I 
currently covered Linuxcnc and Sodick wire EDM. PDF-file is attached and I may 
send openoffice database file if anobody want.

A database is useful because it could be viewed in several "directions" and 
searched. Storage is not yet perfect but then it is I guess it would be good to 
have among the documentation.


I have a few m-codes suitable for EDM machining but they are all in the user 
defined area M100-M199. It would be good to use more or less standard codes. I 
also have N-codes for old Agiecut.

Could anyone point towards *.codes for other machines?


Nicklas Karlsson


g-codes.pdf
Description: Adobe PDF document
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users