Posts

Permanent redirect of subdomains to www. in lighttpd? -

मैं cdn.domainxyz.com और ad को छोड़कर www.domainxyz.com पर domainxyz.com पर सभी उपडोमेन पथ पुनर्निर्देशित करना चाहता हूं। .domainxyz.com। स्पष्ट करने के लिए: मैं उदाहरण के लिए abc.domainxyz.com/cat.php?id=23 पर पुनर्निर्देशित करना चाहता हूं www.domainxyz.com/cat.php?id=23। मैं इसे lighttpd में कैसे कर सकता हूं # लोड mod_redirect server.modules + = (" Mod_redirect ") # सभी को www के लिए रीडायरेक्ट करें (अपवादों के साथ) $ HTTP ["होस्ट"] = ~ "^ (। *।। * * डोमेन xyz \ .com $" {$ HTTP ["होस्ट"]! ~ "^ (विज्ञापन | सीडीएन | www) \। डोमेन xyz \ .com $ "{url.redirect = (" ^ / (। *) "= & Gt;" http://www.domainxyz.com/$1 "}}} # मुख्य vhost प्रविष्टि $ HTTP [" host "] = = "Www.domainxyz.com" {server.document-root = "/var/www/domainxyz.com/"} आधिकारिक विकी के बारे में अधिक जानकारी:

events - millisecond timing in java -

In my Java application, at the beginning of the various transaction transactions of the time, let me start the calendar and then wait for hours, minutes, Getting seconds, and milliseconds gives start time. I complete the transaction, start a new calendar and receive a new hour, minute, seconds and milliseconds. My argument is that the difference between start time and end time is the time of transaction. It works most of the time, but a small fraction of time, the end time is before the start time. Why does this happen and how can I stop it? Well, one simple way of computing for one thing is the difference System.currentTimeMillis () or System.nanoTime () - This way you do not need to do anything other than just a simple subtraction, number of milliseconds between initial and end or To get the number of nanoseconds However, if your system clock is being updated with NTP or something similar, then the timing can sometimes go backwards - how the clock is handled diagonall...

dataviewwebpart - Dataview webpart to display data from multiple list across site collection in Sharepoint -

I have two site collections called SiteColl1 and SiteColl2. SiteColl1 has 1 list. List 2 is in cyclical 2. Now I want to display data from both the lists [List 1 and List 2] in the Dataweep Webpart. My DataView webpage is placed in Sitcall 1. Is it possible to do this? If so, please suggest !!!! Cheers! You can not display data from different lists in the site collection. ^^ Wrong Learn SharePoint Datatify WebPrint, or Content Query Webpursets will pull data from many lists in many places in the site collection.

svn - Changing a file tree in tortoisesvn -

We have a subversion repository that was set without the use of standard \ trunk \ tags \ branch layout and now some After years we are looking to improve this. We use turtle SVN. Our current system is that we have different subdirectories containing "Dev" folder for UI, Business Logic, etc. Ideally, we want to be a god with folders, trunk, branches and tags, then our subdirectory within the trunk folder. My plan was to create new trunks, branches and tag folders under dev folder and at the same level as our subdirectory, add and commit new folders, and then svnmove the sub-directories in the trunk folder. I can do this on an up-to-date work copy; However, we all have many local changes, and I'm afraid that when we make updates, we will get hundreds of trees conflict indefinitely. Can anyone see a better way of doing this? The only option I can see is to copy all the locally changed files from our current work copies to the new checkout of the repository and...

android - How to code ContactsContract so that it runs in 2.2 and doesn't crash 1.5? -

I have my Android app sees the code to the following piece of a contact which is id, I changed the target to 1.5 right now Given is 2.2, but with a minimum SDK of 3 (1.5) so that I can use the contact contractor in 2.2 and URI in 1.5. While running on 1.5 device code leads to the following error: 07-27 15: 02: 53.382: Warne / Delvikm (12656): Vifwai: Landroid Unable to resolve static field 25 (CONTENT_URI) in / provider / contacts; $ Contacts; With Google, I need to use the reflection in this case so that we can get permission to run the application on both versions of Android? How do I use reflection to use methods of multiple / different versions of the examples, but how can I use it in my own use where I want to use ContactsContract Uri? Here is my code: findViewById (R.id.contactimage) .setOnClickListener (new OnClickListener () {public void onClick (View v) {string sdk = android.os.build.VERSION.SDK; Uri contactUri; Log.d ( "CDA", "pressed conta...

c# - How to make a Win Service run Long Term with Threading -

I have some workflows (a WorkflowApplication and WorkflowServiceHost) in a winning service that I need to keep the long running time Is hosting Since OnStart () requires that it is completed and returned to the OS, I have a main method that sets fire on the second thread in Threadpool. My onstart () looks primarily like this protected override zero onstart (string [] arg) {eventLog.WriteEntry ("start service ..."); ThreadPool.QueueUserWorkItem (New WaitCallback (ServiceMainThread)); Thread.Sleep (100); EventLogCms.WriteEntry ("service start."); } ServiceMainThread () is the method where my workflows are executed and the main functionality is implemented. When I start the service on my Windows 7 machine, it goes about 8 minutes later. At Win Server 2008, the thread never executes. So I think I've implemented incorrectly threading and what ServiceMainThread is kinda Seki I'm open to suggestions on what can be improved or any As the direction I am...

variables - Increment a value in XSLT -

I'm quite new to xlst and if there is any way to store a value and change it later, For example, enlarging a variable in a loop I'm a little amazed because I have not been able to change the value of a set after the set, I do not understand, making it more of a constant . For example, I want to do something like this: & lt; Xsl: variable name = "i" = "0" /> & Lt; Xsl: each selection = "data / post / entry" & gt; & Lt; Xsl: variable name = "i" = "$ i + 1" /> & Lt ;! - Do something - & gt; & Lt; / XSL: for-each & gt; If someone can understand about this, is there an alternative way of doing this thanks XSLT is a functional language and among other things it means that are temporary in XSLT and once defined they They can not be of value & lt; Xsl: stylesheet version = "1.0" xmlns: How can the same effect be achieved in XSLT & Lt; Xsl: strip-space...