I received a hacker challenge gift for Christmas. I'm no hacker, nor do I work in an IT role, but I'm trying my best. I've got a haiku:
The weary red dove fights in the empty tundra. Jasmine petals dance.
I need to convert this into an IP.
I'm 100% sure I'm supposed to install/run a program called Hipku.
https://github.com/gabemart/hipku
The installation instructions read:
"Install with npm install hipku. index.js can also be used directly in the browser."
However, I just don't have the skills necessary to get this to work for me.
I'm using kali linux virtualised on a mac, and I've ran this command (npm install hipku) in a shell.
The next step from the example is:
Hipku.decode('The weary red dove\nfights in the empty tundra.\nJasmine petals dance.');
However, I get this message
└─$ Hipku.decode('The weary red dove fights in the empty tundra. Jasmine petals dance.'); zsh: unknown file attribute: h
I'm not sure what I'm doing wrong.
pps. I've found this webpage of someone running through the steps of the entire challenge, but when it comes to the step of decoding the haiku, it's not helpful (for me!)
You installed a library that you need to run BUT there is an easier way: go to v6decode, right click "inspect element", you should now be on a new windows, go to the "console" tab. from there enter the line and press enter.
I've tested for you and got 254.53.93.114.
Related
OS: windows 10 Node: v6.9.4 iTunes 12.5.5.5
I'm trying to write a node.js app that communicates with itunes, it will do a lot of things and i want to capture the response and show in a web page.
what i'm trying to do right now to understand this wscript thing is run a node file, that it will keep running to output on the 'change song' event some info about the tack.
After i did some research i made to a point, but now i'm stuck.
I have no knowledge on windows ecosystem coding and is in this part that i'm struggling
searching the web i found this solution.
i don't find why i can on cmd use cscript o wscript but inside the .js file i need to use wscript
/* itunes open and playing a song */
var itunes = WScript.CreateObject("iTunes.Application");
var currentTrack = itunes.CurrentTrack;
WScript.Echo("name: " + currentTrack.Name + " artist: " + currentTrack.Artist);
open a cmd, go to that folder, and run
cscript /nologo myItunesScript.js
/* /nologo prevent to show some default cmd text*/
the program will run, output the music playing and it will close itself
If i do the same thing with wscript i don't know why but it show a popup window with the result instead of showing on the cmd screen.
On this page http://www.joshkunz.com/iTunesControl/main.html show a lot of things that i can do and even work with events.
I didn't find any app on npm that does some magic and makes my life easier.
So if someone can give some north, i will appreciate a lot.
EDIT: It is possible to connect to "iTunes.Application" without WScript from node?
If don't, is possible to listen for events from the output o WScript? (like in socket.io, you connect to someting and keep listening for things)
The question isn't clear I probably shouldn't of answered.
This answer specifically address this from the question;
If i do the same thing with wscript i don't know why but it show a popup window with the result instead of showing on the cmd screen.
You may be confusing what cscript.exe and wscript.exe are.
Both programs are the WSH (Windows Script Host, also confusingly known as WScript).
cscript.exe - The command line version
wscript.exe - The Windows GUI version
Both run VBScript but output the results differently, here is a simple example to demonstrate.
The following script will output the phrase Hello World;
Dim output: output = "Hello World"
WScript.Echo output
Using cscript.exe the output is;
>cscript //nologo "test.vbs"
Hello World
Using wscript.exe the output is;
>wscript //nologo "test.vbs"
I am new using cloud code of parse.com
I am trying to debug my cloud code, but I can not read the console.log in the terminal. I am using the console of my Mac in this way:
parse deploy
Once the code has update successfully, I curl -X POST the code of the app (the function I want to test) but I can only read the response.success() or the response.error(), all the console.log that I have in the code doesn't appear in the console.
I assume that the log output should appear in the console, but it doesn't.
note for anyone reading, Parse.com is closing down later in 2016 - so don't get too invested in it :O
consider say back4app.com
If you're reading this in the far future .. Parse.com was an ingenious BAAS which ran for a couple years, sensibly sold out to Facebook, and then FB gave up after a couple years. It was basically free to use, so the whole fiasco maybe marks the end of the "amazing stuff, totally free to developers" era.
In your Terminal it's
] parse logs
to see the last few logs.
or if you want to watch everything continuously from the cloud,
they have a command which pipes that output continuously to your terminal:
] parse develop "Your App Name"
So as you, or indeed normal users of your app, uses the Parse app, you can watch "everything that is happening".
(Note too that, once you "turn on" the "parse develop" mode: as well as printing out everything that is happening on the server, additionally: if you locally edit the text files (main.js and so on) in fact, it goes ahead and uploads them to the server, that is to say, just as if you had done a "parse deploy".)
This is a good question -- it's really quite astounding that this is so badly explained everywhere, since, Parse is completely unusable unless you know about these two commands!!
I'm working on a dart thing. Everything works flawlessly when I test it in Dartium. But when I Pub Build the project and run the .html file in the build/web folder, everything that's dart gets completely ignored.
I thought the problem might be in my code, but this does not seem to be the case since I don't even need to write any. It's enough if I just create a new project from the 'Web application' template and keep the template code in there (you know, the one with a "Click me!" text that reverses if you click it).
I get no errors while building the project. I build the project by right-clicking on pubspec.yaml and choosing the 'Pub Build (generates JS)' - Is this the right way of doing it, or am I doing something wrong?
Indeed, it was caused by the missing dart.js in the "packages/browser"
Running the 'pub cache repair' command was sufficient in bringing the missing file back and now everything works.
I've tried to set up Simogeo's FileManager but I can only get half of it working.
My plan is to set it to a specific folder (../imgs/gallery) and allow the client to upload, download, rename, remove files - basically change the ones displayed on a specific page (../gallery.html).
Right now though, I can't get the FileManager to work properly. In it's absolutely simplest form (that is, uploading the extracted files to my /www/ root and duplicating filemanager.config.js.default to filemanager.config.js) it will allow me to create a folder and upload files but the second I do that, it'll just keep 'loading' something. Nothing shows, nothing is usable and a refresh will completely remove it from view.
The files are being created/uploaded in the ../userfiles/ folder which I can change in the future but it's just not working even in a pure setting.
(also, the instructions request changing a file ../connectors/php/filemanager.config.php, which for the life of me, I cannot find. ../connectors/php/default.config.php exists but doesn't follow the instructions very well if I was to substitute that.)
EDIT: I tried the 0.8 version, having no problems. It's a shame the up-to-date one doesn't work for me.
Are you sure permissions are set correctly on your folder ?
You could try :
chmod -R 0777 /path/to/filemanager/userfiles/
or (asserting you're running apache with www-data user :
chown -R www-data:www-data /path/to/filemanager/
You may also have a look to the configuration wiki page and sample page.
(also, the instructions request changing a file ../connectors/php/filemanager.config.php, which for the life of me, I cannot find. ../connectors/php/default.config.php exists but doesn't follow the instructions very well if I was to substitute that.)
Thanks for pointing this out. It is updated.
In my case the problem arose when migrating a site from dedicated hosting with PHP 5.3 to shared hosting with PHP 5.4, all of a sudden the file manager started behaving as described by the original poster. I updated to the latest FileManger version (2.0.0-dev) but still the same.
A look at the server error log showed a fatal error in connectors/php/filemanager.class.php on line #1312 where require_once('./inc/vendor/wideimage/lib/WideImage.php') failed to open the file. Checking the path there is no "vendor" directory so I removed that from the path and the server error went away. But still the same loading graphic.
I then considered that PHP 5.4.x wants to have the TimeZone set and depending on the server configuration may throw warnings or errors, even fatal ones in the background. So I added date_default_timezone_set ('America/Toronto'); at the top of the file connectors/php/filemanager.php and after that everything worked perfect. This may not be the optimal solution but it worked for me. If you try it of course change the TimeZone to your own.
This one had me pulling my hair out for a while, hope it helps someone.
i frequently get this error when running my web app on google chrome
[2536:2008:0502/143602:ERROR:gpu_info_collector_win.cc(96)] Can't retrieve a valid WinSAT assessment.
its ok in firefox and IE..
i've already search for solutions but with no luck.
i am using Aptana Studio + Sencha
how to get rid of this?
I had this error when I was providing the path to chrome.exe as the system property - it went away when I was using chromedriver.exe as downloaded from here: https://code.google.com/p/chromedriver/downloads/list
This means that winsat validation failed.
Winsat is a tool that checks out windows. If it fails, normally this indicates that something is wrong with your system (probably a driver).
In the above case, I would go with the display adapter driver, so try to update it via the Windows Update.
To run winsat yourself, you can run 'winsat formal' from the command line. Then you can look for suspicious output (if you have 0 F/S performance in the direct3d, then this is not fine :-))
Based on the problematic output, you can see what is wrong in the system (in the above example, the display adapter was found as a standard VGA, and a simple update, fixed the error made chrome/selenium).
HTH