All Questions

1
answer

Remove php / html extensions with .htaccess

I want to remove php / html extensions with .htaccess I have this code: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php </IfModule> b...
asked on 19.06.2018 / 16:22
2
answers

Problem print in cycle for

I want the program to ask me how many numbers I want to enter and then show me if each number I entered is a cousin or no cousin, but instead I am getting a number and immediately tell me if it is a cousin or not, then the next number and it tel...
asked on 30.08.2018 / 07:45
1
answer

resize image as days go by "counter"

I have a counter that shows an image of a planet underneath and I would like it to grow 5 px on each side as time goes by. Could someone help me or give some clue how to do it in JavaScript? This code is what I use for the counter: $("#coun...
asked on 24.10.2016 / 10:34
2
answers

Where do the values of the following variables come from?

Could you explain how the variables x, y, z get this value in this code: #include <stdio.h> #include <stdlib.h> main(){ float x=1, *y, z=3; y= &x; x=z+5; y++; printf("%f\n",x); /*8.000000*/...
asked on 29.10.2018 / 17:51
4
answers

Randomize

In my method I have a Random variable: public Bitmap getBmp(int nunidades,boolean base){ Bitmap bmp = Bitmap.createBitmap(ladoWidth * nunidades, ladoHeight, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bmp); int nbase =...
asked on 23.05.2017 / 12:27
2
answers

@foreach in laravel that goes from 2 objects to 2 objects?

I am building a blog in laravel but I found a problem in my blog template, from the file of routes I send by compact the variable post: Route::get('/blog', function () { $posts = App\Post::latest('published_at')->get(); return view(...
asked on 12.08.2018 / 06:07
1
answer

Advantages JQuery versus Javascript

First of all, I do not want this question to be answered by opinion and therefore not be considered as such by the moderation of the community. All of us who have used or used JQuery know that once you make the structure of the library...
asked on 10.10.2016 / 00:28
2
answers

how to make an INSERT of several countries

This situation has never occurred to me but there is always a first time. The thing is that I have a field type select and I need to fill it with a list of countries, I already have the list but I have no idea how to do INSERT of this...
asked on 16.09.2018 / 01:26
2
answers

Learning promises, does not execute sequentially

I am learning promises , and I was doing some examples. This is my code in which I intend to show.    the following: // one, two, three, four but instead shows   asynchronously // one, four, two, three let promise =new Promise(function...
asked on 30.10.2016 / 17:01
4
answers

Function to add a variable when clicking on JavaScript

I'm trying to make a function that every time I click a button, add a value to a variable, and it shows on the screen but it does not work. Any ideas on how to fix it? <button onclick="myFunction()">Click me</button> <p id="d...
asked on 08.10.2016 / 16:26