Posts

java - Importing a table from RDBMS to HDFS without using Sqoop -

i have been using sqoop while now. want import rows of table (present in rdbms) in hdfs without using sqoop. getting mongodb collection data hdfs, can use mapreduce job. in same way, can data rdbms hdfs using mapreduce job? if how can it?

php - Google translate api cUrl not working in a Laravel 5 project -

i getting server response of 0 each time try , fetch response using standard curl functionality within laravel project. has nothing combination think when access way other url works fine... kinda lost... in controller have function below: $curl = "https://www.googleapis.com/language/translate/v2?key=my-key&source=en&target=nl&q=hello%20world"; echo $curl; $handle = curl_init($curl); curl_setopt($handle, curlopt_url, $curl); curl_setopt($handle, curlopt_returntransfer, true); $response = curl_exec($handle); $responsedecoded = json_decode($response, true); $responsecode = curl_getinfo($handle, curlinfo_http_code); if($responsecode != 200) { echo 'fetching translation failed! server response code:' . $responsecode; } else { echo 'source: ' . $text . '<br>'; echo $responsedecoded['data']; } curl_close($handle); the output 0 , error code 0 (zero) while when access https://www.googleapis.com/language/transla...

c# - DataAnnotation Presentation Working on IIS Express but Not Working on IIS -

i'm developing asp.net mvc application, , controlling presentation of element properties using data annotations. result fine on iis express directly visual studio, when deploy uat server annotations fail. code: edit.cshtml: @html.editorfor(m => m.globalizedelement) model: public class globalizedelement { [hiddeninput(displayvalue = false)] public int id { get; set; } [hiddeninput(displayvalue = false)] public int elementid { get; set; } [hiddeninput(displayvalue = false)] public string culturecode { get; set; } [datatype(datatype.multilinetext)] [allowhtml] [display(name = "internaldescription", resourcetype = typeof(entitydataannotations))] [required(errormessageresourcetype = typeof(entityvalidation), errormessageresourcename = "requiredinternaldescription")] public string internaldescription { get; set; } [datatype(datatype.multilinetext)] [allowhtml] [display(name = "interview...

office365 - Upgrade MS Access 2010 Solution to Office 365 MS Access version -

we have application front end built on ms access vb.net code have ms access db , backend sql db. in process of upgrading ms access 2010 solution office 365 version. took free trail subscription office 365 enterprise e3 version , don't see ms access module in cloud. do need settings make visible in cloud? or office 365 doesn't support ms access in cloud? if ms access available in cloud, have solution deployed in cloud users can work cloud version without installing access on local desktops/mobile device (like ms excel , word). please let me know if solution feasible , office 365 has ms access in cloud? thanks, there feasible solution, access application can deployed sharepoint in office 365. access app hosted in sharepoint app. sharepoint users able run access app after publish sharepoint. here link on how step step: http://zimmergren.net/technical/building-apps-for-sharepoint-in-office-365-using-access-2013 hope helps :)

ios - UiView setFrame object -

on swift project i'm using obj-c frameworks. far works fine, i'm trying convert old code written on obj-c swift . i managed translate except line of code: [[self.view viewwithtag:ar_view_tag]setframe:arviewframe]; for i'll grateful. maybe this? i'm assuming ar_view_tag int... if let selectedview = view.viewwithtag(ar_view_tag) { // selectedview }

java - How to retrieve,update,delete data from database using DAO method in Hibernate -

how retrieve,update,delete data database using dao method in hibernate. my dao this: package com.sample.common.impl; import java.util.list; import com.sample.common.employee; public interface employeedao { public list<employee> getallemployee(); public void updateemployee(employee emp); public void deleteemployee(employee emp); } my implementation class this: package com.sample.common.impl; import java.util.arraylist; import java.util.list; import org.hibernate.sessionfactory; import com.sample.common.employee; public class employeedaoimpl implements employeedao { private sessionfactory sessionfactory; public list<employee> getallemployee() { return null; } public void updateemployee(employee emp) { } public void deleteemployee(employee emp) { } } how create query select,update , delete. can please suggest possible solution you have update code below public void deleteemployee(employee emp) { ...

git - get size of commit from github api -

i've been looking through github api trying work out there's simple way size of commit, i.e. what's amount of change took place: https://developer.github.com/v3/repos/commits/ my google , stackoverflow searches turned up: git: show total file size difference between 2 commits? and few other command line options, wonder if knows of way through github api? many in advance