博文

目前显示的是 十一月 23, 2023的博文

Scripting News: Thursday, November 23, 2023

图片
Thursday, November 23, 2023 In the US we celebrate Thanksgiving with Alice's Restaurant . # Journalists are still trying to land a punch on the AI sphere, but imho it's already too late. It's already far better at delivering the truth than all the reference sources on the web, including news orgs. One of the secrets to success in business, media and politics is to learn how to lead journalists to the story you want them to tell. There's are all kinds of tricks, I know because I succeeded in that world. When I ask ChatGPT to tell me about things that journalism got wrong that I know everything about, it gets it right. I don't know how that works, because what I think are their sources got it wrong. It's freaking amazing. Now I totally agree that the small group of super rich people who control tech are not people I'd like to see run the world, they break things I care about far too often. Too much power for people who can't or won't

Manage newline breaks in CSV files with Python

图片
Stephen's blog Manage newline breaks in CSV files with Python Nov 24, 2023 · 4 min read When importing and exporting CSV files, a common challenge is handling newline characters within cells. Let's explore simple solutions to help manage such scenarios effectively with Python. 🤔 Understanding the issue CSV files use specific characters (or delimiters), like commas (',') or pipes ('|') to separate values and newlines to indicate new rows. But what if the data itself contains new lines (within a cell)? Let's imagine we extract the following data from a worksheet: Name | Description -----------|------------ Pump 1 | Not running Pump 2 | Turned off at panel If saved as a CSV file, it may look like this: Name|Description Pump 1 |Not running Pump 2 | "Turned off at panel" Notice the quotes used around the "Turned off at panel" cell. These exist because the CSV writer used quotes to hand

10月全国查处违反中央八项规定精神问题9567起

图片
OneNews 10月全国查处违反中央八项规定精神问题9567起 Nov 23, 2023 · 1 min read 新华社北京11月23日电(记者孙少龙)中央纪委国家监委网站23日公布全国查处违反中央八项规定精神问题情况月报数据。通报显示,今年10月,全国共查处违反中央八项规定精神问题9567起,批评教育帮助和处理13770人(包括97名地厅级干部、886名县处级干部),给予党纪政务处分9333人。 根据通报,今年10月全国共查处形式主义、官僚主义问题4131起,批评教育帮助和处理6389人。其中,查处"在履职尽责、服务经济社会发展和生态环境保护方面不担当、不作为、乱作为、假作为,严重影响高质量发展"方面问题最多,查处3660起,批评教育帮助和处理5718人。 根据通报,今年10月全国共查处享乐主义、奢靡之风问题5436起,批评教育帮助和处理7381人。其中,查处违规收送名贵特产和礼品礼金问题2405起,违规发放津补贴或福利问题765起,违规吃喝问题1254起。 Read on web Add a comment © 2023 OneNews 8 The Green, Ste 300, Dover, Delaware, 19901 Unsubscribe Publish with Hashnode