archive

PHP MYSQL Blog Archive Menu by Year and Month

偶尔善良 提交于 2019-12-02 21:14:23
I'm looking for an efficient way to collate all blog posts into a menu of the following format: 2012 August(6) September(4) October(2) Month representing the month(obviously), and the value inside the brackets representing the number of posts in that month. Once clicked, a search will then be made for all posts in that month, in that year. I need it to be dynamic, picking up November automatically when a post is created in that month, and carrying on into December, into 2013 etc etc... All I have is a UNIX timestamp for each post. I would really like to avoid using seperate functions to gather

programmatically extract tar.gz in a single step (on windows with 7zip)

偶尔善良 提交于 2019-12-02 20:10:43
PROBLEM: I would like to be able to extract tar.gz files in a single step. This makes my question almost identical to this one: stackoverflow question for tar-gz . My question is almost the same, but not the same, because I would like to do this on windows using 7zip command-line (or something similar) inside a bat file or ruby/perl/python script. QUESTION: This seemingly simple task is proving to be more involved than the first appearance would make it out to be. Does anyone have a script that does this already? 7z e example.tar.gz && 7z x example.tar Use && to combine two commands in one

Create .ipa for iPhone

青春壹個敷衍的年華 提交于 2019-12-02 17:09:42
I developed one application for iPhone. After I build I got .app file in build folder. My application name is Myapp, then i got Myapp.app file in the build folder. My problem is i want to create the .ipa file. how is that.. it is for to install jailbraked iPhone.. Create a folder named Payload . Copy Myapp.app (from products of your project) into the Payload directory. Right click and Compress the Payload directory. Rename the zip file to Myapp.ipa . ** Update ** This answer is very old. Use Xcode to build .ipa archives now. (Product > Archive) Run Script /bin/sh mkdir $CONFIGURATION_BUILD_DIR

Php: Archives system like blog

匆匆过客 提交于 2019-12-02 17:01:06
问题 On my website, I have a "news" page where the customer can add an unlimited number of news (dates are stored in the DB ( with CURRENT_TIMESTAMP )). For example when the user clicks on July, only news of July will be appear on the page. For now, I only have this : <?php $q = $db->query("SELECT dateNews FROM news GROUP BY dateNews"); while($data = $q->fetch()){ $dateMonth= $data['dateNews']; echo "<a href='#''><p>".strftime('%B %Y', strtotime($dateMonth))."</span></p></a>"; } ?> But I want this

How to 'Grab' content from another website

痴心易碎 提交于 2019-12-02 17:01:01
问题 A friend has asked me this, and I couldn't answer. He asked: I am making this site where you can archive your site... It works like this, you enter your site like, something.com and then our site grabs the content on that website like images, and all that and uploads it to our site. Then people can view an exact copy of the site at oursite.com/something.com even if the server that is holding up something.com is down. How could he do this? (php?) and what would be some requirements? 回答1: It

Three20/Three20.h file not found for Archive

ⅰ亾dé卋堺 提交于 2019-12-02 15:08:48
问题 I'm trying to update an app that already have the Three20 library. Now i'm using xcode 4.5 and everytime i try to make an Archive i recive this error: Three20/Three20.h file not found At the beginning i wasn't able to make any kind of build,but after the adding of $(BUILT_PRODUCTS_DIR)/../three20 and $(BUILT_PRODUCTS_DIR)/../../three20 in the Header Search Path of the build and the target settings i can make a Build in my Device. Anyway if i try to made an Archive to publish my app, the same

Using 'LIBS' in scons 'Program' command failed to find static library, why?

懵懂的女人 提交于 2019-12-02 14:46:23
问题 I've got a 'n.c' as main function, and 'o.c' as import function, like below: $ cat n.c o.c int f(); int main(){ f(); return 0; } #include<stdio.h> int f(){ printf("hello\n"); return 2; } Then scons file like below: Library('o.c') Program('n.c',LIBS=['o']) What I hope here is to compile o.c and generate libo.a(OK), and n.c will use this '.a' to generate final executable. So I specified LIBS=['o'], in hoep that it will specify an archive file to find libo.a library. But: $ scons -Q gcc -o n n.o

How do you archive an entire website for offline viewing?

房东的猫 提交于 2019-12-02 14:00:56
We actually have burned static/archived copies of our asp.net websites for customers many times. We have used WebZip until now but we have had endless problems with crashes, downloaded pages not being re-linked correctly, etc. We basically need an application that crawls and downloads static copies of everything on our asp.net website (pages, images, documents, css, etc) and then processes the downloaded pages so that they can be browsed locally without an internet connection (get rid of absolute urls in links, etc). The more idiot proof the better. This seems like a pretty common and

Create a tar.xz in one command

别等时光非礼了梦想. 提交于 2019-12-02 13:54:48
I am trying to create a .tar.xz compressed archive in one command. What is the specific syntax for that? I have tried tar cf - file | xz file.tar.xz , but that does not work. Use the -J compression option for xz . And remember to man tar :) tar cfJ <archive.tar.xz> <files> Edit 2015-08-10: If you're passing the arguments to tar with dashes (ex: tar -cf as opposed to tar cf ), then the -f option must come last , since it specifies the filename (thanks to @A-B-B for pointing that out!). In that case, the command looks like: tar -cJf <archive.tar.xz> <files> Switch -J only works on newer systems.

How do I tar a directory of files and folders without including the directory itself?

六月ゝ 毕业季﹏ 提交于 2019-12-02 13:46:45
I typically do: tar -czvf my_directory.tar.gz my_directory What if I just want to include everything (including any hidden system files) in my_directory, but not the directory itself? I don't want: my_directory --- my_file --- my_file --- my_file I want: my_file my_file my_file tomoe cd my_directory/ && tar -zcvf ../my_dir.tgz . && cd - should do the job in one line. It works well for hidden files as well. "*" doesn't expand hidden files by path name expansion at least in bash. Below is my experiment: $ mkdir my_directory $ touch my_directory/file1 $ touch my_directory/file2 $ touch my