Tag Archives: A programming language

Chrome your connection is not a private connection solution

Problem: the following problems occurred when the running project was opened in chrome

This problem occurs a lot when I visit the company network, GitHub and so on. I have a headache

Your connection is not private
an attacker may try to steal your information (such as password, communication content or credit card information) from x.x.x. Learn more
net:: err_ CERT_ INVALID

Send some web addresses, limited system information and some web content to Google to help us improve the security of chrome. Privacy policy
x.x.x.x usually uses encryption technology to protect your information. When Google Chrome tried to connect to x.x.x.x this time, the website sent back abnormal wrong credentials. This may be because an attacker is trying to impersonate x.x.x, or the Wi Fi login screen interrupted the connection. Please rest assured that your information is still secure, because Google Chrome has stopped connecting without any data exchange.

You can’t access x.x.x.x at this time because this site has sent messy credentials that Google Chrome can’t handle. Network errors and attacks are usually temporary, so this page may return to normal later.

 

The boy taught me a move, I feel very practical

Solution: in the current page with the keyboard input “this is a safe, not in the address bar input, directly on the keyboard on the line, the page will automatically refresh into the web page.

Reason: because chrome doesn’t trust these self signed SSL certificates, for the sake of security, it directly forbids access. This is a safe command, which means that you have understood and confirmed that this is an unsafe website. If you still want to visit it, you can visit it.

Rust solves cargo build too slowly

Replace the crates repository source

    Open or create a new er directory /.cargo/config f>to add the configuration

to the>

[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"

replace-with = 'tuna'
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
    Save exit

Clion automatically adds add_ executable

CLion automatically adds add_executable
Install the C/C++ Single File Execution plugin, search for the C/C++ Single File Execution, find file-settings-plugins, and apply.
The preparations are complete. Next you can create a new C/ CPP file, enter the code, press Ctrl + Alt + Shift +E shortcut or right click in the code area and find Add Executable for Simple C/C++ File, then right click on the item area on the left and select Reload Cmake Project, select Auto-Reload so that it will automatically add to the executable after each right click on Add.

National No.1, what did Python do?

Python is without a doubt one of the hottest programming languages out there right now. The rise of Python has taken programming to a new level. It is no longer just for programmers, and everyone is learning Python, leading to a sudden rise in popularity and popularity. Python is extremely beneficial to the entire industry.
Python is everywhere, as Tiobe officially says, and in fact, since 2018, businesses have been deploying Python.
In education,
1. Since March 2018, the subject of “Python Programming” has been added to the National Computer Rank Examination II;
2. In 2018, Zhejiang Provincial Information Technology Teaching Material announced to abandon VB language and choose Python language which is more easy to understand;
3. The sixth grade information technology textbooks for primary schools in Shandong Province have also added Python content
In technical circles,
1. Python is developing rapidly in data science, machine learning, artificial intelligence, etc.
Python is also suitable for Web development, backend, mobile application development, and even (larger) embedded systems.
Python is becoming more and more popular, and it’s also attracting a lot of learners. Although Python has a reputation for being easy to learn, it can be difficult for people who have never been involved in computer programming to get a good grasp of it. The most important thing for beginners to Python is to choose a direction that works for them.
Learn Python from scratch! Learn Python from scratch! Today you can get all the information for only 0 yuan! And in the process of learning, you can also participate in our live learning!
A basic introduction to Python
Python development environment, function application, file manipulation, object-oriented, exception handling

2, Python advanced knowledge point explanation
Network programming, concurrent programming, database Linux system application Python syntax advanced HTML, CSS
Three, Web development selected good article + project combat
Django framework environment construction and entry case ORM principle and database configuration project practice: CSDN micro-course mall development practice

Three, Python crawlers selected good articles
How to use Scrapy framework, Middleware data persistent storage development method Redis visualization tool use project: Python distributed crawler + data analysis project: 2020 the latest focus of the crawler mechanism and bypass

Four, data analysis and data mining tools + actual combat projects
Pandas and Seaborn will be Pandas’ Notebook Data Science module. It will be Pandas’ Notebook Data Science module. It will be Pandas’ Notebook Data Science module

5. Artificial intelligence
Features Engineering Machine Learning Spam Classification Mechanism Principle Classifier Processing Recommendation System Architecture New Algorithm Launch Process and User Satisfaction Collection Strategy RMSE and MAE Evaluation Accurate Practice Project: Movielens Recommendation Data Analysis

 
All technical articles selected documents, video materials, project actual combat video have been sorted to the network disk

Click on the link and leave your contact information, can rapid consulting, get free information: https://t.csdnimg.cn/VtgI

And these [Python project source code] are all sorted out
It is not easy to organize the data, so be patient and learn
 


 

Click on the link and leave your contact information, can rapid consulting, get free information: https://t.csdnimg.cn/VtgI

> > > > > > > > > > The dividing line, underline < < < < < < < < < <
As a programmer technical community, has been adhering to the “achievements of 100 million technical people” mission, in order to help Python small white from 0 system combat each application direction, play a good Python each application post core ability! CSDN launched the Python Full Stack Developer!
What are the features of this course?
1. Constantly iterating content research and development to keep up with the market
CSDN, as the domestic programming technology community and the gathering place of the domestic programmers, has a good understanding of the Python technology requirements of the current enterprises.
This course is designed by the front-line industry lecturers according to the corporate talent portrait and training needs of the enterprise, with comprehensive content and professional learning path for the students, and training the complex and professional Python development talents.
1) The course teaches Python programming grammar + 4 popular applications +10 enterprise-level practical projects from a practical perspective. Connecting all of your Python knowledge through six stages of module design creates your own Python framework. At the same time, the course keeps up with the market demand iteration, and the course content of the upgraded version of the course is free to learn within the learning cycle! 2) Multi-stack technical personnel training, from the basic knowledge to the orientation of various employment, to provide multi-module content learning. 3) Multi-level employment analysis personnel training: Python full-stack development, Python crawler, Python data analysis, Python Web, artificial intelligence and other employment direction.

2. Perfect and sound course learning/supervision system
One to one question-answering by instructors, real project practice, regular testing, head teacher supervision, live question-answering, homework correction, and effective “learning, practice, testing, evaluation, answer integrated teaching mode”, CSDN guarantees your learning effect.
In addition, CSDN will also invite some industry celebrities to hold closed-door sharing meetings for students from time to time. Maybe just a little experience sharing in job hunting and daily work can help you avoid many detours.

3. Build your own personal network
I have to mention CSDN’s in-factory promotion service: excellent students can directly promote their resumes to the desk of the employing department. Meanwhile, they can cooperate with a number of senior tutors to provide one-to-one guidance to improve your employment rate.  
At the same time, CSDN alumni from Baidu, Tencent, Toutiao, Huawei, Meituan, JD.com, Xiaomi, Apple and other well-known first-tier “star” companies exchange circle, promote mutual communication and communication, at any time with excellent people continue to learn and progress. It also provides each student with the opportunity to enter the circle of high-quality network communication.
4. For all your other questions, here are the answers:
Q1: What is the learning style?
A: Online learning: the teaching mode of live broadcasting + recording. Of course, if you can’t catch up with live broadcasting, you can watch high-definition recording and playback at any time.
Q2: Is the after-sale service of the course complete?
A: Private VIP small group services: the speaker, teaching assistant, head teacher and employment teacher provide more than one personal question-answering service to effectively ensure the speed of answering questions and improve learning efficiency.
Q3: What is the schedule of the course?
A: The course adopts the on-demand learning mode. During the learning cycle, the courses are upgraded for free learning.
Recording part: is the dry, weekly recording 4-6 hours [material], probably need 1.5-2.5 times the learning time, this is to see their own appropriate time range, recording is the lecturer in advance in the recording studio alone, after the opening to you, not the playback of the period of live Oh.
live broadcast: weekly live broadcast, 1-2 times a week, two hours a time, combing important and difficult points for expansion, usually 8-10 PM, or in the afternoon of the weekend, miss can watch the playback and review repeatedly.
Q4: Is there any guarantee for registration?
A: In order to protect your learning rights and interests and our confidence in the course, if you are not satisfied within 7 days, you can carry out the refund process with CSDN unconditionally at any time.

Click the link, free to receive hd + learning route course planning: https://t.csdnimg.cn/VtgI

Do you want to get fired? Let’s take a look at the programmer’s resignation tips

Dream eraser, a funny Internet advanced nerd.

The article directories
Write in front 1. Proficient in using rm command 2. Write in reading and writing database operation 3. Do not write comments, do not encapsulate code 4. Forcibly merge code on git 5. No technical resignation tips (thumb up over 200, send to get your boss quit tips O(∩_∩)O

Writing in the front
As the saying goes, write less code, leave less.
Travel the Internet recently, found some tips to leave the job, after reading, the heart was deeply moved
But after careful tasting, found that we programmers are not applicable.
Such as:

    leadership clip dishes you turn the table, we programmers generally not leadership at a table; Leaders open the door you get on the car, our programmers are sitting on duty, generally not on a business trip, business trip generally also leadership drive; Leader K song you cut song, oh ~ KTV singing, I generally hide in the corner; The leader toasts you not to drink,…… ; Leaders listen to your self-drawn,…… ; Leaders drink water you brake,… .

They are clever schemes, but they are not easy for us programmers to learn. Then I learned the following six tips.
“Career Tips”

    > When the Leader says “I’ve been working hard”, you will reply “Don’t be idle and get me a glass of water”, showing your recognition of the Leader’s care. Leader WeChat calls you, you reply “?” “Or” Yes?, simple and efficient. When the Leader asks you why the progress is so slow, you will reply, “Come if you can”, to show your affirmation of his working ability. You are working, and the Leader pretends to be in front of you. Straight back, “Are you teaching me to do something?” “, through humorous language, rhetorical question sentence pattern, play a role in relieving embarrassment. The Leader assigns you a JIRA task and you reply, “That’s it?” , indicates that the requirements are simple and the work can be fully competent. When the Leader asks you to go to the office, you reply, “Don’t you have legs?” “In recognition of his long legs. The Leader sends you a bunch of tasks and says “oh” first. Say more, the job is the same job, just give a response. A coworker asks you, “I notice you’re not doing anything lately?” “, you directly reply “mind your shit”, indicating that the Leader has a clear division of labor and praises the perfect system of the company.

Well, the general skills have been learned, the next formal entry programmer resignation skills reveal secrets.
1. Proficient in using RM command
What is the rm command?Knowledge is not particularly difficult, if you want to learn, can be in the test environment to try rm - rf/ or rm - rf/* command.
Note that after running this command, it is best to copy the file a few times after executing it
There's probably nothing the gods can do to keep you from getting fired
If this exit tip doesn't satisfy you, try it in a production environment
Challenge yourself. Give you the authority of the administrator and you will dominate the company
However, after learning this skill, in addition to being able to receive a resignation medal
Maybe you'll get a tip for going to jail
Here buy one get one free for everyone, how much is a gift eraser.

2. Reading and writing database operations are written in the for loop
This exit tip is even more powerful, and it's hard to find out without a Code Review
Read and write database operations, written in the for loop
What subquery, association query, left join, right join, all without
You look up one table, then iterate over the results, and then look up another table
Just be direct
What about multi-table queries?One table, one level loop.
The database link is opened and closed at each level of the loop
select *lect *

Think of the technical director's helpless face when the server's memory and CPU exploded while reading tens of thousands of data
Is not very cool ~
This is a great exit tip. I hope you enjoy it
What?Sounds like you're complaining, don't you think it's enough?it doesn't matter
In the attached to you a, to delete the delete , don't write the where condition, see.

3. Never write comments, never encapsulate code
Don't listen to the technical director, write notes, write documentation, he is to slow down your development efficiency
Then how do we aim at this kind of unreasonable request, and analyze from it to leave a skill
Do the opposite
Never write a comment, let alone a development document, is wasting your valuable time
And the name of the variable, the name of the function, just a, b, c, e, f, g
In addition to simplicity, it comes with encryption
That way you can devote your limited time to development
After all, when you write code, only you and God know what logic is. Maybe in a couple of days, only God knows what logic is.
Second, do not encapsulate the code, from the top to the bottom of the written, program execution, is the most efficient
One function writes a day, one function writes a file
A file to write tens of thousands of lines of code
Then at the end of the code file, write neatly 20 curly braces, that sense of accomplishment must be huge
Don't know what curly braces are?Here's a reference case

					}
				}
			}
		}
	}
}


4. Git forces merging of code
The tips above can't satisfy you, so you'll love this one, and it's a technical flow
After Git commits the code, what?Have a conflict?
Who dares to modify the same file with me
Forced to merge him
masteranch
branch
I'm sure I won't get a resignation letter once or twice
Need to repeat the operation N times, will be able to welcome the resignation notice
What?N times, still can't get the resignation achievement
After merging someone else's branch, make fun of the guy being merged
Make him feel inferior, and then get angry
Let him beat you, then the technical director, must think you are being bullied, and give you a parting award
This is a resignation achievement on its own merits

5. Quietly modify database fields without warning, or change the interface to return data
The trick is to slay the dragon, and when the testing process is found to be faulty, the opportunity arises
Quietly fix one of your own bugs, while silently triggering another
For example, you can modify a field in a table in the database
Then release a patch pack in the name of a system update BUG
The online environment may suddenly crash because it is difficult to see because of the database fields being modified
The more times the system crashes, the better off you'll be
You can also modify the interface data format for the mobile phone, adjust the name of the parameter
In short, fix bugs carefully and write code carefully
Don't let the technical director get the slightest hint that you want to leave
Quietly, he got his resignation letter

666. No skills to quit tips (thumb up over 200, send to your boss quit tips O(∩_∩)O)
What?The above technical level is too high, you technical dishes, can't learn?
No problem, Eraser has carefully prepared you with three easy-to-follow, no-tech quitting tips
There's no barrier to getting started with these skills, so just list the titles

    anonymously teased the company, inadvertently revealed their ID for the meeting screen projection, set automatic QQ reminder, let friends crazy teasing the boss, open the large screen oncoming mode when the technical director demonstrates the project, quietly connected to the projector with Bluetooth, you know the follow-up...

For more tips, please share the comments section

reading


    100 cases Python crawler tutorial, fantastic crawler tutorial, subscribe now Python crawler small class, wonderful 9 speak


    Today is the 100th day of continuous writing 610
    If you have ideas or techniques you'd like to share, feel free to leave them in the comments section.


    If you want to build a close relationship with the blogger, follow the blogger, or follow the public account non-undergraduate programmer to see how a non-undergraduate programmer grows.
    blogger ID: eam eraser ,>e you thumb up, comment, favorites

Solving Python error: local variable ‘a’ referenced before assignment

First, the cause of the problem
Defines a variable outside a function, and then use the following variables inside a function in python, and change its value, the result error local variable ‘a’ referenced before the assignment, the code is as follows:

error reason: the python functions and global variables with the same, if you have to modify the value of the variable will become a local variable, the reference to the variable nature can appear not to define such a mistake.
Second, the solution
The problem is solved by declaring a as a global variable with the global keyword:

Error: cannot allocate vector of size 88.1 MB

Tags: TPS ace should be the reference of the big err is unable to pay attention to the hive
When I was training the model to run the code these days, I was always prompted to say: Error: cannot allocate vector of size 88.1MB, only knowing that the allocated space is insufficient.
Here are some of the answers we looked up:
1, this is the characteristics of R, there are several solutions:
1. Upgrade to R3.3.0 or above, the memory management and matrix calculation is too good. Calculations that can crash on R3.2.5 will work fine above R3.3.0. 2. Load some R language disk cache packets, search
3. Write code when appropriate to add some clean memory command.
4. I should run multiple threads.
5. Add memory function is limited. R3.2.5 can crash the server, which has 44 cores and 512 gigabytes of memory. It is necessary to optimize the code.
Second, sometimes adding memory chips can’t meet the demand of large data volume, so parallel computing strategy is adopted. If the data is read in one time, it can be combined with filematrix package to read the data from the hard disk in several times, but it will be much slower.
Three, find that parameter in R, there’s a place where you can change the maximum memory allocation, in Preference or something like that.
Download a Package called BigMemory. It rebuilds classes for large data sets, and is basically cutting edge in the ability to handle large data sets (including tens of GIGABYtes).
Links to cran.r-project.org/web/packages/bigmemory/
The BigMemory package is ok. Two other options are also available, mapReduce and RHIPE(using Hadoop), which can also work with large data sets.
Six, the great spirit guide (http://bbs.pinggu.org/thread-3682816-1-1.html), always the allocate a vector is the typical data too big can’t read
There are three methods:
1, upgrade hardware
2, improve algorithm
3, modify the upper limit of memory allocated by the operating system to R, memory.size(T) check the allocated memory
Memory.size (F) checks the memory used
Memory.limit () check the memory limit
Object.size () looks at how much memory each variable takes up.
memory.size() view current work space memory usage
memory.limit() view system memory usage limit.
If the current memory limit is not sufficient, you can change it to a newLimit by using memory.limit(newLimit). Note that in 32-bit R, the capped limit is 4G, and you cannot use more than 4G (digit limit) on a program. In such cases, consider using a 64-bit version.
Detail can refer to this article, is very good at https://blog.csdn.net/sinat_26917383/article/details/51114265
1 http://jliblog.com/archives/276
2 http://cos.name/wp-content/uploads/2011/05/01-Li-Jian-HPC.pdf
http://cran.r-project.org/web/views/HighPerformanceComputing.html 3 R high performance computing and parallel computing
If you encounter this problem, you can try the corresponding solution, the method is not bad oh ~
Error: Cannot allocate Vector of size 88.1MB
Tags: TPS ace should be the reference of the big err is unable to pay attention to the hive
The original address: https://www.cnblogs.com/babyfei/p/9565143.html