All posts by Kapanther

Setting Up Post-By-Email

If you really want to make the most out of your WordPress Blog an absolute–must-first-thing-to-do is setup “Post-By-Email”

“Post-By-Email” allows you to write a basic email, add pictures etc. and then post directly to your blog using a special email address. Then you can go online and tart-up your post and add tags etc. later. But at least most of the hardwork is done in a familiar environment.

Here is how to set it up.

Login to your blog on the backend. Then go to your profile

Find the “Post by Email” section and click “enable Post By Email”

After you click it will give you a unique email address you can add as a contact in email.

Simply add a contact in your address book

Write an email, address it to the contact and post away. Couldn’t be easier..

Loading

How to diagnose computer performance issues

I have been having some serious performance issues lately with my DELL precision M6600, which is almost 5-6 years old now!

I finally found a way to determine if it is my hardware or my workflows. Quite pleased to say it was my hardware and I am not crazy. But here is how I found out!

Download the Passmark Perfomance Test tool from link below (Free 30 day trial). These guys test over 600 000 rigs or something like that daily and after you complete your test you can compare your results to people with a similar or identical rig. Very useful!

http://www.passmark.com.au/download/pt_download.htm

I tested using 8.0 when writing this.

1. After you load into the performance tool, go the system tab and take note of the key specs of your computer. You will need these to find other rigs similar to yours to compare to.

  • CPU type/speed/L3 cache
  • Total Physical Memory
  • HDD Rpm/Size
  • Video Adapter Description

1

2. Go to “Baseline” Menu -> Manage baselines…

2

3. Now go the “My baselines” tab and delete all the existing baselines that get placed in by default

3

4. Then go to the “advanced search” tab and add in a few params. I added my cpu and clock speed and my model type

4

5. Tick on as many baselines as you can see match your specs. You may need to play around with the search params. You can add up to 16 baselines.

5

6. Now run the Benchmark! Make sure you close any working applications. If your on a laptop, make sure you plug your power supply in.

6

7. You will get a nice little bar and some popups while it runs.. Even a jet flying around..

7

8. When your done you will get a score like so.

8

9. After you finish uploading you will get a popup with a link .. RECORD THIS LINK, As I haven’t been able to find it later! And its useful to be able to send to others etc..

9

10. You can now see how your computer benchmarks against other rigs with similar hardware. I ran this test on an old desktop I found to replace my laptop. My laptops results are further below… Absolutely woeful!

10

11. Laptop results

11

Loading

DOTSOFT tools – Importing Linework from a PDF

Every now and then we find ourselves in a pinch for data. I don’t know how many times I have had nothing but a PDF to go on..

Well, it appears that a PDF is lot more useful than I first thought. Particular If it’s a vector PDF, you can usually tell if it is by zooming in and out on the PDF and you will see all the linework generate separately.

I won’t lie, I haven’t found a free tool to do this yet. But over at DOTSOFT Tools an application called PDF2DWG http://www.dotsoft.com/pdf2dwg.htm for 95 US sheets does get the job done very nicely.

I’ve actually bought the entire toolpac package that comes with PDF2DWG ($245), good value if you ask me. You can find the tool in the ribbon after installing, along with a host of other useful ones.

Select a PDF, even a multipage one

Lots of options here as well. Detect line weights, removing little raster images (particularly use for PDFS generated by GIS programs) and even the ability to convert image-based pdfs to linework (can’t verify how well this works though)

Hit process and voila! Massive time saver, that can pull you out of a “not enough data” situation very quickly.

Loading

Creating a Widget that shows Most Popular Posts

Once you have a relatively established blog. Hopefully you will start having some posts become more popular than others. I’m sure they are all great! To you anyway.. :p

I really like the idea of people been confronted with other potentially useful posts. So a content widget showing most popular posts works great. If you have a self hosted wordpress blog like mine. Then you should definitely check out the Jetpack Post Views widget. Although not very customizable. It does get the job done quick.

Jetpack Post Views Widget
Jetpack Post Views Widget
Live Jetpack Post Views Widget
Live Jetpack Post Views Widget

Alternatively, you can use the W4 Post List plugin that allows you to create a fully customizable look with some CSS. In my case I wanted to thumbnail to be larger!

One very important secret is in the using the

jetpack-post-views

meta key to sort your posts by view count! Wow, took me a while to find that one!

use the jetpack-post-views meta key to get them sorting nicely.
use the jetpack-post-views meta key to get them sorting nicely.

Then its just a matter of inserting the widget

W4 Post List - Widget
W4 Post List – Widget

And Voila! Looks a lot nicer and you can make it look like whatever you want.

Live Widget Using W4 Post List
Live Widget Using W4 Post List

Loading

How to unsecure a PDF the easy way

Ever had to deal with this crap….

Say no more.. follow instruction below

METHOD 1 – QPDF with Gui (PDF Freedom)

Download the QPDF gui version here. Thanks to “J.P. Kloosterman” for making it up

https://www.mget.nl/static/files/PDF%20Freedom%20setup.exe

Open select input/ select output done.

 

METHOD 2 – Batch processing (QPDF command line tool)

1. Download the zip file from the link : Browse Files at SourceForge.net or direct download frm http://sourceforge.net/projects/qpdf/files/latest/download?source=files

2. Extract the archive to some location e.g. Desktop

3. Add your pdf to the “bin” folder of the extracted archive/folder structure.

4. Open command prompt. Easiest way is to right click on the bin folder while holding shift. There will be an option in the context menu “Opencommand window here”.

5. Type the following in the command window (black screen): qpdf -decrypt “Secured.pdf” “Unsecured.pdf” where “Secured.pdf” is the name of your file that you want to unsecure. Note the quotes are required. “Unsecured.pdf” is the name of the output file. Call it what you want.

Write this as a bat file in notepad and you can do hundreds of PDFS

Note:  For both of these methods If the PDF requires a password to OPEN the file this will not work. All other typical security is removed e.g. making changes, copying content etc

Loading

Managing Surface Volumes in Civil 3D – Excel and the Volumes Dashboard

We are often exporting volumes from our models and for a lot of designers and drafters it is an adhoc affair. Engineer asks for volumes, so you make a few volume surfaces quickly, export volumes into excel, format a bit and then send. Some of the slightly more organized types might even save the excel spreadsheet into their modelling folder in case they need to use it again! But more often than not you will be asked to do this several times over the life of the project. So why not come up with a decent system for handling this process?

 

I would like to present a more efficient method, that not only is easy to update and manage but will improve the performance of your modelling files as well.

The workflow is quite simple, it may take slightly longer to setup. But I promise, you will thank yourself later. They key element been the use of the volumes dashboard.

A few simple rules to follow to ensure you maintain a nice link.

1. Never create all your volumes in the modelling DWG. Create them all in a separate DWG using data shortcuted surfaces (The odd one is fine).

2. Don’t manipulate the raw data you copy from the volumes dashboard (other than a sort). Link to it from another table in excel.

3. Don’t “Cut data over”/ Copy Data over the top in excel. Otherwise your links break!

Volume surfaces quickly increase the size of modelling dwg’s and will decrease overall performance when working in them. Unless you don’t work in your modelling DWG’s very often, which I highly doubt, keep your volumes surface in a separate dwg and data shortcut all the surfaces you need in. This also makes it easier to extract all the volumes you need in one hit rather then prowling around your dwg’s looking for quantities.

Once you have created your volumes DWG and you have data shortcutted the surfaces you need in. Start creating Volumes Surface Pairs. I strongly suggest maintaining a simple but consistent naming system. My system is as follows

<identifiers>-<object>_<material_name>

So for example:

OP2-NTH-ROAD_gravel

OP2-NTH-ROAD_base

OP2-NTH-ROAD_ subbase etc..

This makes your life a lot easier when creating links in excel. It also helps prevent the desire to shoot yourself due to confusion later on :p.

Now you have pairs, it’s time to setup an excel file. My pairs looks like so:

Right Click on any surface in the dashboard to “Copy to Clipboard”

Open Excel, an begin by creating two tabs “Volumes”,”Data”. Data is where we will copy the raw data from your volumes dashboard (copy your raw output now). Volumes is where we will create the links to the volumes dashboard data so it is easier to update later.

image002

Your data is now on the data tab. Do a sort on it (Volumes Dashboard doesn’t have a sort function!)

Your data should sort by surface name! This will save headaches later when you want to update the table or add new surfaces.

Now switch over to the Volumes tab and start creating a table like the one below. With various identifiers you need for each material volume you want to calculate. In the last column (2nd last in my case) you want to link the QTY back to the “data” tab that contains your raw pasted volumes dashboard data.

Now this table you create will eventually contain all the volumes you want, but not exactly in the best format for visualizing. This last step can be quite confusing for a lot of people. So hopefully the video link at the top helps.

Because the table is arranged in a “basic record format” like Microsoft Access or any SQL etc. we can use this table to create “Pivot Tables” and “Pivot Charts”.

Firstly covert your table into a “Named Range” by using the format as table function

Now select anywhere in your nicely formatted table and go to Insert -> Pivottable.

You will be confronted with a blank screen and most likely see all your column headers on the right.

By drag-droping your tables headers into the fields as required you can make your table display exactly as you need it. (I highly suggest watching the video to see this in action)

But for example say I wanted a table to display the materials as the column headers, the time as rows and calculate the quantities with respect to these columns. I could do the following

Then you will get this

But you can adjust these to suit your needs. Better, you can adjust to suit other people’s needs. You can create as many pivot tables as you want to display different views of your data and they are all stay linked back to the original source..

Now when it comes time to update your volumes from Civil 3D all you have to do is copy your volumes dashboard output… sort and paste over the top in your data tab!

The end result wonderfully formatted, dynamic tables. That can update almost at the click of a button…

Component Time-Height Embankment Storage Decant Rock Floor Cut Floor Fill Wall Excavate Windrows Minewaste Dry Tailings
3 – NORTH Month 00 – 487.82 m – DOWN 16,600 500 5,900 5,200 6,100 500
Month 06 – 487.82 m – DOWN 39,900 500
Month 06 – 489.92 m – DOWN 27,700 500
Month 12 – 493.02 m – DOWN 116,500 60,800 1,000 600
Month 21 – 493.02 m – DOWN 101,500
3 – NORTH Total 160,800 102,200 2,000 5,900 5,200 6,100 1,600
4 – SOUTHEAST Month 06 – 489 m – DOWN 125,100 600
Month 18 – 489 m – DOWN 325,100
4 – SOUTHEAST Total 125,100 325,100 600
5 – MINEWASTE Month 18 – 497.7 m – DOWN 545,600
Month 24 – 497.7 m – STACK 405,900
Month 30 – 497.7 m – STACK 600,800
Month 36 – 497.7 m – STACK 390,700
5 – MINEWASTE Total 1,943,000
6 – DRY STACK Month 12 – 485.2 m – STACK 190,600
Month 18 – 485.2 m – STACK 45,100
Month 24 – 487 m – STACK 47,200
Month 30 – 489 m – STACK 46,000
Month 36 – 491.8 m – STACK 52,300
6 – DRY STACK Total 190,600 190,600
Grand Total 285,900 527,300 2,000 196,500 5,200 6,100 2,200 1,943,000 190,600

Loading

Preparing A Section for Slope W/Seep W analysis

UPDATE: Before following this outrageously long, but complete guide to exporting for slope W. Consider buying the Exchange App here for $25

http://www.redtransitconsultants.com/app/export-profiles-dxf-use-slide

Otherwise…. read on.

We are often required to take the analysis of stability/seepage outside the Autocad environment to horrible 3rd party applications like SlopeW. To do so can be rather cumbersome, as these products usually require intensely simplified DXF sections for import.

So here is my method for bringing in section data for analysis in Slope W/Seep W.

1. I am going to assume you know how to create section views/profile views!

2. I recommend keeping all your analysis sections in a separate DWG to your model. Link it all back with data shortcuts. Then when your design updates and you have to redo your stability analysis you can create the sections easily again.

3. Its important that all your sections get created at coordinates close to 0,0. This makes it easier to import into Slope/Seep.

4. Once you have all the sections you need, make sure you have them displayed with a section/profile view style that only displays the datum, border and the profiles themselves like so:

5. Explode them twice

6. Then rejoin any lines you need together and trim if necessary. (Most of the time you don’t need to do anything)

7. Wblock these exploded lines out to a separate dwg, close your current dwg and open the exploded output. (this removes all the civil 3d layers)

8. Slope W doesn’t like lots of points. So we need to filter these out using WEEDFEATURES.

9. Start by weeding vertices close by to each other, then finish by using Angle. You want to get your vertices below 200 if possible.

10. Slope/Seep prefers closed polygons as these can be converted to regions to assign materials quickly. To do this, my trick is to convert all your polylines into parcels. You can tell if any of your regions aren’t not working. Because there will be no label in the centroid of your boundary.


11. Let’s say you have a few problems! If you select parcel labels in the area, you can see where the problem areas are. This region selected here has multiple boundaries.

12. Some areas might not be joined anymore, particularly if you used ANGLE or LENGTH to WEEDFEATURES. These gaps will need to be fixed manually. (If you have a lot of sections, consider exploding everything and doing a PEDIT, JOIN, fuzz distance of 0.5/1, then reconvert to parcels and check again)

13. Now you can create the regions that will be used to import into Slope/Seep. Just SELECTSIMILAR on all the parcel labels and EXPLODE. You will now have all the regions you need to wblock out to SlopeW.

14. Check their properties to make sure they are all closed before using! UNDO and move parcel vertices until you have it fixed!

15. Once you have all the regions, move them so that the very left most part of the section’s X value is distance starting from 0 and the Y value matches the elevation of the datum like so. Mine is EL 1145

16. Wblock to 2007 DXF format with the name of your section and import into Slope/Seep

17. You should now be able to import into Slope/Seep for analysis

18. Don’t forget to change your Y scale to suit your elevation

19. Let the analysis begin!

Loading