Set a captive network without internet in raspberry pi 3 - raspberry-pi3

I want to open an html file I made in rpi3 on the web browser of my phone immediately as I connect to pi AP. My pi AP is not connected to the internet. Nodogsplash doesn't work without internet. Also this html page isn't a login or authentication page. Just a normal page with some buttons on it.

You have a working answer in this github issue :
All you have to do is add the line:
address=/#/[ip address of your museum tour webserver]
to the config of dnsmasq.conf.

Related

Shopify App CLI Heroku -- page unresponsive

I created my app with Shopify CLI "shopify create" (Node.js app) and deployed it to Heroku (shopify deploy). I already add my .env variables (scopes ,SHOPIFY_API_KEY, SHOPIFY_SECRET_KEY, host, shop) to my heroku config Vars, and I changed my app url to https://MY-URL.herokuapp.com/ , and the whitelisted redirect urls to https://MY-URL.herokuapp.com/auth/callback
When trying to open the app in my dev store, the interface is shown correctly (see image below)
However, the interface is unresponsive. So e.g. I can not press the button or select the text with mouse. (actually I can not do any mouse actions at all)
I have no idea what could cause this unresponsiveness.
Further info:
If i open https://MY-URL.herokuapp.com/ in browser, Safari says "Safari cant find the server, "https:undefined/admin/oauth/authorize?...",
Chrome says "
This site can’t be reached
Check if there is a typo in undefined.
DNS_PROBE_FINISHED_NXDOMAIN"
I deployed the app a few hours ago (~4 hours) .
Thank you in advance, any help is appreciated.

Google Sheets API Java program, works on one machine and not the other - 401 Au

I've got a working basic Java App that uploads some data to a google sheets file of mine.
I uploaded it to a git client, pulled it to my other computer, and it doesn't work on that with a 401
Exception in thread "main" com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized
at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
at com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:868)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
at App.main(App.java:71)
Any idea what could be different between the two machines? I understand it that if I'm using the same client_secret.json, it should be irrelevant which machine I'm on?
UDPATE 1:
ok, some extra info - i just tried my project at work on my work laptop and it worked fine! On first run it opened a browser window and asked me which google account I wanted to use, I chose the correct one, and that worked. On the laptop I have that didn't work, I wasn't given that option (that I remember) so how can I reset the google account that has been used to authenticate against?
I saw this in my cmd line
Please open the following address in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=blah-notputtingmyrealid.apps.googleusercontent.com&redirect_uri=http://localhost:42299/Callback&response_type=code&scope=https://www.googleapis.com/auth/spreadsheets
Attempting to open that address in the default browser now...
Since it's working on your previous computer, the issue might be concerning the location of your client_secret.json. If you check the Java Quickstart setup, there's a part where you need to download the JSON file and place it on your working directory. Since, you're on a new machine, that file is now missing.
g. Click the file_download (Download JSON) button to the right of the
client ID.
h. Move this file to your working directory and rename it
client_secret.json.
Or the access token has expired.

XAMPP: your connection is not private NET::ERR_CERT_AUTHORITY_INVALID

I'm working in a virtual server on my 64bits windows 7 machine, and a few weeks this error start to appear on google chrome:
XAMPP: your connection is not private NET::ERR_CERT_AUTHORITY_INVALID
I've migrated to Opera to continue developing on my virtualhost, but today this error started to appear on Opera too.
i've searched on web and only answer i've had is:
Browsers are not accepting auto assigned certify anymore...
Anyone know how to bypass this validation on xampp virtualserver?
Just an update. In Chrome and Vivaldi insert chrome://flags/#allow-insecure-localhost into the address bar and then enable "Allow invalid certificates for resources loaded from localhost." Even changing the domain from example.dev to example.test didn't work until I changed the above setting in the browser.
I could fix a similiar issue by using a different host name. I used "website.dev" an got these error in Chrome 63 on Windows7. After changing the C:\Windows\System32\drivers\etc\hosts to "website.test" and the "httpd-vhosts.conf" accordingly, it works.
I had a same issue over my practicing laravel Vhost.
I changed "div" to "test" and typed "website.test" at the address bar, then it failed with the error, "ERR_CERT_AUTHORITY_INVALID". But if I typed "http://website.test" instead of the one I previously did, it worked. Since then it keeps working without "http://". So I think you need to remind windows TCP/IP hosts that your new host name needs a new mapping set.
You just need to change https:// to http://
Good luck, it worked for me
yes,the virtual host is only worked on browser without doing this: chrome://flags/#allow-insecure-localhost into the address bar and then enable "Allow invalid certificates for resources loaded.
Just change this:
changing the domain from example.dev to example.test.
and your virtual host gonna be work.the result is here in the below
I just changed the domain name from WEBSITE_NAME.dev to WEBSITE_NAME.test and it worked like a charm without me having to write "https://". Didn't had to enable insecure-host flag in chrome. It still shows "Not Secure" in the address bar, but works fine in displaying the website.

Putting a Laravel site on a Synology NAS (DS215j)

I've created my first full Laravel tool. (Yiehaaa).
I'm looking to host it somewhere for my customer as he wants to be able to use it from different PC's in his network.
Therefore I was thinking to put it on a Synology NAS (DS215j) which is already available.
I took following steps :
Install WebStation
Install PHP7
Install Nginx with MariaDB10
Imported all tables
My Webstation is up-and-running, telling Nginx is running with PHP7.
Under PHP settings, I enabled : mysqli, openssl and pdo_mysql.
In the end, I created a Virtual host PORT based (on port 85 for http and port 86 for https) and connected the main folder to "web/maintoolfolder/public".
As http back-end server Nginx is chosen, with PHP 7.0
When I now open following url http://nasname:85 , I get to see my index.php page without any problem ! So yeahhhhh...
But, whatever link I click which needs to open one of my routes, I always get the error message "404 page can not be found".
Strange thing is that this 404 page is not even the own created Laravel 404 page.
What am I doing wrong ? Why can't I move between the different pages?
Thanks in advance for any help.
best regards,
Davy

How do I use Redis to communicate between my API and the socket server (Angular2/Laravel)

I'm using:
- Laravel as my backend
- Angular 2 as my frontend
I'm trying to show all connected users to my website real time information using Laravel,Angular 2 and Redis.
I installed redis for windows: https://github.com/rgl/redis/downloads
Played with it a little:
But I have no idea where to go from here, couldn't find any instructions or help about using redis with angular2/laravel, and I hope you can help me.
My first goal is simple: Update a variable for all connected users in my app.
For example:
- user clicks a button
- another user who connected to the website can see "Someone clicked this button!" without refreshing the page
How I can make it with the current technology I use (Angular2/Laravel)? (If there is something else than a redis, it's fine)

Resources