in the code below at first if statements block (there will be more than just "worker" condition, joined with else if) i select proper filter_object. After this in the same conditional block i select what filter should be applied by filter object. This code is silly.
public class Filter
{
public static List<data.Issue> fetch(string type,…
I've been a full time programmer for about 8 years now. Web based mostly, ranging in weird jobs for clients. Never anything I "want" to do. So my experience is limited to what I've been contracted to do, having no real incentive to master anything in particular.
So here's my scenario and ultimately what I wonder about...
I've been building an…
First of all, let's get one thing straight: keyword research is the hands down the absolute base for any marketing or search engine optimization campaign. You can't get absolutely anything done without doing proper keyword research first. The simple reason behind this fact is that you will be needing the results provided by keyword services for…
I have used the android:onClick attribute extensively in my XML layouts for my Android application.
Example:
<Button
android:id="@+id/exampleButton"
android:onClick="onButtonClick" />
Is it proper to create an Interface to enforce the implementation of those onClick methods in Activities that use that layout file?
public…
What do I mean when I talk about building a website "the proper way"? I'm not going to talk about any one technology in any depth, but what I am going to talk about is how to understand what you require from a website in order to help you make website creation decisions. Understanding what your requirements will be as time goes by is…
As you add content on your site, optimization search engine techniques require the use of popular keywords. It is the proper use of common keyword phrases that result in high link popularity.
We all know that the SEO is the process to increase the volume of web traffic to a website. But do we all know how the process actually works? To answer this it is essential to have a proper study on the working procedure of the SE and the process followed by the websites to gain more potential visitors through the search engines.
Today's interconnected world, he who holds the power of information technology, rules the world. For your business, though old school marketing techniques may still prove viable, it is important to learn the value of Internet marketing as well. To learn SEO, means to get the proper SEO training as well.
One can autostart an application such that it launches on session start with an xdg desktop file in ~/.config/autostart (or /etc/xdg/autostart).
But my application (a python/gtk/webkit/html5 app) when autostarted has a unity (and a unity-2d) launcher icon that is a gray question mark, even though:
when I find it in dash, the dash…
I'm implementing a basic 3d rendering engine in software (for education purposes, please don't mention to use an API). When I project a triangle from 3d to 2d coordinates, I draw the triangle. However, it's in a random order and so whatever gets drawn last draws on top of all other triangles (which might be in front of triangles it…
A project I am working on has a bunch of legacy tests that were not properly mocked out. Because of this the only dependency it has is EasyMock, which doesn't support statics, constructors with arguments, etc. The tests instead rely on database connections and such to "run" the tests. Adding powermock to handle these cases is being…
I am a little confused on the proper fstab entry for a samba share in Ubuntu 12.04
I can get the drive to mount manually by using:
sudo mount -t cifs //192.168.2.2/raid_drive /mnt/homeserver -o username=jon,password=password
So I tried putting this in fstab:
//192.168.2.2/raid_drive /mnt/homeserver cifs…
I am tired of hearing people recommend that you should use only one thread per process, while many programs use up to 100 per process!
take for example some common programs
vb.net ide uses about 25 thread when not debugging
System uses about 100
chrome uses about 19
Avira uses more than about 50
Any time I…
I'm attempting to understand how "switch as a code smell" applies when the proper code path is determined by some observable piece of data.
My Webapp object sets an internal "host" object based on the hostname of the current request. Each Host subclass corresponds to one possible hostname and application…
What's a proper way of building a Winform app that has multiple 'screens'? For example, I'm trying to write a small backup program (mainly for giggles), and I've been dumping controls and containers onto the form.
I'm using panels and group boxes to separate out the different screens (eg: I'm using a…
So my site has a blog and gallery, both working the same way. There's an index, and each post has a permalink going to the individual entry. However, if I search for some of the content on Google, often it returns a link to the index, just because it happened to have been on the first page when it was…
I installed the 12.04 LTS but cannot get my two monitors working.
The latest nvidia-current drivers installed, but i just cant set proper resolution.
My card is a geforce 520 1 DVI 1 VGA.
With the nvidia drivers installed i can set the DVI monitor to 1600x1200 but the VGA no further than 1360x768…
I’m working on some legacy code for a customer today and dealing with a page that has my favorite ‘friend’ on it: A GridView control. The ASP.NET GridView control (and also the older DataGrid control) creates some pretty messed up HTML. One of the more annoying things it does is to generate all…
I'm writing several JavaScript plugins that are run automatically when the proper HTML markup is detected on the page. For example, when a tabs class is detected, the tabs plugin is loaded dynamically and it automatically applies the tab functionality. Any customization options for the…
I'm using Fossil-SCM to maintain my projects. Since I don't work in a team I usually have just a very linear branch of development: 1.0 - 1.1 - 1.2
I'm wondering what the procedure is when you have one project who's task is about to be given to a related project. And thereby rendering…
Traditionally, my programs do their work in the background and when I do have to make an interface for some reason, they often do not need to be complex which means I can use a simple Windows Forms or console application.
But lets be honest-- Windows Forms? That is so ... ancient!
…
I am having the same problem as this guy where a fresh Ubuntu install completes beautifully but will not boot.
I get the ASUS (?) "Reboot and select proper boot device" error, first with Xubuntu 13.10 and after finally giving up there, and Xubuntu 13.4, I am back to regular Ubuntu…
At the Professional Developer’s Conference (PDC) in 2010 we announced an addition to the Computational Roles in Windows Azure, called the VM Role. This new feature allows a great deal of control over the applications you write, but some have confused it with our full infrastructure…