Search Results

Search: Posts Made By: hakermania
Forum: Programming 08-27-2013
3,214
Posted By hakermania
So if it doesn't determine whether my function is...
So if it doesn't determine whether my function is sync-safe or not, the function should run without many problems most of the time (as you see, the file is accessed nowhere inside the program, a...
Forum: Programming 08-27-2013
3,214
Posted By hakermania
So you claim that if I make a sync-safe function...
So you claim that if I make a sync-safe function using the above sync-safe functions, then the handler will be executed? And if this is true then how does the system determine:

a) Where in the...
Forum: Programming 08-27-2013
3,214
Posted By hakermania
I just downloaded the source code of...
I just downloaded the source code of ettercap-graphical (a well know application) and it doesn't use async-safe functions in the code (fprintf is being used, user interface is being normally shut...
Forum: Programming 08-27-2013
3,214
Posted By hakermania
Thanks a lot for your answer. I cannot understand...
Thanks a lot for your answer. I cannot understand anything from the phrase
"POSIX.1-2004 (also known as POSIX.1-2001 Technical Corrigendum 2) requires an implementation to guarantee that the...
Forum: Programming 08-27-2013
3,214
Posted By hakermania
Problem on capturing system Shutdown
I am having exactly the same problem with https://www.unix.com/programming/129264-application-cleanup-during-linux-shutdown.html but the thread is old and closed. The only difference is that I use...
1,152
Posted By hakermania
And, of course, there is pidof process
And, of course, there is pidof process
1,360
Posted By hakermania
What is the correct way to process files
Is there a general way I can use so as to process paths/files from your terminal without the need to backslash things?

Till recently I used to use

touch "file_here"
but it does not work if...
849
Posted By hakermania
It works just fine :) Thanks!
It works just fine :)

Thanks!
849
Posted By hakermania
Replace all \ in file with /
As the title says I want to replace all the '\' found in a file with '/'. I have tried with sed but with no luck so far!:mad:
Forum: Programming 07-03-2012
3,385
Posted By hakermania
No! I have found a solution, though: GTK app:...
No!
I have found a solution, though: GTK app: How do I create a working indicator with Qt/C++? - Stack Overflow...
Forum: Programming 07-01-2012
3,385
Posted By hakermania
Anyone :D:D:D:D:DD:D:D:D ?
Anyone :D:D:D:D:DD:D:D:D ?
Forum: Programming 06-29-2012
3,385
Posted By hakermania
Here you are: void show_app(MainWindow...
Here you are:

void show_app(MainWindow *data)
{
qDebug() << "1";
data->show();
qDebug() << "2";
}


void MainWindow::make_indicator()
{
if(appindicator){
...
Forum: Programming 06-28-2012
3,385
Posted By hakermania
Thanks again. The warning's gone but the crush is...
Thanks again. The warning's gone but the crush is still there...
Forum: Programming 06-28-2012
3,385
Posted By hakermania
Thanks for this! Still, it doesn't work! This...
Thanks for this! Still, it doesn't work!
This is my code:

void MainWindow::show_app(MainWindow *data){
data->show();
app_indicator_set_status(appindicator,...
Forum: Programming 06-28-2012
3,385
Posted By hakermania
Ok, here it is: void...
Ok, here it is:


void MainWindow::show_app(){
//crash here:
this->show();
//this works fine:
app_indicator_set_status(appindicator, APP_INDICATOR_STATUS_PASSIVE);

}

void...
Forum: Programming 06-28-2012
3,385
Posted By hakermania
Combining Qt with GTK only one problem!
I am using this code:
g_signal_connect(showapp_option, "activate", G_CALLBACK(&MainWindow::show_app), appindicator);
so as to connect my indicator menu item to the function show_app(), and it works...
5,078
Posted By hakermania
Yes, this is what I want :) Thanks a lot for...
Yes, this is what I want :)
Thanks a lot for this!!!!
5,078
Posted By hakermania
Echo to file using SH without adding newline character
Hello!

I am able to do this in bash, using:

echo -ne HELLO > file.txt

and then, 'HELLO' is written into file.txt without the newline character to be added in the end of the file.

How is...
2,938
Posted By hakermania
Thanks, nice solution, it works as expected. The...
Thanks, nice solution, it works as expected. The problem is that this grepping is part of a large script file, so, is there anything I can do so as to detect if the term I want to search contains not...
2,938
Posted By hakermania
Grep a file that may contain strange characters
Hello unix users :)

I am trying to grep a string from a file that both the file and the string may have characters in them that are quite... strange, like würzburger.

Well, bash reads this as...
1,439
Posted By hakermania
Works like a charm :) Thank you :D ...
Works like a charm :) Thank you :D

---------- Post updated at 05:42 PM ---------- Previous update was at 01:35 PM ----------

Oh, and as it has to do with the same thing, can you help me with...
1,439
Posted By hakermania
Read html and get specific value
Hello guys :D

I have a specific small html file which looks like this:

<td><a href="/wiki/File:ABC_red_le_route.jpg" class="image" title="Chicago 'L' 2600 series train"><img alt="Chicago 'L'...
1,883
Posted By hakermania
Last reply-best reply
Last reply-best reply
1,883
Posted By hakermania
Spliting bash string into parts
Hello, let's say I have this string:
string1="A\nB\nC D E\nFG\nH";
How can I split it so as to take every string separated with '\n' separately?
For example, as for $string1, it would be split...
Forum: Programming 06-13-2011
2,005
Posted By hakermania
libnotify (g_signal_connect() 3rd argument help) c++
Hello, this is my code:

#include <glib.h>
#include <unistd.h>
#include <libnotify/notify.h>

void push_notification (gchar* title,
gchar* body,
gchar*...
Showing results 1 to 25 of 166

 
All times are GMT -4. The time now is 12:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy