Tuesday, December 16, 2014
Thursday, December 11, 2014
your current network has a .local domain which is not recommended and incompatible with the avahi
http://askubuntu.com/questions/339702/network-service-discovery-disabled-what-does-this-mean-for-me
It looks like avahi-daemon is started when the network connection is established (
The most well known use for mDNS is sharing music with Rhythmbox (or iTunes) over your LAN. It's an Apple technology, but it's largely been ignored in favour of uPNP or DLNA.
To disable it, you must edit the file
It looks like avahi-daemon is started when the network connection is established (
/etc/network/if-up.d/avahi-daemon
).
This
notification is informing you that mDNS (Avahi) has been disabled. It's
only used for a small number of applications that only work on the
local network, it won't adversely affect your internet connection or
DNS.The most well known use for mDNS is sharing music with Rhythmbox (or iTunes) over your LAN. It's an Apple technology, but it's largely been ignored in favour of uPNP or DLNA.
To disable it, you must edit the file
/etc/default/avahi-daemon
as root:sudo -i
gedit /etc/default/avahi-daemon
and add this line (or change it if already exists to):AVAHI_DAEMON_DETECT_LOCAL=0
Source: http://ubuntuforums.org/showthread.php?t=1632952
Friday, December 5, 2014
How to resolve issues during the install of Skype 4.3.0 .37 on Linux Ubuntu 14.04
I could successfully resolve issues during the installing of Skype 4.3.0.37 on Linux Ubuntu 14.04 by these two commands:
sudo apt-get upgrade --fix-missing
sudo apt-get -f install
Check this link about this solution.
sudo apt-get upgrade --fix-missing
sudo apt-get -f install
Check this link about this solution.
Saturday, November 29, 2014
Friday, November 28, 2014
Friday, October 24, 2014
Collect data for the next job interview
Write down what you worked on, what your role was, what the challenges were, things that went wrong, successes that you had. These are all questions that are asked in interviews and you will be glad that you got a jump on crafting these stories and are able to recall critical details.
Taken from here https://www.linkedin.com/pulse/article/20141017142526-5336185-even-if-you-re-employed-7-steps-to-take-now?midToken=AQEENZ3q5Ct1zQ&trk=eml-b2_content_ecosystem_digest-recommended_articles-179-null&fromEmail=fromEmail&ut=30VXzahYK5Ems1
Taken from here https://www.linkedin.com/pulse/article/20141017142526-5336185-even-if-you-re-employed-7-steps-to-take-now?midToken=AQEENZ3q5Ct1zQ&trk=eml-b2_content_ecosystem_digest-recommended_articles-179-null&fromEmail=fromEmail&ut=30VXzahYK5Ems1
Monday, September 8, 2014
Thursday, September 4, 2014
Tuesday, August 26, 2014
Monday, August 25, 2014
Friday, July 25, 2014
Thursday, July 3, 2014
Wednesday, April 23, 2014
Wednesday, April 16, 2014
Tuesday, April 8, 2014
Tuesday, March 25, 2014
GXT how to implement window with proper layout for content
Window is ContentPanel
setLayout( new FitLayout )
add( LayoutContainer )
VBoxLayout layout = new VBoxLayout();
layout.setPadding(new Padding(5));
layout.setVBoxLayoutAlign(VBoxLayout.VBoxLayoutAlign.LEFT);
layout.setPack(BoxLayout.BoxLayoutPack.START);
(LayoutContainer).setLayout(layout);
add( button )
add( safeHtmlText )
window.layout();
setLayout( new FitLayout )
add( LayoutContainer )
VBoxLayout layout = new VBoxLayout();
layout.setPadding(new Padding(5));
layout.setVBoxLayoutAlign(VBoxLayout.VBoxLayoutAlign.LEFT);
layout.setPack(BoxLayout.BoxLayoutPack.START);
(LayoutContainer).setLayout(layout);
add( button )
add( safeHtmlText )
window.layout();
Saturday, March 22, 2014
Saturday, March 15, 2014
Tuesday, March 4, 2014
How to hide action bar before activity is created (link)
I had to solve somehow the issue when default actionbar is shown right before I've to inflate the custom view for it. I've found this link with good explanation how to fix it.
Saturday, February 22, 2014
Friday, February 21, 2014
Thursday, February 20, 2014
Wednesday, February 19, 2014
Android - How to apply color filter over ImageView component (link)
http://stackoverflow.com/questions/8193447/i-want-to-add-a-color-filter-to-the-imageview
If you want to use your predefined colours get them this way e.g. :
v.setColorFilter(getResources().getColor(R.color.green), PorterDuff.Mode.SRC_ATOP);
Thursday, February 13, 2014
Tuesday, February 11, 2014
Android - How to force use of overflow menu on devices with menu button
http://stackoverflow.com/questions/9286822/how-to-force-use-of-overflow-menu-on-devices-with-menu-button
try {
ViewConfiguration config = ViewConfiguration.get(this);
Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey");
if(menuKeyField != null) {
menuKeyField.setAccessible(true);
menuKeyField.setBoolean(config, false);
}
} catch (Exception ex) {
// Ignore
}
Java primitives types size chart
Below in the chart the size (in bytes) of primitive type goes next to its name.
1 byte
2 short
4 int
8 long
8 double
4 float
2 char
1 boolean
The way to highlite grid's selected rows in GXT v2
public void colorLockedGridRows() {
Grid grid = gridView.getGrid();
ListStore<BeanModel> store = grid.getStore();
for (BeanModel model : store.getModels()) {
SecurityGroupVO bean = model.getBean();
if ( bean.isLocked() ) {
Element row = grid.getView().getRow(model);
row.addClassName("locked-row-background-color");
}
}
}
Grid grid = gridView.getGrid();
ListStore<BeanModel> store = grid.getStore();
for (BeanModel model : store.getModels()) {
SecurityGroupVO bean = model.getBean();
if ( bean.isLocked() ) {
Element row = grid.getView().getRow(model);
row.addClassName("locked-row-background-color");
}
}
}
Wednesday, February 5, 2014
Saturday, February 1, 2014
LINUX UBUNTU 12.04 64-bit and Android SDK 32-bit issue - gradle: Cannot run program sdk build-tools android-4.4 aapt No such file or directory
If you got this kind of error during the building of Android app: Execution failed for task mergeDebugResources Cannot run program sdk build-tools android-4.4 aapt No such file or directory -- this happen because you run Android SDK 32-bit on Linux Ubuntu 12.04 64-bit.
You can fix it easily by installing this libraries:
http://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdk
http://stackoverflow.com/questions/18928164/android-studio-cannot-find-aapt
You can fix it easily by installing this libraries:
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1
More about this issue here:http://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdk
http://stackoverflow.com/questions/18928164/android-studio-cannot-find-aapt
Friday, January 31, 2014
UBUNTU 12.04 BROADBAND WiFi firmware issues
THIS POST IS WORTH TO BE WRITTEN IN CAPITALS
If you've installed Ubuntu 12.04 or etc and your WiFi does not work install b43 driver!!!
FOLLOW THE INSTRUCTIONS OF THIS LINK:
http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o
and
http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2
tar -xjvf broadcom-wl-4.150.10.5.tar.bz2
sudo b43-fwcutter -w /lib/firmware wl_apsta-3.130.20.0.o
sudo b43-fwcutter --unsupported -w /lib/firmware broadcom-wl-4.150.10.5/driver/wl_apsta_mimo.o
sudo chmod 775 /lib/firmware/b43
sudo chmod 775 /lib/firmware/b43
sudo chmod 775 /lib/firmware/b43legacy
REBOOT THE PC AND CHECK WiFi connection.
How to write right an *.iso file on Mac
In short: Do it through DiskUtility app on your Mac!!!
https://help.ubuntu.com/community/BurningIsoHowto
https://help.ubuntu.com/community/BurningIsoHowto
Thursday, January 30, 2014
The Science Behind Why Small Teams Work More Productively: Jeff Bezos’ 2 Pizza Rule
http://blog.bufferapp.com/small-teams-why-startups-often-win-against-google-and-facebook-the-science-behind-why-smaller-teams-get-more-done?fb_action_ids=633422390027265&fb_action_types=readabilityapp%3Abookmark&fb_source=other_multiline&action_object_map=[397861940320260]&action_type_map=[%22readabilityapp%3Abookmark%22]&action_ref_map=[]
Monday, January 13, 2014
Get the view size and position on ViewTreeObserver
If you have to get view's position coordinates, size and etc do it using ViewTreeObserver class.
Read this article:
http://stackoverflow.com/questions/7733813/how-can-you-tell-when-a-layout-has-been-drawn
Read this article:
http://stackoverflow.com/questions/7733813/how-can-you-tell-when-a-layout-has-been-drawn
How to update your Android apps
In one sentance:
Open on your mobile Play Store app, find out the app you want to update among the installed apps and run update process.
Read more about it here:
http://www.pcadvisor.co.uk/how-to/google-android/3435989/how-update-android-apps/
Open on your mobile Play Store app, find out the app you want to update among the installed apps and run update process.
Read more about it here:
http://www.pcadvisor.co.uk/how-to/google-android/3435989/how-update-android-apps/
Saturday, January 11, 2014
Getting View's coordinates relative to the root layout
If you get only ZERO's by view.getLeft()... try to use
view.getLocationOnScreen() and/or getLocationInWindow().
Here is the link of this issue:
http://stackoverflow.com/questions/2224844/how-to-get-the-absolute-coordinates-of-a-view
view.getLocationOnScreen() and/or getLocationInWindow().
Here is the link of this issue:
http://stackoverflow.com/questions/2224844/how-to-get-the-absolute-coordinates-of-a-view
Subscribe to:
Posts (Atom)