编程笔记

lifelong learning & practice makes perfect

What is it

图像风格迁移,可以生成特定风格的图像,例如由下面的图像Content生成图像Genrated Image G。

StyleTransfer

阅读全文 »

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//修不完的bug
class CBase
{
public:
virtual bool Func(unsigned int num,double dNum,vector<bool>& status){return false;};
protected:

private:

}
class CDerive
{
public:
bool Func(unsigned int num,double dNum){return true;};
protected:

private:

}
int main(){
CBase *pBase=new CDerive();
std::cout<<pBase->Func()<<std::endl;
}
阅读全文 »

隐私权条款

非常欢迎您光临 programnotes.cn(以下简称本网站),为了让您能够安心使用本网站的各项服务与资讯,特此向您说明本网站的隐私权保护政策,以保障您的权益,请您详阅下列内容:

一、隐私权保护政策的适用范围

隐私权保护政策内容,包括本网站如何处理在您使用网站服务时收集到的个人识别资料。隐私权保护政策不适用于本网站以外的相关连结网站,也不适用于非本网站所委託或参与管理的人员。

二、个人资料的蒐集、处理及利用方式

  • 当您造访本网站或使用本网站所提供之功能服务时,我们将视该服务功能性质,请您提供必要的个人资料,并在该特定目的范围内处理及利用您的个人资料;非经您书面同意,本网站不会将个人资料用于其他用途。
  • 本网站在您使用服务信箱、问卷调查等互动性功能时,会保留您所提供的姓名、电子邮件地址、联络方式及使用时间等。
  • 于一般浏览时,伺服器会自行记录相关行径,包括您使用连线设备的IP位址、使用时间、使用的浏览器、浏览及点选资料记录等,做为我们增进网站服务的参考依据,此记录为内部应用,决不对外公佈。
  • 为提供精确的服务,我们会将收集的问卷调查内容进行统计与分析,分析结果之统计数据或说明文字呈现,除供内部研究外,我们会视需要公佈统计数据及说明文字,但不涉及特定个人之资料。
  • 您可以随时向我们提出请求,以更正或删除您的帐户或本网站所蒐集的个人资料等隐私资讯。联繫方式请见最下方联繫管道。

三、资料之保护

  • 本网站主机均设有防火牆、防毒系统等相关的各项资讯安全设备及必要的安全防护措施,加以保护网站及您的个人资料採用严格的保护措施,只由经过授权的人员才能接触您的个人资料,相关处理人员皆签有保密合约,如有违反保密义务者,将会受到相关的法律处分。
  • 如因业务需要有必要委託其他单位提供服务时,本网站亦会严格要求其遵守保密义务,并且採取必要检查程序以确定其将确实遵守。

四、网站对外的相关连结

本网站的网页提供其他网站的网路连结,您也可经由本网站所提供的连结,点选进入其他网站。但该连结网站不适用本网站的隐私权保护政策,您必须参考该连结网站中的隐私权保护政策。

五、与第三人共用个人资料之政策

本网站绝不会提供、交换、出租或出售任何您的个人资料给其他个人、团体、私人企业或公务机关,但有法律依据或合约义务者,不在此限。

前项但书之情形包括不限于:

  • 经由您书面同意。
  • 法律明文规定。
  • 为免除您生命、身体、自由或财产上之危险。
  • 与公务机关或学术研究机构合作,基于公共利益为统计或学术研究而有必要,且资料经过提供者处理或蒐集着依其揭露方式无从识别特定之当事人。
  • 当您在网站的行为,违反服务条款或可能损害或妨碍网站与其他使用者权益或导致任何人遭受损害时,经网站管理单位研析揭露您的个人资料是为了辨识、联络或採取法律行动所必要者。
  • 有利于您的权益。

本网站委託厂商协助蒐集、处理或利用您的个人资料时,将对委外厂商或个人善尽监督管理之责。

六、Cookie之使用

为了提供您最佳的服务,本网站会在您的电脑中放置并取用我们的Cookie,若您不愿接受Cookie的写入,您可在您使用的浏览器功能项中设定隐私权等级为高,即可拒绝Cookie的写入,但可能会导至网站某些功能无法正常执行 。

七、隐私权保护政策之修正

本网站隐私权保护政策将因应需求随时进行修正,修正后的条款将刊登于网站上。

八、联繫管道

对于本站之隐私权政策有任何疑问,或者想提出变更、移除个人资料之请求,请前往本站「联络我们」页面提交表单。

Privacy Policy

Last updated: [2024/11/17]

Introduction

Welcome to programnotes.cn . We are committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website and use our services. Please read this privacy policy carefully. If you do not agree with the terms of this privacy policy, please do not access the site.

Data Controller

The data controller responsible for your personal data is the company operating this website. For the data controller information, please refer to the “Contact Us” section at the end of this policy.

Information Collection

We may collect information about you in a variety of ways. The information we may collect on the Site includes:

  • Personal Data: Personally identifiable information, such as your name, email address, and telephone number, and demographic information, such as your age, gender, hometown, and interests, that you voluntarily give to us when you register with the Site or when you choose to participate in various activities related to the Site.
  • Derivative Data: Information our servers automatically collect when you access the Site, such as your IP address, your browser type, your operating system, your access times, and the pages you have viewed directly before and after accessing the Site.
  • Data From Social Networks: User information from social networking sites, including your name, your social network username, email address and profile picture, if you connect your account to such social networks.

Use of Your Information

Having accurate information about you permits us to provide you with a smooth, efficient, and customized experience. Specifically, we may use information collected about you via the Site to:

  • Create and manage your account.
  • Send you administrative information, such as information about changes to our terms, conditions, and policies.
  • Improve our services and operations.
  • Understand and analyze how you use our Site and services, which can improve our overall functionality.
  • Communicate with you, either directly or through one of our partners, including for customer service, to provide you with updates and other information relating to the Site, and for marketing and promotional purposes.
  • Detect and prevent fraudulent transactions and other illegal activities.

Disclosure of Your Information

We may share information we have collected about you in certain situations. Your information may be disclosed as follows:

  • By Law or to Protect Rights: If we believe the release of information about you is necessary to respond to legal process, to investigate or remedy potential violations of our policies, or to protect the rights, property, and safety of others, we may share your information as permitted or required by any applicable law, rule, or regulation.
  • Business Transfers: We may share or transfer your information in connection with, or during negotiations of, any merger, sale of company assets, financing, or acquisition of all or a portion of our business to another company.
  • Third-Party Service Providers: We may share your information with third parties that perform services for us or on our behalf, including data analysis, email delivery, hosting services, customer service, and marketing assistance.

Security of Your Information

We use administrative, technical, and physical security measures to help protect your personal information. While we have taken reasonable steps to secure the personal information you provide to us, please be aware that despite our efforts, no security measures are perfect or impenetrable, and no method of data transmission can be guaranteed against any interception or other type of misuse.

Policy for Children

We do not knowingly solicit information from or market to children under the age of 13. If we learn that we have collected personal information from a child under age 13 without verification of parental consent, we will delete that information as quickly as possible. If you believe we might have any information from or about a child under 13, please contact us.

User Rights

You have the following rights concerning your data:

  • Right to Access: You can request information about the personal data we hold about you.
  • Right to Rectification: You have the right to request correction of inaccurate personal data we have about you.
  • Right to Erasure: You can request that we delete your personal data.
  • Right to Restrict Processing: You have the right to request the restriction of processing your personal data.
  • Right to Data Portability: You can request a copy of your personal data in a structured, commonly used, and machine-readable format.
  • Right to Object: You have the right to object to the processing of your personal data.

To exercise any of these rights, please contact us using the information provided below.

Changes to This Privacy Policy

We may update this Privacy Policy from time to time in order to reflect, for example, changes to our practices or for other operational, legal, or regulatory reasons. We will notify you of any changes by posting the new Privacy Policy on this page. You are advised to review this Privacy Policy periodically for any changes.

Contact Us

If you have questions or comments about this Privacy Policy, please go to “Contact Us” page on this website

一、用户对象、句柄

User interface objects support only one handle per object. Processes cannot inherit or duplicate handles to user objects. Processes in one session cannot reference a user handle in another session.

There is a theoretical limit of 65,536 user handles per session. However, the maximum number of user handles that can be opened per session is usually lower, since it is affected by available memory. There is also a default per-process limit of user handles. To change this limit, set the following registry value:

1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\USERProcessHandleQuota
阅读全文 »

references

wsl 2 ,ulimit -n 65535 设置报错=>

ulimit: Permission denied when changing resource of type ‘Maximum number of open file descriptors’

修改 /etc/security/limits.conf 的配置,再su username切换到当前用户就会生效

1
2
3
4
5
#soft for enforcing the soft limits
#hard for enforcing hard limits
#<domain> <type> <item> <value>
* soft nofile 50000
* hard nofile 55555

  • Momentum:

    Momentum takes past gradients into account to smooth out the steps of gradient descent. It can be applied with batch gradient descent, mini-batch gradient descent or stochastic gradient descent.

    You have to tune a momentum hyperparameter β and a learning rate α.

    阅读全文 »

  • non-stationary:非平稳过程

  • univariate time series

  • multivariate time series

    阅读全文 »