Saturday, January 30, 2016

Easy way to fix error 3194 in iTunes when you restore or update iPhone6 or iPad

Easy way to fix error 3194 in iTunes when you restore or update iPhone6 or iPad
previous post - XGBoost in R

Recently I gifted iPhone6s which was used by my brother. I thought it would be better to factory restore before I start using. When I do so, I got 3194 error

simple way to fix error 3194 in iTunes when you restore or update iPhone
the iphone "iphone" could not be restored unknown error (3194) occurred

Solution

if you get this error in your iTunes, DO this and try again

1) Check your iTunes version. make sure you are using latest versions of iTunes

2) Disable firewall or Anti virus security software for at-least 10 min


hope now you will get the things done. if not do one more step

3) check the system "host" file
    i) Open host file in C:\Windows\System32\Drivers\etc with administrator privilege

    ii) Find any entries like "gs.apple.com" (example 38.25.63.10 gs.apple.com) and remove the line / comment the line by adding # in front of the line

    iii) Restart the system.


In most cases you will get resolved by doing first two steps.

Wednesday, January 13, 2016

XGBoost in R. Error in xgb.DMatrix and can not open file -unknown- and Error in xgb.DMatrix

XGBoost in R. Error in xgb.DMatrix and can not open file -unknown- and Error in xgb.DMatrix

XGBoost in R

Preparing data model for XGBoost
Error in xgb.DMatrix(data, label = label) : can not open file "-unknown-"

Solution

Check if your data has character or factor variables and try to convert them to numerical.

str(Data)

Predict using XGBoost model
red <- predict(bst, xTest)

Error in xgb.DMatrix(newdata) : xgb.DMatrix: does not support to construct from list

Solution

convert the test data into matrix type which is accpected by xgboost

pred <- predict(bst, as.matrix(xTest))

dummyVars function allows us to create dummy variables
in other words it translates text data into numerical data

dummyVars("~ gender", data = df_all)

Error: could not find function "dummyVars"

Solution


library(caret)

Related posts :

XGBoost in R : Error in xgb.iter.update

code of conduct : Top 9 Rule of Data Science Professional

Wednesday, January 6, 2016

RHadoop - Running Hadoop MapReduce from R

RHadoop - Running Hadoop MapReduce from R

Running Hadoop Mapreduce From R. Working with R and Hadoop for large scale data analytics

Running Mapreduce job
m <- mapreduce(InputPath, input.format = 'csv', map = mapFunction, reduce = reduceFunction )

Error: java.lang.RuntimeException: PipeMapRed.waitOutputThreads(): subprocess failed with code 1

Solution

Error seems map not find the file location,
I was trying to reading File from local but by backend configured with Local

rmr.options(backend = "local")

Reading File from Hadoop in R session
f = hdfs.line.reader("/HDFS/GdpData.csv");

Error in .jcheck(silent = TRUE) :
No running JVM detected. Maybe .jinit() would help.

Solution

Run .jinit() to initialize the JVM,

.jinit()

Tuesday, January 5, 2016

RHadoop - rJava installtion Error and solution

RHadoop - Error and solution

Installaing RHadoop package. Working with R and Hadoop for large scale data analytics

Install rJava package from local system

install.packages("/home/bdlnn/Downloads/rJava_0.9-7.tar.gz", repos = NULL)

configure: error: Java interpreter '/usr/lib/jvm/default-java/jre/bin/java' does not work ERROR: configuration failed for package "rJava" * removing "/usr/local/lib/R/site-library/rJava"

Solution

Set JAVA_HOME for R

solai@vm1$ sudo R CMD javareconf JAVA_HOME='/home/bdlnn/Software/jdk1.7.0_79'

dont put '/' in end of JAVA_HOME Path


You can also try the alternate options
solai@vm1$ sudo apt-get install r-cran-rjava

inside R
Sys.setenv(JAVA_HOME='/opt/jdk1.7.0_79/jre')

Saturday, January 2, 2016

will Tamil nadu political parties get twitter hashflag for TN2016 social election campaign

will Tamil nadu political parties get twitter hashflag for TN2016 social election campaign

will Tamil nadu political parties get twitter hashflag for TN2016 social election campaign

According to twitter
     Hashflags images that appear after a #hashtag, and are enabled on Twitter for specific occasions or events. Not all hashtags of course, only the ones it deems worthy of such treatment.Sometimes referred to as custom Twitter Emojis.

some of Hashflags for india based event's
#makeinindia #happydiwali #ipl
makeinindia. happydiwali. IPL.

last year, twitter has launched hashflags for political parties of UK and Spanish general election.

Here is the population comparison of Spain and UK with Tamil Nadu state of India.

Spain UK TamilNadu
47,847,339 63,843,856 76,656,206

TamilNadu has marginally higher population than these countries. Hope twitter will create hashflag for the parties like #AIADMK, #DMK, #DMDK, #PMK, #sagayam!!???. and brighten up election coverage.