Cygwin probably hasn't changed much since early Windows XP and has to be really pessimistic about everything to implement a Unix'y API on top of Win32 from that era. It might be possible to improve the core code if you use newer APIs, but I'm just making uneducated guesses here.
|
|
# ? Apr 9, 2020 18:46 |
|
|
# ? Jun 5, 2024 07:33 |
|
Faith For Two posted:I'm not sure what you mean by this but the reason my cygwin performance is bothering me is because I have to use cygwin at work, not wsl. At this point you should probably just live with it and then switch to WSL2 when it's stable.
|
# ? Apr 9, 2020 18:48 |
|
Cygwin has been slow everytime I’ve used it since 2005.
|
# ? Apr 9, 2020 19:02 |
|
lifg posted:Cygwin has been slow everytime I’ve used it since 2005. very slow
|
# ? Apr 9, 2020 19:20 |
|
Dominoes posted:Any microcontroller would do it, Arduino included. C is the standard language for this type of thing. I've been learning on an STM32Discovery, which includes the chip, a bunch of pins, and built-in LEDs to practice with. Neat, thanks.
|
# ? Apr 9, 2020 19:51 |
|
I need a c or c++ based css parser embedded in my application for custom styling. It needs to run on Windows WPF ( via c++/cli ), Windows QT, Linux QT and iOS (objc). I'm currently using katana-parser ( https://github.com/hackers-painters/katana-parser ) and other than the complete lack of documentation and having to cast everything to actually use it it's working ok. The issue is that I'd now like to support some more 'esoteric' css features like custom properties and katana isn't built for that. As far as I can tell katana is pretty dead and they didn't bother to check in the flex source files used to generate the parser so modifying that might be difficult. libcss ( https://www.netsurf-browser.org/projects/libcss/ ) might be a possibility but it's not clear to me if it supports custom properties ( the headers don't look like they do ) and it also brings in a bunch of other dependencies which make it not ideal. I only really need the library to parse the css and generate the rulesets - I handle all the selection/cascading/applying in my code. Any ideas on a full featured hopefully standalone css parser out there?
|
# ? Apr 9, 2020 21:31 |
|
fankey posted:I need a c or c++ based css parser embedded in my application for custom styling. It needs to run on Windows WPF ( via c++/cli ), Windows QT, Linux QT and iOS (objc). I'm currently using katana-parser ( https://github.com/hackers-painters/katana-parser ) and other than the complete lack of documentation and having to cast everything to actually use it it's working ok. The issue is that I'd now like to support some more 'esoteric' css features like custom properties and katana isn't built for that. As far as I can tell katana is pretty dead and they didn't bother to check in the flex source files used to generate the parser so modifying that might be difficult. libcss ( https://www.netsurf-browser.org/projects/libcss/ ) might be a possibility but it's not clear to me if it supports custom properties ( the headers don't look like they do ) and it also brings in a bunch of other dependencies which make it not ideal. Have you considered ANTLR? The have a CCS3 grammar published (https://github.com/antlr/grammars-v4/blob/master/css3/css3.g4), though I have never used it (the grammar) and cannot say how good or bad is it. But I have used ANTLR before for my custom parsing needs and it was quite good.
|
# ? Apr 9, 2020 22:28 |
|
Volguus posted:Have you considered ANTLR? The have a CCS3 grammar published (https://github.com/antlr/grammars-v4/blob/master/css3/css3.g4), though I have never used it (the grammar) and cannot say how good or bad is it. But I have used ANTLR before for my custom parsing needs and it was quite good. This looks promising - thanks for the pointer. I was able to generate a parser based on the grammar and parse that using their C++ runtime. What's not clear to me is how I should go about traversing the document and pulling out data. I generated a Visitor and if I just print out context->getText() in all the visitors I can see it traversing the document but I think using that pattern for a SAX like CSS parser would be painful and a better approach would be to traverse the parse tree myself. For the following CSS code:
code:
code:
|
# ? Apr 10, 2020 18:47 |
|
It's been a few years since I've done that (and I was using the C# bindings) but yes, I remember the visitors requiring a relatively elaborate handling. However, you don't need to implement everything (like visitIdent or visitWs ), just ignore the things that you don't care about and build your data structures according to your needs. There is also another way of parsing the input, via the listener pattern. Your specific use case can only decide which one is better, as both have advantages and disadvantages.
|
# ? Apr 10, 2020 19:45 |
|
Are there any providers that can host an (extremely) simple database for free/very low cost? I'm volunteering to build out a small site for one of my communities and we need to have some sort of simple counter that anyone who visits the site can log their work. For example, Joe visits the site, hits a button and says that they made 10 widgets. Then Mary visits the site and submits the form saying they made 20 widgets. You refresh the page and there's a counter that displays 30 total widgets now made. I'm wondering, for a use case as simple and as common as this, is there any kind of free API or something that can help build this out? Until recently they've been using a google form to track submissions. I'm too lazy to spin up and deploy a backend just for this, and I figured it would be a good opportunity to see if something simple like this is exists. Right now I'm looking into Google Sheets as a potential option.
|
# ? Apr 12, 2020 05:57 |
|
The Dark Wind posted:Are there any providers that can host an (extremely) simple database for free/very low cost? What's their backend now? Sqlite is super easy to setup depending on the backend.
|
# ? Apr 12, 2020 13:08 |
|
The Dark Wind posted:Are there any providers that can host an (extremely) simple database for free/very low cost? Google form that sends the result to Sheets, and then a pretty pivot table of the data that shows who's done what? I know you can provide a read only iframe of a Google doc, I would be surprised if the same weren't true for Sheets. Otherwise, get cheap webhosting with a MySQL db instance and spend an hour or two making a dead simple PHP page or two for this. Volmarias fucked around with this message at 06:21 on Apr 13, 2020 |
# ? Apr 13, 2020 06:17 |
|
huhu posted:What's their backend now? Sqlite is super easy to setup depending on the backend. IIRC SQLite isn't suitable for baking a web server unless the server will only ever handle one request at a time.
|
# ? Apr 13, 2020 13:49 |
Munkeymon posted:IIRC SQLite isn't suitable for baking a web server unless the server will only ever handle one request at a time. It can work if the database works as effectively read-only. It's only write operations that need to take an exclusive lock, it should be able to server multiple reads at once.
|
|
# ? Apr 13, 2020 14:17 |
|
Before I make a big effort post, is there a good thread somewhere for asking about software engineering / quality management approaches and best practices?
|
# ? Apr 15, 2020 02:23 |
|
Cyril Sneer posted:Before I make a big effort post, is there a good thread somewhere for asking about software engineering / quality management approaches and best practices? there's a few gray threads that might be close Oldie Programming: Career Advice, Questions, Change of Directions Working in Development: I like my job and I want to do less of it.
|
# ? Apr 15, 2020 18:38 |
|
Cyril Sneer posted:Before I make a big effort post, is there a good thread somewhere for asking about software engineering / quality management approaches and best practices?
|
# ? Apr 15, 2020 20:19 |
|
Cool! Thanks.
|
# ? Apr 16, 2020 04:40 |
|
Is it possible to create a bot that trawls your instagrams followers bio and pulls out relevant information?
|
# ? Apr 20, 2020 07:41 |
|
Yes. The keyword you're looking for is "web scraping"
|
# ? Apr 20, 2020 11:03 |
|
SAVE-LISP-AND-DIE posted:Yes. They also have an API https://www.instagram.com/developer/
|
# ? Apr 20, 2020 13:16 |
|
I do not know much about nuget; I have some nuget packages another guy did and I've been able to piggyback off his work enough to keep them updated. But now I have a problem I can't figure out. The .nuspec file has code like this:code:
Is there a solution to this besides just making two nuget solutions, one for Framework and one for Core? Some way to detect framework and execute a command with the appropriate location string?
|
# ? Apr 20, 2020 17:35 |
|
nielsm posted:Cygwin probably hasn't changed much since early Windows XP and has to be really pessimistic about everything to implement a Unix'y API on top of Win32 from that era. It might be possible to improve the core code if you use newer APIs, but I'm just making uneducated guesses here. A fairly fundamental issue is Windows doesn't have fork () and Cygwin can't magically add it to the NT kernel. Meanwhile WSL2 is a tightly integrated Linux kernel VM and doesn't have that problem.
|
# ? Apr 20, 2020 19:12 |
|
A while ago I built a cli wrapper for the api of a saas application we use. Now I want to build a gui wrapper for that to assist non-technical users with doing bulk edits of data. They'll be doing the actual editing in excel, but using my application to set upload/download parameters and preview changes. I plan on using C# for this application. What are the best options to make the UI not look total rear end? Should I be using WinForm, WPF or something else?
|
# ? Apr 20, 2020 23:01 |
|
edit: I have it installed on my local machine. For some reason I was trying to install Horizon before Laravel? I have no idea why. I'm still confused about how all this works. Anyone use Laravel? Hopefully this can be considered the right place for this, because it's more about an installation problem, and having a fundamental understanding of Laravel. I'm using this installation guide. I'm using Mac OS 10.14.6. I thought I had already created a project folder, and I'm on the second step for the command php artisan horizon:install that I'm trying to run in Terminal which gives me the response Could not open input file: artisan, which obviously means I'm in the wrong place. I know I'm supposed to run it in my project folder, but where? My directory structure is as follows: Good Sphere fucked around with this message at 16:34 on Apr 21, 2020 |
# ? Apr 21, 2020 01:35 |
|
The Fool posted:A while ago I built a cli wrapper for the api of a saas application we use. Why not create an Excel add-in that does the upload/download?
|
# ? Apr 21, 2020 07:41 |
|
Mr Shiny Pants posted:Why not create an Excel add-in that does the upload/download? I'd rather pour acid in my eyes.
|
# ? Apr 21, 2020 16:16 |
|
Mr Shiny Pants posted:Why not create an Excel add-in that does the upload/download? It might actually not be that bad with the pointless new javascript add-in system though.
|
# ? Apr 21, 2020 16:33 |
|
I've seen Excel used to provide a GUI to non-software folks. You'd plug in motor values or whatever and it used a thunk of VBA to speak to the embedded device over a COM port and pull back live sensor readings. Why you'd dismiss it out of hand as a GUI for... handling Excel data? was it? anyway, it doesn't seem that much of a stretch.
|
# ? Apr 21, 2020 17:17 |
|
JawnV6 posted:I've seen Excel used to provide a GUI to non-software folks. You'd plug in motor values or whatever and it used a thunk of VBA to speak to the embedded device over a COM port and pull back live sensor readings. Why you'd dismiss it out of hand as a GUI for... handling Excel data? was it? anyway, it doesn't seem that much of a stretch. I suppose you could make a VBA extension but that will probably make interfacing with the rest api or whatever a huge pain in the butt, and if you're going the extension route you might as well use javascript or VSTO or whatever since it will make your life much easier (you could use Excel DNA but there isn't really any point if you're not doing something that's a good fit with the dll add-in api). Incidentally, you might be able to use power query or something to download the data from a rest api directly in Excel, but that wouldn't directly solve the uploading problem. One advantage of the new javascript add-in api is that IIRC it makes creating a sidepane dead simple (I want to say you can use React or something but I only briefly messed around with it a while ago). mystes fucked around with this message at 17:29 on Apr 21, 2020 |
# ? Apr 21, 2020 17:25 |
|
JawnV6 posted:I've seen Excel used to provide a GUI to non-software folks. You'd plug in motor values or whatever and it used a thunk of VBA to speak to the embedded device over a COM port and pull back live sensor readings. Why you'd dismiss it out of hand as a GUI for... handling Excel data? was it? anyway, it doesn't seem that much of a stretch. I have a cli wrapper for an api that is capable of producing and consuming csv’s, that part is already done. I’m just looking at setting up a ui wrapper for the cli. I also really don’t want to do anything in VBA, we already have a bunch of fragile excel add-ins that our finance department uses and I don’t want to add to that.
|
# ? Apr 21, 2020 17:48 |
|
The Fool posted:I have a cli wrapper for an api that is capable of producing and consuming csv’s, that part is already done. I’m just looking at setting up a ui wrapper for the cli. There may be more potential problems with reliably roundtripping CSV files using Excel but it might not be an issue depending on your data (I think at a certain point people tend to give up and generate xlsx files but it's much more of a PITA if you actually have to read them again). mystes fucked around with this message at 18:04 on Apr 21, 2020 |
# ? Apr 21, 2020 18:01 |
|
Anyone know a good free or ope source test case management suite
|
# ? Apr 22, 2020 04:35 |
|
I'm trying to match the following syntaxcode:
code:
|
# ? Apr 22, 2020 17:23 |
I think the .NET regex library also has non-greedy matching, and non-capturing groups.code:
x+? and x*? are non-greedy repetitions, meaning they will match as few characters as possible rather than as many as possible.
|
|
# ? Apr 22, 2020 17:36 |
|
nielsm posted:I think the .NET regex library also has non-greedy matching, and non-capturing groups.
|
# ? Apr 22, 2020 19:46 |
|
I'm trying to build a cheap script that listens for a hotkey, upon which it: 1.) Reads a text file on my hard drive (e.g. songinfo.txt contains the text 'Nirvana - Smells Like Teen Spirit') 2.) Creates a text string from the content (e.g. '!sr Nirvana - Smells Like Teen Spirit') 3.) Sends the created string to Twitch chat (either by passing it to a bot, using my own account in a browser window, or chat via. OBS window whatever's easiest) 4.) Doesn't steal focus from the currently active window Requirements 3 and 4 put me out of my comfort zone of programming a little. I rarely develop code that interfaces with browser content; more of a statistics guy, python and r. What would be the best language or method of accomplishing this task? JavaScript? The program is simple enough that I'm sure I could learn the required syntax. PoizenJam fucked around with this message at 07:11 on Apr 25, 2020 |
# ? Apr 25, 2020 07:08 |
Look into AutoHotkey. It sounds unrealistic to have it directly interact with a browser, that kind of UI automation will almost certainly violate your 4th requirement. You should do it via an API, either directly to the stream chat or to a bot that participates in the stream chat.
|
|
# ? Apr 25, 2020 10:00 |
|
nielsm posted:It sounds unrealistic to have it directly interact with a browser, that kind of UI automation will almost certainly violate your 4th requirement. You should do it via an API, either directly to the stream chat or to a bot that participates in the stream chat.
|
# ? Apr 25, 2020 11:48 |
|
|
# ? Jun 5, 2024 07:33 |
|
Twitch chat definitely has some kinda API, since there are desktop apps for it.
|
# ? Apr 26, 2020 03:38 |