w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Where can I download Facelets tag documentation as an archive
It's included in the "binary bundle" downloads at Mojarra download page (note: not just "binary"). Here's a direct link: Mojarra 2.1.0 binary bundle. This contains JSF 2.1 documentation. When you extract this specific file, you can find the documentation in the /docs folder as another zip file mojarra-2.1.0-FCS-documentation.zip. This zip file in turn contains several documentation folders and the particular Facelets tag documentation you're looking for is in the /vdldocs folder.

Categories : JSF

How to write documentation for microsoft access database?
As a starter for ten, I'd have thought that the user documentation should be task orientated. (i.e: How to achieve 'X'.) In terms of the developer documentation, defining the meaning of any non-obvious fields in your schemas, how they're used and the relationships between different tables, etc. would be a good start. (I'm presuming your VBA code is well commented, etc.) You may also want to examine the existing "Documenting Visual Basic with Doxygen" question/answer.

Categories : Ms Access

Powershell Archive script win2008r2 problems
PowerShell v1 & v2 do not like commands that start with numbers. The issue seems to have been addressed in v3 and that's probably why it works on your workstation. You can work around this by placing a backtick in front of the alias when you execute it: `7za a -r "$ArchiveDir$Date$BackupDir.7z" $BackupDir Alternately, you can change the alias to not start with a number.

Categories : Powershell

PowerShell: Members: Methods and Properties documentation in the ISE
You are confusing between operators and cmdlets that are present in Powershell with methods and properties of (.NET) objects. gm or Get-Member will only show the latter. You can learn about -join by doing get-help about_join or look here - http://technet.microsoft.com/en-us/library/hh847757.aspx Take a look at about_Operator to learn about other available operators - http://technet.microsoft.com/en-us/library/hh847732.aspx

Categories : Powershell

Powershell and Microsoft Word bookmarks and cells
As agreed in comments, there are some tips based on Word-VBA for active document. Hope this will help to make a step forward. Before A) to add information in the cell below cell where your storage bookmark is located: Sub text_to_cell_below_bookmark() ActiveDocument.Bookmarks("storage").Range.Next( _ wdCell, _ ActiveDocument.Bookmarks("storage").Range.Tables(1).Columns.Count _ ).Text = "your storage information in the cell below" End Sub After B) to add additional row below the cell with bookmark: Sub additional_row_below_bookmark() ActiveDocument.Bookmarks("storage").Range.Tables(1).Rows.Add _ ActiveDocument.Bookmarks("storage").Range.Tables(1).Rows( _ ActiveDocument.Bookmarks("Storage").Range.Information(w

Categories : Function

Editing Web Config file using Microsoft PowerShell
$webConfig = "C:InetpubWwwrootapplicationweb.config" $doc = (gc $webConfig) -as [xml] $doc.SelectSingleNode('//appSettings/add[@key="mykey1"]/@value').'#text' = 'true' $doc.SelectSingleNode('//connectionStrings/add[@name="myname1"]/@connectionstring').'#text' = 'my_string' $doc.Save($webConfig) You can use XPath to select your nodes and set their value via the #text property PowerShell adds. Note - your example xml has problems with casing and some typos. Here is what I tested with: <root> <appSettings> <add key="mykey1" value="false"/> </appSettings> <connectionStrings> <add name="myname1" connectionstring="Data Source=ABDULLAH-PCSQLEXPRESS;Initial Catalog=UserDataBase; Integrated Security=True" providerName="System.Data.Sq

Categories : C#

Powershell-script: Read Contacts from excel file, and create Mailboxes for them on Microsoft Exchange
CSV is certainly the easiest. You can then use Import-CSV foo.csv to read the file. Provided you used the appropriate column header names in the first row you can use them directly: Import-CSV foo.csv | ForEach-Object { $_.Lastname; $_.'Display Name', <# etc. #> } Enable-Mailbox seems to be the command to create Exchange mailboxes.

Categories : Powershell

Create batch to archive files using main folder name for archive name
I don't have WinRAR, so I can't check the syntax for the rar command, but you could create a batchfile (backup.bat) like: cd %1 "C:Program FilesWinRARWinRAR.exe" a -esh -m5 -mt2 -r -s -t "..\%1.rar" cd .. And invoke it with backup A from the temp folder. That might be a start...

Categories : Batch File

Archive old files only AND re-construct folder tree in archive
I would take this route instead of rsync: Change directories so we can deal with relative path names instead of absolute ones: cd /home/user/documents Run your find command and feed the output to cpio, requesting it to make hard-links (-l) to the files, creating the leading directories (-d) and preserve attributes (-m). The -print0 and -0 options use nulls as record terminators to correctly handle file names with whitespace in them. The -l option to cpio uses links instead of actually copying the files, so very little additional space is used (just what is needed for the new directories). find . -type f -mtime +1000 -print0 | cpio -dumpl0 /home/user/archives Re-run your find command and feed the output to xargs rm to remove the originals: find . -type f -mtime +1000 -print0 | xargs

Categories : Linux

Haddock: Documentation for instance functions with quirks replaced by default class documentation
You can't. What you can do is document your instance. -- | You can have a brief description here instance (Monad m) => MonadState s (ChronoT s e m) where … This will make the description show up to the side of the instances box generated. This should preferably be brief but it does let you do things such as point the user to documentation of the functions implementing the fields if you really need to, like the commenter on the question suggests. Personally, I think that it doesn't make much sense to document each field like this: what the fields are meant to do should be clear from documentation of the class definition and the comment on the instance.

Categories : Haskell

Can't archive iOS Application (iOS App Archive)
I solved the question by myself. The decision is: in Build Settings - INSTALL_PATH set "$(LOCAL_APPS_DIR)" - this code will generate /Applications. INSTALL_PATH install place where XCode will store archive for you. As I right understand to solve the task about archiving you need to do: in your PROJECT-SKIP_INSTALL - set to NO, and in your LIBRARIES-SKIP_INSTALL - set to YES; in your Project set Build Settings - INSTALL_PATH set "$(LOCAL_APPS_DIR)" in Build Phases-Copy headers transfer headers from Public/Private to Project section. I did these three steps and they are helped me, and I hope they will help you too.

Categories : IOS

Solve "Microsoft.ACE.OLEDB.12.0" provider issue without installing "Microsoft Access Database Engine"
I had a similar issue. In my case it was because the target system was a 64 Bit OS and the interop DLLs are only available 32 Bit. I solved the issue changing my Build Configuration from "Any CPU" to 32 Bit. Hope it helps in your case too.

Categories : C#

Microsoft's cryptoAPI "Microsoft Enhanced RSA and AES Cryptographic Provider" selection doesn't working on win7
I'm not sure if this is exactly what you need but by following the example on MSDN, you can make your code succeed by making two changes. First, MSDN says that MS_ENH_RSA_AES_PROV was named differently on Windows XP and should be used with a provider type of PROV_RSA_AES rather than PROV_RSA_FULL as in your code. Second, trap the initial error and repeat the acquire operation for the situation where you have to create a new key container. The following is your original code adapted according to the MSDN example, and works fine on my Windows 8 system: int _tmain(int argc, _TCHAR* argv[]) { // Handle for the cryptographic provider context. HCRYPTPROV hCryptProv; // The name of the container. LPCTSTR pszContainerName = TEXT("MyFilter_Container"); // Begin processing.

Categories : Visual C++

Enable built-in Microsoft Word button controls with Microsoft.Office.Interop.Word
Possible solutions of your problems: Ad 1. but first, you need to open your documents with ReadOnly: false while,according to both C# and VBA test it will not work when you set parameters to ReadOnly: true: ((Word._Document)diffDocument).Windows.CompareSideBySideWith(originalDocument); Ad 2. this time you need to refer to window object of Word Application. Here is code for active window: appWRD.ActiveWindow.View.SplitSpecial = Word.WdSpecialPane.wdPaneRevisionsVert; where: appWRD is Word.Application in my code. Ad 1 again. (one above was a result of misunderstanding). According to some test this code should give you what you need: appWRD.ActiveWindow.ShowSourceDocuments = Word.WdShowSourceDocuments.wdShowSourceDocumentsBoth;

Categories : C#

Why would installing Azure SDK 2.1 or powershell 3 on the build server break some of our tests which run in powershell?
Have you tried passing a fully qualified path to startInfo.FileName instead of just Powershell.exe incase there's a problem with %PATH% since the update Complete total guess, but any chance your running into FileSystemRedirector 32 vs. 64 issues as seen in this answer - Process.Start(): The system cannot find the file specified, but my file path seems to be legit

Categories : Powershell

Executing Powershell script as different User in Exchange 2007 Powershell
I just found out that executing Remote Powershell Commands/Skripts is not supported with Exchange 2007 (http://howexchangeworks.com/2009/11/exchange-2007-sp2-supports-powershell.html). So I need to wait until the upgrade to 2013. Some workarounds: http://social.technet.microsoft.com/Forums/en-US/exchangesvrgeneral/thread/4596035a-cede-4541-8b8e-e2e9bf1b40dc Or: http://peerfect.blogspot.co.at/2012/10/re-blog-of-my-exchange-remote.html

Categories : Powershell

PowerShell Community Extensions not Recognized by TeamCity PowerShell Runner
Do you import the PSCX module in your script? PowerShell v3 will cache the module info after you have done this once so you don't need to import it again. However if TeamCity is running the 64-bit console and you normally run the 32-bit console, then the 64-bit console wouldn't have PSCX commands in the command cache. Anyway, it is a good practice to have your scripts explicitly require the modules it depends upon e.g. #requires -Modules Pscx

Categories : Powershell

Add Powershell Snapin for Powershell Module and Import Multiple Times
You might want to try to specify this module required by your own module through a module manifest (.psd1). See RequiredModules here.

Categories : Powershell

How to use powershell variable in PowerShell.AddParameter method in C#?
The variable won't be available until you invoke the first script. Try this: ps.AddScript("$backupFile = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(),'{0}.bak')".FormatInvariant(databaseName)); ps.Invoke(); ps.Commands.Clear(); var backupFile = ps.Runspace.SessionStateProxy.PSVariable.Get("backupFile"); ps.AddCommand("New-Item") .AddParameter("Force") .AddParameter("ItemType", "File") .AddParameter("Path", backupFile )); ps.Invoke(); If you go this route though, I don't think you can use the RunspacePool because you're likely to get different runspaces between each Invoke(). In that case, the variable won't be available to the other runspace. Do you really need to use the RunspacePool in this scenario? If you do then why not just do the first bit in C#: var backup

Categories : C#

Powershell Script that will login into powershell for office 365
For the exchange powershell use: $SecPass1 = convertto-securestring -asplaintext -string "PasSword" -force $MSOLM = new-object System.Management.Automation.PSCredential -argumentlist "GlobalAdmin@some.com",$SecPass1 $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $MSOLM -Authentication Basic -AllowRedirection Import-Module MSOnline Import-PSSession $Session –AllowClobber

Categories : Actionscript

How do I return value or object from C# powershell command to Powershell
You have to use the CmdLet.WriteObject method. Here a good explanation from @RomanKuzmin.

Categories : Powershell

Could not load type 'Microsoft.TeamFoundation.Client.BasicAuthCredential' from assembly 'Microsoft.TeamFoundation.Client
We've had similar issues and after we installed TFS object model this issue was resolved. http://visualstudiogallery.msdn.microsoft.com/a37e19fb-3052-4fc9-bef7-4a4682069a75

Categories : C#

Powershell Start-Process to start Powershell session and pass local variables
I'm pretty sure there's no direct way to pass variables from one PowerShell session to another. The best you can do is some workaround, like declaring the variables in the code you pass in -ArgumentList, interpolating the values in the calling session. How you interpolate the variables into the declarations in -ArgumentList depends on what types of variables. For an array and a string you could do something like this: $command = '<contents of your scriptblock without the curly braces>' Start-Process powershell -ArgumentList ("`$Array = echo $Array; `$String = '$String';" + $command)

Categories : Powershell

Getting images from CBZ archive
You can use a ZipFile. It gives you an InputStream for each entry, which you can decode using BitmapFactory.decodeStream. ZipFile zipFile = new ZipFile(<filename>); for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { ZipEntry ze = e.nextElement(); Bitmap bm = BitmapFactory.decodeStream(zipFile.getInputStream(ze)); }

Categories : Android

Creating zip archive in php
first problem solution foreach($files_to_zip as &$value){ $value = 'path/to/app/'.$value } or use array_walk second problem: try to create tmp folder, copy every file to it and zip em. This is simpliest solution. Don't forget to remove tmp files.

Categories : PHP

Create a zip archive in c++
It looks like this will work. If you are on a Unix environment you may have to run the Java version: http://www.7-zip.org/sdk.html

Categories : C++

git-archive a subdirectory --
You can do that like this: git archive -o ../subarchive.zip HEAD:subdir By the way, an easy way to play with the command and see what it will generate is if you use it in this form: git archive --format=tar HEAD:subdir | tar t git archive --format=tar HEAD subdir | tar t # ... and so on ... Once you see what you're looking for, you can change the format and use the -o flag to actually create the archive.

Categories : GIT

best way to archive records
There are many ways to do this.. You can use appropriate "Replication" functionality of SQL Server. In your case Snapshot Replication type seems appropriate for more details Click You can create windows service to move data from RawNews to UsedNews. You can create an exe to move data and using windows task scheduler you can call that exe at specific time when there is less load on server.

Categories : Sql Server

Unzip The Zip Archive With PHP
You should check which error code gives open (http://www.php.net/manual/en/ziparchive.open.php), that will give you some help. Error codes are this: ZIPARCHIVE::ER_EXISTS -10 ZIPARCHIVE::ER_INCONS - 21 ZIPARCHIVE::ER_INVAL - 18 ZIPARCHIVE::ER_MEMORY - 14 ZIPARCHIVE::ER_NOENT - 9 ZIPARCHIVE::ER_NOZIP - 19 ZIPARCHIVE::ER_OPEN - 11 ZIPARCHIVE::ER_READ - 5 ZIPARCHIVE::ER_SEEK - 4

Categories : PHP

Unable to connect to Windows Azure from Powershell Azure Powershell module
To see is there some result from Import-AzurePublishSettingsFile you can call: Get-AzureSubscription By default it select the default to current subscription. If you don't see any result then you don't import your subscription settings right. This Introduction to Windows Azure PowerShell also can help you.

Categories : Windows

How do I tell wordpress that a template is an archive
The solution is to use this code: global $more; // Declare global $more (before the loop). .... $more = 0; .... More on this subject can be found in the documentation: http://codex.wordpress.org/Function_Reference/the_content#Overriding_Archive.2FSingle_Page_Behavior Now the_content() will not show anything after the more-tag It's not really telling the engine that this is an archive page, but only mimic the behaviour

Categories : Wordpress

Extracting and creating .jar archive containing aux / aux.*
A JAR is just a ZIP file with a manifest and a specific ordering of the content files. You can extract any file from a Jar using an unzip tool. To extract the AUX file, use the "rename" capability that's in most zip tools, or "extract to..."

Categories : Windows

Joomla archive by year?
You could try these extensions: JExtBOX Article History - 5$ Demo : http://demo.jextbox.com/ Monthly Archive Demo: http://www.joomla357.com/demo/monthly-archive.html - ?$ Mod LCA Demo: http://www.jonijnm.es/web/mod-lca.html - free

Categories : Joomla

Reference Xml file from Zip archive
You pass the file name to Saxom as a url using the -u option, for example java -jar saxon9he.jar -u jar:file:./YOURINPUTARCHIVE.ods!/content.xml YOURXSLT.xslt This works for me on linux. Best, Ruprecht

Categories : Xml

how to show archive only for particular category
perticular category archive file. copy archive.php and rename with category-$slug.php otherwise category-$id.php and change code in your archive file. $slug = yourcategory slug name $id = your category id

Categories : Wordpress

Parse Mailman Archive
You have two options here: There is a standard library module that opens, reads and writes mailman archives. The mailbox module is the one you want, in particular mailbox.mbox looks like it should be the one you want. In a mailman archive, every message starts with the string From. This will never occur in the body of a message, as the From string will be prefixed by a greater than symbol (>). Note that the message headers (the lines with the colons) are defined by RFC-2822, and are not part of the mailbox format. I believe that the RFC does not specify any particular order for the message headers.

Categories : Python

Location for installing Archive-Tar
So this is what I did to fix my problem. I extracted the latest Archive-Tar as mentioned in one of the comments above. Then, I executed these commands. perl Makefile.Pl make make install I somehow managed to execute my application after doing these steps. It would be great if anybody can explain what these steps mean as I am very much new to Perl and related topics.

Categories : Linux

Python: How do i get the name of the current archive?
The variable __file__ contains the path to the current python file. So If you have a structure: . `- your.egg `-your_module.py And in your_module.py you have a function: def func(): print(__file__) The the code: import sys sys.path.append('/path/to/your.egg') from your_module import func func() Will print out: /path/to/your.egg/your_module.py So basically you can manipulate the __file__ variable if you know where relatively your module is inside the egg file and get the full path to the egg. To get the relative path to the egg in the script that's in the egg file you'll have to do: def rel_to_egg(f): my_dir = os.path.dirname(os.path.abspath(f)) current = my_dir while not current.endswith('.egg'): current = os.path.dirname(current) return os.path

Categories : Python

Cgo include archive .a file
Right, it doesn't work with ar object archives (*.a). There are two things you can do: Link it in as a shared library (-lfoo in LDFLAGS, with libfoo.so in the library search path) Put the *.c files themselves within the Go package directory, so that go build builds and links them in If you're willing to go out of the standard go build behavior, though, you can unpack the *.a file into the individual object files, and then mimic the behavior of go build and cgo by hand. For example, if you build a trivial cgo sample package with the -x option, you should see output similar to this: % go build -x (...) .../cgo (...) sample.go (...) gcc -I . -g (...) -o $WORK/.../_obj/sample.o -c ./sample.c (...) gcc -I . -g (...) -o $WORK/.../_obj/_all.o (...) $WORK/.../_obj/sample.o (...) .../pack grc

Categories : C

An appendable compressed archive
It's rather easy to have an appendable archive of compressed files (not same as appendable compressed archive, though). tar has an option to append files to the end of an archive (Assuming that you have GNU tar) -r, --append append files to the end of an archive You can gzip the log files before adding to the archive and can continue to update (append) the archive with newer files. $ ls -l foo-20130101.log foo-20130102.log foo-20130103.log $ gzip foo* $ ls -l foo-20130101.log.gz foo-20130102.log.gz foo-20130103.log.gz $ tar cvf backup.tar foo*gz Now you have another log file to add to the archive: $ ls -l foo-20130104.log $ gzip foo-20130104.log $ tar rvf backup.tar foo-20130104.log $ tar tf backup.tar foo-20130101.log.gz foo-20130102.log.gz foo-20130103.log.gz foo-20130104

Categories : Unix

© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.