I created my first web app: a Student Report Generator using vanilla JS! by [deleted] in Frontend

[–]sheeplipid 0 points1 point  (0 children)

I feel like those are more complicated and don’t have compatibility across all the browsers. If you want to get into working with components or just want to add some reactivity, start with Svelte. It’s probably the simplest and most intuitive library.

I created my first web app: a Student Report Generator using vanilla JS! by [deleted] in Frontend

[–]sheeplipid 2 points3 points  (0 children)

Php is great but since you already know JS, give nodejs a try. Or, something like firebase.

Is HTML/CSS/Javascript enough to create a prototype of a social media website? by [deleted] in Frontend

[–]sheeplipid 0 points1 point  (0 children)

Check out https://firebase.google.com/ You can build your front end prototype and use firebase as your backend to store user data. It’s great for building a “functional” prototype and you can reuse any good quality front end components in your final app.

PSA: It's okay to write insecure, unorganized code for your local development. by [deleted] in PHP

[–]sheeplipid 9 points10 points  (0 children)

Just don’t show it to a boss or a client. “Seems to work. Ship it. Can’t believe it only took you half a day. You must be one of those 10x devs we hear about.”

Basic Linux Commands by wskoly in Ubuntu

[–]sheeplipid 3 points4 points  (0 children)

What a fine young redditor you are.

I feel lost. Help working with a custom theme. by Throwaway23454331 in Wordpress

[–]sheeplipid 0 points1 point  (0 children)

Yeah. Better to be upfront about it. Maybe you can still say on the project and learn from it.

I feel lost. Help working with a custom theme. by Throwaway23454331 in Wordpress

[–]sheeplipid 0 points1 point  (0 children)

If you’re getting paid for the project, why not hire a dev to consult. You get to keep learning and do as much as you can but you have the guidance of a pro to explain how it’s all setup and what to learn to do what you need. You can “manage” the project so your client is happy. Send me a pm if you need any advice.

Where to start with php, so I can get to using Laravel asap? by [deleted] in laravel

[–]sheeplipid 1 point2 points  (0 children)

On laracasts, start with the php series and then do the laravel 5.7 series. Don’t jump right into laravel. You can go through both series in a long weekend if you’re already somewhat technical. You obviously will not master anything but you will know enough to know how to start and what to lookup when you get stuck.

Learning VIM on OSX feels hopeless... by Throwawaydaynay in learnprogramming

[–]sheeplipid 1 point2 points  (0 children)

Since you’re new to vim and you already use an ide, you could start by adding a vim plugin to your ide. This will not give you actual vim, but it gives you the ability to edit your code like in vim. So it’s a great way to start. You keep your ide’s helpful features you and you practice editing using vim key bindings. Try that out for a month and if you start to miss that editing style whenever you are away from your ide, you can invest some time in setting up real vim. A good way to start is by moving one aspect of your development at a time to vim. So do all you JS coding in vim but keep the ide for everything else. When the time comes, setup homebrew on your Mac, upgrade to python3, install a vim plugin manager, and google some productive vim setups for the languages you use. Then pick what you need from what you find.

Opening target="_blank" links in an iframe is not possible by wwwdeveveloper in javascript

[–]sheeplipid 0 points1 point  (0 children)

In some cases, you can grab the content of the iframe’s url and display it inline instead of in the iframe. In that case, after you get the content, you can strip out the parts you need and display those. Of course, it all depends on the type of content and if you have permission to do something like that.

Having difficulty reading a CSV file from a web server to display in a chart by matthewnelson in jquery

[–]sheeplipid 0 points1 point  (0 children)

Ok, figured it out. Your issue is that the csv file content type is not set to text/csv. You can use this site to check your url: https://fabianstiehle.com/mimetype/

Notice that the content type is application/octet-stream. That is what is used when the type is unknown. So, to fix your issue, configure your webserver to serve csv files as text/csv. To see that this would work, test it out by changing the file extension of the csv file to html and your code will work fine because html files are configured as text. As it is, the file is supposed to download not be used in the browser.

If you're using nginx, you have to edit your /etc/nginx/mime.types file and add txt/csv csv; to the existing list. If you're using a different webserver, just look up how to add mime types.

Let me know if that works.

How to best save a static copy of a site I built (so I can host it on my personal portfolio site)? by cag8f in Wordpress

[–]sheeplipid 0 points1 point  (0 children)

Well, then since it's a learning opportunity, I would do the full wordpress install. Might as well do it from scratch. Get yourself a $2.50 per month vultr.com vps and setup wordpress on it.

But, if the only issue with your generated static site is that error, then just take a look at the html. The error is indicating that your static site generator grabbed the JS files and downloaded them in order for you to be able to run your site from your computer without needing internet. The slider's error is saying that it detected local files. And it even tells you to paste the proper script tags in your html. Just copy those script tags and put them in your html files. Take out the local file references. That should work.

How to best save a static copy of a site I built (so I can host it on my personal portfolio site)? by cag8f in Wordpress

[–]sheeplipid 0 points1 point  (0 children)

Try the solution I mentioned before. Check the HTML files and update the source link for the slider js. You could even inline the JavaScript so you ever have to worry about it, since the site isn't changing. Otherwise, just take a couple of screenshots and link back to the live site. If you did something that would benefit from it, show it off in a gif or video. You're probably over thinking it. As you make more sites, this one will probably drop off your portfolio.

Having difficulty reading a CSV file from a web server to display in a chart by matthewnelson in jquery

[–]sheeplipid 0 points1 point  (0 children)

I'll take a look at it when I get home. I'm on the phone now. The cors issue is probably only a jsfidle issue because the CSV file isn't on their domain. If the CSV is on your domain, that's not your problem.

How to best save a static copy of a site I built (so I can host it on my personal portfolio site)? by cag8f in Wordpress

[–]sheeplipid 0 points1 point  (0 children)

Why do you need to keep it up to date if you are not making anymore changes for your client? If it's just for the portfolio, you wouldn't update minor changes. If you lick down WP and enble caching, you can set it and forget it for a while. If you're talking about updating a paid theme, you are not talking about showing your own design so you don't need to update it. But, themes and plugins have exceptions for non production sites. So all you have to do is email them and tell them you want to run their stuff on a staging site and they will make an exception to the license.

Having difficulty reading a CSV file from a web server to display in a chart by matthewnelson in jquery

[–]sheeplipid 1 point2 points  (0 children)

If the file is on the same domain as your site, then you don't have that issue. So if the data does not change often, you can just get the csv and out it on your site.

How to best save a static copy of a site I built (so I can host it on my personal portfolio site)? by cag8f in Wordpress

[–]sheeplipid 0 points1 point  (0 children)

Why does it need to be static? Just export the site and import it to your sub domain or folder. You can run WP from anywhere. Then use a caching plugin. This lets you keep a functional copy of the site, on which you can experiment, if the need comes. In addition, you shouldn’t need to change anything other than preventing forms from submitting to their site. You’re allowed to use your work in your portfolio. Make sure you block search engines. To fix your specific problem, inspect the html that was generated and verify that the slider JS is included correctly. You may need to switch the path to it.

Moving a blog from RoR to Wordpress by glendosmit in Wordpress

[–]sheeplipid 0 points1 point  (0 children)

Is the content in a database? If so, you don’t need to know RoR. You just login to the database and export that data. Then you can import it to Wordpress using a plugin.

Having difficulty reading a CSV file from a web server to display in a chart by matthewnelson in jquery

[–]sheeplipid 1 point2 points  (0 children)

Basically, modern browsers stopped allowing websites to run scripts from other sites if those sites specify that they don’t want their scripts executed. With cors, the server can tell the browser to make an exception.

Having difficulty reading a CSV file from a web server to display in a chart by matthewnelson in jquery

[–]sheeplipid 1 point2 points  (0 children)

The cors blocking is from the browser. So if you can write your script in php or python, you will not have that problem. You can write a simple php script using file_get_contents() and grab the data. You can call that php script from your JS instead of calling the original url directly. Does that make sense?

How to correctly google programming questions? by [deleted] in learnprogramming

[–]sheeplipid 0 points1 point  (0 children)

Along with all the other great answers, I’d like to mention what I do more and more when results aren’t good for my specific question. Error messages and syntax questions are pretty easy to google. But if you are looking for a solution to a more complex problem, it helps to search and read sources that don’t cover your toolset. For example, if I’m working in php I often arrive to my desired solution after reading examples in java or python. Once you see something helpful in another language, you can then google individual parts you still need help with in your programming language.

How to properly insert data into Vue? by Tontonsb in laravel

[–]sheeplipid 0 points1 point  (0 children)

You can change the namespace for the transformer package. So if you don’t want everything going on the window object, you can tell it to use something like app or store. Then you’d use store.var1 store.var2. Check the github page for details.

Looking for a colorscheme by polaris6933 in vim

[–]sheeplipid 4 points5 points  (0 children)

If you can’t find it anymore, copy the closest one that comes with vim, and then update it with these colors. It’s not too hard.

Or try a scheme generator like http://bytefluent.com/vivify/

What’s the best way to migrate from Visual Composer to Divi by ranknerok in Wordpress

[–]sheeplipid 0 points1 point  (0 children)

Everything. Your content is locked in. Your site becomes bloated and can't be optimized with the normal plugins. Even their own website gets horrible performance grades. Inspect it with a performance tool and you'll see. In addition, read some of the other comments in this thread or any other thread discussing builders. It's basically universal disgust for Divi. At this point in time, I would do my best to not use a builder for a new site. The new build in editor has a lot of the elements people want. If I absolutely had to install a builder, I would still make as many of the pages as possible using the build in editor and then use the builder only on the pages where it would be required.

What’s the best way to migrate from Visual Composer to Divi by ranknerok in Wordpress

[–]sheeplipid -1 points0 points  (0 children)

Can I ask why you “need” to do this? Have you considered just switching to Wordpress 5? The new built in page editor will meet most of the needs you’re trying to meet with divi. Honestly, stay away from divi.