gentoo

`mcrypt_create_iv` Stalls, But Only Through Apache

丶灬走出姿态 提交于 2019-12-24 03:52:40
问题 My local installation of PHP started doing this recently, but I don't know what changed and could have started this. It completely stalls out with 100% CPU utilization when I call mycrypt_create_iv , but only when that's called by Apache. When I call it from the CLI, it returns almost instantly. My test file is as follows: <?php echo mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); The values are, of course, what the function was getting called with when I discovered this issue. This issue happens

ARM gentoo crossdev with uclibc: need OABI rather than EABI

旧城冷巷雨未停 提交于 2019-12-22 06:28:12
问题 Can anyone help with my ARM + GCC + UCLIBC linking issue with crossdev? Also posted to Gentoo Forums here: http://forums.gentoo.org/viewtopic-t-925012.html Recently, I was assigned to a project that has executables developed using an old GCC with OABI. As a point of reference, here's a header output from readelf of an executable that runs just fine on the system: ELF Header: Magic: 7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1

使用MySql管理层次结构的数据

与世无争的帅哥 提交于 2019-12-18 09:49:13
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 概述 我们知道,关系数据库的表更适合扁平的列表,而不是像 XML 那样可以直管的保存具有父子关系的层次结构数据。 首先定义一下我们讨论的层次结构,是这样的一组数据,每个条目只能有一个父条目,可以有零个或多个子条目(唯一的例外是根条目,它没有父条目)。许多依赖数据库的应用都会遇到层次结构的数据,例如论坛或邮件列表的线索、企业的组织结构图、内容管理系统或商城的分类目录等等。我们如下数据作为示例: Mike Hillyer 考虑了两种不同的模型——邻接表(Adjacency List)和嵌套集(Nested Set)来实现这个层次结构。 邻接表(Adjacency List)模型 我们可以很直观的使用下面的方式来保存如图所示的结构。 创建名为 distributions 的表: CREATE TABLE distributions ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(32) NOT NULL, parent INT NULL DEFAULT NULL, PRIMARY KEY (id) ) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; 插入数据: INSERT INTO distributions VALUES

How to use editdist3 in sqlite

不打扰是莪最后的温柔 提交于 2019-12-18 05:06:20
问题 According to an answer to another question, in sqlite the Levenshtein distance is implemented in a SQL function called editdist3 . (Compare also the documentation) Now when I try to use it, all I get is an error that it doesn’t exist: ╰┄┄> sqlite3 SQLite version 3.11.1 2016-03-03 16:17:53 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite> CREATE TABLE test (col1 TEXT); sqlite> INSERT INTO test VALUES (

Pepper robot datetime rtc is out. thus cannot sync apps from app store (SSL auth failed)

痴心易碎 提交于 2019-12-14 03:19:05
问题 In a nutshell the sync for Pepper is not running between Pepper and Aldebaran. It gives an error that it cannot connect to server, please reboot. Once rebooted the same error exists. So I debugged that screen on the web version accessed on Peppers IP and the actual error is SSL Authentication failed I started an SSH session to get system time using timedatectl and got a result of 2014 I posed the question to aldebaran / softbank and they mentioned the rtc battery is likely depleted. I cannot

Cross-compiling GSL 1.16 for ARM

风流意气都作罢 提交于 2019-12-11 08:52:55
问题 I am trying to cross-compile the GNU Scientific Library (gsl, v1.16) for ARM architecture (specifically the Raspberry Pi). I have used the following to configure; CROSS=armv6j-hardfloat-linux-gnueabi ./configure --host=x86_64-pc-linux-gnu --build=$CROSS --target=$CROSS \ CC=/usr/bin/$CROSS-gcc \ CXX=/usr/bin/$CROSS-g++ \ AR=/usr/bin/$CROSS-ar \ RANLIB=/usr/bin/$CROSS-ranlib \ CFLAGS="-march=armv6 -mfloat-abi=hard -mfpu-vfp" I get the following error messages: libtool: compile: /usr/bin/armv6j

Gentoo GCC failed emerge

倖福魔咒の 提交于 2019-12-11 08:34:49
问题 i'm trying to resurrect an old installation of Gentoo Linux that has kernel 2.6.32 and i could update @system with an exception: gcc 4.5.4 failed installation. The last lines are here: http://pastebin.com/8s4z0FJy Ask me if you need more info, i'll post something more when i get home (Got that info through SSH). Even GHC fails compiling but i'll handle that later. I need GCC in order to compile the other packages. Thanks in advance 回答1: To respond to a link with another link from googling:

xdg-settings not setting default-web-browser in gentoo

陌路散爱 提交于 2019-12-11 03:06:02
问题 I'm trying to get xdg-open to using chromium to open urls instead of firefox. I noticed that xdg-settings get default-web-browser returns chromium.desktop when it should be chromium-browser-chromium.desktop . Following the instructions here I tried xdg-settings set default-web-browser chromium-browser-chromium.desktop , which runs with no errors. However when I run xdg-settings get default-web-browser it stills shows chromium.desktop , and xdg-open "http://www.example.com" still uses firefox.

How to validate metadata.xml against .dtd in gentoo?

喜你入骨 提交于 2019-12-11 01:33:21
问题 I am trying to validate metadata.xml against www.gentoo.org/dtd/metadata.dtd with xmllint from =dev-libs/libxml2-2.9.3 ebuild. I tried the commands (some from here): $ xmllint --noout --valid metadata.xml error : Unknown IO error metadata.xml:2: warning: failed to load external entity "http://www.gentoo.org/dtd/metadata.dtd" the same for xmllint metadata.xml --dtdvalid metadata.dtd and xmllint --loaddtd http://www.gentoo.org/dtd/metadata.dtd $ xmllint --valid metadata.xml --schema metadata

记录gentoo从openrc转移到systemd遇到的一些问题。

被刻印的时光 ゝ 提交于 2019-12-07 16:16:28
今天将gentoo从openrc转移到了systemd,详细过程就不说了,基本上都是按照wiki上的步骤进行的。还算比较顺利,一次性成功了,不过仍然遇到了一些小问题,在这里记录一下: 1. “systemd-journald Faile to set ACL”的问题 这个问题我也没高清楚,貌似是userid超出了systemd最大用ID的限制,具体请参照一篇 Arch论坛帖子 。我暂时采用了帖子中修改/etc/systemd/journald.conf文件的方法,修改内容如下: [Journal] Storage=none ForwardToSyslog=yes #ForwardToKMsg=no 没使用所以没有改 ForwardToConsole=no 修改完后重启服务,问题解决。 systemctl start systemd-journald 2. 在X中应用无法启动的问题 进入X后,启动了一个urxvt,之后再也不能启动任何应用程序。退出X以后发现屏幕输出提示“不能连接到Dispaly 0:0”,呃这真有点莫名奇妙了……之前好好的。 重新使用“Xorg -configure”生成新的xorg.conf文件后重启X,问题解决……。 3. 使用systemd以后,合上笔记本屏幕,电脑会进入休眠状态。 这让使用外接显示器的我非常尴尬,网上找了半天发现了解决方法,修改/etc