Skip to content

Instantly share code, notes, and snippets.

View OhYash's full-sized avatar
🏠
Working from home

Yash Yadav OhYash

🏠
Working from home
View GitHub Profile
[thread ffffffff][I][0]: Log system initialised
[thread ffffffff][I][0]: Default allowed number of simultaneously open files in the system is 2448.
[thread ffffffff][I][0]: Current memlock limit is 65536.
[thread ffffffff][I][0]: setrlimit(RLIMIT_MEMLOCK) failed, (1) Operation not permitted
[thread ffffffff][I][2]: setup_teb_register() - using LDT entry 13
[thread 00000001][I][99]: Forcing OpenGL Core context usage
[thread 00000001][I][111]: OpenGL Core context version 4.1 detected
[thread 00000001][I][206]: OpenGL information:
[thread 00000001][I][206]: renderer: Gallium 0.4 on AMD SUMO2 (DRM 2.49.0 / 4.10.0-19-generic, LLVM 4.0.0)
[thread 00000001][I][206]: vendor: X.Org
@OhYash
OhYash / droid-configs.log
Created May 13, 2017 11:49
MER build error
* Building rpm/droid-config-lettuce.spec
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: License field must be present in package: (main package)
error: query of specfile /home/yash/Downloads/lettuce/mer/android/hadk/hybris/droid-configs/rpm/droid-config-lettuce.spec failed, can't parse
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
@OhYash
OhYash / droid-hal-lettuce.spec
Created May 13, 2017 12:08
$ANDROID_ROOT/rpm/droid-hal-lettuce.spec contents
%define device lettuce
%define vendor yu
%define vendor_pretty YU
%define device_pretty Yuphoria
%define installable_zip 1
%include rpm/dhd/droid-hal-device.inc
@OhYash
OhYash / qtscenegraph-adaptation.log
Created May 15, 2017 20:23
error with qtscenegraph-adaption.log
Build qtscenegraph-adaptation? [Y/n/all]y
* pulling updates...
* Building rpm/qtscenegraph-adaptation-droid.spec
Already up-to-date.
Fatal: 'rpm/qtscenegraph-adaptation-droid.spec' doesn't exist (and could not be made from a yaml)
* Check /home/yash/Downloads/lettuce/mer/android/hadk/hybris/mw/qtscenegraph-adaptation.log for full log.
!! building of package failed
@OhYash
OhYash / EConnMan.log
Last active August 9, 2017 16:14
Errors in efl apps
Error Information:
An exit code of 1 was returned from econnman-bin.
Output Data:
There was no output
Error Logs:
There was no error message
@OhYash
OhYash / Description
Created August 4, 2017 07:10
Error with file reading
-> No compilation errors
So when I run it, this block inside the else of etodo.c program crates the error.
i.e. If I remove this while block, the program runs.
while(!feof(fp))
{
fgets(reader, 51, fp);
elm_list_item_append(list, reader, NULL, NULL, NULL, NULL);
}
@OhYash
OhYash / bresenhamline.c
Created September 7, 2017 05:20
Bresenham n midpoint line
#include<GL/glut.h>
void drawline(int x0, int y0, int x1, int y1)
{
double dx = (double)(x1-x0);
double dy = (double)y1-y0;
double p = 2*dy - dx;
int k = (int)dx;
int x = x0, y = y0;
glBegin(GL_POINTS);
@OhYash
OhYash / midpointellipse.c
Created September 14, 2017 05:13
ellipse and transformations
#include<GL/glut.h>
void drawellipse(int x0, int y0, int rx, int ry)
{
double p1 = (double)(ry*ry - rx*rx*ry + rx*rx/4);
int x = 0;
int y = ry;
glBegin(GL_POINTS);
while(ry*ry*x < rx*rx*y)
{
@OhYash
OhYash / bounce.c
Last active October 12, 2017 04:52
Predefined items rotation, windmill and bouncing ball
#include<GL/GLUT.h>
float ty=-1, flag=0;
void draw()
{
glClear(GL_COLOR_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
@OhYash
OhYash / sutherland.c
Created October 26, 2017 05:30
Sutherland ine clipping
#include<GL/glut.h>
#include<stdio.h>
int x0, x1, y0, y1;
void inplinexoordinates()
{
printf("Enter Line end coordinates (x0, y0, x1, y1) : ");
scanf("%d %d %d %d", &x0, &y0, &x1, &y1);
}