Thursday, January 5, 2023

Microsoft reportedly to add ChatGPT to Bing search engine

Here is the article. 

Company’s new feature hopes to challenge Google’s search engine

Microsoft is reportedly in the works to launch a version of its search engine Bing using the artificial intelligence behind ChatGPT, launched by OpenAI.

The Information reported the news on Tuesday, citing two people with direct knowledge of the plans.

Microsoft could launch the new feature before the end of March, in the hopes of challenging Google’s search engine, the Information reported.

Microsoft said in a blog post last year that it planned to integrate image-generation software from its image creation software, Dall-E 2, into Bing.

OpenAI and Microsoft declined to comment.

Microsoft had in 2019 backed San Francisco-based artificial intelligence company OpenAI, offering $1bn in funding. The two had formed a multi-year partnership to develop artificial intelligence supercomputing technologies on Microsoft’s Azure cloud computing service.

OpenAI made its latest creation ChatGPT chatbot available for free public testing on 30 November. The chatbot is a software application designed to mimic human-like conversation based on user prompts and can respond to a large range of questions while imitating human speaking styles.

The feature could make Bing more competitive to Google’s search engine at a time when Alphabet, its parent company, has seen advertising revenue growth slow significantly. Advertising is Alphabet’s primary source of revenue, the vast majority of which comes from search ads. Microsoft also saw its search and advertising growth rate slow down in the fourth quarter of the 2022 fiscal year.

OpenAI’s various products such ChatGPT, the natural language system GPT-3 and Dall-E 2 may still need work, but have already been pegged as the industry’s potential next disruptors. The former has reportedly led Google management to declare a “code red”, according to the New York Times, seeing the chat bot – which answers questions or prompts with clear explanations instead of just links – as a major threat to the way consumers currently use search engines.

Google, however, has been hard at work on its own chat bot technology called Language Model for Dialogue Applications – the sophistication of which led one Google engineer to claim it was sentient. He was placed on administrative leave after deciding to go public with his claims.

How to install and use the Redis extension in XAMPP locally in Windows 10

Here is the article. 


Julia installation notes:

  1. Check PHP version: 8.1
  2. Check PHP - thread safety enabled
  3. Go to https://pecl.php.net/package/redis
  4. Go to https://pecl.php.net/package/redis/5.3.7/windows, choose PHP 8.1, TS version, x64
  5. Unzip the file, and then save it on my local xampp php extension folder
  6. Add php.ini with configuration: 
  7. extension=redis
  8. Run http://localhost:8080/dashboard/phpinfo.php
  9. Check redis information
Copy the content from the article. 

Learn how to easily install and use the Redis extension locally in XAMPP to communicate with Redis Servers.

I'm sure you may have already heard about Redis, the in-memory data structure store, used as a database and cache. Sooner or later, if you ever work with a project built with PHP that handles a significant amount of traffic and may require horizontal scaling, you will have to work with Redis. Of course in a local environment, it would be great to work as well with Redis, so you don't have to create huge conditionals to check if it's available in the current environment and run some logic if it isn't. It would be simpler to have Redis available locally as well, just to make the whole project work as usual in your workstation.

In this article, I will explain how to easily install the Redis extension for PHP in your XAMPP installation in Windows.


Pre-installation notes

You need to know the following information about the PHP distribution that you are currently using in XAMPP:

NameDefault value
Architecture (PHP)x64
Thread Safety 

Enabled

TS: Stands for Thread Safety Enabled

NTS: Stands for Thread Safety Disabled

You can get those values with the function phpinfo() of PHP within an empty script:


<?php

phpinfo();

Once you know these values, you should be able to follow the rest of the tutorial.

1. Download Redis DLL

The first thing you need is the dynamic link library of Redis, which fortunately for us is already compiled and available in the PECL repository of PHP on this website. You may select the version that fits your needs, in my case, I will use the latest stable version as I'm using PHP 8, click on the DLL link with the windows icon:

Download Redis DLL PECL

Then a new window will load, in this page scroll to DLL List and click on the right version for your PHP version with correct architecture (of XAMPP, not your operative system) and the Thread Safe in case that it's enabled in your distribution). In my case, I'm using the latest version of XAMPP with PHP 8.0 of 64 bits with Thread Safety Enabled, so in my case, I will download the following one:

Redis DLL Download PHP 8

This will start the download of a ZIP file. Of our interest, is the php_redis.dll file that is included in it, so keep it at hand as you will need the file in the next step.

2. Store DLL in ext directory and enable the extension in php.ini

Now, from the downloaded zip, move the php_redis.dll file to the ext directory of PHP in your XAMPP directory (C:\xampp\php\ext):

Redis DLL Extension Directory PHP

This will allow us to use the extension in PHP, however, we need to enable it as well. Open the php.ini (C:\xampp\php\php.ini) file and enable the extension adding the following new line under the extensions area:

extension=redis

You won't find the mentioned line in the configuration file, so that's why you need to write it by yourself. Save the changes of the ini file and restart Apache, so the changes will apply once it starts again.

3. Testing if the extension is enabled 

And that's it! After restarting apache and enabling the extension in the php.ini, you should be able to use Redis with PHP. You can easily verify if the extension is enabled either by checking in your phpinfo():

Redis PHP Extension phpinfo

Or alternatively, run some code that uses Redis in case that you have a server running Redis through docker locally or a real Redis server, for example, the following code should succeed and print the username "sdkcarlos":

try {
    // Create a Redis Instance
    $redis = new \Redis();
    
    // Try to connect to a redis server
    // In this case within the host machine and the default port of redis
    $redis->connect('127.0.0.1', 6379);

    // Define some Key
    $redis->set('user', 'sdkcarlos');

    // Obtain value
    $user = $redis->get('user');

    // Should Output: sdkcarlos
    print($user);
} catch (Exception $ex) {
    echo $ex->getMessage();
}

Redis PHP extension for XAMPP - Apache start with error message

The procedure entry point PHP_MD5Init could not be located in the dynamic link library C:\xampp\php\ext\php_redis.dll



Install Redis PHP extension for XAMPP

Here is the article. 

Windows

Download

https://github.com/tporadowski/redis/releases

Tutorial

https://www.c-sharpcorner.com/article/installing-redis-cache-on-windows

Xampp

https://www.phpflow.com/php/how-to-setup-redis-server-and-use-with-php

  • Download php_redis.dll file from PECL libs. Download extension as per your current PHP version.
  • Copy the php_redis.dll and paste to following folder in XAMPP Server extension directory(D:\XAMPP\php\ext).
  • Open the php.ini file and add extension=php_redis.dll line into this file.
  • Restart XAMPP server
  • Open phpinfo() of XAMPP server and search Redis, if found that means you successfully integrated Redis with PHP.


ChatGPT

Welcome to ChatGPT

Log in with your OpenAI account to continue

Salesforce | 10,000 layoffs

 A little perspective with the tech layoffs.

Salesforce is laying off up to 8K employees.
In 2019 they had 35K employees.
Even after the layoff they will have about 71K employees.
Amazon is laying off up to 18K employees.
In 2019 Amazon has 798K employees.
Even after the layoff they will have about 1.57 million employees.

U.S. Dollar Index (DXY)

Here is the link.

美元指数(US Dollar Index&reg;,即USDX),是综合反映美元在国际外汇市场的汇率情况的指标,用来衡量美元对一揽子货币的汇率变化程度。它通过计算美元和对选定的一揽子货币的综合的变化率,来衡量美元的强弱程度,从而间接反映美国的出口竞争能力和进口成本的变动情况。
美元指数并非来自芝加哥期货交易所(CBOT)或是芝加哥商业交易所(CME),而是出自纽约棉花交易所 (NYCE)。纽约棉花交易所建立于1870年,初期由一群棉花商人及中介商所组成,是纽约最古老的商品交易所,也是全球最重要的棉花期货与期权交易所。在1985年,纽约棉花交易所成立了金融部门,正式进军全球金融商品市场,首先推出的便是美元指数期货。

发布机构

美元指数最初由纽约棉花交易所 (NYCE)发布。
1998年,纽约棉花交易所和咖啡、糖、可可交易所(Coffee Sugar Cocoa Exchange)合并成立纽约期货交易所(The New York Board of Trade,NYBOT)。2006年9月,纽约期货交易所并入美国洲际交易所(Intercontinental Exchange,ICE),成为其下属的一个部门。美元指数期货在美国洲际交易所交易。该交易所负责发布美元指数及美指期货价格的实时数据。
美元指数的实时数据(即ICE美元指数期货所对应的现货价格)由路透社根据构成美元指数的各成分货币的即时汇率每隔约15秒更新一次。计算时使用路透社统计的该货币的最高买入价和卖出价的平均值。计算结果传给美国洲际交易所,再由交易所分发给各数据提供商。
基准利率
在一般情况下,美国利率下跌,美元的走势就疲软;美国利率上升,美元走势偏好。20世纪80年代前半期,美国在存在着大量的贸易逆差和巨额的财政赤字的情况下,美元依然坚挺,就是美国实行高利率政策,促使大量资本从日本和西欧流入美国的结果。美元的走势,受利率因素的影响很大。如果一国的利率水平高于其他国家,就会吸引大量的资本流入,本国资金流出减少,导致国际市场上抢购这种货币;同时资本账户收支得到改善,本国货币汇价得到提高。反之,如果一国松动信贷时,利率下降,如果利率水平低于其他国家,则会造成资本大量流出,外国资本流入减少,资本账户收支恶化,同时外汇交易市场上就会抛售这种货币,引起汇率下跌。
贴现率
贴现率,是商业银行因储备金等紧急情况向Fed申请贷款,Fed收取的利率。尽管这是个象征性的利率指标,但是其变化也会表达强烈的政策信号。贴现率一般都小于联邦资金利率。
30年期国库券
30年期国库券,也叫长期债券,是市场衡量通货膨胀情况的最为重要的指标。市场多少情况下,都是用债券的收益率而不是价格来衡量债券的等级。和所有的债权相同,30年期的国库券和价格呈负相关。长期债券和美元汇率之间没有明确的联系,但是,一般会有如下的联系:因为考虑到通货膨胀的原因导致的债券价格下跌,即收益率上升,可能会使美元受压。这些考虑可能由于一些经济数据引起。
经济数据
经济数据。美国公布的经济数据中,最为重要的包括:劳动力报告(薪酬水平,失业率和平均小时收入),CPI(Consumer Price Index消费者价格指数),PPI,GDP(gross domestic product,国内生产总值),国际贸易水平,工业生产,房屋开工,房屋许可和消费信心。
股市
股市。3种主要的股票指数为:Dow Jones Industrials Index(Dow,道琼斯工业指数), S&P 500(标准普尔500指数)和NASDAQ(纳斯达克指数)。其中,道琼斯工业指数对美元汇率影响最大。从20世纪90年代中以来,道琼斯工业指数和美元汇率有着极大的正关联性(因为外国投资者购买美国资产的缘故)。影响道琼斯工业指数的3个主要因素为:1)公司收入,包括预期和实际收入;2)利率水平预期;3)全球政经状况。
商品价格
国际商品市场上商品大多以美元计价,所以商品价格与美元指数成较为明显的负相关。
欧元汇率
美元指数根本上来讲还是一系列汇率的一个加权指数,所以最终还是反映到美国与其主要贸易货币的自由兑换货币的强弱上。在美元指数构成的一揽子货币上,欧元是权重最重的一个货币,欧元的走势自然也成为与美元指数的重要影响因素。
指数
华尔街日报美元指数自2012年中期时推出,其采用外汇交易量对各货币进行加权,而交易量数据则来自于国际清算银行每三年发布一次的外汇调查报告,与此对应的是,该指数每隔三年对货币权重调整一次,以反映最新的交易量情况。
2020年3月16日,美元指数下跌,截至纽约汇市尾盘,衡量美元对六种主要货币的美元指数下跌0.70%至98.0821。


Wednesday, January 4, 2023

群體免疫救經濟? 高盛分析:2023年中國"消費"取代投資 中國儲蓄率惡化中? 他揭露中國後疫情時代"新經濟難題"|王志郁 主持|【錢進新世界】20221230|三立iNEWS

Here is the link. 

293,249 views • Premiered Dec 30, 2022 • #鄭知道了 #三立iNEWS #大世界


FEDERAL RESERVE Fed officials see higher rates for ‘some time’ ahead

 

WASHINGTON – Federal Reserve officials are committed to fighting inflation and expect higher interest rates to remain in place until more progress is made, according to minutes released Wednesday from the central bank’s December meeting.

At a meeting where policymakers raised their key interest rate another half a percentage point, they expressed the importance of keeping restrictive policy in place while inflation holds unacceptably high.

“Participants generally observed that a restrictive policy stance would need to be maintained until the incoming data provided confidence that inflation was on a sustained downward path to 2 percent, which was likely to take some time,” the meeting summary stated. “In view of the persistent and unacceptably high level of inflation, several participants commented that historical experience cautioned against prematurely loosening monetary policy.”

The increase ended a streak of four consecutive three-quarter point rate hikes, while taking the target range for the benchmark fed funds rate to 4.25%-4.5%, its highest level in 15 years.

Officials also said they would focus on data as they move forward and see “the need to retain flexibility and optionality” regarding policy.

Officials further cautioned that the public shouldn’t read too much into the rate-setting Federal Open Market Committee’s move to step down the pace of increases.

“A number of participants emphasized that it would be important to clearly communicate that a slowing in the pace of rate increases was not an indication of any weakening of the Committee’s resolve to achieve its price-stability goal or a judgment that inflation was already on a persistent downward path,” the minutes said.

Following the meeting, Fed Chairman Jerome Powell indicated that while there has been some progress made in the battle against inflation, he saw only halting signs and expects rates to hold at higher levels even after the increases cease.

The minutes reflected those sentiments, noting that no FOMC members expect rate cuts in 2023, despite market pricing.

Markets currently are pricing in the likelihood of rate increases totaling 0.5-0.75 percentage point before pausing to evaluate the impact the hikes are having on the economy. Traders expect the central bank to approve a quarter-point increase at the next meeting, which concludes Feb. 1, according to CME Group data.

Current pricing also indicates the possibility of a small reduction in rates by the end of the year, with the funds rate landing around a range of 4.5%-4.75%. Fed officials, however, have expressed doubt repeatedly about any loosening of policy in 2023.

The minutes noted that officials are wrestling with two-pronged policy risks: One, that the Fed doesn’t keep rates high long enough and allows inflation to fester, similar to the experience in the 1970s; and two, that the Fed keeps restrictive policy in place too long and slows the economy too much, “potentially placing the largest burdens on the most vulnerable groups of the population.”

However, members said they see the risks more weighted to easing too soon and allowing inflation to run rampant.

“Participants generally indicated that upside risks to the inflation outlook remained a key factor shaping the outlook for policy,” the minutes said. “Participants generally observed that maintaining a restrictive policy stance for a sustained period until inflation is clearly on a path toward 2 percent is appropriate from a risk-management perspective.”

Along with the rate hikes, the Fed has been reducing the size of its balance sheet by allowing up to $95 billion in proceeds from maturing securities to roll off each month rather than be reinvested. In a program started in early June, the Fed has seen its balance sheet contract by $364 billion to $8.6 trillion.

While some of the recent inflation metrics have shown progress, the labor market, a critical target of the rate increases, has been resilient. Nonfarm payroll growth has exceeded expectations for most of the past year, and data earlier Wednesday showed that the number of job openings is still nearly twice the pool of available workers.

The Fed’s preferred inflation gauge, the personal consumption expenditures price index less food and energy, was at 4.7% annually in November, down from its 5.4% peak in February 2022 but still well above the Fed’s 2% target.

Economists, meanwhile, largely expect the U.S. to enter a recession in the coming months, the result of the Fed’s tightening and an economy dealing with inflation still running near 40-year highs. However, fourth-quarter GDP for 2022 is tracking at a solid 3.9% rate, easily the best of a year that started out with consecutive negative readings, according to the Atlanta Fed.

Minneapolis Fed President Neel Kashkari said Wednesday, in a post for the district’s website, that he sees the funds rate rising to 5.4% and possibly higher if inflation doesn’t trend down.

Milena Head - PhD

 Professor, Director, McMaster Digital Transformation Research Centre,

  • Information Systems

Dr. Milena Head is a Professor of Information Systems at DeGroote, Acting Director, McMaster Digital Transformation Research Centre the Wayne C. Fox Chair in Business Innovation and Academic Director of the EMBA program at the DeGroote School of Business. She specializes in electronic business (eBusiness) and Human Computer Interaction (HCI), having published over 100 papers in academic journals, books and conferences. Her research interests include trust, privacy and adoption of electronic commerce and new technologies; interface design; and cross-cultural, gender and age issues related to technology use. She also examines the potential negative impacts of technology, including identity theft, techno-stress and cyber-bullying. Milena has received numerous teaching and research awards and is frequently called upon by the media and by community groups to speak about her research.

Beyond her academic roles, Milena has acted as a personal consultant on topics of eCommerce strategy, usability and fraud management, and has been an invited speaker at numerous corporate events and meetings. She also developed a senior MBA course at the DeGroote School of Business in partnership with AT Kearney, enabling students to work with real clients on real consulting projects.

Experience


I consider teaching to be a critical component of my appointment at McMaster. While research requires time, diligence, patience and creativity, I believe that effective teaching also requires these traits, and more. I believe that successful learning is a partnership between teacher and student. It should be a cooperative process that involves open communication. I strive to create an atmosphere of exploration, inquiry and excitement in my classrooms.

Courses Taught

Graduate:

  • MBA D701 A.T. Kearney Student Lab: Fall 2012
  • MBA D700 Case Analyses and Presentations: Fall 2011, Fall 2012
  • MBA K603 Information Systems Management: Fall 2011, Fall 2009, Fall 2008, Fall 2007, Fall 2006, Fall 2005, Winter 2005, Fall 2004, Winter 2004, Fall 2003, Fall 2002
  • MBA K732 Human Computer Interaction: Fall 2003, Fall 2001
  • MBA K728 eBusiness Case Studies: Fall 2001
  • MBA S727 Telecommunication Networks and Their Business Applications: Fall 1999
  • MBA S601 Information Systems in Management: Winter 2002, Fall 2001, Winter 2001, Fall 2000, Winter 2000, Fall 1999, Winter 1999, Fall 1998, Fall 1997
  • Q776 Ph.D. Seminar Course I: Fall 2005, Winter 2003, Fall 2001, Summer 2000
  • Q777 Ph.D. Seminar Course II: Winter 2006, Summer 2003, Winter 2002, Fall 2000

Undergraduate:

  • Commerce 4QX3 Issues in eBusiness: Winter 2004
  • Commerce 4QX3 Usability in eCommerce: Fall 2001
  • Commerce 4QE3 Telecommunication and Electronic Commerce: Fall 199
  • Commerce 2QB3 Information Systems in Management: Winter 1999, Winter 1998, Winter 1996

Executive Training:

  • Hatch Beddows Consulting (Winter 2001): Four sessions entitled “The New Economy”
  • InfoTech Leader Program (Winter 2003, Fall 2002, Summer 2002, Winter 2002, Fall 2001): Two day workshops entitled “Introduction to Electronic Commerce”

MBA D701 A.T. Kearney Student Lab: Fall 2012