This was tested on:
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
Install the xvfb server by running
Nomes: Bruno F. Bohn, Cássio S. Ghilardi | |
1. DESCRIÇÃO DO PROBLEMA | |
Deverá ser implementado um sistema de cofre de senhas, que tem como objetivo armazenar senhas do usuário. O cofre de senhas é protegido por uma senha master, na qual somente com ela é possível realizar as operações de obter uma senha já cadastrada e registrar uma nova senha. | |
Nomes: Bruno F. Bohn, Cássio S. Ghilardi | |
1. DESCRIÇÃO DO PROBLEMA | |
O programa deverá ler caminhos de arquivos de um arquivo FIFO, e para cada arquivo deverá executar o comando `cat` para exibir o conteúdo na tela. Caso o arquivo esteja no format gzip, o programa deverá extrair o conteúdo utilizando o comando `gzip`. | |
2. REVISÃO CONCEITUAL | |
PIPE é um canal unidirecional de comunição entre processos. O PIPE é criado por um processo pai que utliza a chamada fork(). A chamada fork instancia um novo processo clone chamado de filho. E por fim, o PIPE é utlizado para a comunicação entre processo pai e filho. |
module GzipCat | |
class File | |
def initialize(file) | |
# puts "FILE => #{file}" | |
@filename = file | |
begin | |
@content = open(::File.expand_path(filename)).read | |
cat! | |
rescue Exception => e | |
# File not found and other errors are reported |
E/eglCodecCommon( 1880): glUtilsParamSize: unknow param 0x00000b44 | |
E/eglCodecCommon( 1880): glUtilsParamSize: unknow param 0x00000bd0 | |
E/eglCodecCommon( 1880): **** ERROR unknown type 0x0 (glSizeof,72) | |
E/eglCodecCommon( 1880): **** ERROR unknown type 0x0 (glSizeof,72) | |
E/eglCodecCommon( 1880): glUtilsParamSize: unknow param 0x00000b44 | |
E/eglCodecCommon( 1880): glUtilsParamSize: unknow param 0x00000bd0 | |
E/eglCodecCommon( 1880): **** ERROR unknown type 0x0 (glSizeof,72) | |
E/eglCodecCommon( 1880): **** ERROR unknown type 0x0 (glSizeof,72) | |
I/Choreographer( 1880): Skipped 52 frames! The application may be doing too much work on its main thread. | |
E/eglCodecCommon( 1880): glUtilsParamSize: unknow param 0x00000b44 |
#include <stdio.h> | |
int main(int argc, char* argv[]) { | |
int n, c, k, space = 1; | |
FILE *ptr_file; | |
char buf[1000]; | |
ptr_file =fopen(argv[1], "r"); | |
if (!ptr_file) |
#!/bin/bash | |
FILES_PATH=$1 | |
TESTS_PATH=$2 | |
CURRENT_RESULT="" | |
FAILED=0 | |
for PROBLEM in `ls $TESTS_PATH` | |
do | |
`gcc "$FILES_PATH/$PROBLEM.c" -o run 2> compiled` |
#include <stdio.h> | |
#include <mpi.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int main(int argc, char* argv[]){ | |
int rank, size, i, j, k, tag = 0; | |
MPI_Status status; | |
MPI_Init(&argc, &argv ); |
#include <stdio.h> | |
#include <mpi.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int main(int argc, char* argv[]){ | |
int rank, size, i, j, k, tag = 0; | |
MPI_Status status; | |
MPI_Init(&argc, &argv ); |
#include <stdio.h> | |
#include <mpi.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int main(int argc, char* argv[]){ | |
int rank, size, i, j, k, tag = 0; | |
MPI_Status status; | |
MPI_Init(&argc, &argv ); |