|
Yeah I use the regex features in Textpad for same
|
# ? Mar 14, 2019 23:08 |
|
|
# ? May 16, 2024 07:19 |
|
Jon Joe posted:Complete novice here, started playing around with html+css+javascript a week ago to prototype some ideas I had. Right now I'm trying to figure out what I should use to do database-like stuff. Nothing fancy, I just want to create a bunch of objects with the same keys but different values and then get all objects that match a certain key value, so I can display them. Read only or read/write? How much data?
|
# ? Mar 15, 2019 06:06 |
|
Yea, nothing wrong with scaffolding some data manually, especially if it's pretty static. If it's a lot of data or changes with any real frequency, you need a real database.
|
# ? Mar 15, 2019 07:07 |
|
prom candy posted:Read only or read/write? How much data? Read only. Can't imagine it'll be more than a few hundred entries at the largest, each with around fifteen key:value pairs, of which I'd want to be able to filter by all of them, perhaps even all at the same time. I looked into doing something similar to what Tei recommended, but I only have access to OpenOffice Calc and Google Sheets, neither of which can export to JSON by default, and the user-created plugin for doing that on google wants full access to every file on my drive, even non-sheet files. Emmideer fucked around with this message at 16:18 on Mar 15, 2019 |
# ? Mar 15, 2019 16:15 |
|
Took me a bit to discover, but I am now aware of map(), reduce(), and filter() which I think should cover everything I need. As for generating it, I think I'll export a google sheet to csv and then convert that to JSON
|
# ? Mar 15, 2019 18:21 |
|
Nobody have a different suggestion than mine to use JSON / moustache? I made it has a troll joke, but I was curious about a good answer.
|
# ? Mar 15, 2019 19:02 |
|
The conversation moved on to the javascript thread.
|
# ? Mar 15, 2019 19:05 |
|
Jon Joe posted:Read only. Can't imagine it'll be more than a few hundred entries at the largest, each with around fifteen key:value pairs, of which I'd want to be able to filter by all of them, perhaps even all at the same time. I might just make a big rear end json file in that situation. You could also use some kind of db as a service solution like graph.cool or firebase.
|
# ? Mar 16, 2019 03:41 |
|
Jon Joe posted:Read only. Can't imagine it'll be more than a few hundred entries at the largest, each with around fifteen key:value pairs, of which I'd want to be able to filter by all of them, perhaps even all at the same time. Just a warning, you may rabbit hole on Sheets -> JSON transformation. The CSV to JSON packages I've found out there are pretty garbo
|
# ? Mar 17, 2019 21:29 |
|
The bros at Mozilla/Rust started a project called Gloo, which attempts to modularize and set standards for Rust/WASM web frameworks. Check it out, and feel free to submit ideas or code.
|
# ? Mar 18, 2019 03:24 |
|
When I made the post I through office would be a good option, but I never had myself to convert data from there to json. I will check it today. Edit: First thing I have found it this, but dont' seems simple https://stackoverflow.com/questions/30082277/accessing-a-new-style-public-google-sheet-as-json Second is this https://blog.sheetgo.com/how-to-solve-with-sheetgo/export-data-google-sheets/ Maybe use a different type of tool to generate the JSON files, is this way is too complicate. This second tool seems not-too-bad Tei fucked around with this message at 13:09 on Mar 18, 2019 |
# ? Mar 18, 2019 09:16 |
|
Good God stop using sheets or Excel for this. If you want that style of workflow, try something like castledb, which while marketed at gamedev people, is intended to do just what you crazy people are trying to use Excel for.
|
# ? Mar 18, 2019 14:51 |
|
I'm using powershell to do most of my terminal stuff right now (Using git-bash for git stuff even if Vim is an almighty pain in the balls) and I'm wondering if any of the alternative window terminals are worth it. Just off of using mongo for a project and I'm sort of desperate for anything that can do terminals in tabs like the tutorial guy had for his macOS environment because juggling three diffrent terminal windows was not fun.
|
# ? Mar 18, 2019 16:14 |
|
Mobaxterm is pretty decent if you're stuck w Win
|
# ? Mar 18, 2019 16:25 |
|
I like ConEmu. Quake-mode is way more useful than I thought it would be.
|
# ? Mar 18, 2019 16:39 |
|
I'm actually in the process of trying to switch to windows for web dev right now and currently I'm using Hyper. I decided to just use tmux to handle my tabbing/split pane stuff because then my setup isn't so env specific, so maybe give that a try if you're willing to get a little more command-line dork about it. The nice thing is you can write scripts to get your tabs/panes exactly how you like them for a given project. I'm having a weird problem and I don't know where to start, but I figure someone in this thread might be able to point me in the right direction even though it's only tangentially related. For the past 6 weeks or so all my code pushes to AWS S3 and EKS have been brutally slow. My upload speed is somewhere around 150-300 KB/s, which makes for bruuutal deploy times if I have to do something like deploy the Rails container after the gems change. I was recently away and on hotel wifi the deploys were fast as expected. Incidentally in this time I've replaced my router and cable modem, and also upgraded my internet service. Speedtest.net consistently reports 15-20mbps upload speeds so I should be pushing pretty decent speeds. I've asked in a Slack for local devs if other people on my ISP are having this issue and no one said they were. I don't even know where to start with this, has anyone ever experienced anything like this? Should I just call my ISP?
|
# ? Mar 18, 2019 20:47 |
|
ConanThe3rd posted:I'm using powershell to do most of my terminal stuff right now (Using git-bash for git stuff even if Vim is an almighty pain in the balls) and I'm wondering if any of the alternative window terminals are worth it. Hyper is nice, but last I used it you couldn't use Ctrl-C. Nowadays I'm using cmdr.
|
# ? Mar 18, 2019 21:04 |
|
prom candy posted:I'm actually in the process of trying to switch to windows for web dev right now and currently I'm using Hyper. I decided to just use tmux to handle my tabbing/split pane stuff because then my setup isn't so env specific, so maybe give that a try if you're willing to get a little more command-line dork about it. The nice thing is you can write scripts to get your tabs/panes exactly how you like them for a given project. ConEmu supports multiple shells, powershell, wsl bash, git bash, etc. Quake mode let's you show/hide your console window with a keyboard shortcut. Then you can use keyboard shortcuts to launch or switch between tabs. Also has a bunch of themeing options, profile customizations, macros, etc.
|
# ? Mar 18, 2019 21:29 |
|
The Fool posted:ConEmu supports multiple shells, powershell, wsl bash, git bash, etc. Yeah I looked at ConEmu, I don't remember what it was that I didn't like about it. For some reason I went with Hyper but I don't really need Yet Another Electron App running.
|
# ? Mar 18, 2019 21:43 |
|
Hyper is good because you can install the power mode plugin and feel strong
|
# ? Mar 19, 2019 15:36 |
|
I'm off Hyper already since it doesn't send mouse events to tmux.
|
# ? Mar 19, 2019 15:44 |
|
prom candy posted:I'm off Hyper already since it doesn't send mouse events to tmux. There's a lot of stuff that doesn't work in Hyper that will be fixed only after Microsoft finishes its current efforts to completely re-architecture how console applications work. Mouse events are irritating, but my big one is using Ctrl-C to interrupt operations...just doesn't work in Hyper. Even after MS gets that work to the point its widely available on Windows, console apps like Hyper have to have a lot of work done on their side.
|
# ? Mar 19, 2019 16:46 |
|
Thermopyle posted:Hyper is nice, but last I used it you couldn't use Ctrl-C. Just discovered that cmder is a fork of ConEmu.
|
# ? Mar 19, 2019 21:26 |
|
The Fool posted:Just discovered that cmder is a fork of ConEmu. I thought it was more of wrapper for ConEmu? Regardless I really love using cmdr. Most of the default settings work for me out of the box and I've only had to to do some minor tweaking.
|
# ? Mar 19, 2019 21:44 |
|
Thermopyle posted:Hyper is nice, but last I used it you couldn't use Ctrl-C.
|
# ? Mar 20, 2019 06:29 |
|
IAmKale posted:How does this work with node_modules? One of the biggest issues with doing JS dev in Windows is the inability of Explorer to handle such blackholes of directories. If tools like Cmdr let me use tools like n, pyenv, etc... on Windows, then maybe there's a chance for Windows dev after all... The git-for-windows console is probably what you want
|
# ? Mar 20, 2019 13:52 |
|
IAmKale posted:How does this work with node_modules? One of the biggest issues with doing JS dev in Windows is the inability of Explorer to handle such blackholes of directories. If tools like Cmdr let me use tools like n, pyenv, etc... on Windows, then maybe there's a chance for Windows dev after all... I've been doing python, java, JS, and others dev work on Windows since maybe 2015 and even without stuff like cmdr, I haven't had a problem in years. But then again, I never navigate into node_modules because...well why would you? It's supposed to be opaque to the developer. Also, nowadays you can use WSL and use real linux, natively as part of Windows. It's kind of a weird concept, but you get a full linux distribution that runs inside Windows but it's not a virtual machine. Basically, they developed a layer that lets Windows execute linux binaries. Thermopyle fucked around with this message at 15:40 on Mar 20, 2019 |
# ? Mar 20, 2019 15:36 |
|
I've got some pngs that contain just single color simple shapes. Anyone come across any good tools for converting these to svgs? The first half dozen google results seem to generate huge bloated files...
|
# ? Mar 20, 2019 17:02 |
|
Thermopyle posted:I've got some pngs that contain just single color simple shapes. Anyone come across any good tools for converting these to svgs? The first half dozen google results seem to generate huge bloated files... The designer in my office usually trace things by hand. Better quality that way. The last time I traced anything was in the 90's, with Inkscape, I don't know if the tool still exist. Apparently Inkscape uses "Potrace" http://potrace.sourceforge.net/ My information is 20 years outdate, so may be unnacurate.
|
# ? Mar 20, 2019 17:21 |
|
That'd take all of a few minutes for a designer to do in Sketch. If this isn't for a work thing, I could do it for you.
|
# ? Mar 20, 2019 17:26 |
|
Depending on how simple the shapes are, Illustrator's live trace does a good job and doesn't generate terribly bloated files.
|
# ? Mar 20, 2019 17:47 |
|
Inkscape; Surprisingly good! Replaces Illustrator much better than Gimp replaces Photoshop. Paint.net can output SVG too I think with a plugin, but I don't know good it is at the convert from bitmap scenario.
|
# ? Mar 20, 2019 18:17 |
|
The problem is I've got like a hundred or more, so I was hoping to find something I could automate. Right now I'm way down a rabbit hole of reading about algorithms I could implement to do it myself. Of course, this is stupid so now I'm starting to rethink the whole shebang.
|
# ? Mar 20, 2019 18:18 |
|
Thermopyle posted:The problem is I've got like a hundred or more, so I was hoping to find something I could automate. https://github.com/autotrace/autotrace
|
# ? Mar 20, 2019 18:27 |
|
Have no idea how naive the implementation is but Inkscape supports command line batching: https://inkscape.org/~Johannski/%E2%98%85inkscape-batch-convert-svgpdfeps-to-epspdfpng
|
# ? Mar 20, 2019 19:07 |
|
Scaramouche posted:Inkscape; Surprisingly good! Replaces Illustrator much better than Gimp replaces Photoshop. Paint.net can output SVG too I think with a plugin, but I don't know good it is at the convert from bitmap scenario. I wish they would get on the ball with their Mac development. It’s absolutely abysmal there. The freaking hotkeys don’t even work right (like cmd+c doesn’t copy). My favorite glitch is that if you’re scrolling through the sidebar with all of the widgets, and if your cursor touches any input, it will “scroll” that input, moving sliders or making numbers in textboxes go up and down. Oh, and the UI is soooo laggy. IDK if the UX makes more sense on Linux or Windows somehow, but it’s my go-to example of awful apps.
|
# ? Mar 20, 2019 22:37 |
Thermopyle posted:The problem is I've got like a hundred or more, so I was hoping to find something I could automate. Seems like one of those things you could spend a few days figuring out the nice automated way of doing it, or just brute force it over 4 agonizing hours of manually tracing
|
|
# ? Mar 20, 2019 23:44 |
|
tankadillo posted:I wish they would get on the ball with their Mac development. It’s absolutely abysmal there. The freaking hotkeys don’t even work right (like cmd+c doesn’t copy). My favorite glitch is that if you’re scrolling through the sidebar with all of the widgets, and if your cursor touches any input, it will “scroll” that input, moving sliders or making numbers in textboxes go up and down. Oh, and the UI is soooo laggy. The Windows interface definitely isn't perfect, but I'm comparing it to the utter disconnect experienced when moving from Photoshop to Gimp. Unlike that, you can generally figure things out in Inkscape if you know Illustrator though I've never tried the Mac version so I don't know how they differ. Twitchiness around the palette drawers is definitely a thing on Windows though.
|
# ? Mar 20, 2019 23:53 |
|
Thermopyle posted:I've got some pngs that contain just single color simple shapes. Anyone come across any good tools for converting these to svgs? The first half dozen google results seem to generate huge bloated files... If you're on a Mac, try Primitive?
|
# ? Mar 21, 2019 04:53 |
|
|
# ? May 16, 2024 07:19 |
|
Can you make the mouse change to arrow on-hover? https://output.jsbin.com/warahaquri/1
|
# ? Mar 21, 2019 12:19 |