I spent long time to test my unit-test codes in VSCode. Here is the represantation steps to work the debug functionality.
create the empty folder and open it from VSCode, then move to terminal view.
enter these commands to create the projects.
/** compile command | |
* | |
* ```bash | |
* valac --pkg gtk+-3.0 genie-gtk-drawing-area.gs | |
* ./genie-gtk-drawing-area | |
* ``` | |
* | |
* this is equivalent to https://valadoc.org/gtk+-3.0/Gtk.DrawingArea.html | |
* but these sample coludn't be got with genie | |
* |
/** compile command | |
* | |
* ```bash | |
* valac --pkg gio-2.0 genie-https-get.gs | |
* ./gui-test | |
* ``` | |
* | |
* this is equivalent to https://wiki.gnome.org/Projects/Vala/GIONetworkingSample | |
* but these sample can't compile with my ubuntu 18.04 valac. | |
*/ |
/** compile command | |
* | |
* ```bash | |
* valac --pkg gtk+-3.0 gui-test.gs | |
* ./gui-test | |
* ``` | |
* | |
* this is equivalent to https://wiki.gnome.org/Projects/Genie/GtkGuiTutorial, | |
* but these sample can't compile with my ubuntu 18.04 valac. | |
* I just fix some symbols by add `Gtk.` namespace. |
The box is Z69 Max
vendor: KimTin? LZHOKK?
RAM 3G, Ether 1000M
if1=br0 | |
if2=wlan1 | |
net=192.168.2.0/24 | |
ip=192.168.2.2 | |
iptables -I FORWARD -i $if1 -o $if2 -s $net -d $ip -p udp -m multiport \ | |
--dports 80,137,138,161,427,443,5222,5223,5297,5298,5353 \ | |
-m state --state NEW -j ACCEPT | |
iptables -I FORWARD -i $if1 -o $if2 -s $net -d $ip -p tcp -m multiport \ | |
--dports 80,137,139,427,443,5222,5223,5297,5298,5353,9100,9220,9500 \ | |
-m state --state NEW -j ACCEPT |
# -*- coding: utf-8 -*- | |
import os | |
import FreeCAD | |
import Mesh | |
__objs__ = Gui.Selection.getSelection() | |
if len(__objs__) > 0: | |
fname = FreeCAD.ActiveDocument.FileName | |
dname = os.path.dirname(fname) | |
fname, fext = os.path.splitext(os.path.basename(fname)) |