小编Dil*_*mar的帖子

在CentOS 6.2中将MySQL版本从5.1升级到5.5

我试图在CentOS 6.2中将MySQL从5.1升级到5.5.以下是我做的过程:

1. rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
2. yum install libmysqlclient15 --enablerepo=webtatic
3. yum remove mysql mysql-*
4. yum install mysql55 mysql55-server --enablerepo=webtatic
Run Code Online (Sandbox Code Playgroud)

当我尝试第4步时,我得到以下输出:

[root@d2005 /]# yum install mysql55 mysql55-server --enablerepo=webtatic
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: yum.singlehop.com
 * extras: centos.mirrors.tds.net
 * updates: pubmirrors.reflected.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql55.x86_64 0:5.5.10-1.w5 will be installed
--> Processing Dependency: mysql55-libs = 5.5.10-1.w5 for …
Run Code Online (Sandbox Code Playgroud)

mysql database centos

37
推荐指数
4
解决办法
13万
查看次数

从文件位置运行Java中的.exe文件

我必须从我的Java程序中打开一个.exe文件.所以我尝试了第一个代码.

Process process = runtime.exec("c:\\program files\\test\\test.exe");
Run Code Online (Sandbox Code Playgroud)

但是我收到了一些错误.然后我发现exe必须从c:// program files/test /那个位置启动,然后它会打开而没有错误.所以我决定编写一个.bat文件并执行,以便它将cd到该位置并执行.exe文件.

以下是我的代码:

BufferedWriter fileOut;

String itsFileLocation = "c:\\program files\\test\\"
    System.out.println(itsFileLocation);
    try {
     fileOut = new BufferedWriter(new FileWriter("C:\\test.bat"));
     fileOut.write("cd\\"+"\n");
     fileOut.write("cd "+ itsFileLocation +"\n");
     fileOut.write("test.exe"+"\n");
     fileOut.write("exit"+"\n");
     
     fileOut.close(); // Close the output stream after all output is done.
    } catch (IOException e1) {
     e1.printStackTrace();
    } // Create the Buffered Writer object to write to a file called filename.txt
    Runtime runtime = Runtime.getRuntime();
    try {
     Process process =runtime.exec("cmd /c start C:\\test.bat");
    } catch (IOException e) …
Run Code Online (Sandbox Code Playgroud)

java windows exe batch-file bufferedreader

18
推荐指数
4
解决办法
8万
查看次数

录制视频上的iPhone水印.

在我的应用程序中,我需要捕获视频并在该视频上添加水印.水印应为文本(时间和注释).我看到使用"QTKit"Frame工作的代码.但是我读到该框架不适用于iPhone.

提前致谢.

iphone watermark video-watermarking

16
推荐指数
3
解决办法
2万
查看次数

使用[PHP]从JS/CSS文件中删除注释

我正在构建一个PHP脚本来缩小CSS/Javascript,这显然涉及从文件中删除注释.任何想法如何做到这一点?(最好,我需要摆脱/**///评论)

css php minify

5
推荐指数
2
解决办法
2095
查看次数

设置EKEventEditViewController的背景颜色/图像

以下是我添加日历事件的代码.我想为EKEventEditViewController发送一个背景图片.我找到了这段代码

UITableView *eventTableView = [[editController.view subviews]objectAtIndex:0]; 
Run Code Online (Sandbox Code Playgroud)

使用此代码,我能够为EKEventViewController设置背景图像,但它不适用于EKEventEditViewController.任何帮助是极大的赞赏.提前致谢.

     EKEventEditViewController *editController = [[EKEventEditViewController alloc] init];
//    UITableView *eventTableView = [[editController.view subviews]objectAtIndex:0];
//    [eventTableView setHidden:YES];

//    [eventTableView setBackgroundColor:[UIColor redColor]];
NSMutableArray *allViewControllers = [NSMutableArray arrayWithArray: editController.viewControllers];
NSLog(@"%i", [allViewControllers count]);
 UITableView *eventTableView = [[[allViewControllers objectAtIndex:0] subviews] objectAtIndex:0];
//    UITableView *eventTableView = [[editController.view subviews]objectAtIndex:0];
//    eventTableView.backgroundColor = [UIColor redColor];
UIColor *background = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"honeycomb.png"]];
eventTableView.backgroundColor = background;
//    [background release];
editController.event =  [eventsList objectAtIndex:indexPath.row];
editController.eventStore = self.eventStore;
editController.editViewDelegate = self;
itsSelectedReminder = indexPath.row;
isReminderDeleted …
Run Code Online (Sandbox Code Playgroud)

iphone calendar ekeventkit

5
推荐指数
1
解决办法
2254
查看次数

Eclipse indigo的Tomcat应用程序Profiler

我尝试在eclipse indigo中安装TPTP profiler.但它无法正常工作我收到以下错误.

Eclipse TPTP不支持您的平台.集成代理控制器将被禁用.要在支持的主机上进行配置,请在该主机上安装并使用独立的代理控制器.

我不知道如何在我的应用程序中检查我的sql内存泄漏.是否有任何其他Eclipse工具来检查内存泄漏.我想分析我在Tomcat中托管的web应用程序.

提前致谢...

eclipse tomcat profiling eclipse-plugin eclipse-tptp

5
推荐指数
1
解决办法
8399
查看次数

iPhone模拟器与iPhone OS测试:文件不是必需的架构

我正在开发一个iphone应用程序(sdk 3.1.3),我已经添加了corelocation和mapkit框架.我使用了iphonesimulator包,但是使用'相对于当前的sdk'添加它们.当我在iphone simulatore中测试我的应用程序时,一切正常.但是当我切换到iphone设备3.1.3时,我收到2个警告和4个构建错误:

警告:

.../corelocation文件不是必需的体系结构
.../mapkit文件不是必需的体系结构

错误:

"_OBJC_CLASS_$_MKReverseGeocoder", referenced from:<br />
__objc_classrefs__DATA@0 in VMLViewController.o<br />
"_OBJC_CLASS_$_MKPinAnnotationView", referenced from:<br />
__objc_classrefs__DATA@0 in VMLViewController.o<br />
"_OBJC_CLASS_$_CLLocationManager", referenced from:<br />
__objc_classrefs__DATA@0 in VMLViewController.o<br />
"_kCLLocationAccuracyBest", referenced from:<br />
_kCLLocationAccuracyBest$non_lazy_ptr in VMLViewController.o<br />
ld: symbol(s) not found<br />

collect2: ld returned 1 exit status<br />
Build failed (4 errors, 2 warnings)<br />
Run Code Online (Sandbox Code Playgroud)

我右键单击mapkit框架包,检查获取信息,路径设置为:System/Library/Frameworks/MapKit.framework

我有基本的iphone开发知识,但我不知道问题是什么...有谁可以帮助我?

映入眼帘,

托马斯

iphone testing frameworks ios-simulator

4
推荐指数
1
解决办法
6809
查看次数

如何获得当前的经纬度

如何获得当前的经纬度

- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation*)newLocation fromLocation:(CLLocation *)oldLocation {

} 
Run Code Online (Sandbox Code Playgroud)

使用这种方法

如果我使用这个函数,我需要移动多少距离....这样这个方法将由corelocation框架调用或者我可以调用这个函数programmatic ....

iphone location

4
推荐指数
1
解决办法
4142
查看次数

Highcharts水平同步图表

我正在尝试构建同步图表但水平对齐,我是基于它做的

http://www.highcharts.com/demo/synchronized-charts

我使对齐水平,现在图表不同步

/*
The purpose of this demo is to demonstrate how multiple charts on the same page can be linked
through DOM and Highcharts events and API methods. It takes a standard Highcharts config with a
small variation for each data set, and a mouse/touch event handler to bind the charts together.
*/

$(function () {

    /**
     * In order to synchronize tooltips and crosshairs, override the
     * built-in events with handlers defined on the parent element.
     */ …
Run Code Online (Sandbox Code Playgroud)

javascript charts highcharts

4
推荐指数
1
解决办法
1364
查看次数

从我们的应用程序管理iPhone日历事件

以下是我的代码

NSLog(@"%@", thisEvent1.title); 

EKEvent *thisEvent  = [EKEvent eventWithEventStore:eventStore];

eventStore = [[EKEventStore alloc] init];

thisEvent = [EKEvent eventWithEventStore:eventStore];


NSDateFormatter *   dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd:HH:mm"];


NSDate * date = [[NSDate alloc] init];
date = [dateFormatter dateFromString:[itsStartDate objectAtIndex:indexPath.row]];
[date retain];

thisEvent.startDate = [dateFormatter dateFromString:[itsStartDate objectAtIndex:indexPath.row]];
thisEvent.endDate = [dateFormatter dateFromString:[itsEndDate objectAtIndex:indexPath.row]];
thisEvent.notes = [itsNotes objectAtIndex:indexPath.row];
thisEvent.title = [itsTitle objectAtIndex:indexPath.row];
thisEvent.location = [itsLocation objectAtIndex:indexPath.row];
// thisEvent.allDay = TRUE;
NSMutableArray *myAlarmsArray = [[NSMutableArray alloc] init];

EKAlarm *alarm1 = [EKAlarm alarmWithRelativeOffset:-[[itsAlertOne objectAtIndex:indexPath.row] intValue]]; // …
Run Code Online (Sandbox Code Playgroud)

iphone xcode calendar eventkit

3
推荐指数
1
解决办法
5763
查看次数