• Hackerrank – Weather Observation Station 4 – MsSql

    By on Thursday, August 04, 2016 | Filed Under Modelling Glossary

    Hackerrank - Weather Observation Station 4 I have always loved just killing some time on Hackerrank, doing some challenges. And today was no different, but what was funny about it was I got stumped by one of the stupidest and simplest things under the sun. I really believe in software we should always look for the simplest answer, but in my case I couldn't for the love of me come up with the simplest answer which is: SELECT COUNT(CITY) - COUNT (DISTINCT City) FROM STATI...

  • Android: Decompile, Alter & Compile an apk using the apktool

    By on Friday, April 29, 2016 | Filed Under Software

    ApkTool Yesterday, we had a little issue whereby we needed to modify a production APK to work with Integration. So I want describe how to Decompile, Alter and Compile an apk using the Apktool. I have done some decompiling of Android APK's in the past to learn how people and companies have achieved something. Never did I have to decompile, alter and re-compile an app using the Apktool. I volunteered naturally as this option seemed loads simpler than looking for the origin...

  • Jquery-UI dialog prevent / cancel form submission

    By on Thursday, January 07, 2016 | Filed Under Software

    In this article I hope to show how to use a Jquery UI dialog prevent / cancel form submission. Based on a work requirement I wanted to stop the submission of a form, so I could validate the some checkboxes using JQuery, if they were all checked the okay button would be enabled and the form would be submitted. This Solution, always for an infinite amount of check boxes to be iterated through and only if all of them are checked will you be allowed to proceed, then it will su...

  • Restored De Walt Radial Arm Saw

    By on Thursday, May 29, 2014 | Filed Under Tutorials & Technique

    So while it's not 100% completes as there is still a lot of Rust on the base of the De Walt radial arm Saw. There is still loads of fasteners that need to be re-blued due to Surface rust which I will fix with my Electrolytic rust Remover, I think it looks loads better then it did when it was purchased. I need to use the machine so it will need wait while I complete the houses pictures rails and Skirting boards. i have a long standing love for a De Walt radial arm Saw, and ...

Hackerrank – Weather Observation Station 4 – MsSql »

By on Thursday, August 04, 2016

Hackerrank - Weather Observation Station 4 I have always loved just killing some time on Hackerrank, doing some challenges. And today was no different, but what was funny about...

Android: Decompile, Alter & Compile an apk using the apktool »

By on Friday, April 29, 2016

ApkTool Yesterday, we had a little issue whereby we needed to modify a production APK to work with Integration. So I want describe how to Decompile, Alter and Compile an apk us...

Jquery-UI dialog prevent / cancel form submission »

By on Thursday, January 07, 2016

In this article I hope to show how to use a Jquery UI dialog prevent / cancel form submission. Based on a work requirement I wanted to stop the submission of a form, so I could ...

Hackerrank – Weather Observation Station 4
I have always loved just killing some time on Hackerrank, doing some challenges. And today was no different, but what was funny about it was I got stumped by one of the stupidest and simplest things under the sun. I really believe in software we should always look for the simplest answer, but in my case I couldn’t for the love of me come up with the simplest answer which is:

1
2
SELECT COUNT(CITY) - COUNT (DISTINCT City)
FROM STATION ;

However what came out was a rather convoluted attempt: why do we try do something complex when the answer is actually so simple at the end of the day:

1
2
3
4
5
6
7
8
9
SELECT	
	a.cities - a.uniqueCities
FROM (
    SELECT
	COUNT(city) AS cities, 
	COUNT(DISTINCT city) AS uniqueCities 
    FROM
	station
) a;

looking at some of the answers the where submitted afterwards there where a few interesting ones:

SELECT abs(COUNT(CITY)-COUNT(DISTINCT CITY)) FROM STATION;
 
SELECT ((SELECT COUNT(CITY) FROM STATION) - (SELECT COUNT(DISTINCT CITY) FROM STATION)) FROM STATION WHERE ROWNUM=1;

At the end of the Day I suppose we all have days where we take something so simple, but then over complicate it.

I guess we have learnt something just by trying

ApkTool

Yesterday, we had a little issue whereby we needed to modify a production APK to work with Integration. So I want describe how to Decompile, Alter and Compile an apk using the Apktool. I have done some decompiling of Android APK’s in the past to learn how people and companies have achieved something. Never did I have to decompile, alter and re-compile an app using the Apktool. I volunteered naturally as this option seemed loads simpler than looking for the original branch source code at that point.

You should have a good compression tool on you machine I prefer Winrar, but you can use anything you wish.

A text Editor, I use Notepad++

At this point I will assume you already have the current JAVA JRE and SDK installed. You will need this for signing the APK. You should also have the Android SDK, for editing & Compiling etc… You will more then likely already have these if you are at this point.

You will need the ApkTool,the latest version can be downloaded here. The tool allows you to reverse engineer 3rd party, closed and binary Android applications. The tool does this by decompiling / compiling the code using Smali / baksmali. This tool required three files:

  1. apktool.bat
  2. apktool.jar
  3. aapt.exe

Once you have all these tools (not many I know this isn’t that difficult at all), the you are ready to get cracking… I mean reverse engineering.

Read Full Article

In this article I hope to show how to use a Jquery UI dialog prevent / cancel form submission. Based on a work requirement I wanted to stop the submission of a form, so I could validate the some checkboxes using JQuery, if they were all checked the okay button would be enabled and the form would be submitted. This Solution, always for an infinite amount of check boxes to be iterated through and only if all of them are checked will you be allowed to proceed, then it will submit the form as per original. You can check the entire Fiddle here

jquery ui dialog

<form id="objectdata" name="objectdata" action="newOrder.jsp" method="post">
    <div id="validateServicesContainer" title="Service Cancellation"  style="display: none">
        <tr>
            <td>
                The following Services will be suspended during upgrade.<br /> 
                Check service to confirm?
            </td>
        </tr><br /><br />
    <input class="sServices" id="chkBox1" type="checkbox"/>Service 1<br /> 
    <input class="sServices" id="chkBox2" type="checkbox"/>Service 2<br /> 
    <input class="sServices" id="chkBox3" type="checkbox"/>Service 3<br /> 
    <input class="sServices" id="chkBox4" type="checkbox"/>Service 4<br /> 
    <input class="sServices" id="chkBox5" type="checkbox"/>Service 5       
     </div>
     <input id="chkBox6" type="checkbox"/>Service 6<br /><br />
     <input type="submit" id="btnOpenDialog" value="Validate then submit" onclick="checkUpgradeSuspensions.call(this,event)"/>
</form>

Read Full Article

This last year has been an interesting year, Let’s hope the new year is a better year. There has been a huge amount of hack attempts against this site, it really makes you wonder what the intentions are.

I lost almost an Entire year’s worth of articles, partially due to me not making making my own back-up’s but al on over reliance on the host. They migrated servers and my sites bar this one came up. I should have disabled my plugins first but I didn’t, they back-up’s with host wasn’t complete, and they overwrote all my changes, and tha lost all the new articles I had made very sad.

Oh well, all this stuff happens we learn from it and we build more knowledge. So Happy New Year welcome 2016

HAPPY NEW YEAR

Happy new year

We were now ready to schedule time to do the layup preparation, we decided to do this on a full day, I said it would take 3-4 hours.

We used:
– Ram Wax
– PVA release
– GC1/080 Gel Coat
– 1 layer 163g Twill Glass
– 1 layer 210g unidirectional cloth
– 3 Layers of 410 Biax Glass
– Ampreg 21 epoxy.
– Cotton Flock
– modelling Clay

We first Filled the Gap, using modelling Clay, these corners where all squared and cleared with a squared off credit card. Once done we polished the Plug, with some G18 and then 5 layers of Ram wax. After doing the Gel coat, we precut all the cloth and filled all the “Corners” with cotton flock. Then the cloth went on in the following order, 1 layer 163g Twill Glass, 1 layer 210g unidirectional cloth and then 3 Layers of 410 Biax Glass. I was worried the about all the bubble and I would like to put a Bladder in the mold. So I decided, I need to vacuum all the air out, I went home for dinner and came back and the mold was hard. After, 3 hours of staring at the mold cleaning it up, I decided the mold was hard, and MAD kept saying he was worried it was not coming out to easy.

So I started unscrewing it, Usually in the past, I would worry but I was certain it would be perfect this time. I took off one side, it was flawless, then the other and the two sides. I wasn’t going to split it, but Sydney was saying am I thinking what he is thinking. So I split the mold, no resistance, nothing. The mold came out, but there was gel coat on my hand… DAMN. It turned out the second batch of gelcoat was not perfectly mixed. Not serious. I will correct this afterwards as it’s only on the flange. What was a total disaster and is also fixable is we used Nuts to mate up the halves. This chipped off some Gelcoat. I will fix it but note to Self, next time use something flat in index it. I though the result proved the the time spent on the layout preparation was well spent.

Here is the result, I will let the final un-cleaned product speak for itself.

Okay, after choosing what plane you are molding, in this case the fuz came from a crashed Opus, donated to me by a friend. I Repaired best I could, sanded and resprayed the Fuselage with a 2K (2 part) primer and 2K paint, each time wetting it flat down to 1000 grain paper. The last layer of Purple was sanded down to 1500 grain. Each successive layer is wet sanded to provide a smooth and error free surface, eventually you will find a surface that is free from errors, cracks and dust. This is time consuming but well worth it in the end as 2k paints provide the perfect surface to polish to a mirror finish.

So while it’s not 100% completes as there is still a lot of Rust on the base of the De Walt radial arm Saw. There is still loads of fasteners that need to be re-blued due to Surface rust which I will fix with my Electrolytic rust Remover, I think it looks loads better then it did when it was purchased. I need to use the machine so it will need wait while I complete the houses pictures rails and Skirting boards. i have a long standing love for a De Walt radial arm Saw, and there are many article on this machine that say it dangerous and outdated etc… What they don’t tell you is 95% of the time it’s not set up correctly and that this machine is really a workshop powerhouse. I suppose that’s why De Walt called this radial arm Saw DW-1251 “Powershop”. Anyways, enough on that here is the before pictures and then an after picture.
 De Walt radial arm Saw DW-1251 Powershop before restoration

De Walt radial arm Saw DW-1251 Powershop before restoration

De Walt radial arm Saw DW-1251 Powershop before restoration

De Walt radial arm Saw DW-1251 Powershop before restoration

The Machine before restoration

the Saw before restoration

The De Walt radial arm Saw DW-1251 Powershop After some restoration

We all face the problem of rust somewhere along the line and the question is how to remove it or even recover some of the metal without doing any damage to the actual part itself

Electrolytic rust removal or Electrolysis

DO NOT USE STAINLESS STEEL or CHROME, The process breaks down the sacrificial anode and deposits Chromium in the water and the will end up in the local water so don’t do it, and it consider Hazardous Material. Also Hexavalent Chromium cause birth deformities etc so it’s nasty. The process also lets off Poisonous gases so JUST DON’T do it. Also putting some other Chemicals in the process will also perform electro plating for you but more about that in another build maybe. The process can also perform Electropolishing using Salt and propylene glycol (aka Anti-freeze), once again more about this LATER, and they are both more complicated.

Read Full Article
Page 1 of 3123