Quantcast
Channel: BlogoSfera » OS
Browsing all 176 articles
Browse latest View live

How to take text input with DialogFragment in Android?

I am trying to get a value that user enters into a Dialog, using the recommended DialogFragment class for it, the Dialog constructs and runs fine, but I cannot return the value of the EditText...

View Article



Create a daemon with python

I’m new to python and i want to write a daemon to act as an interface between a web-GUI (control panel) and some sort of Linux services and os. Security and performance are very important in my...

View Article

Create a daemon with python

I’m new to python and i want to write a daemon to act as an interface between a web-GUI (control panel) and some sort of Linux services and os. Security and performance are very important in my...

View Article

Detecting a button press while typing in Android

I want to detect a button is pressed or not in an edittext in Android. For example, i is pressed, i will do something. Here is my code. What is wrong with it? Nothing is at Logcat. package...

View Article

Appdata in Non-Windows

To access the Appdata folder in Windows, I can just use %APPDATA% in the path name and that’s it. Does this method work on Linux and other OS as well? I know there alternatives to using %APPDATA%, but...

View Article


How to target both windows phone 8 and 7.5

My app is ready and is too simple, just a panorama and some pivots, nothing specific to windows phone 8. Before sending it I want to make sure that it will work on WP8 and also WP OS 7.1. I saw in the...

View Article

Parameter evaluation order before a variadic function call in Objective C

I know that the evaluation order of arguments to a function is unspecified (e.g. see here). According to this SO question, there seems to be a workaround to overcome this, which however doesn’t seem to...

View Article

Apple Command Line Tool: Force Universal Binary with a Single Arch?

I’m porting a C/C++ library using the library’s makefile. The library includes a test suite and I’m having some trouble getting the EXE to work as expected when only using a single architecture. Below...

View Article


Python Real Time Plotting Memory Leak

I have some simple python code that produces a real-time monitor for looking at data that comes in every second. It uses matplotlib and works quite well, except that there is a memory leak. The memory...

View Article


Setting a String Tag for a fragment

What is wrong with this code snippet …. my app crashes here frag.settext("Default Messaage"); // dEBUGGER SAYS THE PROBLEM IS HERE IT THROWS NPE Code Snippet public void question_displayer(View v){...

View Article

Call non static method of the Main class from AsyncTask class

I need to call a non static method from AsyncTask I have used: Main.mymethod(); But it says: Cannot make a static reference to the non-static method mymethod() from the type Main How to fix that?...

View Article

How to develop GTK+ programs on windows?

There isn’t a windows binary release, so when it says that they are cross-OS, they mean you can write source to compile on windows, but you have to develop in linux/osx? But then what if you want to...

View Article

Ubuntu/Mac Ad Hoc Network

I’m trying to set up an ad hoc network between an ARTiGO a1000 system (running ubuntu 11.10) and my computer (running mac os x), and I can’t seem to get the connection working. I’ve tried setting up...

View Article


Retrieve PerformanceCounterCategories in another language

When I display a list of all PerformanceCounterCategories, I receive a list in Dutch since that’s my OS’s language. Is it possible to retrieve the English list? private static void Main(string[] args)...

View Article

AttributeError: ‘module’ object has no attribute ‘GearmanClient’

I’m trying to use the Gearman Python library, but keep running into this error: AttributeError: ‘module’ object has no attribute ‘GearmanClient’ My code: import gearman client =...

View Article


How to limit frame rate to 30fps in OS X with Cocos2D

I’m porting an iOS game of mine over to OS X, using Cocos2D 1.0.1 (results are the same in Cocos2D 2.0), and I’m having trouble limiting the frame rate to 30fps. Calling setAnimationInterval limits the...

View Article

Java programming in Android

Here is my java code for the Playing part of Hangman. I have used Eclipse IDE. The problem is that, when i Click the Go Button (see OnClickListener), my app crashes. Please help me out. My code is...

View Article


Objective C read file wrong encoding

Hi all I have a problem when I download file from internet from which I need to mine some data. I open it and try to buffer it, but it gives me wrong chars because this file is in Czech… My code: -...

View Article

iOS UIAutomation – Unable to record script

I am facing a strange problem. I am unable to record any script while running Instrument for UI Automation. Based on this article...

View Article

How TCP socket writeByte/readByte or other equivalent works in Java?

byte[] message = ... Socket socket = ... DataOutputStream dOut = new DataOutputStream(socket.getOutputStream()); dOut.write(message); //#1 ... //other code Let us assume that the machine 1 (with the...

View Article
Browsing all 176 articles
Browse latest View live




Latest Images