上一次接触 project euler 还是2011年的事情,做了前三道题,后来被第四题卡住了,前面几题的代码也没有保留下来. 今天试着暴力破解了一下,代码如下: (我大概是第 172,719 个解出这道题的人) program 4 A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.…
When you publish your ASP.NET project to a hosting account such as GoDaddy, you may run into the issue below. This issue may occur even though your code works fine in localhost. Server Error in ‘/’ Application. . Parser Error Description: An error oc…
今天在C代码中使用gets()时提示“warning: this program uses gets(), which is unsafe.”,然后这个程序还能运行,无聊的我开始查阅资料,为啥gets()会unsafe呢. 通过Google查阅前辈的问答,原来是这么回事. gets()这个函数只有一个参数,那就是字符缓冲区的指针,并没有指定该缓冲区的长度也就是大小.当你输入一个很长很长的字符串的时候,gets ()函数会把每一个字符都存入到栈(statck)中,因此当字符串很大的时候就会导致程序…
今天在新装的win10 预览版上面,发现git不能启动了,提示信息主要是: The Program can't start because libiconv2.dll is missing 于是我在网上下载了libiconv2.dll文件,然后将这个文件复制到我的git安装目录的git-core文件夹下面,然后一切就ok了.…
sudo: no tty present and no askpass program specified 2012-11-30 09:30 5040人阅读 评论(1) 收藏 举报 修改sudo配置文件,直接键如visudo命令编辑配置文件: 1. 注释Defaults requirettyDefaults requiretty修改为 #Defaults requiretty, 表示不需要控制终端.否则会出现sudo: sorry, you must have a tty to run sudo…
启动vmware时出现以下错误: Cannot open the disk 'D:\Program Files\VMOS\Centos.vmdk' or one of the snapshot disks it depends on. 原因: 出现这种情况一般是由于上次在关机的出现了异常,比方说非正常关机,强关机等情况,从而导致产生了一些lck为后辍名的文件,那么解决方法就是删除这些lck文件即可. 解决方法 ,D:\Program Files\VMOS\ 目录,删除所有的lck文件即可.…
今天调试google tag manager, 需要看看google analytics source code,无奈没有源码,装个一个插件ejad 还是不行: java.io.IOException: Cannot run program "jad" 搞了半天,原来是jad.exe没有装 http://stackoverflow.com/questions/11421889/jad-eclipse-plugin-installation-issues…
1.3 PROGRAM DEVELOPMENT ENVIRONMENT 1.4 WIN32 EXECUTEABLE FILE FORMAT We should also know that complied binary code is a data structure in itself,which the operating system operates on when code is loaded into memory for execution.For Win32 platforms…
The error "System program problem detected" comes up when a certain application crashes. Ubuntu has a program called Apport that is responsible for detecting such crashes and upon user consent, report these crashes to developers. This process in…
These days I was learning from Computer Networking --A Top-Down Approach by Kurose Ross. I modified the C/S model socket program in Python in Chapter 2. Here is the program's source code. #!/usr/bin/python2.7 # UDP - Client from socket import * serve…
//Addition program that use JOptionPane for input and output. import javax.swing.JOptionPane; public class Addition{ public static void main(String[] args) { String firstNumber=JOptionPane.showInputDialog("Enter first integer!"); String secondNu…
From my mailbag: How do I write a C program to connect MySQL database server? MySQL database does support C program API just like PHP or perl. The C API code is distributed with MySQL. It is included in the mysqlclient library and allows C programs t…
今天在使用这个拖拽到具,把apk文件拖到re-sign.jar运行打开的界面,报错如下: ERROR:Cannot run program "E:\Android sdk\sdk\tools\zipalign"CreateProcess error=2 解决方案: 下载一个zipalign.exe放到tools目录下面就可以了…