- HyperMesh overview:
[file:///C:/Program%20Files/Altair/12.0/help/hm/hmbat.htm?hypermesh.htm][1]
-
HyperMesh Tutorials
[file:///C:/Program%20Files/Altair/12.0/help/hm/hmbat.htm?hypermesh_tutorials.htm][2]
-
HyperWorks Desktop Overview:
#! /usr/bin/ruby | |
# coding: utf-8 | |
# | |
# Split a CSV into vcard files | |
infile = File.new(File.join(File.expand_path(File.dirname(__FILE__)), ARGV), "r") | |
while (line = infile.gets) | |
vals = line.split( ",") | |
continue if vals.empty? | |
fname = File.join(File.expand_path(File.dirname(__FILE__)), "vcard","#{vals[0]}.vcf".gsub( " ", "").strip) | |
File.open(fname, "w:UTF-8") do |f| |
#! /usr/bin/ruby | |
require 'socket' | |
# use printer IP address here | |
sock = TCPSocket.new('000.000.000.000', '9100') | |
# Start | |
sock.write "\u{001B}%-12345X@PJL\n" | |
# commands |
# Count the number of rows in csv files not counting the header row | |
# (assuming the header has a column named "header_col") | |
cat *.csv | grep -w "header_col" -c -v | |
# recursive | |
find `pwd` | xargs cat | grep -w "user_id" -c -v | |
# also listing files in order | |
ls -lR --group-directories-first |
git stash list | awk '{b= gensub(" ", "_", "g", $0); system("git stash show -p " substr($1, 0, length($1)-1) " > ~/Desktop/" b ".diff")}' |
[file:///C:/Program%20Files/Altair/12.0/help/hm/hmbat.htm?hypermesh.htm][1]
HyperMesh Tutorials
[file:///C:/Program%20Files/Altair/12.0/help/hm/hmbat.htm?hypermesh_tutorials.htm][2]
HyperWorks Desktop Overview:
Useful when inserting rows into postres (like when seeding data from a .sql dump) messes up the database. | |
http://stackoverflow.com/questions/244243/how-to-reset-postgres-primary-key-sequence-when-it-falls-out-of-sync | |
// Login to psql and run the following | |
// What is the result? | |
SELECT MAX(id) FROM your_table; | |
// Then run... |
git clone ssh://user@domain.com/~/path_to.git | |
Article at: http://toroid.org/ams/git-central-repo-howto |
Batch mode solidworks: http://ossandcad.blogspot.com/2008/04/batch-mode-solidworks.html
Example use case:
MaterialPropertyValues Property (IModelDoc2)