Hacked By XwoLfTn
Long life for Tunisia
long life to Palestine
According to TIOBE Index for July 2016, ColdFusion has moved up from #102 to #66. The list contains all languages, not just web languages, so being #66 is not too shabby but still way behind PHP and .NET. Even T-SQL is more popular than CFML on this list. But still, does this mean CFML is making a comeback?
My take is, YES!, and this is not the only indicator out there. One of the obvious indicators are the free CFML servers Railo, which is now Lucee, that have been very successful and have contributed to the rise in popularity of CFML. Licensing costs were the main culprit of ColdFusion’s decline and it’s no longer an issue.
But another indirect contributor to CFML’s re-emergence is perhaps the ever rising popularity of Agile and DevOps. The original concept and claim to fame of ColdFusion was that it was a faster way to develop web applications because of it’s simpler language and the bundled tools that made it easier to deploy. And you do not need to go through a complex systems design to develop and deploy ColdFusion apps.
Do you want to backup all or select documents to Google Drive, automatically, and optionally on a schedule? I use this for all my documents, including my CF websites.
This simple command line batch script will first compress and encrypt your files into a single archive file (backup.7z), then automatically upload it to Google Drive – on your schedule. I’m writing this for beginners so skip to the scripts if you know all this.
Enough talk, let’s get started:
This file contains the excludes list from your backup. These can be file(s) or folder(s). You can use wildcards, e.g. “*Pictures*” will exclude “My Pictures”. Each line is an exclude.
"*Pictures*" "*Videos*" "*.rar" "*.zip" "*.exe" "*.iso"
This file contains the includes list from your backup. It can be wildcard like above or full path. If there is a space in the path, you must put it in quotes, e.g. “G:\backup\Users\your user name”.
This is the batch file that will create the archive. As mentioned above, Google Drive and 7zip must be installed, and you must have logged into your Google Drive account from the PC that you are backing up. (You must change yourusername in the script to your actual username through the script.)
What this does:
REM KILL GoogleDrive so it doesn't copy when creating archive Taskkill /IM googledrivesync.exe /F REM del existing and create new archive IF EXIST C:\Users\yourusername\Google Drive\backup.7z ( del "C:\Users\yourusername\Google Drive\backup.7z" ) "C:\Program Files\7-Zip\7z.exe" a -t7z -mhe=on -mx=9 -pYOUR_STRONG_PASSWORD "C:\Users\yourusername\Google Drive\backup.7z" -i@C:\Users\yourusername\Documents\backupinclude.txt -xr@C:\Users\yourusername\Documents\backupexclude.txt REM start GoogleDrive if and when the file is created IF EXIST "C:\Users\yourusername\Google Drive\backup.7z" ( start "" "C:\Program Files (x86)\Google\Drive\googledrivesync.exe" )
The file names and locations must be the same as above except “yourusername” should be your actual username. Otherwise, you need to update it to reflect the file locations.
The final step is to add a task to the Task Scheduler library to run backuptoGoogleDrive.cmd on a schedule that you define. Here is a very good howto on that. All you have to do is point your task trigger to the backuptoGoogleDrive.cmd file and you are set!
This is meant as a guide to use Google Drive as a backup. Why do I use 7 zip instead of the Windows Backup or some other tool? For me, it is simpler than Windows Backup command line (wbadmin) or other tools and I can restore my files anywhere, not just on Windows . You can use wbadmin or any other archive/backup tool, use whatever is easiest for you.
Update: If you want to only update your archive with the changed files (i.e. incremental backup) then change your compress option to below. This will speed up the backup process immensely and use less CPU power.
IF EXIST "C:\Users\yourusername\Google Drive\backup.7z" ( "C:\Program Files\7-Zip\7z.exe" u -t7z -mhe=on -mx=5 -slp -pYourPassword "C:\Users\yourusername\Google Drive\backup.7z" -i@C:\Users\yourusername\Documents\backupinclude.txt -xr@C:\Users\yourusername\Documents\backupexclude.txt REM del "C:\Users\yourusername\Google Drive\backup.*" ) ELSE ( "C:\Program Files\7-Zip\7z.exe" a -t7z -mhe=on -mx=5 -slp -pYourPassword! "C:\Users\yourusername\Google Drive\backup.7z" -i@C:\Users\yourusername\Documents\backupinclude.txt -xr@C:\Users\yourusername\Documents\backupexclude.txt )
Recently, when installing an older version QuickBooks Pro 2011 on Windows, it would not get past the Adobe Flash installation part. If this happens to you, you may see errors like this:
“Installing File FP_AX_MSI_INSTALLER.exe.”
“Failed to install. For troubleshooting tips, please see http://www.adobe.com/go/tn_19166”
Why is this happening? I think Windows 7 and 8 is blocking older install of Flash 10 for security reasons and the QuickBooks installer is not programmed to handle this error, so it just fails.
Here is how to use the Java driver from Factual in ColdFusion. I wish Factual would support CF. So I’m posting it for anyone to use, and turns out it’s really simple.
This is old, use this instead: http://www.thesitestudio.com/blog/cfcentos7-lucee-coldfusion-and-db2-development-virtual-machine/
This version of the Railo CFML ColdFusion Virtual Machine Appliance has MySQL database and Ubuntu desktop. It has (almost) everything for Railo/ColdFusion development, including;
All the usernames (except MySQL which is root) and passwords are coldfusion
This version is not locked down or hardened, it’s not for production.
Edit: Railo admin is not bookmarked. Browse to http://localhost:8080/railo —- password is coldfusion
update: this version is old, newer one is here and it has MySQL and Eclipse.
update: fixed password issue, working on enhancements (Eclipse, mySQL, etc)
With the release of Railo 3.3, we now have Railux 3.3! This version is built on Damn Smal Linux (DSL) and is a base version with almost no configuration other than Railo with Tomcat. This is so that you can customize it any way you wish. It’s fast and light-weigth. You can also use this as a plain Tomcat server.
This is the older version of Railux, but has Apache and MySQL. For the ligthweight new Railux with Railo 3.3, go to http://blog.thesitestudio.com/?p=79
Railo Appliance, Railux, is an Apache/Tomcat/Railo stack on Ubuntu Linux and Railo 3.2 on Tomcat. Based on the BitNami Apache-Tomcat Appliance, it’s a fully functioning Railo ColdFusion Server Appliance that could be used for production or development.
– Railo 3.2 (CF 9.0 compatible)
– Apache 2.2.16
– Tomcat 6.0.29
– MySQL 5.1.50
– Java 1.6.0_22
– Samba server (latest via apt-get)
– UFW Firewall (latest via apt-get)
– Nano editor (latest via apt-get)
Usernames, passwords, and other information
– For Linux: bitnami:bitnami
– For Tomcat: manager:bitnami
– For Railo: istanbul
– For Samba: coldfusion:istanbul
– For mySQL: coldfusion:istanbul
– Hostname: Railux
– IP Address: DHCP Configured
– Railo Homepage: http://railux (you will need to add the IP and name to your host file)
– Tomcat Manager URL: http://railux/manager
– Installation folder: /opt/bitnami
How to get it
– Download image (717MB)
– Extract the contents folder to your drive
How to use it
– Double click bitnami-tomcatstack-6.0.32-0-ubuntu-10.10.vmx in the extracted folder to start the appliance (you must have VMWare or VMWare Player, get the player free here)
– There is no need to login to the console to use Railo. After start up, you can either go to the IP address displayed on the console window or go to http://railux to view the Railo homepage. From there you can access the Railo admin
– The Site Studio website is provided as an example under http://railux/tss
– To upload your website, go to the samba share on \railuxcoldfusion
– You can delete the TSS folder if you like but do not delete anything else
– To make the default page your home page (e.g. http://yourdomain.com), you must add a Virtual Host to Apache , then create a domain in your hosts file or on your network’s DNS server and point it to railux so you can access it
– The conf file is in /opt/bitnami/apache2/conf/httpd.conf
– Restart Apache when done by running the control script by sudo /opt/bitnami/ctlscript.sh restart apache
– Add Mura and other CF apps
– Improve management
– Reduce image size
– Add other VM formats
If you have questions or feedback, contact me firstname.lastname@example.org
Here is a step-by-step on how to create data driven thematic (choropleth) maps in ColdFusion. No other software needed. Who needs BI software?
2- Place usa.map into your X:ColdFusionWEB-INFcfusionlibmapsCountries directory
3- Edit the usa.xml file to point to the usa.map file (line 6)
4- Get some data from somewhere. http://msis.cms.hhs.gov/ has data on Medicaid. I used the 2008 total $ paid.
And here’s the code..I used some code from Ray Camden’s blog..so thanks Ray.
[coldfusion]<!—set values and colors —>
minamount = minmax.minamount;
maxamount = minmax.maxamount;
lo_amount = minamount;
tenth = (maxamount-minamount)/10;
next_Amount = lo_amount+tenth;
row = 1;
<cfloop list=”#bluelist#” index=”value”>
row = row+1;
lo_amount = next_Amount;
tenth = (maxamount-minamount)/10;
next_Amount = next_Amount+tenth;
<!— Get base server url —>
<cfset baseURL = “https://”& CGI.HTTP_HOST &”/cfusion/”>
<cfset baseURL = “http://”& CGI.HTTP_HOST &”/cfusion/”>
<!— Extract chart style from the WCP file —>
<cffile action=”read” file=”#ExpandPath(‘rusa.wcp’)#” variable=”xmlResult”>
<cfset xmlResult = XmlParse(
REReplace(xmlResult, “^[^<]*”, “”, “all” )
<cfset wcp = XMLParse(xmlResult)>
<cfset chartStyle = ToString(wcp.project.style.map)>
<!— Create chart data <cfdump var=”#usatotals#”>—>
<?xml version=”1.0″ encoding=”UTF-8″?>
<!— set bg color —>
<cfif usatotals.totalsum GTE lo_value AND usatotals.totalsum LTE hi_value>
<cfset backcolor = color>
<item name=”#st_desc#” backColor=”#backColor#” popup=”$(name)n$$(value)” value=”#NumberFormat(totalsum,”___.__,”)#”/> </cfoutput>
<!— Initialize chart settings —>
oMyWebChart = createObject(“Java”,”com.gp.api.jsp.MxServerComponent”);
oMyApp = getPageContext().getServletContext();
oSvr = oMyWebChart.getDefaultInstance(oMyApp);
oMyChart2 = oSvr.newImageSpec();
oMyChart2.width = 720;
oMyChart2.type = “png”;
oMyChart2.style = “#chartStyle#”;
oMyChart2.model = “#chartModel#”;
<!— Create html tag set —>
<cfoutput>#oSvr.getImageTag(oMyChart2, baseURL& “CFIDE/GraphData.cfm?graphCache=wc50&graphID=”)#</cfoutput>
<!— Good old Webcharts loves to add an extra /Images/ to the URL —>
<cfset chartImgTag = replace(chartImgTag, baseURL &”Images/”, baseURL, “All”)>
<span class=”important”>Medicaid Total Amount Paid –
FY<cfoutput>#url.fy# – #DollarFormat(grandtotals.totalsum)#</cfoutput></span><br />
(click a state to drill down)
<table width=”100%” border=”0″ cellpadding=”0″ cellspacing=”5″>
<td align=”left” valign=”top”><cfoutput>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”2″>
<td colspan=”2″ class=”style17″>Map legend (in millions)</td>
<td><span class=”style17″>Data unavailable </span></td>
<!— set colors and values —>
<td bgcolor=”#color#”> </td>
<td><span class=”style17″>#DollarFormat(lo_value/1000000)# – #DollarFormat(hi_value/1000000)#</span></td>