problem with awk print
Hi guys I want to print in awk line and character ' after the line, but awk put the character in the middle of the line. Here is my code : awk -v d="'" {print $0 d} i am using bash2 thanks for help ...
Hi guys I want to print in awk line and character ' after the line, but awk put the character in the middle of the line. Here is my code : awk -v d="'" {print $0 d} i am using bash2 thanks for help ...
I want to format my pendrive kingston 4 GB, but i can't. I used gparted in live cd(remove partition and create new) also program HP USB Disk Storage Formatting(error:failed to format the device) but this isn't helping me. When i want save data on the disk i see window: Disk write protected. What can i do more about this problem ? ...
Consider a MxN bitmap where the cells are 0 or 1. '1' means filled and '0' means empty. Find the number of 'holes' in the bitmap, where a hole is a contiguous region of empty cells. For example, this has two holes: 11111 10101 10101 11111 ... and this has only one: 11111 10001 10101 11111 What is the fastest wa...
Hi. I have a javascript that, when you finish to watch a video, it redirect you in another website. It runs good on IE and Firefox, but not run on Google Chrome and Apple Safari. Can anyone help me to find the problem? Many thanks. var currentState = "NONE"; var previousState = "NONE"; var player = null; function playerReady(thePlayer...
I have been working on a problem relating to UITableView and cellForRowAtIndexPath. I want to give the user the ability to have a very large number of rows much like a large list of email on iPhone. I discovered this problem when I began to create a class that would queue and dequeue groups of records from the database, as needed, in ...
My MediaRecorder is setup to record audio from the mic. This works ... except that the first .65 seconds is completely dead air - its as if the first .65 second the record button was pressed but the mic had not turned on yet. I need to determine if: Something is wrong with my code This is just a flaw in the way MediaRecorder works ...
Hi guys, maybe you would have an idea on how to solve the following problem. John decided to buy his son Johnny some mathematical toys. One of his most favorite toy is blocks of different colors. John has decided to buy blocks of C different colors. For each color he will buy googol (10^100) blocks. All blocks of same color are of sa...
I have a movieclip being used as a button. After a random amount of clicks the button stops working. In other words, the mouse will become a hand when hovering over the button but no clicks are registering to fire the function. I've even clicked it 40 times and it will work but then suddenly, bang!, it stops working. Heres the function t...
I have the following lines : for (int i=0;i<3;i++) System.out.print("\nA : "+i); // System.out.println(""); // for (int i=0;i<3;i++) System.out.println("B : "+i); The output is : A : 0 A : 1 A : 2A : 2 Why ? I expected this : A : 0 A : 1 A : 2 But if I uncomment the 2nd and 3rd lines [ together or one at a time ], it b...
Howdy, This is not a programming question; but I am at my wits end and was hoping people wouldn't mind me asking for help here, sorry if this is a problem! I just found the people on this website are generally so helpful and knowledgable that I was hoping that somebody would be able to help. I have a quite peculiar problem that I canno...
hi. i'm programming in qt and i have encountered a weird problem when i'm adding new slot i'm getting this error message :: error: collect2: ld returned 1 exit status this is the code: class Widget : public QWidget { Q_OBJECT public: explicit Widget(QWidget *parent = 0); void setVisible(bool visible); ~Widget(); ...