Posts

Converting .BAK file of SQL Server DB to .CSV -

ok have .bak file backup of our old crm data. has come backup of sql server database (not sure version). trying achieve converting data file contains in .csv can use import data different crm. i have tried obvious things, renaming file .csv , trying various text editors , applications claim able view these kind of files. ever ton of gibberish, mean ton of characters , symbols not represent in data backup. from have obtained already, need restore file sql server database, , export .csv. have managed set trial version of sql server 2012, when try import file (import flat file option), when preview, appears gibberish populating fields again, , if run anyway, fails , returns errors. can confirm crm company had managed restore , extract needed, sadly decided not continue them, based on that, .bak file not corrupted. i assume doing wrong. question correct way import / restore .bak file ms sql 2012? is there alternative have missed or not right approach begin with? any appreciat...

Cloudera Hadoop Extended Acl's not working -

have been working on week now, here issue. have setup cluster cdh5 security enabled using mit kerberos. trying extended acl's , has done necessary changes responsible set doesn't work , here summary in commands. [root@dn01 ~]# kinit hdfs password hdfs@vt2.hadoop.ba.ssa.gov: [root@dn01 ~]# hdfs dfs -ls /vt2/testdata/dcus found 2 items -rwxr----- 3 hdfs systems 3949 2016-03-16 16:13 /vt2/testdata/dcus/xxxx.jsonseq drwxr-----+ - hdfs systems 0 2016-03-18 15:57 /vt2/testdata/dcus/nn [root@dn01 ~]# hdfs dfs -getfacl /vt2/testdata/dcus # file: /vt2/testdata/dcus # owner: hdfs # group: systems user::rwx group::r-- group:developers:r-- mask::r-- other::--- [root@dn01 ~]# kdestroy [root@dn01 ~]# kinit 419650 password 419650@vt2.hadoop.ba.ssa.gov: [root@dn01 ~]# hdfs dfs -ls /vt2/testdata/dcus ls: permissio...

javascript - How to call script via ajax crossdomain -

can me make request via ajax crossdomain? what have: $.ajax({ type: "post", url: "/login.php", data: { email: document.loginform.email.value, password: document.loginform.password.value, } }).done(function(msg){}); i'm calling https://m.domain.com/login.php - works. but, want call same script login.php on domain.com. as guess i'm working on mobile version of website. want make post requests m.domain.com scripts situated on domain.com using absolute address like: url: "https://domain.com/login.php", - no success.. i tried make url "/home/admin/web/domain.com/public_html/" ajax request.. still no result.. you should allow cors https://m.domain.com on https://domain.com/login.php . like here

php - Download from Laravel storage without loading whole file in memory -

i using laravel storage , want serve users (larger memory limit) files. code inspired post in , goes this: $fs = storage::getdriver(); $stream = $fs->readstream($file->path); return response()->stream( function() use($stream) { fpassthru($stream); }, 200, [ 'content-type' => $file->mime, 'content-disposition' => 'attachment; filename="'.$file->original_name.'"', ]); unfourtunately, run error large files: [2016-04-21 13:37:13] production.error: exception 'symfony\component\debug\exception\fatalerrorexception' message 'allowed memory size of 134217728 bytes exhausted (tried allocate 201740288 bytes)' in /path/app/http/controllers/filecontroller.php:131 stack trace: #0 /path/vendor/laravel/framework/src/illuminate/foundation/bootstrap/handleexceptions.php(133): symfony\component\debug\exception\fatalerrorexception->__construct() #1 /path/vendor/laravel...

Google Maps in Swift - Camera not updating -

i'm using google maps in swift , in viewdidload . i providing code: let camera: gmscameraposition = gmscameraposition.camerawithlatitude(48.857165, longitude: 2.354613, zoom: 8.0) mapview1.camera = camera however, when executing program, camera not updating. using @iboutlet weak var mapview1: gmsmapview and have hooked outlet correctly you need implement mapview1.animatetocameraposition(camera)

asp.net mvc - How to view the code of an ADO.NET Entity Data Model -

Image
i created ado.net entity data model. can go check actual class? want check data types , add displayname attributes. here model solution explorer: thanks. when generate model database (which appears case here), few different code files created. code context, expand programmasterlist.context.tt . you'll see .cs file in there context class. then, each table selected database part of model, entity class created. can find expanding programmasterlist.tt . instance, if have table called person, might have entity class file person.cs person class defined in it. now, mentioned wanting modify classes add properties. if modify class files under programmasterlist.tt , dynamically generated entity framework, next time update model database (such add new table db model), changes you've made overwritten. fortunately, there's better way. each class under programmasterlist.tt partial class. so, can add class without modifying file entity framework automatically g...

ios - CGFloat in Swift 2.0 -

Image
after updating swift 2.0 need fix code. automatic correction doesn't work. func getvalueforkey(key: string) -> cgfloat { var inch = "" if screensize.height == 480 { // iphone 4, 4s , below inch = "3.5" } else if screensize.height == 568 { // iphone 5, 5s inch = "4" } else if screensize.width == 375 { // iphone 6 inch = "4.7" } else if screensize.width == 414 { // iphone 6+ inch = "5.5" } else if screensize.width == 768 { // ipad inch = "5.5+" } let result = values["\(key)\(inch)"]! // println("\(key) - \(result)") return result } i have changed it. nothing happens , appears again! how fix it? to elaborate on why importing uikit fixes problem: the cgfloat struct part of...