码迷,mamicode.com
首页 > 其他好文
简单音乐播放器
今天复习了下导航器,把播放器美化了下// ViewController.m// 播放器//// Created by apple on 14-7-18.// Copyright (c) 2014年 apple. All rights reserved.//#import "ViewContr...
分类:其他好文   时间:2014-07-22 22:52:14    阅读次数:229
字符串截取
char str[] = "xxxx.dll"char*p;p=strrchr(str, '.');CString str="xxxx.dll";int n = str.ReverseFind('.')str = str.Left(str.GetLength()-n-1);
分类:其他好文   时间:2014-07-22 22:52:14    阅读次数:254
IE浏览器解决margin:0 auto;不居中办法!
一般情况下需要将div居中显示时,使用Css样式:margin:0 auto;或者margin:0 auto 1px;即可,但有时使用margin:0 auto后在firef、Chrome等浏览器里能居中,而在IE678里不居中的现象。如下代码:margin: 0 auto 内容居中显示解决方法一可...
分类:其他好文   时间:2014-07-22 22:52:15    阅读次数:198
osgi 1
Helloworld入门准备:eclipse 3.4需要jar,——eclipse 自带的,plugin下面有很多,抛开里面的jar,很多都是当前项目不需要的,如果不适用eclipse而是直接在jre上运行的话,估计只需要org.eclipse.osgi_3.2.0.v20060601.jar 就o...
分类:其他好文   时间:2014-07-22 22:52:15    阅读次数:180
HDU 1358 Period
经典kmpps:poj 2046Power Strings 是这题的简化版 ←_←太水就不贴代码了。。。#include #include #include using namespace std;const int maxn=1000010;char s[maxn];int next[maxn];...
分类:其他好文   时间:2014-07-22 22:52:16    阅读次数:209
求解线性方程组的三种基本迭代法
前言 在实际项目的一些矩阵运算模块中,往往需要对线性方程组进行求解以得到最终结果。 然而,你无法让计算机去使用克莱默法则或者高斯消元法这样的纯数学方法来进行求解。 计算机解决这个问题的方法是迭代法。本文将介绍三种最为经典的迭代法并用经典C++源代码实现之。迭代法简介 从解的某个近似值出发,通...
分类:其他好文   时间:2014-07-22 22:52:16    阅读次数:319
关闭 ubuntu System program problem detected
管理员权限打开/etc/default/apport# set this to 0 to disable apport, or to 1 to enable it# you can temporarily override this with# sudo service apport start f...
分类:其他好文   时间:2014-07-22 22:52:16    阅读次数:172
sublime Text3配置及快捷键、插件推荐总结
一、基础1.重要文档:sublime Text3官方文档中文版:http://feliving.github.io/Sublime-Text-3-Documentation/sublime Text插件下载站点:https://sublime.wbond.net/Sublime Text insta...
分类:其他好文   时间:2014-07-22 22:52:33    阅读次数:6141
【leetcode】First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:其他好文   时间:2014-07-22 22:52:33    阅读次数:166
HDU 1711 Number Sequence
经典kmp 1 #include 2 #include 3 using namespace std; 4 5 int n,m; 6 int a[1000010],b[10010],next[10010]; 7 8 void getnext (int *s,int *next)...
分类:其他好文   时间:2014-07-22 22:52:33    阅读次数:182
rails transaction 的用法
Rails 的 transaction 事务处理最近太做一个数据排名统计,统计过程中需要删除旧的缓存统计数据,最开始写的时候就直接CachePostTotal.connection.execute("truncate table cache_post_totals")先把这个表给重置了,然后再循环往...
分类:其他好文   时间:2014-07-22 22:52:34    阅读次数:238
常用的谓词和逻辑运算符
在我们写SQL查询的过程中,有几个使用得非常频繁的谓词和逻辑运算符,谓词主要有IN,BETWEEN,以及LIKE。逻辑运算符主要有OR和AND。下面来分别总结它们。 IN IN一般用于判断一个值是否与一组元素中的至少一个相等。例如,以下SQL查询返回订单ID等于10248,或10249,或10250...
分类:其他好文   时间:2014-07-22 22:52:34    阅读次数:270
Tomcat启动就执行特定方法
import java.util.Timer;import javax.servlet.ServletContextEvent;import javax.servlet.ServletContextListener;public class TestListener implements Servl...
分类:其他好文   时间:2014-07-22 22:52:35    阅读次数:206
转场动画CATransition~~~~~~
?CATransition是CAAnimation的子类,用于做转场动画,能够为层提供移出屏幕和移入屏幕的动画效果。iOS比Mac OS X的转场动画效果少一点??UINavigationController就是通过CATransition实现了将控制器的视图推入屏幕的动画效果??动画属性:–typ...
分类:其他好文   时间:2014-07-22 22:52:35    阅读次数:221
解决响应式布局下兼容性的问题
响应式布局主要是为了在各种终端中能正常显示界面,主要是面向的手机、平板等用户的网站比较多采用,而面向PC端的网站很少使用,因为主流的显示器都比较大了,而且大多数网站都采用1000宽度,针对手机端等往往又会另外开发一套前端。因为响应式布局兼容性并不好,在IE8以下的浏览器中无法实现效果。大家宁愿采用1...
分类:其他好文   时间:2014-07-22 22:52:56    阅读次数:172
wp8 入门到精通 ---转换
//////颜色字符串转Color///publicstaticColorConvertFromString(stringargb){uintresult;if(uint.TryParse(argb.TrimStart('#','0'),NumberStyles.HexNumber,null...
分类:其他好文   时间:2014-07-22 22:52:56    阅读次数:170
【leetcode】Valid Parentheses
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:其他好文   时间:2014-07-22 22:52:56    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!