I have heard that Perforce has some Commandments, but I don't know what they are. Is there a way to get the p4 client to show them to me?
I've tried to run strings across the binary and search for them, but this command returns no results:
strings /usr/local/bin/p4 | grep -i commandments
The P4 Commandments are an Easter egg hidden inside the p4 binary. Run p4 help commandments to see them for yourself:
P4 Commandments -- Values we work by
* We have high standards.
* We are straightforward.
* We rise to responsibility.
* We like work we can be proud of.
* We like to hear what we've done.
* We value both people skills and job skills.
* We treat each other with dignity and respect.
* We are one team. We are not in competition with each other.
* We talk and listen. We like feedback.
* We appreciate creative and practical solutions. There might be
a better way.
* We appreciate people for who they are.
* Fun is always an option. It is not mandatory.
* These are the best years of our lives.
Related
Say a file is known to P4 as Foo.cpp
p4 files -e -m 100 //XXX/YYY/...foo.cpp*
(note the lower case f) can't find it. Has anyone overcome this issue?
EDIT: the place I am running the command from does not have a local p4 checkout so going through the file system is not an option here.
If you are able, I would highly recommend going through the trouble (thanks to Linux-dependency hell) of installing P4Search. It will give you the case-insensitive searching power you seek, but it will also save you hours and hours of time down the road.
http://www.perforce.com/perforce/r14.1/user/p4searchnotes.txt
You could use the Perforce Broker to rewrite the command, but this would only be practical if all of your files started with an upper case letter.
Some examples of using the broker to rewrite commands are here:
http://www.perforce.com/blog/120727/customising-perforce-using-p4broker-rewrite-command
The simplest long term solution may be to move to a case insensitive server, but note that this is not a trivial process.
If this is something you want to do, I strongly recommend you contact 'support#perforce.com' for advice and more information.
You might also find this KB article helpful:
http://answers.perforce.com/articles/KB/3081
Hope this helps,
Jen.
I'm currently working on implementing IMAP protocol on our mail server. This is my first time implementing such a big project and I've so far coded a majority of IMAP commands in the RFC, except the Search command.
I've been searching on the internet and studied postfix algorithm for weeks to see how to write the search command correctly.
It seems Postfix would work until I encountered something like OR OR A B C D ==> (OR (OR A B) C) D
Could anyone point me a direction on how to implement the Search command when there are multiple ORs?
Thank you very much for any help you could provide.
This is not going to be an answer you are going to like, but I'll recommend this anyway -- don't do this. IMAP is an extremely complex protocol with a ton of non-obvious corner cases. The baseline version (RFC3501) also leaves many advanced features missing; in order to get reasonable performance, especially with mobile clients, you need to implement quite a few extensions.
If I were you, I would recommend integrating with an existing open-source IMAP server implementation. If you have a fancy storage backend, perhaps you can write a plugin for Dovecot or Cyrus.
If you decide to really reimplement this yourself and this is your first complex project, you will very likely end up with a product which is subtly broken in numerous ways. If your goal is to be able to add a "speaks IMAP" phrase to the sales brochure, well, it will work, but in practice, you will be solving interoperability problems in the next five years at least.
It's a bit urgent... ;)
Someone i know have a Casio calculator (FX-9750 / Grahp35+).
There is in the menu a functionnality TVM with "Days Calculation" that permits to know the number of days between 2 dates.
I have to program for this calculator something very quick but i don't know how to do... i don't know so much about casio programming...
Is it possible to call that TVM -> Days Calculation function inside a program?
I can't find any information about that on google...
Downloaded some casio manuals but i don't see anything about days calculation...
Please help meee :)
As far as I know you can't call an existing program from CASIO BASIC. I tried finding a way to do that myself, but that was a long time ago with an older calculator, so things could be different now. Still, I couldn't find anything on the internet. In other words, it seems like you would have to implement it yourself.
Here is a tutorial that might be of help for the general programming.
Here is a thread about doing what you wanted in Java that might be helpful (to show the approach to take).
Here is one in C.
Note that you might be able to download a CASIO SDK and write the program in C, if you find that the BASIC dialect is not up to the task. I do not know if your situation permits that, though, nor if such an SDK is available for your particular model.
If you run into trouble I suggest you post a new question.
EDIT: This programming manual from CASIO seems to confirm that it is not possible to do what you wanted, and might serve as a good reference should you choose to implement it yourself. It was made for the FX-9750GII.
I am not very sure how to do it, but for starters:
1. Calculator Games and Programs (some have source code too)
2. How to program casio calc
Yes, the TWM functions are available from Casio BASIC. Days_Prd() gives the difference between two dates.
Days_Prd(MM1, DD1, YYYY1, MM2, DD2, YYYY2)
(A full function reference is available in the manual downloadable from casio and maybe a CD you got with the calculator).
In my initial days of using linux I usually had to search google to know the command for
doing a particular task. Once I have the command name, i can view its usage using man command-name.
Similarly I was thinking of some utility which can tell the command to do a particular task if the task to be done is specified as an argument and opens the man page for that command
e.g:
findUtilty "find all files in a directory"
output:
ls
find
I want to know if some utility of that kind exists, if so it will be very handy especially for newbies.
If not then i may like to implement it.
thanx,
Not as nice as you are asking about, but
apropos <keyword>
and
man -k <keyword>
can be very useful.
Parsing natural language is hard because there are thousands of ways to rephrase one sentence. Google does it best as far as I know. So, there is no such tool. There are handy and practical manuals that makes it easy to find the right tool for the job. Also, there is a huge community behind core-utils (and linux in general), so try both forums and IRC. Often, the latter is the fastest. And people tend to parse natural language as expected :)
apropos will do something like you suggest.
I guess it is: List of Unix utilities # Wikipedia
on Debian (and presumably derived systems) this is also useful:
sudo apt-cache search <keyword>
Few years ago NetBSD decided to rewrite its apropos. The new implementation does a full text search with results ranked in order of relevance. It comes close to what you have asked. See the output here
https://man-k.org/search?q=find+all+files+in+directory
I'm involved in a redesign at this point of a site that has capitalised its primary navigation and button text as part of the UI. I have looked around at the competitors in the market and found no one else does this. The business still likes the idea at the moment and I wanted to see what opinions are out there for and against this approach?
Thanks
Denis
What your user should be looking at is
up to you, the Web designer, to figure
out.
To achieve precedence you have many
tools at your disposal:
* Position — Where something is on a page clearly influences in what
order the user sees it.
* Color — Using bold and subtle colors is a simple way to tell your
user where to look.
* Contrast — Being different makes things stand out, while being the same
makes them secondary.
* Size — Big takes precedence over little (unless everything is big, in
which case little might stand out
thanks to Contrast)
* Design Elements — if there is a gigantic arrow pointing at something,
guess where the user will look?
Read
9 Essential Principles for Good Web Design
I don't see the programming question in this, but your question seems more like a design question?
There are not strick rules regarding how to do these, but regarding userfriendliness - stick with what looks most readable I would say.
I've seen navigations with :: infront of the menuitems... totally nonsense, but some graphicartist just couldnt live without them.
All caps is generally frowned upon because it's viewed as shouting in normal email/IM usage. But I can't tell you not to do it because like with any design decision, it depends on how it works in an overall sense. I've seen all lowercase work really well in some cases and look unprofessional in others.
So my general stance is to not do all caps but if the overall theme works then go for it.
Don't ask us, ask your users... maybe they don't even care, which mean you shouldn't either (or at least not so much)
(hallway) usability tests work and are pretty cheap, you can find many ressources that will tell you how to run them :
Don’t Make Me Think from Steve
Krug
Joel talks about it on
his Joel test section 12, with
interesting links