Details
-
AboutWhen I use bad language and insulting other people, it just the expression of how I feel. Authors of buggy software - clear the insults from my text and you have bug report.
-
SkillsPHP
Joined devRant on 3/24/2019
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
vue errors impossible to know where it caused
https://pasteboard.co/E5ynqes5IISK....
when I click on vue.js?3de6:634
it just gives some inside file. No stack trace to my file. Are you thinking what you are creating? Or are you making it to make it more difficult to debug vue creators?
https://pasteboard.co/geCmKtufSmQI....3 -
Fucking mql5 - code gives no errors, it should create a file but it does not. Why is that?
https://pastebin.com/nUL47eMf
I have searched all my computer, there is no such file.9 -
https://imgur.com/a/ceg8bNm
fucking google drive. How to fucking transfer folder to another google drive without needing to download and upload? wtf how can it be that stupidly done. THere is such make a copy menu on file but not on folder. WHat are they smoking? will I go on each file make copy?1 -
Fuck ubuntu 20 - it does not show the max monitor resolution. Probably thats why many people use mac or want to use.4
-
Will start work probably next week after lots of searching. Few months without work was good life relatively. Wake up whenever you want to, browse reddit how much you want to, way more time to do things that want. Now in new job especially on trial period I will have to learn lot, also that rush to work if I do not want to end work late makes life worse. Full time jobs suck. Half day work would be better but to get even little shorter work week is a big challange. At least when was fired from previous job. Fuck that.
Also probably will take a non remote position because they claim it is low stress. But I believe their codebase sucks, they do not write tests. But they say they are planning to start writing tests. But still most important thing is low stress, but question is how in reality will there be low stress. Or will they fire me quickly even without causing me stress. It would be ideal to learn at least all the tech they are using, so that I would not lag too much because of this, but I have no idea how to quickly learn, I thinik I would need 2 hours after work for learning, which sucks that I will not be able to enjoy at least after work time.
Plus the fucking traffic jams. Why they can't have remote position. Especially when covid cases are growing. -
Took about 67 hours to do homework task and still not got the job offer. And they kept asking few times when I will send the task, because they saw me as very likely me fitting, so I thought there is high chance to get and was motivated to do the homework.
Of course that much time took because I did not know technologies, it would be much less if I knew tech.
But at least learned new tech.13 -
Drupal and composer - cannot install single package. Just composer errors which I cannot find solution for.
-
Fucking wrong parameter number.
select id,
name,
email,
logo,
IF(company_contact_ids is null, 0, contact_count) as contact_count
from (
select `companies`.`id`,
`name`,
`email`,
`phone`,
`logo`,
COUNT('company_contact.id') as contact_count,
GROUP_CONCAT(company_contact.id) as company_contact_ids
from `companies`
left join `company_contact` on `company_contact`.`company_id` = `companies`.`id`
where name like '%:name%'
group by `companies`.`id`
order by `name` asc
) as companies;
how many parameters do you see? I see 1.
https://pasteboard.co/KjDUjA3.png
Now how many parameters you see in $bindings array? I see 1
Fuck you laravel creators - it is not fucking wrong count. Why this error lies to me? Or what fucking count do you expect if I defined in the fucking query 1 parameter?3 -
public function index(Request $request): array
{
$parameters = json_decode($request->get('lazyEvent'), true);
if (isset($parameters['page'])) {
$page = $parameters['page'];
} else {
$page = 0;
}
$queryBuilder = DB::table('companies')
->leftJoin('company_contact', 'company_contact.company_id', '=', 'companies.id')
->groupBy('companies.id')
;
if (isset($parameters['filters']['name'])) {
$queryBuilder
->where('name', 'like', '%' . $parameters['filters']['name']['value'] . '%')
;
}
$total = $queryBuilder
->count()
;
$companies = $queryBuilder
->select('companies.id', 'name', 'email', 'phone', DB::raw("COUNT('company_contact.id') AS contact_count"))
->orderBy('name')
->offset($page * $parameters['rows'])
->limit($parameters['rows'])
->get();
return ['companies' => $companies, 'totalRecords' => $total];
}
what is this shit? I get $total 1 when in reality is $companies count is 51
I am thinking avout writing whole sql as raw because I cannto get fucking count correctly21 -
again xdebug not working and not giving any logs.
How can I at least get logs so that I could know what is wrong with it? I already tried this answer:
https://stackoverflow.com/questions...2 -
Can somebody give working example how to solve
Access to XMLHttpRequest at 'localhost:8000/index.php/api/companies/1/logo' from origin 'http://localhost:8080' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
this error is talked so much but no working solution I can find. Maybe it is somewhere but cannot find so far in the internet trash.
Nginx server.
Not by installing chrome plugin, because other people would also need to install it. Thats not a solution.20 -
chmod a+w storage/logs/laravel.log
This command makes file writable.
So why I cannot edit the file after runnign this command ? No errors were given after running.
Tried also with -R on logs folder.
WHat is happenign with the software, why nothiing works?14 -
Laravel route not found.
Look - so simple :
Route::post('/api/companies', function () {
return 'Hello World';
});
how the fuck it is not found?
Request URL: http://localhost:8000/api/companies
Request Method: POST
Status Code: 404 Not Found
???? I have cleared cache.
How do I check fucking available routes then? In symfony there was router:debug or smth. Cant see like this in laravel44 -
Laravel docker ports configuration sucks. There is no fucking documentation in fucking laravel docs how how to fucking configure ports. I have set wrong port, wrong host with my docker setup and it was just giving fucking stupid error where lot of stackoverflow solutions do not help. FInnaly I found the solution here https://stackoverflow.com/questions...
which finally helped. So the host needed to set to the mysql instead of fucking localhost - I had found this in another SO answer but it was not enough. How the fuck can I know. Why it is not written in documentation. https://laravel.com/docs/8.x/...
And then port - it was needed 3306 - how the fuck could I know that I need it instead of 3000 which I have set in docker setup? Wtf.
Finnally when I made query "laravel docker what mysql port to use"
then I found this stackoverflow answer. Why need to make things so hard? -
Again symfony documentation or symfony itself. Or me not noticing something?
Doing simple commands from
https://symfony.com/doc/current/...
and https://symfony.com/doc/current/...
and encore not found . Wtf. Just wasting my and other devs who have same problem time.4 -
Fuck you creator of that video: https://youtube.com/watch/...
this shit does not work.
At line:
const app = createApp(App);
"Uncaught TypeError: Object(...) is not a function"
wtf. Or fuck vue? maybe in another place I did something wrong but I cannot see? And error is written by idiot. What object? createApp object? Then why it is not a fuction? I have imported it as was in the fucking video
import {createApp} from 'vue'
so how the fuck it can be not a function?
DId
console.log(createApp)
and it shows it is fucking undefined. So yea, it is not a fuction.2 -
How long (what % of day) are you fully focused (contentrated) on programming on average per day? How many hours is your work day? The longer the hours, the harder to stay focused we probably can agree. How are you doing in carreer - good or not, can tell as detailed as you might want to share.19
-
stupid docker creators. Why the fuck when something does not work it does no show errors. I had so much anger till idea came to head to ask on google does docker has logs and found it has - docker logs command. And I saw fucking errors and then I knew by them what to fix. Idiots, hide errors when runing docker-compose up, what are they smoking when creating docker.
And even after docker-compose up it showed done !! Done sounds as everthing went without fucking errrors!!!! But when running docker ps there was no such container! Because when running it - it was giving errors.13 -
The fuck symfony again - passwords migration - no error but does not work. One guy in the comment wrote what fixed - I had wrong configuration. Why it cannot give fucking error when the configuration is wrong. And I did not see even in documentation that I need to do that. I do not know if symfony really deserves so much popularity if it wastes so much time. Checked my tracker - I have spent about 13 hours for symfony upgrade from I think 5.1 to 5.3 and password migration.
-
Symfony docs suck.
https://symfony.com/doc/current/...
when running
doctrine:migrations:execute
what parameter to pass to the fucking version to not get class not found fucking error?
No explaination in docs, no explaination in command --help. wtf is wrong with symfony devs?9 -
Good company refuced my contracting service. Fuck that. And reasons do not sound good to tell - like team did not want me anymore, maybe too dificult project, I am not independent enough, too many fixes after code reviews. This sucks that I do not know how to fix those parts, I have tried. And about too dificult project - how can I do better on dificult projects, I am not sure. There are projects of similar dificulty in most companies. And if projects would be easy, then everyone does that and reward would be small.18
-
Today checked my learning time tracker. I have spent already 80 hours for learning angularjs. And I still am not able to write unit test without errors. What the fuck. How many hours more do I need to finnaly be able to write unit tests without any problem?
Like today getting
An error was thrown in afterAll\nSyntaxError: Unexpected token 'export'
and I do not even use afterAll() funciton so they give error somewhere from the inside of libraries. Why they do that? why cannto they give easy to understand error?
Everytime I sit to write unit test for learning, all the time I feel I will not understand. And I am right everytime. Damn. That makes me need to force motivate myself. I want to see results, not sit at the same place so many time.18 -
Wtf is this a feature and I dont know? why on google I cannot find? or is this crappy bug? Why my file syntax is not highlighed in phpstorm? And file icon is different from other js files?7
-
Fuck JS. I want to import file and it just gives errors. In PHP for few years it never happens. You check if namespace is correct it always imports without problems. Fuck you JS creators. It asks to install a library, but I am not fucking importing a library. I am just importing my own created simple file. Fuck you.
import addCommas from 'formatter';
formatter.js
export default function addCommas(number)
{
console.log('aaa');
return number;
}
idiotism.13 -
Metatrader 5 mql editor idiots. I have made changes, saved file and it is empty. I can only undo changes, which makes it become as it was before changes. Fucking idiots.
Later I see when I open the file from windows browser in notepad++ - tthe changes exists. What a fuck bullshit. So at least they exists but idiots show same file in metaeditor with old changes after undo or empty if not undo. -
Wtf plunker. I decided finally when asking questions it would be convenient for devs to answer when they have example in plunker or some other platform where can code be edited and exectured. And I cannot do simple thing - create a file. Wtf. Now I am googling for tutorial how to create a file in plunker. Wtf idiots. File creation should as easy as clicking right mouse button and creating fucking file. And now it opens browser contect menu wtf !1
-
Wordpress.com are idiots. I have free site there. And now I want to edit my posts and I clicn on my site in top left and it does not do anything. And its not a first time. Wtf. Fucking idiots. Even if they made a bug, for millions of users they should fix. Now what , millions of users cannot edit their sites? idiots. And I see no way otherwise to edit my posts or add new.
Or I click write when loaded my site, and it fukcing opens white page. What a fuck.3 -
Metatrader and its forum. I have asked a question 2 weeks ago, simple one. Just want to know how it calculates loss in backtest because it does not match my calculation. And nobody is answering. Then I go add comment to support thread, and my comment was deleted twice! wtf. And I cannot find in documention or in other forums my answer. Need to try stackoverflow maybe. In official forum they should know best. And it looks like it is active forum.6
-
Again idiotic language or documentation.
I want to just draw stupid arrow on chart. Took code from example. It just does not draw. No fucking error.
mql language.
Just in case somebody knows:
ObjectCreate(name, OBJ_TEXT, 0, 0, 0, 0, 0);
ObjectSetText(name, name);
ObjectSet(name, OBJPROP_COLOR, Green);
//ObjectSet(name, OBJPROP_TIME1, Time[0]+2*Period()*60);
ObjectSet(name, OBJPROP_TIME1, Time[0]);
ObjectSet(name, OBJPROP_PRICE1, High[0]);
this code is in onTick() method.
It looks like there are tons of posts on how to do it but nothing works what I have tested.
I really from time to time think about writing some trading bot but probably thats why I stop doing it because it takes so much time to do simple things with this language.
I could do with languages which I know - php, js , but still if i want to run it with brokers who have metatrader, I would need to know mql language :(3 -
Its annoying. Spent again hour trying to make run my symfony app with docker - and fucking does not work and is not clear why. Why this fucking docker is so unclear? Like does not see autoload.php file but I see it installed. Idiot docker.5