QuickTime component causing errors when running osascript command

If I run a simple osascript from the command line:

osascript -e 'tell app "Safari" to activate' 

I get hundreds of this error:

2019-01-19 13:07:31.224 osascript[3908:9313907] Error loading /Library/QuickTime/EyeTV MPEG Support.component/Contents/MacOS/EyeTV MPEG Support: dlopen(/Library/QuickTime/EyeTV MPEG Support.component/Contents/MacOS/EyeTV MPEG Support, 0x0106): code signature in (/Library/QuickTime/EyeTV MPEG Support.component/Contents/MacOS/EyeTV MPEG Support) not valid for use in process: mapping process is a platform binary, but mapped file is not

I have to wait for the errors to finish running before the script actually runs, which is annoying.

I tried using codesign to fix the issue:

codesign --architecture x86_64 -f -s "My Cert" 'EyeTV MPEG Support'

But it didn’t help. I believe the error is caused by Mojave’s security policy.

One way to fix this is to remove the the QuickTime component from this folder. But I’m hoping there is a better fix as the EyeTV app requires this component to run.


Pass Data From SSIS To External Component

I currently have an SSIS package whose final task is a Script Task which works with data in a DataTable. I need to add the following functionality:

  • Execute an external batch component that will use this data. This component will preform business logic.
  • The component will insert its results into a database.
  • Add another script task to the SSIS package that reads this data from the database.

I am considering the best approach for the first step, i.e. passing data from the SSIS script task to the external batch component. The use of a database for this is tricky because the data’s columns are changeable. Therefore, I was thinking of just writing the DataTable object to the filesystem as a XML file using the WriteXml method, and getting the component to read this file.

Does this seem like an acceptable solution or am I overlooking a better alternative?

Magento 2 How to display placeholder image to image preview backend UI component form

In my custom module i have custom UI component form and i add file upload filed to this form.

Form is working fine while Add or Edit, when upload file image preview is display,but i want to display default image preview once file is not uploaded and display a placeholder image to image preview section.

Below is image upload code.

<field name="image">         <argument name="data" xsi:type="array">             <item name="config" xsi:type="array">                 <item name="dataType" xsi:type="string">string</item>                 <item name="source" xsi:type="string">image</item>                 <item name="label" xsi:type="string" translate="true">Image</item>                 <item name="visible" xsi:type="boolean">true</item>                 <item name="formElement" xsi:type="string">fileUploader</item>                 <item name="placeholderType" xsi:type="document">document</item>                 <item name="elementTmpl" xsi:type="string">ui/form/element/uploader/uploader</item>                 <item name="previewTmpl" xsi:type="string">Namespace_Modulename/image-preview</item>                 <item name="validation" xsi:type="array">                     <item name="required-entry" xsi:type="boolean">true</item>                 </item>                 <item name="uploaderConfig" xsi:type="array">                     <item name="url" xsi:type="url" path="managelabels/productlabel/upload"/>                 </item>             </item>         </argument>     </field> 

After search a lot and found something to display placeholder image this link. in this documentation they use placeholderType argument to Defines the preview type.

But i have no idea to how to implement this argument to my custom form.

Any help would be appreciated! Thanks.

React component vs HTML component implementation in terms of design and efficiency

Straight to my question, I have a submit button for multiple react pages. It is very simple and it can be done by writing a simple HTML tag. Do I really need to create a react button component for that? I know that the react way is to have us reuse components so I think the later one makes more sense if I am using react.

How to convert to convert to Parent und Child Component

i´ve got a Component in Vue which is right now not partent/child ready. I need to transform that into parent and child for filtering purposes. Could you give me a hint how to do that?

<!doctype html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">     @include('includes.header')     <body>         <div id="app" class="wrapper">             <nav-component></nav-component>             <header-component></header-component>             <header-sidebar-component></header-sidebar-component>                 <div class = "container">                 <div class="row">                 @foreach ($  sortedData as $  data)                         <card-component title={{$  data->title}} description={{$  data->description}} category={{$  data->category}}></card-component>                 @endforeach                 </div>                 </div>         </div>         <script src="/js/app.js"></script>     </body> </html> 

And the Vue Component

<template>     <div class="col-md-4">         <div class="card text-white bg-primary" style="width: 18rem;">         <img class="card-img-top" src="/img/card1.jpg" alt="Card image cap">         <div class="card-body">             <h5 class="card-title" v-text=title></h5>             <h6 class="card-subtitle mb-2 text-muted" v-text=category></h6>             <p class="card-text" v-text=description></p>         </div>         </div>     </div> </template>  <script> export default {     props: ['title', 'description', 'category'] } </script> 

And i want to transfor that and use v-for to render it so i can get the data for filtering inside the parent.

Display Map into a component

I’m trying to display a Google Maps into a “map_component.dart” but I can’t; it only shows when I paste the code onto the web Index.html

When it shows:

On my main Index.html:

`<!DOCTYPE html> <html> <head> <title>My Title</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="styles.css" /> <link rel="stylesheet" href="packages/ng_bootstrap/all.css" /> <link rel="icon" type="image/png" href="favicon.png" /> <script defer src="main.dart.js"></script> <base href="/" /> </head> <body> <div id="map-canvas"><my-app></my-app></div> <script src="https://maps.googleapis.com/maps/api/js?key=MYKEY"></script> </body> </html>` 

And the import on the main.dart:

`void main() { final mapOptions = new MapOptions() ..zoom = 15 ..center = new LatLng(-33.453695, -70.665728); new GMap(document.getElementById("map-canvas"), mapOptions);} ` 

But when I try to put the id=”map-canvas” in my map_component.html, it says:

Uncaught TypeError: Cannot read property 'firstChild' of null 

Please help, I’m new to Angular Dart.

problems with connecting a child component with the store in react-redux app

am working on react app for the first time and learn about redux. the problem I define a store in App.js and pass it to application using Provider bu when I try to access it to a child component I have an undefined in my console after map it with mapStateToProps. please can you check my code and tell me what am doing wrong?

I create a 2 reducers in folders reducers call index.js and testIt.js after that I import testIt.js in index.js which have a combineReducers to add feature reducers. after i export it for the App.js and Provide the store using the provider of react-redux.


 import React, { Component } from 'react'; import {BrowserRouter , Route} from "react-router-dom"; import { Provider } from 'react-redux'; import Store from "./reducers/index"; import { TestIt } from "./components/TestIt";  import './App.css';  //console.log(Store.getState());  class App extends Component {    render() {     return (        <div className="App">         <Provider store={Store}>         <BrowserRouter>           <Route exact path="/login" component={TestIt} />         </BrowserRouter>         </Provider>       </div>      );   } }  export default App; 


import { combineReducers, createStore } from 'redux'; import notes from "./testIt";  const leadApp = combineReducers({   notes })  export default createStore(leadApp);  


test .js  const initialState = [     {text: "Write code!"}   ];     export default function notes(state=initialState, action) {     switch (action.type) {       default:         return state;     }   } 

finally my sub-component src/components/TestIt.js

import React, { Component } from 'react'; import {connect} from 'react-redux';   export class TestIt extends Component {    constructor(props){     super(props)   }     render() {     console.log(this.props.notes)     return (       <div>         <h2>Welcome to TestIt!</h2>         <hr />         <h3>Notes</h3>         <table>           <tbody>             {this.props.notes.map(note => (               <tr>                 <td>{note.text}</td>                 <td><button>edit</button></td>                 <td><button>delete</button></td>               </tr>             ))}           </tbody>         </table>       </div>     )   } }   const mapStateToProps = (state) => {   return notes : state.notes }  // const mapDispatchToProps = dispatch => { //   return { //   } // }   export default connect(mapStateToProps)(TestIt); 

I have now this.props.notes give me undefined of the reducers testIt.j .I suspect something on the store I passto to the provider does not reach the sub-component even if i do the connection with the method connect(). I expect to access to the the testIt.js reducers in my sub component.

Please really need help I try and read to much articles and documentations.