This is a reminder or memo article for me (rather than a real guide) on things I should remember, when searching for a new theme. Since it contains some not so obvious information, it can be also useful to others.
I don’t like jQuery Mobile for being ugly and slow and I don’t like paid full-featured stuff like Sencha or Kendo. You won’t find them here. I like fast and beauty mobile applications, especially those written in PhoneGap. So you will find performance-first, beauty-second UI frameworks here. With special emhasis on being PhoneGap-oriented. Only quick review without any unnecessary blah-blah.
This is basically a check-list on pushing entire local repository, with all branches, tags and entire history to brand new remote repository and changing default remote setting in local repostiory from one to another. A compilation of this and this answers on Stack Overflow plus some own thoughts. Gogs and GitHub are quite similar to each other and all operations an made on command-line, so you can use this article as an aid in migrating one remote repository to another.
This article is unfinished and discontinued! It contains a lot of useful information, but will not lead you to the very end. The only reason, for which I wanted to install and use Gogs was the fact, that my programming model (Yii2-based) required me to have a really large number of private repositories (each for every component, that my applications are using). And storing them on GitHub was very expensive.
However, as of May 11, 2016 GitHub has announced an unlimited number of private repositories available for every paid plan. This rendered Gogs completely useless for me. But, in the same time, it was also a very relief for me, because even though a whole long year passed since I started writing this article, I have never actually even touched problem of reconfiguring Composer to use source other than GitHub (Gogs).
Feel free to use this article to learn more about Gogs and its installation on Windows, but keep in mind, that this artice is unfinished and pretty much likely will never be finished.
By an accident, I run into this question from December 2011 asking, if 4 MB of executable size for mobile devices is too much for a simple application. Even though it is over 3,5 years after asking this question, the general rule remains. I found my answer to this question quite interesting and thus I’m sharing it in here.
matchCallback in AccessControlFilter in Yii2, an attempt to read
Yii::$app->controller->actionParams inside this callback fails, because these attributes are empty.
This is by design, because AccessControlFilter is executed at an earlier stage than parameters binding.
If you need to read action parameters inside
matchCallback (for example to judge, if user has access to particular action, basing on action’s parameters) then the only way is to read them from
Yii::$app->request->get(). More details here or here.
Many developers are mixing the idea of whether an URL is valid or “openable”, that is — any browser is able to open it. Having an URL that matches second condition doesn’t actually mean, that such particular URL is valid. This article tries to deal with this little misunderstanding.
Batch conversion tool (B in main screen or
File > Batch Conversion/Rename) in IrfanView is both flexible and powerful tool that allows you (as menu item says) to: quickly convert many images, quickly rename many files or mix these two operations.
Add All button in mentioned tool’s window is even more powerful, because it lets you add files (to be converted or renamed) from given folder and all subfolders. But not everyone knows, that the same goes for saving converted files. They also can be placed by IrfanView in many folders
Using non-Latin keyboards with Delphi and non-Latin characters in code was always a big problem in Delphi.
To enable correct support in Delphi 10 you have to:
- go to
Tools > Options > Editor Options > Key Mappings,
Use Ctrl-Alt keys.
Hopefully in Delphi 2010 you can do this from IDE settings. You don’t have to play with stupid
.reg files to change some dully strings in Windows Registry, as you were forced in Delphi 5 to achieve the same.
After Deploying a PhoneGap application to iTunes (App Store) and Deploying a PhoneGap app to Google Play articles, here comes the time to deal with Windows Mobile platform and Windows Marketplace. This article should provide you with all the necessary information on how to successfully submit your
.xap file (compiled locally or through Phonegap Bulid) to Windows Marketplace.
By default your PhoneGap application will contain system menu button, even on those systems (Android 4.0+) that doesn’t support this button any more (i.e. applications written for this system should not use this button; it is handled anyway and you can use it, if you really wish to).
On most new devices user pressing this button will be simply ignored by system and nothing will happen. So, this problem reduces itself to purely aesthetic means (whether you care about seeing that unusable button on system bar, when your app is active, or not).
However, there are reports, that PhoneGap applications crashes on small group of devices, when user presses this not handled system menu button. In this case, more radical solutions must be considered.
There are so many articles in the Internet (type
Mac OS X virtual machine to Google or your favorite search site to get thousands of them) about running OS X on PC in VirtualBox, that writing another one is just a pure stupidity. Instead, this article includes only a quick check-list to extract essential information from these articles and leave all unnecessary garbage blah-blah behind.
This post is a short version of this article. Refer to it for all details, explanations, solutions for a possible problems and things like that. This guide assume, that you’re installing OS X inside a virtual machine only for one purpose — sending your iOS apps to iTunes through ApplicationLoader program. For this reason, certain parts of original guide are skipped. If you intend to use OS X for other purposes, you may need to enhance your knowledge, by reading missing parts from other sources.
This article is a companion text to Deploying a PhoneGap app to Windows Marketplace and Deploying a PhoneGap application to iTunes (App Store) articles. It provides you with necessary information on how to successfully submit your
.apk file (compiled locally or through Phonegap Bulid) to Google Play.
This article deals about deploying PhoneGap application to Apple App Store. Question: Is it possible without having a real Mac computer or using Mac-lease-like service? The quick an straight answer is: you can’t do this. It was possible around two years ago, but things has changed and s for now (2015) you must have any of above to submit your application to App Store.
This article was initially written on 18 June 2015 and generally updated 15 months later so you’ll find information and examples as they were available in mid-August 2016.
Let’s say, that you need to make a
<a href=""></a> link, that will point you to the very same URL (as page, in which have this link), but to a different port. Even though there are no reasons for not implementing support for links like
<a href=":8080">jump</a>, as of writing this, such support is not implemented in any known browser. And thus, neither this link work nor pure-HTML solution is available.
For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.
This is an example (or rather a bare foundation, as this actually is doing nothing) of such solution. It has some console text formatting methods (borders, text alignment) plus simple method for gathering user response.
If you’re unfamiliar with data transport commands in Git or have troubles understanding the idea of four “buckets” (workspace, index, local repository and remote repository) or you’re generally a newbie to Git, then there’s a great answer at Stack Overflow, which basically is a diagram image taken from Oliver Steele’s blog and that actually explains everything! :>
Three months ago I have purchased my first 4K / UHD TV — Samsung 50HU6900 — and after some time I tried to used the built-in media player to play some of my files. At the very end it turned out that — as in all Samsung devices — this is a piece of crap, full of some strange limitations. Finally, I have reverted back to my old, good standalone FHD player and I’m using Samsung one only for UHD / 4K files.
But, for all of you, that aren’t so reluctant, here is a list of media supported by this TV (and probably many more Samsung TVs) and all the limitations, you need to fulfill in order to have your media played.
A solution based on this Stack Overflow answer to insert many random data rows to given table in SQL:
TRUNCATE TABLE `devices`; DROP PROCEDURE IF EXISTS InsertRand; DELIMITER $$ CREATE PROCEDURE InsertRand(IN NumRows INT) BEGIN DECLARE i INT; SET i = 1; START TRANSACTION; WHILE i <= NumRows DO SET @dn = CONV(FLOOR(RAND() * 99999999999999), 20, 36); INSERT INTO `devs` VALUES (NULL, FLOOR((RAND() * 3)), CONCAT('Dev ', @dn)); SET i = i + 1; END WHILE; COMMIT; END$$ DELIMITER;
To execute this little piece just call:
That’s all folks! :>
Changing default document for Word (i.e., the one, that is opened each time you start Word) is an easy task. You just have to open
%APPDATA%\Microsoft\Templates folder and save any document as Word Template under
Normal.dot file name in this location. Changing default PowerPoint isn’t that easy, because file names and file paths are different. I keep forgetting about this, so I wrote this article as my personal memo.
If you work with macro-enabled documents in Microsoft Office and you run on default settings, each such file will be always opened with macros disabled and you’ll have to click
Enable macros each time to enable it. If documents are your own, you trust, that they contain no malicious code and they’re all stored in a secure location (i.e. not in some temporal or shared folder), you can change each Office program settings to have these files always opened with macros enabled.
+). You cannot easily mix strings and DOM elements. So, something so trivial like surrounding link with
] brackets becomes not so trivial. At least to beginners. This article should help.
You want to feed data to Flightradar24 using DVB-T stick and you have already received your hardware. Great. Now, it is time to talk about software, installation and configuration. Note, that (contrary to FR24) I’m providing information about Windows Vista and later editions of Windows. If you’re an old dinosaur, still using Windows XP or you need info for Linux, Unix or Mac systems, consult “Add Coverage” pages at Flightradar24.
IMPORTANT! Read this article BEFORE you even plug your DVB-T stick to spare USB port. If you do this, you’ll waste some additional time on uninstalling Windows drivers, which are completely useless in this scenario (since we want to receive flight data, not the actual TV signal, right).
I say: “Remove all quotation marks from a string“. You say: “
stripslashes“. Works fine. In most of situations. If you have to deal with quotation marks manually entered to rich editor (i.e. by copying large block of text from Word for example) or with a string being a poor effect of even more poor encoding routine, you may be sure, that
stripslashes won’t do all the dirty work for you. This is this place, where my handy method comes in.