小编mik*_*ang的帖子

如何在修改c ++头文件时重新编译?

我在include/c ++文件夹中有一个*.H c ++标题,但即使我修改了这些文件,make也没有重新制作,当我修改这些文件时,我可以修改我的Makefile以重新制作吗?

c++ makefile header

2
推荐指数
1
解决办法
2505
查看次数

如何在spring JPA @query中使用ignore case?

我有如下查询:

@Query("SELECT b FROM Brand b WHERE b.name1 LIKE %:name1% or b.name2 like %:name2%")
List<Brand> findSome(@Param("name1") String name1, @Param("name2") String name2);
Run Code Online (Sandbox Code Playgroud)

我想忽略大小写,以便我尝试修改它

@Query("SELECT b FROM Brand b WHERE lower(b.name1) LIKE lower(%:name1%) or lower(b.name2) like lower(%:name2%)")
Run Code Online (Sandbox Code Playgroud)

但这看起来不行,我该怎么办?

sql jpa ignore-case

2
推荐指数
1
解决办法
3051
查看次数

如何在Mac上将BeautifulSoup4安装到python3

我在/ usr/bin/python中有原始的Python 2.7.5,我通过在/ usr/local/bin/python3下载Python 3.5.1软件包安装了Python3,然后我安装了BeautifulSoup4,如下所示:

sudo easy_install BeautifulSoup4
Searching for BeautifulSoup4
Best match: beautifulsoup4 4.4.1
Processing beautifulsoup4-4.4.1-py2.7.egg
beautifulsoup4 4.4.1 is already the active version in easy-install.pth

Using /Library/Python/2.7/site-packages/beautifulsoup4-4.4.1-py2.7.egg
Processing dependencies for BeautifulSoup4
Finished processing dependencies for BeautifulSoup4
Run Code Online (Sandbox Code Playgroud)

这样我不能在python3中使用bs4,如何在python3上安装bs4?

beautifulsoup python-2.7 python-3.x bs4

2
推荐指数
1
解决办法
6280
查看次数

错误"|此时出乎意料."

我使用下面的代码使用端口8080删除程序,但我收到错误| was unexpected at this time.,我该怎么办?

FOR /F "tokens=5 delims= " %P IN ('netstat -a -n -o | findstr :8080') DO TaskKill.exe /PID %P
Run Code Online (Sandbox Code Playgroud)

netstat for-loop batch-file taskkill findstr

2
推荐指数
1
解决办法
243
查看次数

语法错误:__ asm __("some_code":::"cc")

我使用C++进行项目,其中包括ac头文件ira.h,如下所示:

#ifdef  __cplusplus
    extern "C" {
#endif

extern inline void disable_irqs() {
    __asm__ __volatile__("\torc  #0x80,ccr\n":::"cc");
}

extern inline void enable_irqs() {
    __asm__ __volatile__("\tandc #0x7f,ccr\n":::"cc");
}

#ifdef  __cplusplus
}
#endif
Run Code Online (Sandbox Code Playgroud)

当我编译它时,我得到如下错误:

/usr/local/bin/h8300-hitachi-hms-g++ -DCXX -fno-rtti -fno-exceptions -O2 -fno-builtin -fomit-frame-pointer -Wall -I/brickos/include -I/brickos/include/lnp -I. -I/brickos/boot  -c rcx1.C -o rcx1.o
In file included from PowerFunctionsController.H:32,
             from rcx1.H:27,
             from rcx1.C:21:
/brickos/include/lnp/sys/irq.h: In function `void disable_irqs(...)':
/brickos/include/lnp/sys/irq.h:99: parse error before `::'
/brickos/include/lnp/sys/irq.h: In function `void enable_irqs(...)':
/brickos/include/lnp/sys/irq.h:104: parse error before `::'
make: *** [rcx1.o] Error 1 …
Run Code Online (Sandbox Code Playgroud)

c++ syntax-error

1
推荐指数
1
解决办法
166
查看次数

oracle中如何选择最大长度列数据

我有数据如下:

No,Code,Name
1,code1,code1 name
2,code2,This name for code2
3,code3,code3 name
Run Code Online (Sandbox Code Playgroud)

我想选择记录2,我尝试了如下SQL,但出现错误ORA-00934: group function is not allowed here,我该怎么办?

select code, name from my_mst where max(length(name)) group by name;
Run Code Online (Sandbox Code Playgroud)

oracle select group-by max string-length

1
推荐指数
1
解决办法
2万
查看次数

为什么保证金不能作为数字添加到高度偏移量?

我使用的代码如下得到marginTop,我发现它是"8像素",然后我替换"PX"到"",它显示"8",但是当我把它添加到高度偏移,它从来没有工作!谁有人告诉我为什么?

var computedStyle = window.getComputedStyle ? getComputedStyle(document.body, null) : document.body.currentStyle;
var marginTop = computedStyle['marginTop'].replace('px', '');
alert(marginTop);
window.scroll(0, elem.offsetTop - headerHeight + marginTop + marginTop);
Run Code Online (Sandbox Code Playgroud)

html javascript margin

1
推荐指数
1
解决办法
49
查看次数

如何在“git log --all --graph --oneline --simplify-by-decoration”中提交日期

我用来git log --all --graph --oneline --simplify-by-decoration显示大量的 git 提交历史记录,但没有提交日期,什么可以添加日期?

git git-log

0
推荐指数
1
解决办法
2642
查看次数

python多线程中的mkdir出现错误

我在多线程中有代码来创建文件夹(如果不存在)

if not os.path.exists(folder): os.makedirs(folder)
Run Code Online (Sandbox Code Playgroud)

我有这样的错误

The folder cannot be created since a file already exists with the same path
Run Code Online (Sandbox Code Playgroud)

我不确定该怎么办,您知道吗?

python runtime-error mkdir

-1
推荐指数
1
解决办法
1132
查看次数