i have the gcc (Executables) i am trying to open them and pipe the output to text file it does what i want for "6" and after that it gets stuck @tripleee
can't understand the functionality of fork () ; wait () ; waitpid () in context to system can someone help me out and further educate me on exec () vs system() vs passthru ()?
Hey I am working with AJAX to display live CSV data on my webpage, Currently my AJAX script on button click. But I want it to show the data without refreshing or clicking the button in grid view but I am unable to figure it out.
Code in CV :- https://gist.githubusercontent.com/Coding-Karma/72af552c372810f40311a389274378ff/raw/293bdb02d5c3706f0a43c0d6c537d3df13f60a50/gistfile1.txt
import serial
import cv
loop = True
cap = cv.CreateCameraCapture(0)
ser = serial.Serial('/dev/ttyACM1', 9600)
while loop:
# Read image
temp = cv.QueryFrame(cap)
# Create another image to hold Black&White version of image
image = cv.CreateImage((temp.width, temp.height), cv.IPL_DEPTH_8U, 1)
# Convert original image to B/W - Only because calculations are apparently better
cv.CvtColor(temp, image, cv.CV_BGR2GRAY)
# Use Haar Classifier for face detection (Magic Black Box)
#include<iostream>
using namespace std;
int main ()
{
int arr[10];
int input,res=0;
cout<<"size of array\n";
cin>>input;
for(int j=0;j<input;j++)
{
cin>>arr[j];
}
int sizeofarray=0;
sizeofarray = sizeof(arr)/sizeof(arr[0]);
for (int i=0;i<sizeofarray;i++)
{
res = res ^ arr[i];
cout<<"number is \n"<<res;
}
//cout<<"number odd times\n"<<res;
return 0;
}
After reading on the web that i can't really determine which process runs before i.e child or parent I planned to disable the ASLR on my PC and run debugger to see if i can generate the pattern of execution, the observations I made are below with a GitGist to the GDB disas (full) along with the s...
0 down vote favorite To generate the Huffman code for given set of frequencies. {1, 1, 2, 3, 4, 8, 12, 21}
According to my understanding we generate the huffmann code for a given problem according to the frequency (times a symbol occurs) and thus calculating the freqency so the table for the above set would be this :-
Honestly, I can either learn Web Development or Kernel what would you advice? I really want something which is fun to learn (My subject being CSE with cyber security and digital forensics)
Actually my faculty advised me to start with Kernel Programming as it's really rewarding for "Placements" and REALLY A LOT to learn in it, I want to ask about the future scope and market that's around it
mov eax, dword gs:[0x14] can someone explain me what this command is means to do i understand operation <destination> <source> it's moving dword gs to eax however i am unsure about gs:[0x14] and what's it meant to do ?