I'm looking to write a script that connects to an Exchange inbox (as me) and downloads messages. Is there any open source software out there to support me?
Thanks!
In Emacs, there are some cases where I would like to prevent messages from appearing in the minibuffer, mainly pertaining to "Beginning/End of buffer" and "Text is read-only".
Is there any way I can prevent these messages from appearing in the minibuffer?
Also, is there some significant reason I might not want to disable these? At face value, I can just as easily look at the row number and buffer write status on the modeline.
I need to redirect all /eula traffic to /tos
RewriteRule ^/eula/$ /tos [R=301,NC]
but this rule doesnt seem to work -- mostly because the basepath is being treated as the root when really theres another parent directory; what's happening with the above rule is
/my/docs/eula -> /tos
which is not right, it should be doing this
/my/docs/eula -> /my/docs/tos
How do I write the rule for this, without having to specify what the parent dir is?
I am using http://www.pnotepad.org/ (i wouldnt mind switching to something else if it lightweight and has most/all features i like which i'll check on a app by app basis)
When i create a new tab/file and save it unless i write .txt i get a file with no extention. Which makes it hard to open since i cant double click it (i dont think i can tell win7 to set a default app for files with no extension)
How do i make pnotepad save with a .txt when non are specified?
I come from a web developer background and have been humming along building my PHP app, using the CakePHP framework. The problem arose when I began the ab (Apache Bench) testing on the Amazon EC2 instance in which the app resides. I'm getting pretty horrendous average page load times, even though I'm running a c1.medium instance (2 cores, 2GB RAM), and I think I'm doing everything right.
I would run:
ab -n 200 -c 20 http://localhost/heavy-but-view-cached-page.php
Here are the results:
Concurrency Level: 20
Time taken for tests: 48.197 seconds
Complete requests: 200
Failed requests: 0
Write errors: 0
Total transferred: 392111200 bytes
HTML transferred: 392047600 bytes
Requests per second: 4.15 [#/sec] (mean)
Time per request: 4819.723 [ms] (mean)
Time per request: 240.986 [ms] (mean, across all concurrent requests)
Transfer rate: 7944.88 [Kbytes/sec] received
While the ab test is running, I run VMStat, which shows that Swap stays at 0, CPU is constantly at 80-100% (although I'm not sure I can trust this on a VM), RAM utilization ramps up to about 1.6G (leaving 400M free). Load goes up to about 8 and site slows to a crawl.
Here's what I think I'm doing right on the code side:
In Chrome browser uncached pages typically load in 800-1000ms, and
cached pages load in 300-500ms. Not stunning, but not terrible either.
Thanks to view caching, there might be at most one DB query per page-load to write session data. So we can rule out a DB bottleneck.
I have APC on.
I am using Memcached to serve the view cache and other site caches.
xhprof code profiler shows that cached pages take up 10MB-40MB in
memory and 100ms - 1000ms in wall time.
Pages that would be the worst offenders would look something like this in xhprof:
Total Incl. Wall Time (microsec): 330,143 microsecs
Total Incl. CPU (microsecs): 320,019 microsecs
Total Incl. MemUse (bytes): 36,786,192 bytes
Total Incl. PeakMemUse (bytes): 46,667,008 bytes
Number of Function Calls: 5,195
My Apache config:
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 3
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 120
MaxRequestsPerChild 1000
</IfModule>
Is there something wrong with the server? Some gotcha with the EC2? Or is it my code? Some obvious setting I should look into? Too many DNS lookups? What am I missing? I really want to get to 1,000 concurrency capacity, but at this rate, it ain't gonna happen.
I turn off all of my computers at night except for my server. I'd like to be able to have my torrent downloads run on my server, which won't be logged in, so I'm wondering if there are any clients that can run as a service.
I'm ideally looking for one that can be passed a path to a .torrent file and will begin downloading it (I'll write the program that will interact with it).
I want to add a script to a rule to auto-print messages as PDF to a specific Folder.
What I found was this: http://is.gd/acmsE but it doesn't work for me on OS X 10.6.
I already know the Save to PDF command and that you can create simple aliases in the "PDF Services" folder, but I need something automated for this task.
I searched the web the whole morning and also tried to write my own Automator workflow but couldn't manage it
Any help is highly appreciated.
Has anybody ever seen any (no-installs-necessary) solutions to listing any RSS feed on any page of a website? Ideally it would consist of HTML (javascript if necessary) and require no downloads or installs. I am thinking of twitter-style apps that you load up in an iframe or via Javascript and in turn they show your latest tweets on the page - same concept, different content.
Just looking for a shiny gadget, not able to write my own solution for this particular project.
Hi guys, I'm looking to set up a multipurpose home server and hoped you could help me with the hardware selection.
First of all, the services it will provide:
Hosting a MySQL database (for training and testing purposes)
FTP server
Personal Mail Server
Home media server
So with this in mind I've done some research, and found some viable solutions:
A standard PC with the appropriate software (Either second hand or new)
A non-solid state mini-ITX system
A solid state, fanless mini-ITX system
I've also noted the pros and cons of each system:
A standard second hand PC with old hardware would be the cheapest option. It could also have lacking processing power, not enough RAM and generally faulty hardware. Also, huge power consumption heat generation and noise levels.
A standard new PC would have top-notch hardware and will stay that way for quite some time, so it's a good investment. But again, the main problem is power consumption, heat generation and noise levels.
A non-solid state mini-ITX system would have the advantages of lower power consumption, lower cost (as far as I can see) and long lasting hardware. But it will generate noise and heat which will be even worse because of the size.
A solid state, fanless mini-ITX system would have all the advantages of a non-solid state mini-ITX but with minimal noise and heat. The main disadvantage is the read\write problems of flash memory.
All in all I'm leaning towards a non-solid state mini-ITX because of the read\write issues of flash memory.
So, after this overview of what I do know, my questions are:
Are all these services even providable from a single server? To my best understanding they are, but then again, I might be wrong.
Is any of these solutions viable? If yes, which one is the best for my purposes? If not, what would you suggest?
Also, on a more software oriented note:
OS wise, I'm planning to run Linux. I'm currently thinking of four options I've been recommended: CentOS, Gentoo, DSL (Damn Small Linux) and LFS (Linux From Scratch). Any thoughts on this? Any other distro you would recomend?
Regarding FTP services, I've herd good things about FileZila. Anyone has any experience with that? Do you recommend it? Do you recommend something else?
Regarding the Mail service, I know nothing about this except that it exists. Any software you recommend for this task?
Home media, same as mail service. Any recommended software?
Thank you very much.
I need to install java (j2se sdk) on my computer for running a program (SQLDeveloper). All the write ups talk about installing the FireFox plug-in.
What do I have to do to get this installed?
Has anyone ever used/created a simple unix/linux log parser that can parse logs like the following:
timestamp log_message \n
Order the messages, parse the timestamp, and return:
All messages
Messages after a certain date (--since)
Messages before a certain date (--until)
Combination of --since, --until
I could write something like this, but wasn't sure if there was something canned. It would fit well in some automated reporting I'm planning on doing.
Hi all
I have tried many ways/software to save a web page (html, mht, doc, pdf). My favorite software was an addon for browsers from Omnipage (OCR). What i like about this is that it prints the whole page (continuously) and it doesn't write the http path and page number on the footer of every page, which i find very annoying.
Does anyone know a software like this one (freeware or not)
PS
I tried CutePDF
Hi all,
I want to block users from changing directories when they log in via scponly's shell. How can I do that? I need to be able to provide users with their own upload directory that only they can see and read/write. They should not be allowed to execute any code, ie, change directories or the like.
Thanks.
I have a huge contact list on my phone, so every time I start to write some word on a text field contact names will pop as first options for the autocompletion, which is almost never what I want.
Is there some way to disable the autocompletion with contact names without disabling it for dictionary words?
Welcome,
Any idea how can i create "virtual" listening port on my Ubuntu computer porting for remote IP ?
I mean, something like this.
When i write telnet 127.0.0.1 555
I want get connection to computer 192.168.0.21 on port 555 (where i have my server).
Any idea ?
I had to format a USB hard drive to ext3 to use it with a Linksys nas box. Now I can't read the hd when I unplug it from the nas and plug it directly into my Windows 7 computer. (The computer accesses the nas over a wireless connection, so I like to plug the hd directly into my pc when transferring large files.)
How can I leave the hd formatted with ext3 and yet be able to access it (read/write) when I plug it directly into my pc?
Rationale:
I want to manage libraries of media files (music, images) using git, there is git-annex but it requires haskel platform - but they do not play together well (also it's quite to big dependency for me).
Question:
Is there any other plugin with this functionality, or possibly would it be possible to write such plugin (resources?).
Similar questions:
Self-hosted, cross-platform repository for large files
Using Git to Manage An iTunes Library?
Hi,
Im relatively new to Ubuntu, Im wondering how easy it is to write what I think is called a shell script to make tasks a little easier.
For example I frequently connect to a server - ssh -p 123 [email protected]
Can and how could I shorten this to a shorter command like "mysite" or "connect mysite"
Thanks.
I need to write a technical document in Microsoft Word, with source code samples sprinkled throughout the text.
Is there any way, without leaving Microsoft Word (maybe a plugin?), to format the source code snippets within the document in the same easy way that SuperUser.com provides - a little button that defines everything as code and formats it appropriately?
I was given access to a Windows Server 2008 box and I need to check what all permissions I have on that box (if possible in the entire domain). I don't have access to domain controller and I don't want to write LDAP queries but just some GUI option or some command line stuff. Is there anyway?
PS: I am not in to network administration, I am a BI developer. Pardon me if asked a stupid question.
Reason: I have a contact that I know is busy, but still want notifications so he is in "online"-mode and not DND-mode. I want to write "OK" to him, without having to disturb him (having him to open and look in skype to see if it was something important, which it is not).
Question: Is there any way to send a message that won't trigger a notification at the receiver's end? Something like a "silent message".
I have a bunch of ghost image files to edit. These are Windows OS images, and I need to add a few files into the them.
I could have used Ghost Explorer (GhostExp.exe) to modify them one by one, but it would be nicer to have a command line utility to do the trick, so that I can write a script to do this automatically for me.
Any suggestions?
I'm currently using conventional HDDs like the 5200 rpms, browsing a lot, my folder and files are scattered, torrenting always and I'm not fond of optimization like disabling cache, cleaning temp
Files , etc.
My question is, given the above conditions (no disable of cache, seeding always in torrent, downloading torrent) is it safe to use SSD? I'm pretty worried about cycles but I read an article wherein it says its safe since it will usually wear out for 10 years given that you always write heavily and continuously. Thanks
I mapped a WebDAV drive in my Windows Explorer.
I can access files and browse etc.
But. When I try to open my Excel file it always opens in Read-only mode. How do I open a file so it opens with write permissions? I'm sure no-one else is working on the same file.
I'm using:
Windows Server 2008
Office Excel 2007