Artem Russakovskiis programming and technology blog (archived)

Web Name: Artem Russakovskiis programming and technology blog (archived)

WebSite: http://beerpla.net

ID:16573

Keywords:

programming,Russakovskiis,Artem,

Description:

IntroductionI don t know about you, but I can t imagine doing my PHP development without an IDE with a debugger anymore.It autocompletes for me, it lets me step through each line of code, jumping around the project, execute and change the code flow on the fly, and does many other things that make me feel cozy, comfortable, and efficient at PHP development (as opposed to, say, CPP which makes me feel cold and lonely).There are many PHP IDEs out there and I ve tried most of them (including the free PHPEclipse and PDT for Eclipse) but kept coming back to NuSphere s PHPEd every time. The other ones just don t do as good of a job and don t have the Read the rest of this article Updated: February 8th, 2017 Today I was setting up a new machine (running OpenSUSE 12.1, but it s not really important), and after switching the network configuration from DHCP to static IP, lost all connectivity, in and out. /etc/init.d/network restart seemed to list the right IP, yet I was getting unknown host and Network is unreachable errors while pinging. I double and triple checked all the settings DNS and gateway were set up right. I even rebooted, but nothing worked.Then I vaguely remembered that I ran into the same issue a few years prior and also spent hours trying to figure out what was going wrong. The solution was so incredibly simple that my geek cred should have been docked 10 points. But Read the rest of this article Having spent way more time on this problem than I really should have, I m going to make sure everyone can actually find a solution instead of useless WordPress support threads.The ProblemI wanted to export all the data from WordPress using its native export mechanism (located at http://YOURBLOG/wp-admin/export.php), but since the blog I was working on was pretty large (6k posts, 120k comments), I kept getting XML files that ended prematurely and for which xmllint spit out this error:Premature end of data in tag channelUpon closer inspection, I saw the XML file ended with a random, yet always fully closed, /item tag, but was missing the closing /channel and /rss tags, as well as a whole Read the rest of this article One thing that s been continuously annoying me when doing WordPress development on the go is when something somewhere inside WordPress decides to send requests to external urls when I don t even have Internet connection or it s slow and flaky (tethering, slow Wi-Fi, etc). This results in random lag when loading pages, especially if I haven t opened my dev WordPress instance for a long time.Turns out there s an easy and undocumented (other than in code) solution. To block external HTTP requests right in WordPress s core itself, open up wp-config.php and add WP_HTTP_BLOCK_EXTERNAL like so:Whenever this variable is present, external requests will be ignored, unless you specify your own comma-separated whitelist Read the rest of this article There used to be a time when you couldn t imagine your life without Microsoft s Outlook web email clients were pathetic and non-functional, Internet access was scarce, and access to certain advanced features was only possible with a desktop application like Outlook.Then, Gmail arrived and exploded the whole notion of desktop email clients forever, almost overnight. It was fast, robust, logical, and integrated many things Outlook still isn t to this day (Outlook 2010 + IMAP is pure hell).Slowly, Google brought out more and more features that made the fine line between web and desktop emailing thinner and thinner, and today, it finally disappeared, at least for me.The final nail in the coffin turned out to be Read the rest of this article Updated: May 17th, 2012 Well, this one took ages. And whenever something takes me ages, rather than write it down in my personal notes, I prefer to put it out online for everyone with the same problem to easily find and benefit from.The problem I m talking about today is trying to upgrade your Windows 7 installation to SP1 by applying Microsoft s update KB976932, called Windows 7 Service Pack 1 for x64-based Systems and getting nothing but a failure every time. The same problem may affect 32-bit systems as well, and I m not sure what the update number for that would be, but the solution should work for either one.The update starts just fine, chugs along for 10 minutes or so, then reboots Read the rest of this article Updated: August 27th, 2012 Today s snippet is tremendously helpful if you are using an XML-RPC WordPress interface to read and publish your articles and are running into 500 Server Error issues due to running out of memory, manifesting themselves in something like this error message: Invalid Server Response The response to the metaWeblog.newMediaObject method received from the weblog server was invalid .For example, my regular PHP memory allocation is 32MB or so, but if I load up Windows Live Writer, my favorite publishing tool, and ask it to load 1000 of the latest blog posts, I will undoubtedly get a server error back.One solution would be to increase the memory allocated to PHP to something higher, like 256MB, which is how Read the rest of this article Updated: February 2nd, 2011 WordPress has a great way of letting you use simple text tags called shortcodes to provide a whole bunch of functionality, including custom PHP code. In this article, I m assuming that you already know what shortcodes do and how they operate (if you don t, head over here: Shortcode_API).One glaring omission in the way shortcodes are set up by default is that they only get triggered in the content of your post, leaving the sidebar and comments out. I m sure this is done for security, so that your readers can t screw something up by posting shortcodes they re not supposed to after all, shortcodes are PHP snippets on the backend.However, let s assume you really know what you re doing Read the rest of this article Updated: December 25th, 2011 As a developer, I both love and hate Eclipse for its chaotic nature, buggy and sometimes unusable interface, but at the same time incredible usefulness and ability to serve as a single tool for all of my development, be it C++, PHP, Java, Android, Perl, etc.One of the biggest problems with Eclipse is that there is no clear upgrade path from major versions, for example 3.5- 3.6. What I ended up having to do for years is back up the old release, download and unpack the new release, and then try to migrate all the settings by importing and exporting left and right. Not so pleasant.Turns out, as of Eclipse 3.3 (though I ve only tried it with Eclipse 3.5), Read the rest of this article Updated: September 8th, 2011 Today, I was looking for a quick way to see HTTP response codes of a bunch of urls. Naturally, I turned to the curl command, which I would usually use like this:This command would send a HEAD request (-I), follow through all redirects (-L), and display some useful information in the end. Most of the time it s ideal:Updated: September 16th, 2012 IntroductionIf your WordPress comment counts got messed up, whether because of a plugin (I m talking about you, DISQUS) or you messed with your database manually and did something wrong (yup, that s what I just did), fear not I have a solution for you.But first, a little background.Comment Counts In WordPressHere s how comment counts work in WP:Posts live in a table called wp_posts and each has an ID.Comments reside in a table called wp_comments, each referring to an ID in wp_posts.However, to make queries faster, the comment count is also cached in the wp_posts table, rather than getting calculated on every page load. If this count ever gets out of sync with Read the rest of this article Today I have 2 tips for Total Commander users:how to display hidden local directories and files andhow to display hidden FTP directories and filesReally, Total Commander should just control this setting in one place but, unfortunately, it is not the case.I usually prefer when my file manager shows me everything I have, so that I can be more in control and see the hidden directories, such as .svn or $Recycle.Bin, and files, such as .bashrc or pagefile.sys.How To Display Hidden Local Directories And Filesgo to Configuration - Options… - Displayput a check next to the Show hidden/system files (for experts only) How To Display Hidden FTP Directories And FilesThis one is a Read the rest of this article This tip can also be filed in the post with the longest title that kind of makes sense but needs more explanation category.If you use a VPN (Virtual Private Network), this tip is for you. The Problemyou connect to a VPN to get access to your work/whatever network your connection is fast but the VPN connection is balls slow you try to stream a bit of online radio, go to a website, watch a video, or do anything, which is automatically routed through the VPN connection but everything TAKES AGES because the VPN connection is the limiting factor so not only are you frustrated by hiccupping radio, stuttering video, and a never disappearing progress bar but you re Read the rest of this article Updated: July 26th, 2010 This is a quick recipe that I found pretty interesting and relatively unknown.Everyone who uses SVN knows that most repositories are set up to allow viewing of their contents via a web browser. For example, here s the trunk of WP Plugins SVN: http://plugins.svn.wordpress.org/ and here is the current trunk version of a specific file, let s say http://plugins.svn.wordpress.org/stats/trunk/readme.txt.The ProblemHowever, what if you wanted to view a specific revision of a file or directory in your browser?Let s say I wanted revision 100,000 of http://plugins.svn.wordpress.org/stats/trunk/readme.txtNormally, on a command line, you d do something likesvn co http://plugins.svn.wordpress.org/stats/trunk/readme.txt statscd stats;svn up -r100000 readme.txtor simply

TAGS:programming Russakovskiis Artem 

<<< Thank you for your visit >>>

Websites to related :
Strategy - the global strategy c

  A company's right to win in any market depends not just on external market positioning and not just on internal capabilities, but on a coherent strate

Home - Washington Academy

  pauseplayWelcome to Washington AcademyWe are an independent secondary school in East Machias, Maine. Since 1792, we have been equipping students for a

Forschung, Studium, Wissenstrans

  Präsenzveranstaltungen sind an der Universität Ulm bis auf Weiteres abgesagt. Gerne nehmen wir Ihre öffentlichen Online-Veranstaltungen in den Kale

International Institute for the

  International Institute for the Management of Logistics and Supply Chain IML Our main assets:EPFL: INTERNATIONALLY RENOWNED UNIVERSITY FOR TECHNOLOG

dost.gov.ph - Home

  The Small Enterprise Technology Upgrading Program (SETUP) is a nationwide strategy to encourage and assist SMEs to adopt technological innovations to

Home - IDSS

  Turn big data into even bigger results with this 7-week online course. Course begins Sept 28th. READ MORE A volunteer effort bringing together researc

Home - CBIT

  Helpline for Students During L... Student Helpline Numbers | Student Counselors | Remote Teaching and Learning | Covid Update Main Page AICTE-Covid19-

ARTORG Center for Biomedical Eng

  The ARTORG Center for Biomedical Engineering Research brings together the biomedical engineering and clinical departments of the University Bern to be

GIS Mapping Software, Location I

  Pioneering ArcGIS, powerful mapping and analytics software Empowering businesses to gain competitive advantage with location intelligence Hosting epic

National Institute of Technology

  VISITOR - HONOURABLE PRESIDENT OF INDIA Sri. RAM NATH KOVIND Chairperson

ads

Hot Websites