LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

VBS equivalents of some Linux date command format sequences

Posted 02-27-2012 at 10:13 PM by catkin

Here are some Visual Basic Script statements that generate the effect of the Linux date command used with format sequences %y, %Y, %b, %B, %n, %a, %A, %d, %H, %I, %p, %M and %S
Code:
Const DATE_PART_ABBREVIATE = True
Dim strValue

' %y for year, two digit
strValue = Right(DatePart( "yyyy", Now), 2)

' %Y for year, four digit
strValue = DatePart( "yyyy", Now))

' %b for month name, example Jan
strValue
...
LQ 5k Club
Posted in Uncategorized
Views 1002 Comments 0 catkin is offline
Old

Why and how to use Mutex locks - Pthreads

Posted 02-27-2012 at 11:06 AM by TheIndependentAquarius
Updated 05-21-2012 at 01:51 AM by TheIndependentAquarius

Problem:
Underlying operating system may schedule the threads on the basis of some algorithm which works on time limit (threads may be allowed to run only for certain durations of time, thus preventing the other threads from starvation), priority (higher priority threads may interrupt the lower priority threads during their execution), or some other factor.

These factors may cause a thread to sleep before it completes its task fully. Another thread may get scheduled meanwhile...
Senior Member
Posted in PThreads
Views 10167 Comments 3 TheIndependentAquarius is offline
Old

LDAP Authentication

Posted 02-26-2012 at 11:16 PM by vijaykumar7474

Is it possible to connect openldap with IIS server ???
If possible How???
Please Help Me!!!!
LQ Newbie
Posted in Uncategorized
Views 283 Comments 0 vijaykumar7474 is offline
Old

libLQ and/or Temp (recycling) formatted strings and blocks of memory

Posted 02-26-2012 at 11:02 AM by rainbowsally
Updated 05-06-2012 at 05:48 AM by rainbowsally

[Note: this refers to an obsolete implementation of the temp strings and libLQ sources but the concept of being able to pass a buffer containing a formatted string directly in the parameter list makes this both interesting and important regardless.

Also the peek into the asm code may be helpful for folks wishing to get into the really low level stuff. See how we can redirect a call to sprintf() instead of calling vsprintf() below. This may not be portable but then neither can QT...
Member
Posted in Uncategorized
Views 302 Comments 0 rainbowsally is offline
Old

Two handy manual pages from the LPM

Posted 02-24-2012 at 04:46 PM by hydraMax (Bits and Pixels)
Updated 02-24-2012 at 04:47 PM by hydraMax

One of the downsides to living in the age of the search engine is that many of us do not know how to find documentation in the place it is supposed to be. Sometimes, we waste much time and bandwidth trying to find information that is available locally. Two such examples from my own experience are listed below:

1) OPERATOR(7). I can't count the number of times I have done a Google search trying to remember if a '&&' had higher precedence than a '||', or some similar question....
Member
Posted in Uncategorized
Views 274 Comments 0 hydraMax is offline

  



All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration