It’s Been a Long Time

Wow, Just had a bit of nostalgia reading some old posts. It has been over 10 years since I have been posting in Digital Point.

Whats everyone been up to? A lot has changed since I have been here last. Not a lot of you will probably remember me but hey everyone moves on.

Just a journey down memory lane. Those were the good old days of internet marketing. Is anyone still in the game?

Cheers

Petehols

lateinit property has not been initialized при использовании Dagger

столкнулся со следующей проблемой. У меня в классе фрагмента создавался объект презентера: private val presenter = FavoritesPresenter()

Я решил заменить это внедрением зависимости через Dagger 2. Делаю это следующим образом:

1) @Inject lateinit var presenter:FavoritesPresenter //Создаю переменную, куда даггер внедрит презентер

2)

class FavoritesModule {      @Inject     fun favoritesPresenter(): FavoritesPresenter {         return FavoritesPresenter() //Создаю модуль, который будет создавать презентер     }  } 

3)

@Component(         modules = [FavoritesModule::class] //Создаю компонент, который собирает все модули ) interface AppComponent : AndroidInjector<TraktTvApp> {      @Component.Builder     interface Builder {          @BindsInstance         fun application(application: TraktTvApp): Builder          fun build(): AppComponent      }      override fun inject(application: TraktTvApp)  } 

4) В классе активности, которая будет содержать этот фрагмент добавляю:

    override fun supportFragmentInjector(): AndroidInjector<Fragment> {         return fragmentDispatchingAndroidInjector     }      @Inject     lateinit var fragmentDispatchingAndroidInjector: DispatchingAndroidInjector<Fragment> 

5) В классе Application создаю компонент:

        DaggerAppComponent.builder()                 .application(this)                 .build() 

Однако при запуске получаю следующую ошибку:

kotlin.UninitializedPropertyAccessException: lateinit property presenter has not been initialized at com.mikhailovskii.trakttv.ui.favorites.FavoritesFragment.onViewCreated(FavoritesFragment.kt:48) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1471) at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852) at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:802) at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625) at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411) at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366) at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273) at androidx.fragment.app.FragmentManagerImpl$ 1.run(FragmentManager.java:733) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$ MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

В чем проблема и как с ней справиться?

Class has been compiled by a more recent version of the Java Environment

I tried the solutions provided in the answer section for this question but still nothing solved my problem.

I edited my JAVA_HOME and PATH variables in the .bashrc file.

java -version shows:

openjdk version “11.0.2” 2019-01-15 LTS OpenJDK Runtime Environment

Zulu11.29+3-CA (build 11.0.2+7-LTS) OpenJDK 64-Bit Server VM

Zulu11.29+3-CA (build 11.0.2+7-LTS, mixed mode)

javac --version shows:

javac 11.0.1

which java shows:

/home/local/prasanth-8508/jdk11/jdk/bin/java

which javac shows:

/home/local/prasanth-8508/jdk11/jdk/bin/javac

What could be the problem here?

User Profile synchronization connection has been deleted but still user profiles show up in SharePoint

We have SharePoint 2013 environment and we have 2 AD connections (ie. 2 different domains) in User Profile Service Application. All the users from DomainA have been moved to DomainB and AD team have created new user accounts for these users. Now I want to delete the old user accounts of DomainA. So , I went ahead and deleted the DomainA connection and ran a full synchronization and this did not resolve my issue. As domainA users still show up in SharePoint.

AD Import is the synchronization method we are using to import users from AD.

Appreciate any help 🙂

17.10.1 repository Artful Aardvark appears to have been changed and is no longer located where it was

The 17.10.1 repository Artful Aardvark appears to have been changed and is no longer located where it was. None of the standard repository locations have 17.10 Artful located in them.

Behold, my sudo apt-get update results:

me@name:~$   sudo apt-get update  Ign:1 http://us.archive.ubuntu.com/ubuntu artful InRelease Hit:2 http://archive.canonical.com/ubuntu artful InRelease                      Ign:3 http://security.ubuntu.com/ubuntu artful-security InRelease               Ign:4 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease              Hit:5 http://ppa.launchpad.net/eugenesan/ppa/ubuntu artful InRelease            Ign:6 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease            Hit:7 https://dl.winehq.org/wine-builds/ubuntu artful InRelease                 Err:8 http://security.ubuntu.com/ubuntu artful-security Release                   404  Not Found [IP: 2001:67c:1560:8001::11 80] Get:9 https://deb.opera.com/opera-stable stable InRelease [2,591 B]             Ign:10 http://us.archive.ubuntu.com/ubuntu artful-proposed InRelease            Err:11 http://us.archive.ubuntu.com/ubuntu artful Release                         404  Not Found [IP: 2001:67c:1562::19 80] Hit:12 http://ppa.launchpad.net/font-manager/staging/ubuntu artful InRelease    Err:13 http://us.archive.ubuntu.com/ubuntu artful-updates Release                 404  Not Found [IP: 2001:67c:1562::19 80] Err:14 http://us.archive.ubuntu.com/ubuntu artful-backports Release               404  Not Found [IP: 2001:67c:1562::19 80] Err:15 http://us.archive.ubuntu.com/ubuntu artful-proposed Release                404  Not Found [IP: 2001:67c:1562::19 80] Hit:16 http://ppa.launchpad.net/noobslab/apps/ubuntu artful InRelease           Ign:17 http://dl.google.com/linux/chrome/deb stable InRelease                   Hit:18 http://dl.google.com/linux/chrome/deb stable Release               Hit:19 http://ppa.launchpad.net/rodsmith/refind/ubuntu artful InRelease Reading package lists... Done                     E: The repository 'http://security.ubuntu.com/ubuntu artful-security Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu artful Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu artful-updates Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu artful-backports Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Repository 'https://deb.opera.com/opera-stable stable InRelease' changed its 'Origin' value from 'Opera Software ASA' to 'Opera Software AS' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. E: The repository 'http://us.archive.ubuntu.com/ubuntu artful-proposed Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. me@name:~$    

Right now, I’m not concerned about Opera web browser. I did find this though:

http://old-releases.ubuntu.com/releases/artful/

How do I add this to the repository lookup when I do an update? I know I have to go into the “Software & Updates” part of the Software package program, and add it under “Other Software”. But it tells me it has to be a complete APT line, where

“The APT line includes the type, location and components of a repository, for example ‘deb http://archive.ubuntu.com/ubuntu artful main’.”

I’m at a loss as to what to do next. Should I downgrade to 16.04 seeing that it’s still supported? The only reason I upgraded to 17.10 was because I was having audio issues using 16.04. The logical solution would be to upgrade to 18.04, except my hardware might not be able to handle it.

Any help is greatly appreciated. Thanks.

What would be an ideal European trip for someone who has never been? [on hold]

Ok so I’m planning my senior trip in Europe. It’s just me, my mom and my grandmother who are going, possibly my other grandmother. My maternal grandmother lived in many exotic places like Japan and Beirut growing up and has traveled to other places like Fiji, Barbados and Jerusalem, so she’s the travel “genius”. But she hasn’t traveled in Europe. So I need some tips and tricks from experts to help me make the right decision. I’ll likely ask more questions on here later on but for now I need help with location.

Here’s my idea.
I want to go to France first. I want to spend a little over a week there, maybe less maybe more, then take a train to possibly Switzerland. Is that a good duo or is there another country that works best? I also have Netherlands, Germany, Italy and England on my list so if any of those you think work better then just let me know. The reason I picked Switzerland is because while France seems very…elegant? Prestigious? Sophisticated? Switzerland seems very colorful and earthy! With a bit of quirkiness in there.

Also do you recommend trains? I looked it up and it said the train ride from France to Switzerland is 4 hours which to me doesn’t seem that bad but what do you guys think? Are other forms of transportation better?