Billal BEGUERADJ

Sep 27, 2018 14:49
I do not agree with that. New and unexperienced users do not know how to ask and they need help through comments instead of being punished.
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Sep 7, 2018 11:13
Hello. I am doing a project where I have a component called 'ComponentA.vue' which is located in myapp/src/component. From it, I want to import an other component located in myapp/services/ComponentB. I did import ComponentB from '@/services/ComponentB but it failed. Any help please?
Sep 6, 2018 07:55
Thank you very much for the info. So I need to install npm version 5 on ubuntu 18 in a different way, I will check how
Sep 6, 2018 07:52
Thanks, but when I install the latest version of npm on Ubuntu, that is what I am getting ...
Sep 6, 2018 07:51
Hello. When I type npm -v I get 3.5.2. Is this what we call npm version 5?
Aug 31, 2018 08:52
thank you KarelG
Aug 31, 2018 08:52
Did not know about it, thank you. But that triggered other errors I have to think about
Aug 31, 2018 08:48
That error points to this line in file2.js: import { square } from "file1";
Aug 31, 2018 08:47
Very good point, thank you a lot (and what a shame on me), but still getting the same syntax error
Aug 31, 2018 08:45
This leads to this error: Uncaught SyntaxError: Unexpected token {
Aug 31, 2018 08:44
<!DOCTYPE html>
<html>
<head>
    <script src="file2.js"></script>
</head>
<body>
    <script>
       displaySquare();
    </script>
</body>
</html>
Aug 31, 2018 08:44
finally I have index.html:
Aug 31, 2018 08:44
import { square } from "file1";

function displaySquare {
   console.log('Square of  4: ');
   console.log(square(4));
}
Aug 31, 2018 08:44
and I have file2.js:
Aug 31, 2018 08:43
Ok, thank you, sorry
Aug 31, 2018 08:43
var square = function(x) {
return x * x;
}

export { square }
Aug 31, 2018 08:43
I have file1.js:
Aug 31, 2018 08:42
Hello people, I have a weird situation in JS.
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Aug 19, 2018 12:28
Thank you very much for the help, Wes. Goodbye everyone
Aug 19, 2018 12:25
sorry, I deleted it
Aug 19, 2018 12:24
0
Q: PHP code coverage: Error in setting phpunit.xml

Billal BEGUERADJIn order to whitelist the appropriate files for code coverage, I created phpunit.xml in my small project: ./tests ./tests/EmailTest.php ./test.php ./composer.json ./composer.lock ./vendor ./src ./src/Email.php ./phpunit.xml The content of phpunit.xml is: <?xml version="1.0" encoding="UTF-8"?> <

Aug 19, 2018 12:11
Yes, that is a good tool, and I am using it in my current example, thank you
Aug 19, 2018 12:08
Nice to know. Thank you a lot
Aug 19, 2018 12:08
Thank you VERY much @Wes
Aug 19, 2018 12:06
Hello people. I am doing PHP unit testing. I am interested in code coverage. What is the name of the file where I should write the whitelisted files to test? And in which folder this file sould be in? (I am running everything with Composer). Thank you
 
May 15, 2018 10:30
Ok. Have a nice day
May 15, 2018 10:30
If you do not understand something in my code, any time/any date, you can ping me and I will answer you here. Do not hesitate to ask.
May 15, 2018 10:29
I just created a dictionary {key: value} where the key is the name (variable name) of the corresponding button and the value is the Button widget created.
May 15, 2018 10:26
I think the most important thing in my code is to read the create_buttons() function: it shows how I keep trace for the 16 created buttons . That is why I was able to access the bottom right button you were looking for
May 15, 2018 10:25
Small functions facilitate unittesting (something you will practice later with Python, maybe)
May 15, 2018 10:24
I created a class for that and each function says what it does.
May 15, 2018 10:23
When you develop a graphical interface in Python, you should use the object oriented approach.
May 15, 2018 10:22
Did you run the solution I provided?
May 15, 2018 10:22
Hello @FlyingThunder
May 15, 2018 10:21
Hello
May 15, 2018 10:21
Check my edit, is that what you are looking for? Ask questions if you do not understand my code. @FlyingThunder
May 15, 2018 10:21
Do you want a solution for the specific scenario you described?
May 15, 2018 10:21
Sorry, I do not understand your question because you did what you asked for yourself (the code in your question). Otherwise, please clarify me
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
May 11, 2018 11:51
Do not worry, you can not be worse than me in English
May 11, 2018 11:50
Thank you also Andreas Deak
May 11, 2018 11:50
I think it makes sens what you said, Cosmo. Thank you a lot
May 11, 2018 11:47
Thank you all, but it seems I still can not understand. I found that phrase here
May 11, 2018 11:45
KEYSIZE is in bits
May 11, 2018 11:40
What is that worth of bytes?
May 11, 2018 11:40
Hello. Can someone explain me the meaning of this: "take the first KEYSIZE worth of bytes, and the second KEYSIZE worth of bytes,"
May 7, 2018 07:02
Why?
May 7, 2018 07:02
Coverage reports that the return and n = number are missing (not tested).
May 7, 2018 07:01
Unittested as: assertEqual(2, function1(1))
May 7, 2018 06:59
def function1(number):
    n = number
    return n + 1
May 7, 2018 06:58
Thank you Andreas Deak