Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Browsing all 11063 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

projectM: Open-Source Music Visualization

If you remember the old windows music player Winamp, it came with an amazing visualizer named Milkdrop written by a guy at nVidia named Geiss. This plugin performed beat detection and splitting the...

View Article


Appending to a File from Multiple Processes

Suppose you have multiple processes appending output to the same file without explicit synchronization. These processes might be working in parallel on different parts of the same problem, or these...

View Article


Image may be NSFW.
Clik here to view.

Enabaling BASH shell on Windows 10 Anniversary Update

windows 10 Anniversary Update is already out and millions of PCs getting updated. Whole load of cool features were added on this update. For me the star features isthe BASH shell for Windows 10. By...

View Article

CSS only scroll indicator

<header> <h1>Scroll Indicator</h1> </header> <main> <h2>I was interested to see if I could make a scroll indicator <a href="http://codepen.io/derekjp/pen/pJzpxB"...

View Article

Image may be NSFW.
Clik here to view.

Zsh Shell编程指导

Shell是linux/Unix的一个外壳,你理解成衣服也行。它负责外界与Linux内核的交互,接收用户或其他应用程序的命令,然后把这些命令转化成内核能理解的语言,传给内核,内核是真正干活的,干完之后再把结果返回用户或应用程序。 Linux/Unix提供了很多种Shell,为毛要这么多Shell?难道用来炒着吃么?那我问你,你同类型的衣服怎么有那么多件?花色,质地还...

View Article


Image may be NSFW.
Clik here to view.

Spring AOP关于cglib动态代理

一:Spring AOP的默认代理方式是jdk动态代理,还有另外一种代理方式是cglib代理,简单说前者基于接口,后者基于继承,基本思路是将被代理对象的类作为父类,然后创建子类来进行方法的调用,调用的同时可以插入我们需要加入的方法。二:(1)pojo类package net.wang.cglib;/*** User pojo类* @author LiuRuoWang*/public class...

View Article

Image may be NSFW.
Clik here to view.

Spring的ContextLoaderListener 简介

在开发Spring的Web项目中,通常我们都会在web.xml中配置一个Spring的核心监听器,就是把Spring的IOC容器纳入Servlet容器中,配置如下: <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>...

View Article

Image may be NSFW.
Clik here to view.

Spring AOP详细介绍

AOP称为面向切面编程,在程序开发中主要用来解决一些系统层面上的问题,比如日志,事务,权限等待,Struts2的拦截器设计就是基于AOP的思想,是个比较经典的例子。一...

View Article


Image may be NSFW.
Clik here to view.

Mybatis开发Dao

阅读目录 一、Mybatis进行原始的Dao开发二、Mapper动态代理方式 一、Mybatis进行原始的Dao开发  原始Dao开发需要编写Dao接口和Dao实现类,步骤如下:  1、Dao接口public interface UserDao{ public User findUserById(int id);}  2、Dao实现类public class UserDaoImpl...

View Article


Image may be NSFW.
Clik here to view.

Mybatis入门程序

阅读目录 一、概述二、Mybatis结构三、搭建Mybatis运行环境四、小结 一、概述  Mybatis是一个持久层框架,它对jdbc的操作数据库的过程进行封装,使开发者只需要关注sql本身,而不需要处理例如注册驱动、创建connection、创建statement、手动设置参数、结果集检索等过程。...

View Article

Image may be NSFW.
Clik here to view.

Wifislax 4.12 发布,基于 Slackware 的 Linux

Wifislax 4.12 发布,基于 Slackware 的 linux 8小时前来源:开源中国 OSC杭州源创会,点击报名 >>> Wifislax 4.12...

View Article

0803作业

课上练习 1.当用户xiaoming 对/testdir 目录无执行权限时,意味着无法做哪些操作? drwxr-xr . 14 root root 4096 Aug 3 13:35 /testdir [xiaoming@localhost ~]$ touch /testdir/f1touch: cannot touch ‘/testdir/f1’: Permission denied...

View Article

Image may be NSFW.
Clik here to view.

Wine 1.9.16 Brings Further Direct3D CS Improvements

Wine 1.9.16 Brings Further Direct3D CS Improvements Written by Michael Larabel inWINE on 5 August 2016 at 10:36 PM EDT.Add A Comment Wine 1.9.16 is now available as the latest bi-weekly release of...

View Article


Image may be NSFW.
Clik here to view.

我是怎样使用Emacs文本编辑器的

一直以来都想写一篇关于我当前 Emacs 配置的文章,来描述我是如何在 Mac 和 linux 上使用 Emacs 的,即我的 Emacs 工作流。我使用这套配置一年多了,一直以来这套配置都工作的很好,几乎不需要怎么调整。我现在用的是 Emacs24,但是这套配置对更早些版本的Emacs也适用。 首先,我需要解释一下我是怎么工作的,以及我希望我的Emacs工作流能达到什么效果....

View Article

php并发执行shell

最近在项目中做一个功能,是php调用shell来探测资源 在很快把,页面逻辑梳理好以后就开始动手,功能完成后开始测试使用,发现当多条命令发出以后,相应会非常慢,因为在PHP中循环调用,上一次执行完成后,才会调用下一步,这样就有问题了。会卡主,504等等 要不然限制用户输入的数据条数,不行,这样感觉体验太差了。于是经过和其他同事探讨,给进程加上一个超时时间,并用使用并发来解决此问题。下面上代码进化步骤...

View Article


Generate a self-signed CA certificate

生成根证书 mkdir -p test/demoCA && cd test/demoCA mkdir certs crl newcerts private chmod 700 private touch index.txt echo 1000 > serial vim openssl.cnf openssl genrsa -aes256 -out...

View Article

Image may be NSFW.
Clik here to view.

如何用Windows远程桌面连接树莓派Raspbian Linux系统

因为windows 10 IoT...

View Article


Linux命令之sed

sed是一个面向行的流处理工具,主要用于对文件的增加、删除、替换等操作。 sed命令的语法: sed [options] commands [file-to-edit] 下面以annoying.txt文件作为示例数据源, 文件内容为: root@a01:~/junk# echo "this is the song that never ends > yes, it goes on and...

View Article

Image may be NSFW.
Clik here to view.

Everything You Can Do With Windows 10’s New Bash Shell

windows 10’sAnniversary Update brings a “Bash on Ubuntu on Windows” environment to Windows 10. But don’t be deceived: This is more than just a Bash shell. It’s a full compatibility layer for running...

View Article

Image may be NSFW.
Clik here to view.

How to extract particular pages from PDF file

Let us say you have a 100 pages PDF file, and you want to extract particular pages from that file. How can you do that? It’s absolutely easy. You don’t need to buy or complicate with any premium PDF...

View Article
Browsing all 11063 articles
Browse latest View live