Skip to content

Instantly share code, notes, and snippets.

@Foadsf
Foadsf / Answer.md
Created July 18, 2019 06:59
Installing DOS Navigator ( dn ) on FreeDOS
  1. Ok first of all if you have issues installing FreeDOS on VirtualBox and you get weird infinite loop Invalid Opcode errors, [here][1] I wrote a small instruction how the installation should be done.

  2. Now when you have FreeDOS booted, from [here][2] you need to install the networking software and reboot.

  3. then you can run fdnpkg update to update the installed packages

  4. but you don't need to install dn as it comes with the FreeDOS iso file. all you need to do is:

  5. run FDIMPLES package manager

  6. go to Utilities

  7. find DN2 and select it

  8. reboot

@Foadsf
Foadsf / example.py
Last active April 17, 2019 22:28
example for this question
#%%
import os
os.chdir(os.getcwd())
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
@Foadsf
Foadsf / main.c
Created April 15, 2019 08:54
regarding this question for array append function in C using dynamic memory allocation
#include <stdio.h>
#include <stdlib.h>
typedef struct intlist_ {
int size;
int* list;
} intlist;
void append(intlist* arr, int value){
const int buttonPin = 2;
const int ledPin = 7;
int buttonState = 0;
int lastButtonState = buttonState;
bool flag = true;
bool flag_ = flag;
volatile byte state = LOW;
volatile byte state_ = state;
@Foadsf
Foadsf / findCirc.c
Created April 6, 2019 21:25
find circle from to points and radius
#include <stdio.h> // NULL,
#include <math.h>
typedef struct Point {
float x;
float y;
} point;
typedef struct Circle {
point c;
@Foadsf
Foadsf / test.md
Last active March 28, 2019 22:42
<style type="text/css"> .tg {border-collapse:collapse;border-spacing:0;} .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;} .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;} .tg .tg-cmwg{background-color:#ffccc9;text-align:center;vertical-align:top} .tg .tg-baqh{text-align:center;vertical-align:top} .tg .tg-uys7{border-color:inherit;text-align:center} </style>

check the html block diagram

@Foadsf
Foadsf / uititle.sci
Last active March 27, 2019 22:13
The famous uititle from Enrico Segre (emeritus Scilab contributor) reborn
function t = uititle(h, text, relpos)
pos = h.Position;
select relpos
case "r"
pos(3) = 2 * pos(3);
lay_opt = createLayoutOptions("grid", [1,2]);
case "t"
pos(4) = 2 * pos(4);
lay_opt = createLayoutOptions("grid", [2,1]);
case "l"
@Foadsf
Foadsf / coomend.md
Last active March 25, 2019 08:48
updating the positon of an image in a scilab figure when resizing the figure -->http://bugzilla.scilab.org/show_bug.cgi?id=16016

OK, I'm going to write here because Scilab bugzilla is awfull. I wrote comments twice and it just shows the first couple of lines of my text!!!!

http://bugzilla.scilab.org/show_bug.cgi?id=16016

I wish Scilab decision makers would just move the entire codebase to modern platforms Github or GitLab. This is not good at all. so much headach for users and contributors.

about the bug, I don't think moving the resizefcnfunction solves the problem. The ex002.sce proves that. There are 3 issues

  1. The resizefcn shouldn't be triggered upon creating the figure. this is a bad behaviour in my opinion.
  2. the findobj function should at least drop a warning when not finding an object.

This is the asciidoc text

used for documentation

Click to see the source code