Can’t login using PowerShell to Raspberry Pi running Windows IoT [SOLVED]

0

Posted by Cynic | Posted in .NET, C#, Software, Solutions to Problems, Windows | Posted on 03-10-2015

Tags: , , ,

I’ve seen a few people having problems using PowerShell to log into their Raspberry Pi 2 that’s running Windows IoT. If you’re here, you’re already frustrated, so here’s what worked for me…

Restart WinRM using these 2 commands:

net stop winrm

net start winrm

Next, instead of using the device name for your Raspberry Pi 2, use the IP address like this in PowerShell:

Enter-PsSession -ComputerName 192.168.10.111 -Credential 192.168.10.111\Administrator

And yes… I understand that it sounds stupid, but I tried everything else and nothing worked. The above worked for me. YMMV. Good luck!

Oh, also, it took a minute or two to complete, so just be patient. If it fails, my only other advice is to find a baseball bat. 🙂

Crypto Wallet Backup – Adds Testnet and CONF files

0

Posted by Cynic | Posted in .NET, Bitcoin, C#, Money, Software, Solutions to Problems | Posted on 29-03-2014

Tags: , , ,

This is an updated version of the GUI version of Crypto Wallet Backup.

It adds in 2 things:

  • Testnet folders
  • *.conf files

There are no other functional changes.

If you use testnet, and need your testnet wallet, then this is what you want.

If you also want to back up your *.conf files, then this is what you want.

I added these because I lost a truckload of testnet coins that I needed for some other software development. They took me a good deal of effort to get, and thanks to a software blunder… POOF they went! Sigh… Lesson learned… again… the hard way… as always…

I added in *.conf files because, well, might as well do that too as I’m sure some people might find it useful.

crypto-wallet-backup-add-testnet-conf

The 2 new options are obvious.

Download Crypto Wallet Backup v1.1 < Program Only

Download Crypto Wallet Backup v1.1 source < Source Code Only (not elegant, but effective)

The program is the same otherwise… well, I did freeze the form while the backup occurs, but it unfreezes once the backup is completed. That’s the only other change, and it’s only cosemetic. So, for more information, check out the original post here.

Hopefully that will help save some pain for someone.

Cheers,

Ryan

Central Banking – A Century of Failure

0

Posted by Cynic | Posted in Awake, Bitcoin, Logic, Philosophy, Police State, Politics, Poverty, Solutions to Problems | Posted on 22-12-2013

Tags:

The last century has been a complete catastrophe for money/currency. The criminal banksters won in a stealth move on December 23rd, 1913. Since then, they have managed to create more wars and death than at any point in history.

The central banking disease has since spread to almost the entire world. With control of the Iranian central bank now falling into the clutches of the central banksters, it seems only Cuba and North Korea remain, and they don’t need any help in creating misery – they’ve got communism to help them fail there.

But is seems appropriate that after a century of financial terrorism inflicted on the people of the world, that 2013 would be the rise of Bitcoin and crypto currency. Decentralised through a peer-to-peer network, crytpo currencies are faster, easier, and cheaper to use than the worthless digitally controlled fiat printed by the central banksters.

2014 will be an interesting year as crypto currencies consolidate their position as a sane alternative to the destruction wrought by the banks. Major retailers will begin accepting Bitcoins while smaller operations begin accepting Bitcoins and other crypto currencies.

There will be more turmoil as the banksters fight back. They will use the state as their weapon. They will push for regulations and laws. Their arguments boil down to only a few:

  • Terrorism
  • Drugs
  • Child porn
  • Tax evasion
  • Centralisation

They might come up with something else, but it’s unlikely. There is no good reason to not use decentralised crypto currency. Ultimately, it’s about control. And if they lose control of the money supply, they lose their ability to steal from people.

The banksters will use their puppets in government to attempt to create legislation that makes using crypto currency impractical. They will attempt to create new bureaucracies and legal hurdles that make complying with the law either impossible or impractical. They will use the state to attack the people as they always do. They are monopolists. They cannot compete because they have no skill sets that are worth paying for. They require the violence of the state to compel people to their will.

They won’t win. Too many people know what they are – vampires sucking the life blood out of humanity.

We’ve had a century of failure. It’s high time for the demise of the banksters and a century of prosperity. Well, more than just a century of prosperity, I hope. So long as people study what really happened in history, they’ll fight to keep the banksters staked and in their coffins.

Obama vs. Reagan

0

Posted by Cynic | Posted in Awake, Logic, Philosophy, Police State, Politics, Solutions to Problems | Posted on 08-05-2013

Tags: ,

Barack Obama:

Unfortunately, you’ve grown up hearing voices that incessantly warn of government as nothing more than some separate, sinister entity that’s at the root of all our problems.

Ronald Reagan:

In this present crisis, government is not the solution to our problem; government is the problem.

Ahem…

Nuff said?

Bitcoin Hit $100 USD

0

Posted by Cynic | Posted in Banking, Money, Solutions to Problems | Posted on 02-04-2013

Tags:

Well, Bitcoin just hit $100 in a big way. Massive buying with orders as large as 1,000 BTC and numerous orders filled in the hundreds of BTC. It will roll back a bit, but the next time, it’ll be over $100.

 

 

 

 

 

Cheap, Organic Drain Cleaner

3

Posted by Cynic | Posted in Awake, Solutions to Problems | Posted on 23-11-2012

Tags:

Clogged drains are a pain, and nobody really wants to use toxic drain cleaners that are powerful to strip the flesh from your fingers. Having tried an “environmentally friendly” drain cleaner that was $20 for a small container, I can attest to the fact that it didn’t work at all, and I was forced back to toxic crap.

Enter baking soda and vinegar.

An AMAZING drain cleaner. I was simply astounded at how well it works.

Our bathroom sink gets clogged periodically, and I put about 1/2 a cup of baking soda down the drain (where I could still see water), poured a small amount of water in to help the baking soda work its way down the drain, then started pouring in about 1/2 of a cup of vinegar.

Well, lo and behold, the drain is unclogged.

With baking soda and vinegar.

I figure I could probably get better results by quickly filling the sink with about 4 cm of water above the drain, then plugging the drain with a plunger. Or, if you live in North America where sink drains have plugs that snugly fit the drain, simply plug the drain. That would add pressure. But either way, I was pleased with the results.

Costs:

ARM & HAMMER Baking Soda – 13.5 lb. bag – $17.62 (this is exactly what we use)

Bakers & Chefs Vinegar – 2×1 gallon jugs – $5.91 (this is just some cheap vinegar at a glance)

Actual usage was about 150 g of baking soda (about $0.43) and about 150 ml of vinegar ($0.12), or about $0.55.

You probably already have this in your house, so the next time your drain is clogged, give it a try. Not only is it cheap and effective, but it’s non-toxic.

Cheers,

Ryan

Recover Lost FreeNAS User and Password

5

Posted by Cynic | Posted in .NET, C#, Logic, Software, Solutions to Problems | Posted on 21-11-2012

“Brute Force FreeNAS” is a simple, quick utility to get back a forgotten user name and password.

It works very simply. You must enter a list of possible user names that you had for your FreeNAS and a list of possible passwords. The utility then combines them all (in a Cartesian product) and brute forces your FreeNAS web interface until you are logged in. Once you’re logged in, you then know which user name and password is correct.

Further instructions on how to use it are in the program. You can download it here:

DOWNLOAD FreeNAS Brute Forcer

Brute force freenas user password

Why did I write this?

Well, I had a problem where I couldn’t login. For some reason, there was an error in my FreeNAS box, and the proper login didn’t work. So, I started to write this utility, thinking that I’d forgotten the right login, and knowing that I knew or could guess the right user name, and the right password, but not the right combination of the two.

I then had further problems, and had to hard reset my FreeNAS box. And therein lies the key… Once I had reset it, I was able to login. However, I was already writing the utility, finished it, and tried the proper login then. However, since it works, and does what it is intended to do, I’m releasing it for others to use.

Make certain to read the instructions in the program.

The code in included in the download for anyone that wants to tweak it or whatever. There is no license – this is in the public domain. I have noted some code in there that I used from elsewhere to get some things done.

Notably, there’s a very cool bit of code that lets you do an N-ary Cartesian product, which is the core of this program as it combines the user names and passwords. You can find that here:

http://www.interact-sw.co.uk/iangblog/2010/07/28/linq-cartesian-1

I first found that article and piece of code while creating some custom software to create a corpus for the Samsung S Voice artificial intelligence – the Samsung version of Siri. I needed an N-ary Cartesian product, and not just a simple cross join on 2 sets.

Anyways, hopefully that helps someone out there.

Cheers,

Ryan

 

 

Robosoft for Beginners

4

Posted by Cynic | Posted in Online Marketing, OpenCandy, PAD, Robosoft, Software, Solutions to Problems, Super Simple, Web Sites | Posted on 29-09-2012

Software Marketing with Robosoft

For years RoboSoft has been the single most effective 1-stop way to promote software. If it isn’t already a part of your software marketing, it should be. If it is a part of your software marketing, there are most likely areas where you can squeeze quite a bit more juice out of it.

In this article I explain what it is, issues surrounding it, and how to use it to effectively promote your software.

This article is aimed at RoboSoft “beginners”, though there are some good tips for intermediate users as well. For highly advanced usage, you can refer to some of my previous articles on Robosoft here.

What It Is

RoboSoft lets you either automatically or semi-automatically submit your software to hundreds (or thousands) of download sites, news sites, and other software-related sites.

It works by having you enter information about your software, then automatically submitting that information to its large database of sites via web automation. Not all sites can be done automatically, so you can go back and submit to those sites that it “missed”.

For semi-automated submissions, RoboSoft automatically fills in all the forms with your software information, e.g. the product name, download URL, descriptions, etc.

What It Can Do For You

Used properly, RoboSoft can significantly boost your position in search engines, and consequently, increase your sales.

It’s that simple. RoboSoft increases sales. Period.

What It Costs

The cost of RoboSoft is insignificant compared to the value it delivers. A standard lifetime license is $99.00, while database updates are sold on a subscription basis starting at $8 / month. A full year of updates can be purchased for a discount.

About PAD

PAD stands for Portable Application Description. It is the industry standard way to communicate information about software, and is maintained by the Association for Software Professionals (ASP).

PAD files are simple XML files. Each bit of information is contained in a descriptive node. Nodes do not have any attributes.

RoboSoft, and most download sites, use the PAD standard to communicate your software information. You can either create your PAD file inside of RoboSoft, or you can use an external PAD authoring tool like PADGen to create your PAD file then import it into RoboSoft. See below for more information on this.

For more information about PAD, see the official PAD site here.

For more information about PADGen, the official ASP PAD file generator, see the official PADGen page here.

The Download Site Controversy and Why It Doesn’t Matter

Skimming through various developer forums, you will at some point encounter the download site debate, with many authors poo-pooing download sites. Don’t buy it.

The typical “controversy” goes on about how there are thousands of download sites, and how they have no value, and how submitting your software to them is a waste of time.

I beg to differ.

When digging deeper, it usually turns out that somebody submitted their software to a very small handful of sites (maybe 30) once then came to the conclusion that it’s a complete waste of time. Well, duh! That is a waste of time.

Follow the advice below, and you will not waste your time. You will see significant results.

But don’t throw a handful of sand on the beach then claim that you can’t make a sand castle with sand because you tried and it didn’t work.

The “Real Deal”

RoboSoft is an SEO tool.

Let me repeat that just in case…

RoboSoft is an SEO tool.

By submitting your software to a LARGE number of sites, you create backlinks to your site. This boosts your site in search engines even if you never get a single download from any of the sites. Even if you never get a single download directly from a download site (yes, I’m repeating that because it’s important), having your software listed and linked back to your site tells the search engines that the content on that page that links to your site is relevant to your site, and that translates into higher search engine rankings for you. Not all download sites post direct links to you, but they do post links to your software installer, which still translates into a link that search engines can follow.

So, your goal isn’t to get downloads from download sites. Your goal is to get better search engine placement, because the new download site is Google.

That means that you need to do some SEO work on your PAD file… Which is beyond the scope of this article. There’s lots of information available on SEO out there, and you can find an excellent article about on-page SEO here. Many of the same principles apply. Don’t worry about download sites out-ranking you. That may happen, but eventually it gets corrected.

In the past, I’ve had up to 95 out of the top 100 results in Google pointing to products that I was promoting, albeit 94 were on download sites. Still, that’s only room for 5 competitors inside of the top 100 results. Those days are done and gone though, but the tactics used still work to get your site up in the SERPs and are still very much worthwhile.

Entering Software Information

As space is short, we’ll forgoe the PAD SEO discussion, and get on to the simple mechanics of entering information…

If you have a PAD file, click “Import…” under “Company tasks” in RoboSoft to import your company information from your PAD file:

Import PAD info for Company

Follow the instructions and click the “Save and exit” button when you’re done:

Importing company info from PAD - save here

That will create your company info inside of RoboSoft. You will see your company info listed similar to as shown below:

Company is now listed in RoboSoft

Next, select your company as shown above, and do the same for your product information by clicking “Import…” under “Product tasks”:

Import product info from PAD

You may be prompted with the company info screen again; click the “Save and exit” button again to continue on to the product import screen:

Product import screen for RoboSoft

You can edit information in there, just as with the company import screen. However, make certain to click the “Save and exit” button to save your product into RoboSoft.

When prompted, make your imported product the selected/active one by clicking Yes:

Make product active

RoboSoft will now look something like this:

Product has been imported into RoboSoft

Before you submit, you must ensure that there are no errors. In the screenshot above, click the “Validate now” link, or in the Product tasks, click the “Validate…” link. This will check your software information for problems:

Validation errors

Walk through each error and correct them all. This may require uploading files, such as your PAD file, to your server and making certain that the information in RoboSoft accurately reflects the newly uploaded files.

You can resize the screen above to go about fixing the errors. If this is the first time you’ve used RoboSoft, you WILL have errors that must be corrected. This is perfectly normal as some fields are RoboSoft specific.

Correcting validation errors in RoboSoft

To correct the errors, click on the error then in the left pane, correct the error. Rinse. Repeat.

Correcting validation errors

!!! IMPORTANT !!! — For your contact and login information, do NOT use your normal email address, i.e. DO NOT use support@ or info@ or yourname@. Use addresses that are used ONLY for submissions. Use email addresses like pad@ or padsupport@ or padsubmit@. Your PAD submissions will generate a lot of email that is only relevant for your PAD submissions. You will also get automated PAD polling information from download sites to tell you that they’ve polled your software and that it has been added/listed or that there was a polling error (which is often because the download site PAD validation is not PAD compliant). So… To avoid filling up your inbox with all that, use another email address. Really. Trust me. I speak from experience. Lots of it.

When you’re done, click the “Save and exit” button.

!!! IMPORTANT !!! — Critical errors must be fixed, however, you can ignore some warnings. Try to fix everything that “makes sense” for your software, but don’t worry if something that is irrelevant to your software still throws a warning, e.g. Your PAD file may not have a press release in it, so you will get warnings there. (Press releases can be added through the press release PAD extension. See here for more information about PAD extensions and here for the PAD extensions repository.)

Before you continue, back in the main RoboSoft screen, double-click your newly imported software to edit it. Walk through each and every field and verify that it has been entered (if required), and is correct. There is a description of each field at the bottom of the screen when you click each field.

Enter or edit information directly in RoboSoft

That should take you several hours (or days) if you do it properly. Why? Because you should have a press release, and you should have site information, and it takes several hours at a minimum to write a draft-quality press release. Don’t overlook that. Remember, this is about SEO, and the more you submit, the better you will perform in the search engines. Take the time to do it properly. Don’t be lazy.

If you don’t have a PAD file, you can simply create a new company and product and enter the information exactly the same as in the screenshot above.

So… by this point you have taken the time to do things right, right? Good! It’s time to submit your software and open the floodgates of traffic!

Submitting Your Software

Before you start submitting, make sure that the database is up to date by clicking Site List > Update. Follow the directions.

Filter Sites That You Submit to

If you have an Excel utility, there is no point in submitting to games sites, and if you have a non-mobile game, there’s no point in submitting to mobile sites… So… Filter them.

Click the Sites tab. It should look something like this:

RoboSoft Sites tab

Click the “Site Rank” column header to sort by site rank. The ones at the top are the most important ones. You will want to do those sites semi-automatically, and not automatically.

In the lower right, check “Use filter” to enable the options there.

Filter the sites you submit to

For Category, uncheck any category that isn’t relevant. e.g. It’s unlikely that you’re a CAD developer, and more likely that your software may fit into the Multimedia category. Be honest. Checking them all is counter productive. If you don’t have a screensaver, don’t submit your software to screensaver sites. You will want to submit to news feed directories, search engines, press release sites, and web directories though.

For Language, you can submit to all of them. You don’t need to uncheck anything. Some non-English sites accept English software, while other non-English sites don’t. Cross that bridge when you get to it. However, if you want, you can check only one language and do your submissions by language, i.e. do multiple sets of submissions. That’s a solid tactic that can help you focus on specific language markets. It may or may not be applicable to you though.

The Flags options let you hide entire categories of sites. For example, some sites require that you pay to be listed, while other sites require that you link back to them. Show or hide the sites that you want to submit to.

HINT: For sites that require a link back, most of these will crawl your site to see if the link is on the home page, and if not, they will decline your submission. A small minority of sites will accept any page, even if it is not linked to anything in your site. I would recommend not bothering with these sites at all. You don’t want to link to them as it does not add enough value to your efforts to warrant it.

I would recommend hiding all sites that require payment or a link back.

For Status, leave that at ALL for the time being. Later on you will want to know where you have submitted, where you are listed, and where submissions failed or were skipped. Before you actually use those functions though, you should use the RoboSoft crawler to update the status by clicking Tools > Track Listings (Batch Search).

When you’ve finished filtering, click the “Apply” button. The status bar in the lower left will update to display something like this:

Filter results

You have now chosen the subset of sites that you will submit to. It’s time to get started…

Starting Submissions

To start submitting, click the “Auto…” button on the RoboSoft toolbar (or click Tools > Automatic submission…) and choose “Submit”:

Click autosubmit to start

RoboSoft will update the database:

Updating database

Once the database is updated, you must complete the automatic submission wizard:

Automatic submission wizard

Next, verify you have the right product that you want to submit:

step 2

RoboSoft then validates your software info:

PAD validation

Next, verify and test your SMTP settings as some submissions are done by email, and others require an account that RoboSoft can automatically create for you:

SMTP settings

Next, verify your site selections:

Verify site selections

Next, RoboSoft will check to see if your software is already listed:

Autosearch

In step 7, check or uncheck individual sites that you want to submit (or not submit) to. To change a category, press CTRL + click the category. If you need more categories to be available to choose from, click the “Edit possible categories” button and follow the direction in the dialog there. A green check mark means that the software is already listed at the site. Check these sites if you have an updated version. Also, make certain to check the account information in the Account tab on the right. If you don’t know what something is, mouse over the question marks (?) for more information.

Category and site selection

It is important to make sure that you get things right in step 7. Take a few minutes to go through the list and verify that everything is correct. Uncheck irrelevant sites and correct any category problems. Not all sites support all categories, so just try to get as close as possible. If you can’t get close, uncheck the site because it’s a waste of your time and a waste of the site owner’s time if your software isn’t relevant. e.g. You have a photo resizing application and the site is for network administration software.

In step 8, RoboSoft does all the submissions. Take special note that it has anti-CAPTCHA built in as you can see in the screenshot:

Submissions

The various panes in the submission window detail what sites are being submitted to, show a screenshot of the submission process, give real-time statistics on the submission process, and show CAPTCHAs being cracked.

The anti-CAPTCHA feature in RoboSoft is highly effective, but not 100% of the time. At the end of the submission process, you are given the option to go back and process those CAPTCHAs that RoboSoft missed:

Process CAPTCHAs

It’s a very simple and easy process, so just click the “Process CAPTCHAs” button.

Missed CAPTCHAs

Click in the Value column and type the CAPTCHA. You can see a screenshot of the actual web site in the lower right.

If you get one wrong, you’ll be promted again. Some CAPTCHAs are very difficult, while some sites are just broken. If you can’t get one, forget about it. The chances are that the site itself is broken.

Step 9 is the “YAY~!” stage:

Success rates for software submissions

RoboSoft keeps track of all the submissions for you, including success and failure rates. Don’t worry about failures though. It’s common for a site to go down, or for a site to have internal errors, especially when you submit to hundreds and hundreds of them. RoboSoft also keeps track of why there were errors, as you can see in the screenshot above. Just make certain that you aren’t the source of the errors through some silly oversight like bad account information.

Step 10… Hmmm… Step 10… How about I let my sadistic side take over. You know… Slide on over to the Dark Side… and leave step 10 as a mystery by not telling you what it is and not posting a screenshot. Muahahahaha~! You’re tortured now, aren’t you? It’s eating you up inside, gnawing at your very soul… You must know what step 10 is… And so… You must go out and get RoboSoft and do your own submissions to find out! (You’ll be very glad that you did.)

But You’re Not Finished Yet…

That’s just the automatic part. There’s still the manual part.

Go to the Sites tab and double-click on a site that you’ve not submitted to (or one that you want to resubmit to). That will open up the site on the Browser tab. There, click the “Submit” button and carry on your submissions semi-automatically. Each site is different, so you’ll need to just roll with it. However, many sites run off of the same download site engines, and after a while, you’ll begin to recognize them. That makes submissions faster for you as you’ll know what to expect within a few seconds of visiting a site.

The important things to know are:

  • RoboSoft will automatically fill in fields for you.
  • You can use the “Autofill” button to fill in fields if RoboSoft doesn’t.
  • You can right-click in an input and choose what information to enter from the context menu.
  • This is a very important part of submissions, and if you skip is, well, you might as well throw a handful of sand on the beach and then complain about not being able to build a sand castle.

If you are diligent and aggressive, the entire submission process should take you about 2 or 3 days. That assumes some learning curve. Once you know what you are doing better, submissions are much faster; plan on a set of submissions taking a day to complete. The manual/semi-automatic portion takes the longest, as you would expect.

Again, it bears repeating: Do not skip the semi-automatic submission process. It is critical to your success. There are some very good download sites that you’ve likely never heard of, and if you skip them, you are missing out on some valuable exposure. See my praise for Softoxi here.

After You Finish Submitting…

The process doesn’t end with submissions though. RoboSoft can keep track of what sites your software is listed at, so you should periodically go back and run the batch search: Tools > Track Listings (Batch Search).

You can add in new versions, submit, and keep track of it all.

DynamicPAD

DynamicPAD is how you can turn RoboSoft from a raging 800 lb gorilla, into a fire-breathing, 800-foot high, Tokyo-smashing Godzilla. (BTW – Your competition is Toyko.)

However, DynamicPAD is well beyond the beginner or intermediate scope of this article. If you want more information about turbo-charging RoboSoft with DynamicPAD, see my articles on that here (part 1, 2, 3, 4). It’s not for the faint-of-heart, but if you really want to get some fantastic results, try it out. The articles include source code that you can use as well.

NOTE

This article has been sitting around for almost a year, but is still as accurate as the day it was written. Originally, it was written for another company, but, they simply sat on it for too long, so, I’m publishing it. I know it will be useful for someone.

Cheers,

Ryan

 

Using GitHub in MonoDevelop

0

Posted by Cynic | Posted in C#, Software, Solutions to Problems | Posted on 04-07-2012

Tags: ,

So I just started to use GitHub for a tiny project, and wanted to use it from inside of MonoDevelop. After 2 days of looking on and off for the “easy” answer, I never found it. Yes – I’ll do just about anything to avoid dropping down to the command line if possible.

Finally I found this answer at StackExchange:

http://stackoverflow.com/questions/4658606/import-existing-source-code-to-github (direct to answer)

I don’t find the accepted answer all that helpful. If you’ve got local source code you want to add to a new remote new git repository without ‘cloning’ the remote first, do the following (I often do this – you create your remote empty repository in bitbucket/github, then push up your source)

  1. Create the remote repository, and get the URL such asgit://github.com/youruser/somename.git

    If your local GIT repo is already set up, skips steps 2 and 3


  2. Locally, at the root directory of your source, git init
  3. Locally, add and commit what you want in your initial repo (for everything, git add . git commit -m 'initial commit comment')

  4. to attach your remote repo with the name ‘origin’ (like cloning would do)
    git remote add origin [URL From Step 1]
  5. to push up your master branch (change master to something else for a different branch):
    git push origin master

And things start working from inside of MonoDevelop then. But it just didn’t seem possible to get it working from directly inside of MonoDevelop.

For some reason the commit command there didn’t work for me, but just using “git commit” was enough.

One thing to note though, when using Git from the command line, it may drop you into VIM, so if you don’t already use VIM or VI, or don’t remember it’s many esoteric commands, you’ll need to get up to speed just enough to switch between command and visual mode and to save and exit.

Cheers,

Ryan

Spanning Columns in a GTK# Table

0

Posted by Cynic | Posted in C#, Software, Solutions to Problems, Windows | Posted on 02-07-2012

Tags: ,

Coming from working on WinForms, GTK# is a very, very different paradigm for layout. I struggled to figure out just how to span columns in a table as searching for information didn’t really work out very well.

Instead of setting properties on the table, you set the properties on the widget as it inherits a “Table Child Layout”. The ***Attach properties are where you can then force a widget to span several columns.

GTK Attach Column Spanning

There I set the “RightAttach” on a label to 2 so that it would span 2 columns.

The language used in GTK is radically different from that used in Windows Forms, so it takes some getting used to.