I was reading the implementation of Linux semaphores. Due to atomicity, signal and wait (up and down in the source code) use spin locks. Then I saw Linux disabled interrupt in spin_lock_irqsave and reenabled interrupt in spin_unlock. This confused me. In my opinion, there is really no point disabling interrup…
Chromedriver works manually but fails when ran from Jenkins Slave
I have a Jenkins slave node setup with LinuxMint. So we can do some browser testing on a Linux box in Chrome and Firefox. I have the latest Chromedriver installed where the test can run it and when I go into /var/jenkins/workspace/<project name>/TestAutomation/SeleniumFramework manually and do my run np…
Specify source line from csv when calling up/creating an array
I have a csv with data such as: I’ve written some code to turn each field into a variable, and also to create an array out of each word in field 2 (f2): My problem is now, because the file contains multiple lines I need some way of naming each array according to the line of data it was created
USB accessories test error in CTS Verifier.. Version 6.0_R6
I am trying to run USB accessories test case in CTS Verifier using version 6.0R6 and it fails with as the sent and received message for Host PC and DUT dose not match. and error shown as “USB_Device_open Failed” , “Failed to start accessories mode” and “Failed to read protocol ve…
Child forms groups on taskbar
I got an application, which has a main window, and then it open new forms. Whole application is like a document reader with many types of sub-forms. For example, I have Main window opened, 3 documet detail forms and 4 editors of other content. Now. As all sub-forms are childrens of the main form, they are all…
All bash commands lost after sourcing bash_profile after osx upgrade
I recently upgraded my osx to os x el capitan. I noticed that subl command was missing so I tried adding the path to my bash_profile. It didn’t work out so I removed it and then do a source ~/.bash_profile and now all of my bash commands are gone. Here is my bash_profile file and when I do export $PATH
Linux DMA: Using the DMAengine for scatter-gather transactions
I try to use the DMAengine API from a custom kernel driver to perform a scatter-gather operation. I have a contiguous memory region as source and I want to copy its data in several distributed buffers through a scatterlist structure. The DMA controller is the PL330 one that supports the DMAengine API (see PL3…
Deezer native API under linux: Unanble to create simple app
I tried to create simple app which will connect to deezer and play single song. I got access token and wrote this program. Target machine: linux x86_64 API version: v1.0.1 Suddenly i ran into problems. First run shows me this output: 398748:201417 dz_bufferevent: [dz_bufferevent_on_activation:561] could not o…
Unable to deploy Shiny application on Shiny Server in Linux VM
I have been trying to deploy my shiny application in shiny server which i have installed on Linux VM (RHEL 6.5, 64 bit) by following the instructions given in this site The server is started successfully but i get the following when i try to access the sample application provided as a part of the shiny server…
Which segments are affected by a copy-on-write?
My understanding of copy-on-write is that “Everyone has a single, shared copy of the same data until it’s written, and then a copy is made”. Is a shared copy of the same data comprised of a heap and bss segment or only heap? Which memory segments will be shared, and is this dependent on the …