GVKun编程网logo

如何在 Linux 中打印 ios 应用程序的共享依赖项(linux共享打印机)

3

在这里,我们将给大家分享关于如何在Linux中打印ios应用程序的共享依赖项的知识,让您更了解linux共享打印机的本质,同时也会涉及到如何更有效地JqueryJsonArray响应未在Div中打印、

在这里,我们将给大家分享关于如何在 Linux 中打印 ios 应用程序的共享依赖项的知识,让您更了解linux共享打印机的本质,同时也会涉及到如何更有效地Jquery Json Array 响应未在 Div 中打印、r - 我如何从嵌套的 tibble 中打印 ggplot 对象,并使用可扩展的行进行响应?、springboot 中打印 sql 语句、sql 查询以从表 A 中打印 id 和 sales 以获取当前年度销售额大于去年的行?的内容。

本文目录一览:

如何在 Linux 中打印 ios 应用程序的共享依赖项(linux共享打印机)

如何在 Linux 中打印 ios 应用程序的共享依赖项(linux共享打印机)

如何解决如何在 Linux 中打印 ios 应用程序的共享依赖项

我想在 linux 脚本中打印 ios 应用程序的共享对象依赖项以进行崩溃解析。

但是我在执行命令时遇到以下错误。 1) ldd ./demoApp.app 不是普通文件 2) ldd ./demoApp.ipa 不是动态可执行文件 3) ldd ./demoApp.app.dSYM/Contents/Resources/DWARF/demoApp 不是动态可执行文件

我应该向 ldd 传递什么参数来打印依赖项。

解决方法

我没有使用 ldd(我不使用 Linux),但我会从 man ldd 开始来确定适当的参数。此外,ldd ./demoApp.app/demoApp 应该能让您通过上面的错误消息。

  1. demoApp.app 是一个应用程序包,它是一个目录层次结构 包含可执行文件、资源等;
  2. demoApp.ipa 是包含应用程序包的 zip 压缩文件,用于将应用程序上传到 App Store 等情况;和
  3. demoApp.app.dSYM 是包含应用符号数据的文件系统包(目录层次结构)
,

如果 ldd 支持 mach-o 和 darwin 加载器格式,我会感到惊讶,而且您似乎已经证明它不......

OTOH,lldb 通常是为了支持在 linux 上读取 mach-o 目标文件而构建的,因此您可以使用它。

直接共享库依赖项存储在 mach-o 二进制文件的“加载命令”中,lldb 将读取它们。因此,只需启动 lldb,为您的 .app 包执行 target createimage list 将向您显示直接依赖项。 lldb 将遍历所有直接依赖项以找到该 .app 的依赖项的闭包,但要做到这一点,您必须拥有所有直接依赖的库可用(因为它们的依赖项在依赖库的“加载命令”中) .) 我不知道你会如何得到这些。

Jquery Json Array 响应未在 Div 中打印

Jquery Json Array 响应未在 Div 中打印

如何解决Jquery Json Array 响应未在 Div 中打印

我正在通过 AJAX 将我的订单 ID 发布到一个 PHP 页面,并且我收到了 json 响应。 我需要在我正在尝试的代码段下方的跟踪订单页面中显示,但出现错误 TypeError: obj.map is not a function. 我试过放 var htmlText = obj.response_data. map(function(o) 仍然出现错误。我如何在我的 DIV 中打印 json 响应 trackorder.PHP

  1. <div class="track-order-response">
  2. </div>
  3. $.ajax({
  4. url: ''<URL>/trackordercompute.PHP'',type: ''post'',data: order_id,success: function( data ){
  5. var obj = $.parseJSON( data );
  6. var htmlText = obj.map(function(o){
  7. return `
  8. <div class="div-conatiner">
  9. <p class="p-name"> Transdate: ${o.Transdate}</p>
  10. <p class="p-loc"> Transtime: ${o.Transtime}</p>
  11. <p class="p-desc"> deliveredTo: ${o.deliveredTo}</p>
  12. <p class="p-created"> Remarks: ${o.Remarks}</p>
  13. <p class="p-uname"> Location: ${o.Location}</p>
  14. </div>
  15. `;
  16. });
  17. $(''.track-order-response'').html( htmlText );
  18. },error: function( jqXhr,textStatus,errorThrown ){
  19. console.log( errorThrown );
  20. $(''.track-order-response'').html( errorThrown );
  21. }
  22. });

trackordercompute.PHP

我的 JSON 响应

  1. echo ''
  2. {
  3. "result": {
  4. "requested_data": {
  5. "AuthCode": "XXXX","OrderNumber": "INV374837"
  6. },"response_data": [{
  7. "Transdate": "11/02/2019","Transtime": "10:15","StatusCode": "POD","deliveredTo": "Rajendran","Remarks": "","Location": "Sharjah"
  8. },{
  9. "Transdate": "11/02/2019","Transtime": "08:20","StatusCode": "OD","deliveredTo": "","Remarks": "OUR FOR DELIVERY","Location": "dubai"
  10. },{
  11. "Transdate": "10/02/2019","Transtime": "20:10","StatusCode": "AF","Remarks": "ARIVED AT SERVICE CENTER","Transtime": "11:00","StatusCode": "C","Remarks": "Airway Bill Check In","Location": "dubai"
  12. }]
  13. }
  14. }
  15. '';

解决方法

有效的是 ForEach 而不是 map

  1. $.ajax({
  2. url: ''trackordercompute.php'',type: ''post'',data: order_id,success: function( data ){
  3. var obj = $.parseJSON( data );
  4. var htmlData="";
  5. obj.result.response_data.forEach((o) => {
  6. htmlData +=`
  7. <div>
  8. <p> Transdate: ${o.Transdate}</p>
  9. <p> Transtime: ${o.Transtime}</p>
  10. <p> deliveredTo: ${o.deliveredTo}</p>
  11. <p> Remarks: ${o.Remarks}</p>
  12. <p> Location: ${o.Location}</p>
  13. </div>
  14. `;
  15. });
  16. $(''.track-order-response'').html( htmlData );
  17. },error: function( jqXhr,textStatus,errorThrown ){
  18. console.log( errorThrown );
  19. $(''.track-order-response'').html( errorThrown );
  20. }
  21. });

r - 我如何从嵌套的 tibble 中打印 ggplot 对象,并使用可扩展的行进行响应?

r - 我如何从嵌套的 tibble 中打印 ggplot 对象,并使用可扩展的行进行响应?

如何解决r - 我如何从嵌套的 tibble 中打印 ggplot 对象,并使用可扩展的行进行响应??

我在 R 中有一个带有嵌套行的小标题,我为每行创建了一个 ggplot 对象。我想使用 reactable 的可扩展行功能打印这些图形。

我认为一个例子可以最好地解释这一点。为简单起见,我将使用 iris。首先,我们取iris,按“Species”嵌套,然后创建一个名为“plot”的列,其中包含ggplot对象:

library(dplyr)
library(reactable)
library(ggplot2)

df = iris %>%
  as_tibble() %>%
  nest_by(Species) %>%
  mutate(plot = list(
    ggplot(data,aes(x=Sepal.Length,y=Sepal.Width)) + geom_point() + ggtitle(Species)
  ))

可以在我们的数据帧上创建一个可响应对象,当您单击任何行时,该对象会吐出嵌套的可响应对象:

reactable(df %>% select(Species),details = function(index) {
    reactable(df$data[[index]])
  }
)

但是......我不知道如何为打印“绘图”列做等效的事情。例如,这不起作用:

reactable(df %>% select(Species),details = function(index) {
    print(df$plot[[index]])
  }
)

我已经研究了一些 HTML 内容,例如 htmltools::img(df$plot[[index]]),但都不起作用。

有什么想法吗??谢谢!!!!!!

解决方法

如果我们用 ggplotly 包裹,那么它会起作用

library(plotly)
library(reactable)
library(ggplot2)
library(dplyr)
reactable(df %>% 
    select(Species),details = function(index) {
 ggplotly(df$plot[[index]])
})

-输出

,

我实际上在不需要 plotly 的情况下解决了这个问题——你可以使用 htmltools::plotTag。 (谁知道?)看看:

reactable(df %>% select(Species),details = function(index) {
  htmltools::plotTag(df$plot[[index]],alt="plots")
})

springboot 中打印 sql 语句

springboot 中打印 sql 语句

在配置文件中 application.yml 配置如下其一即可

方式一:

logging:
    level:
      com.xxx.com.dao.mapper: DEBUG //包路径为mapper文件包路径

打印出来的形式如下:

2019-01-24 08:02:14.245 [http-nio-8060-exec-2] DEBUG c.s.a.m.m.U.getUsernameExistSet 159 - ==>  Preparing: SELECT username FROM user_info WHERE username in ( ? , ? , ? ) 
2019-01-24 08:02:14.245 [http-nio-8060-exec-2] DEBUG c.s.a.m.m.U.getUsernameExistSet 159 - ==> Parameters: nike16(String), nike14(String), nike15(String)
2019-01-24 08:02:14.307 [http-nio-8060-exec-2] DEBUG c.s.a.m.m.U.getUsernameExistSet 159 - <==      Total: 0
2019-01-24 08:02:14.323 [http-nio-8060-exec-2] DEBUG c.s.a.m.mapper.UserMapper.saveBatch 159 - ==>  Preparing: INSERT INTO user_info ( username, password, email, telphone, birthday, createTime, updateTime ) values ( ?, ?, ?, ?, ?, ?, ? ) , ( ?, ?, ?, ?, ?, ?, ? ) , ( ?, ?, ?, ?, ?, ?, ? ) 
2019-01-24 08:02:14.323 [http-nio-8060-exec-2] DEBUG c.s.a.m.mapper.UserMapper.saveBatch 159 - ==> Parameters: nike14(String), 4f757a334d69b32b586f3694fbaaa9a9869aee184f98e009b6e02b170f92eb9f(String), hgaha@qq.com(String), null, 2018-03-02 02:01:02.0(Timestamp), 2019-01-24 08:02:14.307(Timestamp), 2019-01-24 08:02:14.307(Timestamp), nike15(String), 18a1c9f3e7a69e3f72ab5d80caea96e5c90f5fada8f9a7e92238dc4242ba03f8(String), hgaha@qq.com(String), null, 2018-03-02 02:01:02.0(Timestamp), 2019-01-24 08:02:14.307(Timestamp), 2019-01-24 08:02:14.307(Timestamp), nike16(String), 5912bd4ff3ae134b15347610b64d9f352dd3c89dd2fb5c495cf4699683b33271(String), hgaha@qq.com(String), null, 2018-03-02 02:01:02.0(Timestamp), 2019-01-24 08:02:14.307(Timestamp), 2019-01-24 08:02:14.307(Timestamp)
2019-01-24 08:02:14.338 [http-nio-8060-exec-2] DEBUG c.s.a.m.mapper.UserMapper.saveBatch 159 - <==    Updates: 3

 

 

方式二:

mybatis
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

打印出来的形式如下

Creating a new SqlSession
Registering transaction synchronization for SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2e943ddb]
JDBC Connection [HikariProxyConnection@898692052 wrapping com.mysql.jdbc.JDBC4Connection@6a0c5a04] will be managed by Spring
==>  Preparing: DELETE FROM user_info WHERE uid in ( ? , ? , ? )
==> Parameters: 44(Long), 45(Long), 46(Long)
<==    Updates: 0
Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2e943ddb]
Transaction synchronization committing SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2e943ddb]
Transaction synchronization deregistering SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2e943ddb]
Transaction synchronization closing SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2e943ddb]

sql 查询以从表 A 中打印 id 和 sales 以获取当前年度销售额大于去年的行?

sql 查询以从表 A 中打印 id 和 sales 以获取当前年度销售额大于去年的行?

如何解决sql 查询以从表 A 中打印 id 和 sales 以获取当前年度销售额大于去年的行??

我想使用 sql 执行以下操作:

从表 a 中打印 id 和销售额的查询,用于当前年份销售额大于去年的行

我们以下面的输入为例:

id,sales,year
1,20k,1991
1,21k,1992
2,30k,1993

添加了创建表语句以供参考。

CREATE TABLE a(id INT,sales INT,year INT);
INSERT INTO a VALUES(1,20000,1991);
INSERT INTO a VALUES(1,21000,1992);
INSERT INTO a VALUES(2,30000,1993);

解决方法

也许用这样的东西你可以得到你想要的,使用纯 sql(对所有 rdbms 有效)

select
  b.id,b.sales,b.year
from TableA a
  join TableA b
    on a.id = b.id
   and a.year = b.year-1
where a.sales < b.sales
,

只需使用 lag() 。 . .两次:

select a.*
from (select a.*,lag(year) over (partition by id) as prev_year,lag(sales) over (partition by id) as prev_sales
      from a
     ) a
where prev_year = year - 1 and sales > prev_sales;

您需要两个滞后来处理可能缺少年份的情况。

今天关于如何在 Linux 中打印 ios 应用程序的共享依赖项linux共享打印机的介绍到此结束,谢谢您的阅读,有关Jquery Json Array 响应未在 Div 中打印、r - 我如何从嵌套的 tibble 中打印 ggplot 对象,并使用可扩展的行进行响应?、springboot 中打印 sql 语句、sql 查询以从表 A 中打印 id 和 sales 以获取当前年度销售额大于去年的行?等更多相关知识的信息可以在本站进行查询。

本文标签: