authentication – You don’t have permission to access /index.php on this server

404 errors generally means the page can’t be found. Check to make sure your error document is actually in the location you specified.

Sometimes it can be something as simple as including a leading slash. For example, if your custom error page is on your website root and it’s called notfound.htm, you should put ErrorDocument 404 /notfound.htm. If you forget the slash, the webserver will look for a notfound.htm in the current directory. In case you do not have such a file, a default 404 page will be served. You can define your custom error pages in the .htaccess file.

applications – Don’t use Google and APKPure misbehaves – how do I update apps?

I have RedMi 3s (Android 6.0.1) phone. Also, I don’t like Google, don’t use their email and don’t work with a Google account – so I don’t use the Google Play Store.

For a few years, I have been using the APK Pure app to update all of my other apps. But – a while ago (perhaps early this year?) – somehow, it kind of stopped working. That is, it recognizes the apps that need updates, but never manages to actually get the updates going.

So what I’m looking for is another method/venue/app for routinely updating my apps. Preferably – one in which I don’t have to actually press “INSTALL” for every single update, but I’m willing to live with that.

Alternatively, if I could someone overcome my APK Pure issue, that would be good too.

Any ideas?

How can I find the images in my Lightroom catalog that don’t yet have smart previews?

You can find photos without a smart preview by using a smart collection.

Go to Library → New Smart Collection… and add a condition Has Smart Preview is false:

enter image description here

This gets you the photos that do not have a smart preview.

Then you can follow the steps from the manual to create smart previews on the fly.

Why don’t ShaderToy shaders work with LibGDX?

LibGDX support GLSL shaders. GLSL is an standard language… ShaderToy scripts, while based in GLSL are not standard.

It looks like you can use ShaderToy scripts directly with other frameworks so am wondering what the difference is.

What do you mean directly? I have seen plugins for a couple engine that will allow you to paste ShaderToy scripts and use them as materials. Not what I would call “directly”, but it works most of the time. People also convert ShaderToy scripts to GLSL by hand.

It is worth noting that ShaderToy scripts closely resemble fragment shaders, and – unless the ShaderToy script uses some other features, such as input or sound – it takes little work to adapt them by hand to GLSL fragment shaders. If the script uses such features… well, though luck, because shaders are programs uploaded to the GPU, and thus are unable to take user input or play sound. Which means that a complete implementation of a ShaderToy script runtime in another engine is not a trivial task.

What work does it take to adapt it? As per the fragment shader, first ShaderToy has some built-in variables that you would have to pass as uniforms. And second you need to write a main function that calls the mainImage function from ShaderToy (or just paste the code from mainImage inside main). If you want an output equal to the one you get in ShaderToy you will also have to setup an scene with a single quad that covers the view, and has the appropriate UV coordinates.

I want to make empahsis on that ShaderToy scripts are not standard. The function mainImage is not standard. On the other hand, main is part of the GLSL standard.

These are the input uniforms according to the ShaderToy documentation:

uniform vec3 iResolution;
uniform float iTime;
uniform float iTimeDelta;
uniform float iFrame;
uniform float iChannelTime(4);
uniform vec4 iMouse;
uniform vec4 iDate;
uniform float iSampleRate;
uniform vec3 iChannelResolution(4);
uniform samplerXX iChanneli;

You can see you will have to pass stuff like the current time and the position of the mouse. That means you also need a script that is updating these uniforms before doing the render call. For LibGDX in particular, you would do that inside render. You can imagine, from there, how to go about making a ShaderToy clone in LibGDX. If you are trying to do this as a shorthand to implement your game, you probably should simply implement your game instead.

However, chances are, you want to use the ShaderToy scripts as a material. That is, you would be rendering a scene, as you would normally do, and the ShaderToy scripts defines how to shade a surface. That means that you would create your GLSL fragment shader based on your ShaderToy script, then when rendering the mesh that uses it, you would set the uniforms and call render on the mesh. And at that point, it makes much more sense to implement only what you need instead of cloning all ShaderToy functionality, and it would be much more efficient.

To reiterate, ShaderToy is based on GLSL. Thus, if you can use ShaderToy, you got a head start in GLSL. However do not let ShaderToy prevent you from learning GLSL.

networking – Wireless and Wired networks don’t work

I have this issue with my Ubuntu budgie 20.04 which both wired and wireless networks don’t work any more. I had this problem with wireless before and I reinstalled the os to fix it! It worked fine for a month but slowly the wireless network got disabled in middle of work and now after many restarts and shutdowns, it may work for 1 minute! today the same is happening with the wired connection but The odd thing is that the problem is only with the Ethernet cable connection and when I use usb and my mobile usb tethering option, my laptops internet works fine! I don’t know whether it is software or hardware and after many searches and command I couldn’t figure out the problem. Please help!

farzin@farzin-X541UVK:~$ lsb_release  -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:   focal

Why Don’t We Add `Attributes` To Use Case Diagrams?

When talking about Use Case Diagrams, I like to make sure to mention one or two quotes from Martin Fowler’s UML Distilled:

The best way to think of a use case diagram is that it’s a graphical table of contents for the use case set.


Instead, concentrate on the textual description of a use case; that’s where the real value of the technique lies.

Going to your specific example, the first step is to figure out what the use case is. A use case is a list of interactions between a role (or actor) and the system under design. In the example, I would not consider “get date” or even “get details” to be a use case. The use case would be “book ticket”. A fully detailed use case would include information about who the actor is (the travel agent using the software system), their goal (reserve a ticket for a client or customer), other stakeholders (the agent’s customer, the airline), preconditions (authentication and authorization, perhaps), steps (a sequence of inputs and outputs to achieve the goal, including dates, times, addresses) and perhaps extensions or alternate flows (alternate sequences of inputs and outputs which could be positive or negative).

The way that I think about it is that the use case exists at a level that provides value. A travel agent wouldn’t use your system to enter an address – that doesn’t add value for the travel agent or their client. The value comes from being able to book a ticket. Once your system provides at least one slice of flow through the use case, the travel agent can realize some value. As more flows (if there are any alternate flows) are added, more value is realized.

The Use Case Diagram, however, doesn’t allow you to capture this level of detail. Like Fowler says, it’s a graphical table of contents.

python 3.x – I want to repeat an input question but I don’t want to get its output

I want to do confirmation question from a selection question

x_selection = 0 
x_confirmation = 0
while x_selection = 0:
x = input("question ").lower
if x == "thing1"
    x_selection = 1
elif x == "thing2"

then I want to make a confirmation question using x (our input question) but I don’t the output of x but x’s original question.
I attempted this

while x_confirmation == 0:
x_confirm = input("Are you sure this is right?").lower
if x_confirm == "yes":
x_confirmation = 1
elif x_confirm == "no":

I want x as the question not as the answer. Any Tips will help me

How can I portward in my router if I don’t have virtual server option?

I’m trying to use qbittorrent outside my local internet.

I tried the port I set on canyouseeme but it gived me error?



ctrl+shift+E shortcut in vscode is hijacked by an extension and I don’t know which

I have some extensions installed in vscode and when i try to use the explorer shortcut it closes the whole window and I don’t know which extension is causing that. I tried disabling all of them and when I try the shortcut nothing happens. I cannot figure out how to go about this. Any help is greatly appreciated.
ps: I use vscode version 1.50.1 on windows 10.

three.js – three.module.js – I just dont understand why?
Cool works fine — runs fine.

After much strain to find and download the files – it does not run?
(I put MY project links right there to find! Would be so simple, but not at takes an hour to rebuild a project 🙁 complain complain complain lol )

What am I doing wrong, with this “module” stuff — I got it to work this way.

<script type="module">
import * as THREE from 'three.module.js';
<script src="three.js"></script>

Can anyone explain three.module.js proper use? and WHY? Why even have something so heinous; to what end?

Oh right, and of course this does not help much if I can’t make a map like that one. I have no clue how to do that map.