Search found 1572 matches

by badidea
Oct 07, 2019 21:38
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 143
Views: 6734

Re: TP-Link HS110

I get: {"emeter":{"get_vgain_igain":{"vgain":13264,"igain":17006,"err_code":0}}} Not sure what those numbers mean, but last time with the 100 W lightbulb, values looked ok. In North America, the most common combination is 120 V and a frequency of 60 ...
by badidea
Oct 07, 2019 21:17
Forum: Community Discussion
Topic: retro-basic
Replies: 8
Views: 710

Re: retro-basic

https://www.microsoft.com/en-us/p/qbasic/9ntmcqwn2sqm wrote:OS: Windows 10 version 15063.0 or higher, Xbox One

I hope that the Xbox One supports a keyboard. Writing code with a game-pad does not sound like fun :-)
by badidea
Oct 07, 2019 20:33
Forum: General
Topic: ASLR
Replies: 63
Views: 1610

Re: ASLR

GCC should have got their act together long before now! I am not an expert on this (first time I read about it), but it seems to be called PIE in GCC, see: https://www.theurbanpenguin.com/aslr-address-space-layout-randomization/ And according to Wikipedia, actually implemented on linux in 2003 and ...
by badidea
Oct 07, 2019 19:25
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 143
Views: 6734

Re: TP-Link HS110

Anyhow have a play with it and look forward to any improvements you may/will have. The project is getting a bit big to review in detail. One small annoyance with the latest script is that if I only press <enter>, the script also quits. Also the term "O/P" is unknown to me, although I assu...
by badidea
Oct 06, 2019 23:02
Forum: General
Topic: String Sort problem
Replies: 24
Views: 1268

Re: String Sort problem

Although the sorting out string question was already solved, I did give string parsing a try today. Data keys & values are not stored in a array. Just valueStr = getJsonValue(jsonStr, keyStr) . Not so compact code: ' Get value from a JSON string for a certain key ' "key" : &quo...
by badidea
Oct 05, 2019 23:04
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 143
Views: 6734

Re: TP-Link HS110

I lost track.
* The macscan is solved I understand?
* The JSON parser is working? Or still something better needed? I hope not, I decided that I dislike writing string parsing code.

I don't check the mail linked with PM often. I only use it for spam :-)
by badidea
Oct 05, 2019 21:42
Forum: General
Topic: String Sort problem
Replies: 24
Views: 1268

Re: String Sort problem

Yes, but I do not understand how to use the library. Posted a question there, just now.
by badidea
Oct 05, 2019 21:30
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 13272

Re: JSON library (0.20.2)

Hi, I am trying to find the value of a certain key in a JSON string, but I am not getting any where. The toString() function seems to work (although last key is repeated). Test code: #define fbJSON_debug #include once "fbJson.bas" dim as string item1Str = !"{\"system\":{\&qu...
by badidea
Oct 04, 2019 23:05
Forum: General
Topic: String Sort problem
Replies: 24
Views: 1268

Re: String Sort problem

Dinosaur wrote:Segmentation fault (core dumped)

Did you check with -exx as compile option?
by badidea
Oct 04, 2019 8:07
Forum: Linux
Topic: Missing lib(s) on Ubuntu install (resolved)
Replies: 2
Views: 849

Re: Missing lib(s) on Ubuntu install

Did you try:
sudo apt-get install libtinfo5

Else have a look that this discussion:
viewtopic.php?f=17&t=27889&p=264667&hilit=libtinfo#p264667
by badidea
Oct 03, 2019 23:17
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 143
Views: 6734

Re: TP-Link HS110

I was distracted by some other stuff, but hope to continue experiments with the HS110 this weekend.
by badidea
Oct 03, 2019 22:37
Forum: General
Topic: Sound file sample access (WAV or MP3)
Replies: 6
Views: 637

Re: Sound file sample access (WAV or MP3)

I would say: 2 steps. 1. Read the files (of different formats) into memory in to a standard format. This is what sound libraries do as the output device (the thing that produces actual sound waves) expects a certain format. Or several formats (mono/stereo, 8 bit/16-bit), but at least a relative simp...
by badidea
Oct 03, 2019 22:32
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 71
Views: 11794

Re: Audio library for FreeBasic - Features

I did some more testing on linux with a wave-file, seems to work fine. Wave file: https://nr100.home.xs4all.nl/badidea/345299_scrampunk_okay.wav [108 KB] Visualisation of the sample: #include "..\sfx\sfx.bi" #ifdef __FB_64BIT__ #inclib "fbsfx64" #else #inclib "fbsfx32" ...
by badidea
Oct 02, 2019 19:09
Forum: Linux
Topic: HowTo use PostgreSQL in FB
Replies: 7
Views: 572

Re: HowTo use PostgreSQL in FB

I see to following related files in FreeBASIC-1.07.0:

examples/database/postgresql_test.bas
include/freebasic/postgresql/postgres_ext.bi
include/freebasic/postgresql/libpq-fe.bi

If they are up-to-date, I do not know.
by badidea
Oct 02, 2019 18:56
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 17, 2019)
Replies: 593
Views: 90964

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated October 1, 2019)

So, do I need that many builds? Probably not but there is a reason why none of those builds end with '.0'. Being a collector probably had evolutionary advantages. That is likely the reason why so many people collect all kinds of weird stuff. But I doubt that collecting 'GNU Compiler Collections' in...

Go to advanced search