tag:blogger.com,1999:blog-78637110632511000772024-02-08T11:27:33.622+00:00The Chilled RatA bunch of notes that would be better off scribbled on post-its but not so easy to misplace.
<p>(a.k.a. "Keep moving' people, nothing to see here")</p>Anonymoushttp://www.blogger.com/profile/08381490745820076104noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7863711063251100077.post-66243866773949995152014-11-14T13:09:00.002+00:002014-11-14T13:09:57.138+00:00Changing the default Grub2 entry on the flyJust another one of those seldom needed bits of info that I'll have to google the next time I need it unless I write it down here. <br />
<br />
Yesterday I realised that my network shares weren't being mounted as usual, and I haven't changed the configuration for a month. The culprit seems to be the new 3.7-2-200 (or there abouts) kernel that I installed. I don't have time to fully explore the reasons (deadlines, deadlines, deadlines,...) so I'm dropping back to the previous kernel for now. <br />
<br />
Grub2 has the ability to set the default entry to the last menu item selected, but this isn't the default, at least not in Fedora 20. My original grub defaults (/etc/default/grub) were something like:<br />
<br />
<span style="font-family: "Courier New",Courier,monospace;">GRUB_TIMEOUT=5<br />GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"<br />GRUB_DEFAULT=saved<br />GRUB_DISABLE_SUBMENU=true<br />#GRUB_TERMINAL_OUTPUT="console"<br />GRUB_CMDLINE_LINUX="rd.md=0 rd.dm=0 rd.lvm.lv=fedora_odin/root $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rd.luks=0 vconsole.font=latarcyrheb-sun16 vconsole.keymap=uk rhgb quiet"<br />GRUB_DISABLE_RECOVERY="true"<br />#GRUB_THEME="/boot/grub2/themes/system/theme.txt"<br />GRUB_THEME="/boot/grub2/themes/hitman/theme.txt"<br />#GRUB_GFXMODE=1024x768<br />GRUB_GFXMODE=1280x1024</span><br />
<br />
<span style="font-family: inherit;">So although the </span>default is set to <i>saved</i>, to activate the saving feature you need to add the following:<br />
<br />
<span style="font-family: "Courier New",Courier,monospace;">GRUB_SAVEDEFAULT=true</span><br />
<br />
After a quick run of <i>grub2-mkconfig</i> to update the grub.cfg it's all good and my default kernel is non-borked one until a fix comes in, or I have time to read the documentation to see what 'new feature' broke my configuration ;-)<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/08381490745820076104noreply@blogger.com0tag:blogger.com,1999:blog-7863711063251100077.post-90277374664059113852013-10-08T11:33:00.002+01:002013-10-08T11:39:17.938+01:00Filezilla and mapped network drivesSo Filezilla doesn't like network drives. That's probably a bit harsh and it's just that windows hides a lot of the mess behind the connection. There is a helpful <a href="https://forum.filezilla-project.org/viewtopic.php?f=6&t=9200" target="_blank">stickyed post</a> for how to set this up on the official support forum and would be worth following if there is a need to transfer <i>to</i> the mapped drive location. However, if the transfer is coming <i>from </i>the location to a remote FTP site, you will find addressing the network location using the UNC directly will suffice.<br />
<div>
<br /></div>
<div>
e.g.<br />
<blockquote class="tr_bq">
\\[server name]<server name="">\location</server></blockquote>
</div>
<div>
<br /></div>
<div>
Type it into the local site (sic) box and it's job done! =)</div>
Anonymoushttp://www.blogger.com/profile/08381490745820076104noreply@blogger.com0tag:blogger.com,1999:blog-7863711063251100077.post-22986869375245313312013-05-07T00:12:00.001+01:002013-05-07T12:48:31.804+01:00Okay, so now what?This blog has been sitting here unused for a while and I thought it was about time I put it to work. I've been using a private blog as a learning journal recently and it seems to work well so I've decided I would use this one as a bit of a technical notebook. I tried keeping it all on Google Drive, but it got messy. <br />
<br />
I expect it will mostly contain solutions to problems that I haven't been able to find elsewhere, or to consolidate information from different sources, but we'll see. I'll be writing it for myself, so it's not necessarily going to get deep or complicated, just stuff I could do without forgetting, but I want to leave it public on the of chance somebody may find it useful.Anonymoushttp://www.blogger.com/profile/08381490745820076104noreply@blogger.com0tag:blogger.com,1999:blog-7863711063251100077.post-21845074012008319402012-03-04T12:02:00.000+00:002013-10-08T11:36:23.082+01:00Fixed Size Dialog in QT Desinger 4I've been trying, on and off for the last day or so, to create fixed size dialogs in QT Designer. By that I mean dialogs that are not resizeable by the the end-user. It should be simple I thought (it is), but it's not obvious to somebody who just jumps in to the designer and starts playing. Googling left me confused, with a number of different solutions offered (manually setting min/max sizes; calculating 'stuff' at the start of the app...) but not the QTD solution I was looking for. This blog post will serve mainly as a reminder to myself, but maybe it'll be a help to others too.<br />
<br />
<a href="http://www.qtforum.org/post/52390/fixed-size-dialog.html#post52390">This thread (qtforum.org)</a> was the closest I came but that didn't tell the entire story for a QTD newbie:<br />
<blockquote>
<span style="font-size: x-small;"><span style="color: #3333ff; font-style: italic;">The </span><b style="color: #3333ff; font-style: italic;">actual</b><span style="color: #3333ff; font-style: italic;"> answer is to apply a layout to your dialog and set the resizeMode property to 'fixed'. This will handle any issues with fonts, i18n, etc.</span><span style="color: #3333ff; font-style: italic;"><br /><br />Most people miss this (see above). </span></span></blockquote>
With the final post inluding:<br />
<blockquote style="color: #3333ff; font-style: italic;">
<span style="font-size: x-small;">@Chickenblood<br />Yes, you're right it works that way. Thanks for pointing that out again and again and again. I missed that <img alt=";)" src="http://www.qtforum.org/wcf/images/smilies/wink.png" /><br /><br />As you said, In QT3 designer, after you used Layout in a grid, you can find the resizeMode property and set it fixed there.<br /> (2 other layout properties appear also in the dialog properties : LayoutSpacing and LayoutMargin)<br /><br />In QT4 it is not available in the property editor when we make a Layout in a grid.(QT4.0.0)<br />So we need code to do it.</span></blockquote>
Well that post is from 2005 and the property is there now in Qt4. Great! :) Also I already had some layouts in my dialog (and a great feature they are too), so I just set the layoutSizeConstraint in one of those? No. Okay, all of them then? No. Create a single parent form layout chuck <span style="font-style: italic;">everything</span> inside it and set it's size constraint? No.<br />
<br />
Meh!<br />
<br />
Finally, the penny reaches escape velocity. You need to have the window selected;<br />
<br />
Easy when you know how. Maybe I should just go read the documentation for once...but where is the fun in that ;o)Anonymoushttp://www.blogger.com/profile/08381490745820076104noreply@blogger.com0