perloader

wordpress 获取分类文章mysql 命令

select ID,post_title,post_date,post_name from wp_posts,wp_term_relationships,wp_term_taxonomy where ID=object_id and wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id and post_type=’post’ and post_status = ‘publish’ and wp_term_relationships.term_taxonomy_id = 6 and taxonomy = ‘category’ order by ID desc 进入wp_term_taxonomy 表,count排序,对应数字和后台category的对应篇数对应上。前面的term_taxonomy_id就是真正的分类序号。 没有Hash:的分类文章 select ID,post_date,post_title from wp_posts,wp_term_relationships,wp_term_taxonomy where ID=object_id and wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id and post_type=’post’ and `post_content` not REGEXP ‘Hash:’ and post_status = ‘publish’ and wp_term_relationships.term_taxonomy_id = […]

.

Read more

笑脸

dif:=(ema(CLOSE,5) – Ema(CLOSE,26))*100; DEA:=EMA(DIF,5); 天:SMA(WINNER(DIF-DEA)*50,3,1),COLOR0055FF; {股旁网-股票公式网站 www.gupang.com} T:SMA(SMA(WINNER(DIF-DEA)*50,3,1),3,1),COLORFFFFFF; 采:IF( crOSS(T,天),T,DRAWNULL),CROSSDOT,LINETHICK7,COLORYELLOW; 花_:IF(CROSS(T,天),T,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORRED; DRAWTEXT(CROSS(T,天),REF(天,1),’采花’),COLORRED; https://www.gupang.com/201007/0HH9522010.html A1A:=EMA(CLOSE, 9); A1B:=((A1A – EMA(CLOSE, 5)) < 0); A1C:=((A1A - EMA(CLOSE, 5)) > 0); A1D:=BARSLAST(A1B); A1E:=BARSLAST(A1C); A1F:=IF((A1E > 0),(CLOSE – REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,0); A20:=SUM(A1F,0); A21:=IF((A1D > 0),(0 – 2),0); A22:=IF((A1E > 0),SUM((CLOSE – REF(CLOSE, 1)) / REF(CLOSE, 1) […]

.

Read more

在最小化的 RDP 窗口中执行任务

可以在 Windows 注册表编辑器中修改设置(需要管理员权限),如下所示: 关闭所有打开的远程桌面会话。 按 Win + R**,键入“regedit”,然后按 Enter。系统将显示“注册表编辑器”**窗口。 导航至以下注册表项: 对于当前用户: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client(32 位) HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Terminal Server Client(64 位) 对于所有用户: HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client(32 位) HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Terminal Server Client(64 位) 使用 RemoteDesktop_SuppressWhenMinimized 名称创建一个新的 DWORD 值。 4.1. 在“注册表编辑器”**窗口的右侧面板内右键单击。 4.2. 选择“新建”>选择“DWORD(32 位)值”**。新的注册表将添加到右侧面板。 4.3. 将默认名称更改为 RemoteDesktop_SuppressWhenMinimized。 4.4. 双击“RemoteDesktop_SuppressWhenMinimized”**。显示“编辑 DWORD(32 位)值”**窗口。 4.5. 在“值数据”**字段中写入 2。 4.6. 按“确定”**保存更改。 关闭“注册表编辑器”****窗口。 在执行作业之前,注销机器人计算机上的所有用户。现在,即使在最小化 RDP 窗口的情况下,系统仍可自动化 UI 操作。  

.

Read more

wp限定只搜索标题

插入到主题的functions文件里面 /** * Search SQL filter for matching against post title only. * * @link http://wordpress.stackexchange.com/a/11826/1685 * * @param string $search * @param WP_Query $wp_query */ function wpse_11826_search_by_title( $search, $wp_query ) { if ( ! empty( $search ) && ! empty( $wp_query->query_vars[‘search_terms’] ) ) { global $wpdb; $q = $wp_query->query_vars; $n = ! empty( $q[‘exact’] […]

.

Read more

cmd 中文乱码解决 python中文执行错误解决

将CMD终端改为UTF-8格式 命令介绍: chcp 65001 #换成utf-8代码页 chcp 936 #换成默认的gbk chcp 437 #美国英语 运行regedit,打开注册表。 在HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe中找到CodePage。 双击打开CodePage,输入65001 没有就新建名为CodePage的Reg_DWORD,输入65001

.

Read more

php 跳转

header(“Location: http://google.com”);exit();  

.

Read more

ubuntu-19.04-x86_64更换源

/etc/apt/sources.list deb https://ubuntu.mirror.digitalpacific.com.au/archive/ disco main deb-src https://ubuntu.mirror.digitalpacific.com.au/archive/ disco main

.

Read more

重启远程主机的桌面以及剪切板

@echo off taskkill /f /im explorer.exe ping -n 5 127.0.0.1 > nul start explorer ping -n 5 127.0.0.1 > nul taskkill /f /t /im rdpclip.exe ping -n 5 127.0.0.1 > nul start C:\Windows\System32\rdpclip.exe ping -n 5 127.0.0.1 > nul @exit  

.

Read more

https://github.com/HaschekSolutions/pictshare https://getsharex.com/docs/custom-uploader https://github.com/WeebDev/lolisafe  

.

Read more
xyz