>PROBLEM
VMware Workstation and Device/Credential Guard are not compatible
>SOLUTION
If using VMWare v.15, upgrade it to v15.5
>ENV
w10
vmware15
VMware Workstation and Device/Credential Guard are not compatible
If using VMWare v.15, upgrade it to v15.5
w10
vmware15
You need to access the issues from closed sprints.
You have a Angular project using SaSS.
Starting the server, returns the following message:
SassError: Expected newline
Correct the .sass files converting to Sass syntax.
- syntax:
https://sass-lang.com/documentation/syntax
- Example:
Following the instructions in Vue's documentation after issuing the command:
npm run service
returns the following:
Local: "http://[C:]:3000/"
Naturally, this address fails.
Windows 10
Tested with Vue 2 and 3
Cell phones (smartphones) are objects of our daily lives.
If before we could not leave the house without a wallet (money and documents), today we are moving to replace it through the cell phone.
At first, I saw this as a good thing.
Wallet and cell phone are uncomfortable to carry because of their volume and weight.
Women wear purses, maybe they don't mind too much, but men like to use their pockets to avoid having their hands full.
With the possibility of paying bills via cell phone, I almost thought of retiring the old wallet, but I thought again.
There are several points of consideration, however, I will stick to the main ones:
- If someone steals your cell phone, or you lose it?
The cellphone concentrates everything and this increases the chances of deceit.
Despair is greater.
- If the cellphone is "contaminated" by apparently harmless applications that we installed ourselves because they offered something that interested us, and for free (something irresistible for most of us).
These "pseudo-harmless" applications mostly collect information as a form of payment for the so-called free service.
Nothing is free.
Everything needs a livelihood.
When the information collected is not that harmful, we still don't care.
The question is how to measure this?
How can we know the content of the information passed on that was presumable safe to be made public today but will no longer be so tomorrow?
Sometimes the useless information today, under a future context may become something very sensitive.
In the face of all this, I have long been reduced my personal exposure, because accepting this exposure is contributing to the loss of the little freedom that will be left tomorrow, as we get used to via gradual acceptance to, as it was like in the past when the boyfriend went out with a girlfriend accompanied by her younger brother by her parents' imposition. 😊
I didn't catch that time, but I became the younger brother. Terrible for me and for them. 😁
My attention to the subject of security has worsened, resulting in a very serious occurrence with access to my bank account at Itaú (Brazil's bank). Despite accessing the account, bill payments were blocked, which required me to wait from a few hours to a few days to unlock them.
I sometimes resorted to the bank's IT support, but without a solution.
They always returned the same small list of apps that are not compatible with the itaú's bank app and must be uninstalled, otherwise they block any transaction.
There were two solutions: either give up on the bank or solve the problem by digging yourself into the issue.
Since I like Itaú (many years of account), and being an IT professional, I accepted as a challenge to solve the problem because I had time to do so, as I was on vacation.
If in the day-to-day rush, I wouldn't have had time, and I would certainly have transferred all the operations to another bank's account that hasn't this obstacle.
I had already uninstalled all remote cell phone applications that Itaú's IT support had condemned as incompatible with the bank's security terms, but the problem remained.
I had to create a new criterion, different from the support direction so that I wouldn't end up having to uninstall all mobile apps using that mobile option that deletes everything and returns to the original state when you bought it. . 👿
It would be my last option.
NOTE
ENGLISH VERSION (below after prints)
Aproximadamente 1 ano e meio atrás comprei um Lenovo Yoga.
A máquina sempre teve uma performance no limite do desejável.
No resto, funcionava sem problemas.
Imaginava comprar uma SSD para resolver o problema da lentidão.
Repentinamente, o notebook perdeu a conexão com o Wi-Fi usando cabo.
Verificando o problema, descobri que as portas USB haviam parado de funcionar.
Qualquer tentativa de reparo via disco de recuperação ou imagem, tornou-se inviável sem conexão USB. Notebooks modernos não vêm mais com CD-ROM, que embora algo já em desuso, poderia representar uma medida paliativa.
Acessei o suporte, expliquei o problema.
A resposta foi que não têm mais peças e a fábrica não dá mais assistência.
Aproximadamente 18 meses depois da compra, a minha lata de lixo ficou mais gorda.
Lições aprendidas:
- Lenovo de novo, JAMAIS!
- Produto chinês? Só em último caso.
Lembrando que temos duas boas razões para evitar produtos chineses:
- A política one-way: compre, mas fora da garantia, só a sorte.
- A política expansionista: comprando produtos chineses você transfere dinheiro (recursos) e fortalece um regime político que à medida que se fortalece, está mostrando a que veio (Tibete, Taiwan, etc.)
I purchased a Lenovo Yoga notebook approximately 1.5 years ago.
The machine performed at its minimum desirable limit.
Anyway, it worked without problems, so I imagined buying an SSD to help to solve the performance issue.
Suddenly, the notebook lost the Wi-Fi connection using cable.
Checking the malfunction, I found that the USB ports had stopped working.
Any repair attempt via recovery disk or image became unfeasible without the USB connection. Modern notebooks have no longer CD-ROM, which could be a palliative measure.
Accessing Lenovo's support, I explained the malfunction.
The answer was that they do not have any more replaceable parts and the factory provides no further assistance.
Approximately 18 months after purchase, my trash got fatter.
Lessons Learned:
- Lenovo again, NEVER!
- Chinese product? Only as a last resort.
Remembering that we have two good reasons to avoid Chinese products:
- Unilateral policy: buy, but out of warranty, just luck may help you.
- The expansionist policy: by buying Chinese products, you transfer money (resources) and strengthen a political regime that, as it gets stronger, shows what purposes come for. (Tibet, Taiwan, etc.)
java.lang.IllegalArgumentException: org.hibernate.QueryException: Unable to resolve path [e.title], unexpected token [e] [select e from br.com.adr.model.entity.security.uni.RoleEntity WHERE e.title = :title]
Original code:
String sql = "select e from " + this.entityName + " WHERE e.title = :title";
Query query = em.createQuery(sql, RoleEntity.class);
query.setParameter("title", title);
Fixing the code:
Missing the 'e' entity alias:
String sql = "select e from " + this.entityName + " e WHERE e.title = :title";
Windows 10
JSF 2.2
WildFly 21
Using JSF, Primefaces and p:growl the messages return duplicated (twice).
Find the p:grow element.
Switch the p:growl attribute from:
<p:growl id="growl" showDetail="true"/>
to:
<p:growl id="growl" showDetail="false"/>
Issue to be fixed - doubled messages when the modal is closed after the deletionTHE CODEfaces-config.xhtml |
The application fails when deployed on the server (Wildfly/jBoss) return the following message:
Caused by: java.lang.IllegalArgumentException: UT010009: Servlet Faces Servlet of type class javax.faces.webapp.FacesServlet does not implement jakarta.servlet.Servlet
Check the following configuration:
- JDK'S version
- Libraries' versions (Maven's dependencies, etc.)
If the configuration seems correct, try to downgrade (or maybe upgrade) the server's version of JBoss or Wildfly.
For instance, from v.23 to v.21 or lower.
The application server's JEE version must be compatible with the project's libraries versions.
Check WildFly's JEE versions on its download page.
JDK 8/11
Wildfly 21
Eclipse
Windows 10
Scenario:
After performing an upgrade using:
apt update
apt upgrade
nginx returns installing issues and fails to start, returning an error message like this:
Aug 04 13:28:47 myserver.com systemd[1]: Failed to start A high performance web server and a reverse proxy server.
dpkg: error processing package nginx-full (--configure):
installed nginx-full package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full (<< 1.14.2-2+deb10u4.1~) | nginx-light (<< 1.14.2-2+deb10u4.1~) | nginx-extras (<< 1.14.2-2+deb10u4.1~); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
Eclipse returns on face-config.xml file the following message:
schema_reference.4: Failed to read schema document 'platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xml.xsd'
Git pull command fails returning error message of corrupted file:
git pull
error: object file .git/objects/dd/4b0b1a777609ba3f787823e566bfc989905319 is empty
fatal: loose object dd4b0b1a777609ba3f787823e566bfc989905319 (stored in .git/objects/dd/4b0b1a777609ba3f787823e566bfc989905319) is corrupt
1.. Copy the corrupted file from another local repository.
If there isn't another, you may clone one.
2. Issue the pull command again.
mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=ejb-javaee7
Returns:
[ERROR] Child module..does not exist @
Check your pom.xml.
Also, check the mirror's configuration in the maven's settings.xml file.
Example:
C:\Users\MYLOGIN\.m2\settings.xml
<mirrors>
<mirror>
<id>client-repo</id>
<mirrorOf>*</mirrorOf>
<url>http://xyz.core.cliente:8099/nexus/content/groups/my-group/</url>
</mirror>
</mirrors>
Comment, or remove the mirror that is not providing connection.
If it is a project mandatory resource, then report.
Windows10
(Same for *nix or apple except the paths)
After adding an implementation to bind using ngModel , for instance:
<p>
<label for="example-ngModel">[(ngModel)]:</label>
<input [(ngModel)]="currentItem.name" id="example-ngModel">
</p>
Return the error message:
error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'
@SEE: this issue may also be caused by other factors, check:
angular-ngform-error-ng8002-cant-bind.html
Make sure that the app.module.ts has the following configuration:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms'; // <--- JavaScript import from Angular
@NgModule({
declarations: [
AppComponent,
// ...
],
imports: [
BrowserModule,
FormsModule,
AppRoutingModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
In the app.component.ts (or whatever) file, check the import and make sure the constructor() and ngOnInit() are both declared:
import { Component, OnInit } from '@angular/core'; // minimal
//import { Component, OnInit, Output, Input, EventEmitter } from '@angular/core'; // usual
constructor() { }
ngOnInit(): void {
}
node.js 14.x.x
windows
The code below returns the error message:
This condition will always return 'true' since the types 'string' and 'EventEmitter<string>' have no overlap.ts(2367)
*** BAD
crossOffItem(event: EventEmitter<string>): void {
const ritems = this.items.filter( it => it !== event);
this.items = ritems;
}
TypeScript complains that the types are not explicitly equivalent or comparable.
*** OK
crossOffItem(event: EventEmitter<string>): void {
const ritems = this.items.filter( it => it !== event.toString());
this.items = ritems;
}
crossOffItem(event: EventEmitter<string>): void {
const val = event.toString();
const ritems = this.items.filter( it => it !== val);
this.items = ritems;
}
You need to work with different environments and workspaces for different purposes when working with different programming languages or different contexts.
For each context or environment, you've installed the desired extensions.
Also, it is interesting to keep a backup of the environment to save time.
If you have just one configuration setup and many needs, the VS Code configuration begins growing, eventually getting heavy, slow, and taking too much memory.
Also, the extensions' default shortcuts begin to conflict with each other.
There are at least three approaches:
1. Versioning control using branches, or
2. Separate configuration folders, or
3. Option 1 plus option 2.
The VS Code default folder that holds its configuration setup is under
"C:\Users\YOUR_LOGIN\.vscode" folder.
Create a git repository there.
For each kind of environment desired, create a specific branch.
The master branch would aggregate everything, but in this case, there is no use unless you do want to keep a backup of just one setup.
You may combine the two options above, but better if the branches keep a keyword to avoid losing control.
The best of all is that you never lose your env, never need to reconfigure, and may switch fast the environments preserving then VS Code app from getting messed and slow.
When rebooting the machine, returned blue screen with the following message:
windows system error STATUS_WAIT_3 0x80070003
Another attempt, returned another message:
windows system error STATUS_WAIT_2 0x80070002
>PROBLEM Using Eclipse, you try to run a simple logging test using "org.slf4j.Logger" like the sample below: package Test; im...