It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
adaliabooks: It does say something about Unix-ish OSes (but I thought that included Windows) so that might be my problem...
That specifically means not Windows. Unix-ish would include assorted Linuxes, OS X, BSD's and any actual Unix.
avatar
adaliabooks: ...but I don't think that's possible (it's just a hosting package I use for my business website, it runs on cPanel and from what I could find I can't use Git with cPanel, not easily anyway).
No shell option anywhere? Also, you only need the Git client. Hmm, you could just download the source as a zip instead.
Post edited December 14, 2015 by Gydion
avatar
adaliabooks: Someone here may be able to help me with this..

I need a secure HTTPS connection to properly implement the covers for the legacy shelf in my script, to this end I applied for the Beta of Let's Encrypt and got accepted.

But now I don't really know what to do.. I tried following the commands (on my own computer) but this didn't work. I assume I need to actually run it on the server, but I don't think that's possible (it's just a hosting package I use for my business website, it runs on cPanel and from what I could find I can't use Git with cPanel, not easily anyway).

These are the three installation instruction pages from their website explaining what to do: , [url=https://letsencrypt.readthedocs.org/en/latest/intro.html]two, three.

It does say something about Unix-ish OSes (but I thought that included Windows) so that might be my problem... I'm just not really sure what I'm doing wrong and really haven't a clue what I'm doing anyway..

Any ideas?
Thanks :)
Windows is not a Unix-ish OS, but you can install cygwin, which gives a Unix-ish environment under WIndows.
avatar
adaliabooks:
You can use Git Bash, which comes with Git installer to issue "unix" commands, as you can see in the attached screenshot.
Attachments:
git_bash.png (50 Kb)
avatar
Gydion: That specifically means not Windows. Unix-ish would include assorted Linuxes, OS X, BSD's and any actual Unix.

No shell option anywhere? Also, you only need the Git client. Hmm, you could just download the source as a zip instead.
Yeah, I wasn't sure, so it could just be that...

Not sure.. it's got SSH (Secure Shell), is that it?
What would I do with that?

avatar
mrkgnao: Windows is not a Unix-ish OS, but you can install cygwin, which gives a Unix-ish environment under WIndows.
I'll maybe give that a try then.

Thanks for the suggestions :)
avatar
adaliabooks:
avatar
vanchann: You can use Git Bash, which comes with Git installer to issue "unix" commands, as you can see in the attached screenshot.
Ah. Now this is what I was doing, but it wouldn't work... so that's probably not the problem then...

I'll try run through it again and post the actual errors / results when I have a chance tonight.
Post edited December 14, 2015 by adaliabooks
Ok, I tried again from the start and here's the result.

In Git Bash I ran these:

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt

Which downloaded the folder from github correctly and changed to the directory.

But then when I try to run the next command:
./letsencrypt-auto

I just get:

$ ./letsencrypt-auto
"sudo" is not available, will use "su" for installation steps...
grep: /etc/os-release: No such file or directory
grep: /etc/issue: No such file or directory
Sorry, I don't know how to bootstrap Let's Encrypt on your operating system!

You will need to bootstrap, configure virtualenv, and run a pip install manually
Please see https://letsencrypt.readthedocs.org/en/latest/contributing.html#prerequisites
for more info
Creating virtual environment...
./letsencrypt-auto: line 166: virtualenv: command not found
Which I assume is either a) because I'm on Windows or b) because I'm not on a server, just my personal computer.
But I'm not sure if that is the issue or not...
And I can't see a way to run Git from the server, but perhaps there is another way?
low rated
avatar
adaliabooks: Ok, I tried again from the start and here's the result.

In Git Bash I ran these:

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt

Which downloaded the folder from github correctly and changed to the directory.

But then when I try to run the next command:
./letsencrypt-auto

I just get:

$ ./letsencrypt-auto
"sudo" is not available, will use "su" for installation steps...
grep: /etc/os-release: No such file or directory
grep: /etc/issue: No such file or directory
Sorry, I don't know how to bootstrap Let's Encrypt on your operating system!

You will need to bootstrap, configure virtualenv, and run a pip install manually
Please see https://letsencrypt.readthedocs.org/en/latest/contributing.html#prerequisites
for more info
Creating virtual environment...
./letsencrypt-auto: line 166: virtualenv: command not found
avatar
adaliabooks: Which I assume is either a) because I'm on Windows or b) because I'm not on a server, just my personal computer.
But I'm not sure if that is the issue or not...
And I can't see a way to run Git from the server, but perhaps there is another way?
Here's my suggestion:

Install Linux or FreeBSD in a virtual machine like VirtualBox (I suggest not installing a graphical environment) and try installing it in the VM.

In the case of Debian, simply not specifying a root password at installation time will allow sudo to work.
avatar
dtgreene: Here's my suggestion:

Install Linux or FreeBSD in a virtual machine like VirtualBox (I suggest not installing a graphical environment) and try installing it in the VM.

In the case of Debian, simply not specifying a root password at installation time will allow sudo to work.
I've got a Linux installation on a USB (it was just something I was playing around with) would that work to try?
I'd love to give Linux a try but really have no clue about it...
low rated
avatar
dtgreene: Here's my suggestion:

Install Linux or FreeBSD in a virtual machine like VirtualBox (I suggest not installing a graphical environment) and try installing it in the VM.

In the case of Debian, simply not specifying a root password at installation time will allow sudo to work.
avatar
adaliabooks: I've got a Linux installation on a USB (it was just something I was playing around with) would that work to try?
I'd love to give Linux a try but really have no clue about it...
That would work, but the downside is that you need to reboot to go back into Windows. Also, you will need to make sure to save things somewhere persistent, as live systems typically do not save anything. (In other words, when you reboot, you lose everything you did, unless you copied it to some other device.)
avatar
adaliabooks: I've got a Linux installation on a USB (it was just something I was playing around with) would that work to try?
I'd love to give Linux a try but really have no clue about it...
avatar
dtgreene: That would work, but the downside is that you need to reboot to go back into Windows. Also, you will need to make sure to save things somewhere persistent, as live systems typically do not save anything. (In other words, when you reboot, you lose everything you did, unless you copied it to some other device.)
Yeah, I was just thinking that myself... well, looks like I'll try and set up a VM.
Thanks for the suggestion :)
avatar
dtgreene: Here's my suggestion:

Install Linux or FreeBSD in a virtual machine like VirtualBox (I suggest not installing a graphical environment) and try installing it in the VM.

In the case of Debian, simply not specifying a root password at installation time will allow sudo to work.
This does indeed seem to be half the problem. I've got the VM working and run it through Ubuntu and it's at least going a bit further then it was.
I think I can get it to work now, once I get the commands right...

Thanks :)
low rated
Here's an interesting example of C/C++ code that behaves differently depending on compiler options:

#include<stdio.h>

int main(void)
{
auto x = 3.5;
printf("%d\n", x);
}

Here are the results I get:

With gcc:
C89/C90: 3
C99/C11: 3 (with warning about x being an int)
C++98: Error: x does not name a type (doesn't compile)
C++11: -1672947208 (result not consistent, warning about %d expecting int but x being a double)

With clang, the C results are similar. One difference is a warning about an implicit conversion from 'double' to 'int'. For C++98, warning about auto being a C++11 extension (it compiles, unlike gcc in this configuration), and the result is similar to the C++11 behavior.

In other words, what we have here is code that is valid C code (at least under older standards), valid C++11 code (albeit with undefined printf behavior), but produces different results on each.
avatar
adaliabooks: This does indeed seem to be half the problem. I've got the VM working and run it through Ubuntu and it's at least going a bit further then it was.
I think I can get it to work now, once I get the commands right...
Looks like you want the manual option in your Ubuntu VM. Another option would be letsencrypt-nosudo.
avatar
Gydion: Looks like you want the manual option in your Ubuntu VM. Another option would be letsencrypt-nosudo.
Thanks :)

Looking into it and trying again now.
Thanks guys, it worked! Woo :)

I now have a HTTPS connection. Next step is seeing if it actually solves the problem I needed it to....

Edit: Also, Linux is quite cool. When I have the time/space/money to pick up a second computer I'll definitely run it on Linux. Don't think I'd try dual booting or anything fancy like that yet and I don't think I'd be ready to make the leap 100% yet but it wasn't quite as daunting as I'd expected... :)
Post edited December 17, 2015 by adaliabooks
Alright guys. From page 3, I have done some learning on javascript (and some blatant stealing).

I have some code I want to execute if a button is pressed. How do I implement an add-on that will do that?


Here's my code (fairly basic)

var divToPrint = document.getElementById("tblWO");
var htmlToPrint = '' +
'<style type="text/css">' +
'table th, table td {' +
'border:1px solid #000;' +
'padding; 8px;' +
'}' +
'</style>';
htmlToPrint += divToPrint.outerHTML;
newWin = window.open("");
newWin.document.write(htmlToPrint);
newWin.print();
newWin.close();


It takes my data from a table and prints it.

Right now, I have to go into the console and run it. (the above code works on Chrome, I have to take the last line out for IE).

Is it possible to build a button that executes this code (as a function I'd imagine) on my end-users' main page? And how do I give them a file to make the add-on?

Thanks guys!