ITDB是一款比较适合中小企业的IT资产管理系统,当然也不仅限于IT资产。支持中文界面,容易上手。有两点提示:1,新建资产时需要预先设置好品牌信息(如WACOM、HTC等)和位置信息(如深圳市A大厦12层二维动画动画部),这两个是建立IT资产必须的,而且不能在建立IT资产时建立。2,打印标签时中文会乱码,所以IT资产尽量统一用英文即可。查看DEMO。
作者: 42
当谷歌搜索出现如下文字,无法进行搜索时,只需刷新自己的IP即可。
We're sorry... ... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now. See Google Help for more information.
家里台式机用了无线网卡,把网线都撤了。但是用微软自带的无线程序断过一次线,比较怀疑是那个盗版XP造成的,所以改用网卡自带的无线程序。由于手欠,把开始-所有程序-启动里的网卡程序链接删掉了。然后一开机就不会自动连上无线网,需要在桌面启动无线程序才行。那就把无线程序的快捷方式拖到启动菜单吧,或者复制到"C:Documents and SettingsAdministrator「开始」菜单程序启动"里。这样开机就会自动连上无线网了,但是开机后无线程序会显示出来,每次还得把它关掉,跟之前静默的连上无线网不一样。原来只要在快捷方式属性里,快捷方式选项卡中,目标栏最后加上' /H'就可以了。这样开机后程序自动启动但又不显示出来。快捷方式目标栏像这样:
"C:Program Filesprogram.exe" /H
已知经纬度、精度、(速度和方向),欲将信息展示在地图上,可以用如下代码:
<html> <head> <title>Location-Map</title> <script src="<?php //GET值为a:latitude,n:longitude,r:accuracy,h:heading,s:speed //判断是否含有速度方向信息,来选择加载geometry库 if(isset($_GET['s'])&&isset($_GET['h'])&&$_GET["s"]!=0){ echo 'http://maps.googleapis.com/maps/api/js?libraries=geometry&key=yourMapApiKey&sensor=false'; } else { echo 'http://maps.googleapis.com/maps/api/js?key=yourMapApiKey&sensor=false'; }?>"> </script> <script> var myCenter=new google.maps.LatLng(<?php echo $_GET["a"].",".$_GET["n"]; ?>); function initialize() { var mapProp = { center: myCenter, zoom:16, mapTypeId: google.maps.MapTypeId.<?php echo $_GET["t"]; ?> }; var map = new google.maps.Map(document.getElementById("googleMap"),mapProp); var marker=new google.maps.Marker({ position:myCenter, }); var myCity = new google.maps.Circle({ center:myCenter, radius:<?php echo $_GET["r"]; ?>, strokeColor:"#0000FF", strokeOpacity:0.5, strokeWeight:1, fillColor:"#0000FF", fillOpacity:0.2 }); <?php if(isset($_GET['s'])&&isset($_GET['h'])&&$_GET["s"]!=0){ $s=$_GET['s']*10; $h=$_GET['h']+180; //使用geometry库来计算起始点 echo 'var startLL=new google.maps.geometry.spherical.computeOffset(myCenter, '.$s.', '.$h.');'; echo 'var myTrip=[startLL,myCenter];'; echo 'var flightPath=new google.maps.Polyline({ path:myTrip, strokeColor:"#0000FF", strokeOpacity:0.8, strokeWeight:2 });'; echo 'flightPath.setMap(map);'; } ?> marker.setMap(map); myCity.setMap(map); } google.maps.event.addDomListener(window, 'load', initialize); </script> </head> <body> <div id="googleMap" style="width:400px;height:300px;"></div> <br> </body> </html>
本文更新於 2014/05/19。
表格没什么用,测试下主题
浏览器 | 经纬度 |
---|---|
Android-HTC-Webkit | 假 |
Android-HTC-Opera Mobile | 真 |
Ubuntu-Chromium | 假18000 |
Ubuntu-Opera | 假18000 |
WinXP-IE8 | 不支持 |
WinXP-Opera | 假18000 |
只需在配置文件中添加如下代码即可:
<Location /> Order Allow,Deny Allow from localhost Deny from 192.168.1.* </Location>
我的配置文件位于/etc/apache2/sites-enabled/000-default。将上面Location节点放在VirtualHost节点内即可。其实现的效果是除本机外其他局域网主机都无法访问站点。
重启Apache时提示Could not reliably determine the server's fully qualifieddomain name可以通过在/etc/apache2/httpd.conf中添加一行ServerName localhost来解决。
最后在记一下修改Ubuntu hosts文件方法:
- 打开hosts文件:sudo gedit /etc/hosts
- 添加一行:127.0.0.1 localhost
- 重启网络:sudo /etc/init.d/networking restart
比较遗憾的是host文件并不支持通配符。
苯甲酸钠是很常用的食品防腐剂,有防止变质发酸、延长保质期的效果,在世界各国均被广泛使用。然而近年来对其毒性的顾虑使得它的应用受限,有些国家如日本已经停止生产苯甲酸钠,并对它的使用作出限制。