首页 文章 精选 留言 我的

精选列表

搜索[其他],共10018篇文章
优秀的个人博客,低调大师

解决centos7连不上网 ping其他网站ping不通

第一步: 今天6转到7发现一个问题连不上网 首先最基本的检查看一下是否有虚拟机网络,如果下图没有再往下看 打开虚拟机-》编辑-》虚拟网络编辑器里面设置一下 上图完成之后看下是否出现如图一的连接图标 第二部:点击编辑虚拟机(虚拟机右键-》设置)->硬件-》网络适配器-》点击NAT模式-》确定 第三部:root账户登录-》打开network-scripts文件夹-》查看ifcfg-eno后面数组例如我的16777736-》编辑该文件-》把文件ONBOOT=no改为yes 如果不知道文件输入ip addr看一下文件名叫什么 第四部:按esc输入:wq(保存并退出)重启network执行下面的命令 service network restart 这里大部分能上网了 ping www.baidu.com看一下是否能ping通(ctrl+c终止ping) 番外:后面测试发现有的还是不能上网,关闭虚拟机,打开虚拟机安装目录找到.vmx文件右键编辑打开在里面 加入一行ethernet0.virtualDev = "e1000"保存启动 例如:我的D:\Documents\Virtual Machines\CentOS 64 位\CentOS 64 位.vmx

优秀的个人博客,低调大师

马斯克称 SpaceX 未来 AI 成就将超越所有其他公司总和

近日,针对业界关于“谷歌DeepMind注定会赢得人工智能竞赛”的说法,特斯拉CEO马斯克作出回应。他表示暂时认同这一观点,但同时放出狠话称,未来几年内,SpaceX的成就将远远超过所有人工智能公司加起来的总和。 目前,SpaceX已构建起“可重复使用火箭+全球卫星互联网+深空探索”的商业闭环。截至2026年初,星链在轨卫星数量已超6000颗,全球付费用户突破1.2亿户,在商业发射市场的市占率超过80%。此外,SpaceX正全力筹备史上最大规模IPO,目标估值高达1.75万亿美元。 今年2月,SpaceX已完成对马斯克旗下AI公司xAI的收购,计划将火箭、星链与AI技术深度融合,打造“天基数据中心”,利用太空太阳能优势降低AI算力成本。马斯克认为,AI领域的未来领导地位不会局限于传统AI公司,而将由掌握顶级技术基础设施的企业主导。

优秀的个人博客,低调大师

我要做 Android 第四弹 ps(Q:如何启动其他应用的Activity?)

一、打开第三方应用 (1) Intent intent=new Intent(); //包名 包名+类名(全路径) intent.setClassName("com.jack", "com.jack.PlaneActivity"); startActivity(intent); (2) Intent intent = new Intent(); ComponentName comp = new ComponentName("com.jack","com.jack.PlaneActivity"); intent.setComponent(comp); intent.setAction("android.intent.action.MAIN"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); (3)转载自https://blog.csdn.net/aaa111/article/details/41833189 public static final String APP_PACKAGE_NAME = "com.*.*";//包名 /** * 启动薄荷App * @param context */ public static void launchapp(Context context) { // 判断是否安装过App,否则去市场下载 if (isAppInstalled(context, APP_PACKAGE_NAME)) { context.startActivity(context.getPackageManager().getLaunchIntentForPackage(APP_PACKAGE_NAME)); } else { goToMarket(context, APP_PACKAGE_NAME); } } /** * 检测某个应用是否安装 * * @param context * @param packageName * @return */ public static boolean isAppInstalled(Context context, String packageName) { try { context.getPackageManager().getPackageInfo(packageName, 0); return true; } catch (NameNotFoundException e) { return false; } } /** * 去市场下载页面 */ public static void goToMarket(Context context, String packageName) { Uri uri = Uri.parse("market://details?id=" + packageName); Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri); try { context.startActivity(goToMarket); } catch (ActivityNotFoundException e) { } } 调用系统应用 (1)从 google 搜索内容 Intent intent = new Intent(); intent.setAction(Intent.ACTION_WEB_SEARCH); intent.putExtra(SearchManager.QUERY, "搜索内容") startActivity(intent); (2)浏览网页 Uri uri = Uri.parse("http://www.google.com"); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); (3)显示地图 Uri uri = Uri.parse("geo:38.899533,-77.036476"); Intent it = newIntent(Intent.Action_VIEW,uri); startActivity(it); (4)拨打电话 Uri uri =Uri.parse("tel:xxxxxx"); Intent it = new Intent(Intent.ACTION_DIAL,uri); startActivity(it); (5)发短信 //方法1: Intent it = newIntent(Intent.ACTION_VIEW); it.putExtra("sms_body", "TheSMS text"); it.setType("vnd.android-dir/mms-sms"); startActivity(it); //方法2: Uri uri =Uri.parse("smsto:0800000123"); Intent it = newIntent(Intent.ACTION_SENDTO, uri); it.putExtra("sms_body", "TheSMS text"); startActivity(it); //方法三: String body="this is sms demo"; Intent mmsintent = newIntent(Intent.ACTION_SENDTO, Uri.fromParts("smsto", number, null)); mmsintent.putExtra(Messaging.KEY_ACTION_SENDTO_MESSAGE_BODY,body); mmsintent.putExtra(Messaging.KEY_ACTION_SENDTO_COMPOSE_MODE,true); mmsintent.putExtra(Messaging.KEY_ACTION_SENDTO_EXIT_ON_SENT,true); startActivity(mmsintent); (6)发 Email Uri uri = Uri.parse("mailto:xxx@abc.com"); Intent it = newIntent(Intent.ACTION_SENDTO, uri); startActivity(it); Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(Intent.EXTRA_EMAIL,"me@abc.com"); it.putExtra(Intent.EXTRA_TEXT, "Theemail body text"); it.setType("text/plain"); startActivity(Intent.createChooser(it,"Choose Email Client")); Intent it=new Intent(Intent.ACTION_SEND); String[] tos={"me@abc.com"}; String[]ccs={"you@abc.com"}; it.putExtra(Intent.EXTRA_EMAIL, tos); it.putExtra(Intent.EXTRA_CC, ccs); it.putExtra(Intent.EXTRA_TEXT, "Theemail body text"); it.putExtra(Intent.EXTRA_SUBJECT, "Theemail subject text"); it.setType("message/rfc822"); startActivity(Intent.createChooser(it,"Choose Email Client")); Intent it = newIntent(Intent.ACTION_SEND); it.putExtra(Intent.EXTRA_SUBJECT, "Theemail subject text"); it.putExtra(Intent.EXTRA_STREAM,"file:///sdcard/mysong.mp3"); sendIntent.setType("audio/mp3"); startActivity(Intent.createChooser(it,"Choose Email Client")); (7)播放多媒体 Intent it = new Intent(Intent.ACTION_VIEW); Uri uri =Uri.parse("file:///sdcard/song.mp3"); it.setDataAndType(uri,"audio/mp3"); startActivity(it); Uri uri =Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI,"1"); Intent it = new Intent(Intent.ACTION_VIEW,uri); startActivity(it); (8)卸载 apk Uri uri =Uri.fromParts("package", strPackageName, null); Intent it = newIntent(Intent.ACTION_DELETE, uri); startActivity(it); (9)安装 apk Uri installUri = Uri.fromParts("package","xxx", null); returnIt = newIntent(Intent.ACTION_PACKAGE_ADDED, installUri); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file://" + filepath),"application/vnd.android.package-archive"); startActivity(intent);// 安装 (10)显示应用详细列表 Uri uri =Uri.parse("market://details?id=app_id"); Intent it = new Intent(Intent.ACTION_VIEW,uri); startActivity(it); //where app_id is the application ID, findthe ID //by clicking on your application on Markethome //page, and notice the ID from the addressbar //发现用package name也可以 //Uri uri =Uri.parse("market://details?id=<packagename>"); (11)寻找应用 Uri uri =Uri.parse("market://search?q=pname:pkg_name"); Intent it = new Intent(Intent.ACTION_VIEW,uri); startActivity(it); //where pkg_name is the full package pathfor an application (12)打开联系人列表 //1 Intent i = new Intent(); i.setAction(Intent.ACTION_GET_CONTENT); i.setType("vnd.android.cursor.item/phone"); startActivityForResult(i, REQUEST_TEXT); //2 Uri uri = Uri.parse("content://contacts/people"); Intent it = new Intent(Intent.ACTION_PICK, uri); startActivityForResult(it, REQUEST_TEXT); 这篇文章是转载的,出处在这 https://blog.csdn.net/aaa111/article/details/41833189,随着 Android 版本的提高,权限也有很多的变化,所以可能会有一些方法不能使用,不过这里可以作为参考。也算是弥补了以下基本知识。再说了,记不得 Google 不就 OK 了是吧。 愿我们成为真实的自己。

资源下载

更多资源
Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册