Does replacing Heap Memory access with Distributed In-Memory Cache(Memcache or Redis) scale in Micro-services? [on hold]

One of the reasons why Micro-services are popular is because they are stateless.However an application needs to maintain state obviously . The question comes down to

What is the most efficient way to maintain state of the Application however create Services which do-not maintain state themselves ?

In ideating a solution to the above question , the Application state can be stored within an Distributed in-Memory Cache instead of the local-RAM/HEAP of the Server. Every-time the server needs to know the state of the application , the server queries it from the Distributed Cache.

Does this approach scale?
Would accessing Distributed Cache over the internet add performance issues?
In regards , what are the best practices followed while solving this problem?

Will replacing 4 GB DDR3 ram (2GB+2GB) with 10 GB DDR3 ram (8GB+2GB) work with Intel i3 processor?

I have system with Intel i3 processor, 4 GB DDR3 ram (2GB+2GB). I am thinking to expand ram with buying 8GB DDR3 ram. Will Intel i3 processor work with configuration of 10 GB DDR3 ram (8GB+2GB)?

What factors or configurations related to RAM or motherboard should I check with before configuring system with 10 GB DDR3 ram (8GB+2GB)?

Is replacing icons with emoji a good idea?

I’m currently polishing an application I have built using fontawesome. Due to fontawesome’s pretty huge (nearly 2 MB with the more accessible SVG + JS Version) footprint, I’m considering to utilize emoji instead. These are already on every machine and users should be used to them.

I think it might be a good idea since using icons the users already associate with their meaning might make it easier for them to quickly understand what a button does, even without reading the associated text. This would be especially good for illiterate, visually impaired or dyslexic users.

There still is the text for screen reader users and the icons are wrapped inside elements that are hidden from them.

The only caveat I can come up with is that Apple doesn’t allow apps that use emoji in their interface sometimes. However this application is company internal and will never show up on any app store so I don’t think this would be an issue.

As far as I can tell, all users have OSes that support emoji.

Is there anything I’m missing?

Excel VBA: Looping through table rows and replacing keyterms in word template

So below is my code for a sub which does the following:

  1. read header of a table into an array

  2. reads first row of said table into a 2nd array

  3. loops through the first array and replaces the marked keywords <keyword> in a word template file (.dotx) with the data row cell (includes header and body).

This sub is then called by another sub specifiying both table rows and the template file.

Now since I am not a programmer by profession I am pretty sure that this is far from the best way to do it efficiently, so any comments or improvements are much appreciated.

Sub ReplacefromRange(header As Range, DataRow As Range, TemplateFile)

Dim heading() As String Dim data() As String Dim i As Integer Dim x As Variant  ' Creates a first array that takes "header" as argument i = -1 For Each x In header.Cells     i = i + 1     ReDim Preserve heading(i) As String     heading(i) = x.Value Next x  ' Creates second array that takes "DataRow" as argument i = -1 For Each x In DataRow.Cells     i = i + 1     ReDim Preserve data(i) As String     data(i) = x.Value Next x  ' Uses a for each loop through heading() to find and replace individual entries in the "TemplateFile" argument  i = 0 For Each x In heading()     With TemplateFile                        'looks at the word document body         .Application.Selection.Find.Text = "<" & heading(i) & ">"         .Application.Selection.Find.Execute         .Application.Selection = data(i)         .Application.Selection.EndOf         ' the part below looks at the header content         .Sections(1).headers(wdHeaderFooterPrimary).Range.Find.Execute _     FindText:="<" & heading(i) & ">", Format:=False, ReplaceWith:=data(i), Replace:=wdReplaceAll, Wrap:=wdFindContinue         i = i + 1     End With Next x 

End Sub

Replacing HDD with SSD; what about non-APFS/APFS?

iMac 27-inch, Late 2013, macOS up-to-date

I would like to back up my internal HDD (non-APFS) with Time Machine. Then erase the HDD. Then have the HDD replaced with a new internal SSD. Then restore from Time Machine.

Should I take precautions for the simultaneous switch from non-APFS to APFS? For example, must I convert the HDD to APFS before the steps mentioned above?

Installing Fedora 29 alongside Windows 10 replacing Ubuntu 18.10

I currently have a Windows 10 installation and Ubuntu 18.10 installed alongside it. I recently tried to install fedora but on the HDD there was no FAT32 partition for the boot. sdap1 was a NTFS filesystem and it appears that is what the Ubuntu and Windows boot files are. Fedora only accepts sdap1 as a FAT32 filesystem and I don’t know how to approach installing Fedora 29. If anyone here has any ideas please help out I’ve been doing research and found nothing yet so this is kind of my last hope.

Installed Ubuntu 18.04 LTS replacing Windows 10, no wifi adapter is found

Installed Ubuntu 18.04 LTS replacing Windows 10.

First time I ever use any non Windows or Apple operating system. Zero Ubuntu knowledge.

The computer is an Acer that uses Realtek Wireless.

No Wi Fi adapter is found.

Read some related answers and tried using commands posted for other similar questions. Not been able to find a solution.

Basically, how do I make Ubuntu 18.04 LTS find my Wi Fi adapter and connect to the internet?

Any helpful advice is greatly appreciated.

Replacing the stock apps from untrusted manufacturer by confirmed android apps

recently I am cleaning up a newly bought china device. I already managed to get rid of the more obvious bloatware, but as I do not have any customrom for it at the moment, I thought of simply replacing the apps that are installed on factory reset by some that I can put on it with adb and removing all which are not essential. I am still missing some good database for android packages.

Phone’s not rooted [by me], it most obviously is for the manufacturer. The phone is factory reset without SIM and not connected to the internet, as the phone had a lot of malicious traffic when I used it as intended by the manufacturer. Thought, safest would be to first replace all I can before giving it a connection to the internet again.

Basically, most important to me are

  • the replacement of the Google Play Store (I am not yet ready to miss it as I do not yet have found really good alternatives) by the official Play Store (I don’t think I have the official release on my phone, it’s behaving awkward)
  • the replacement of my recent window manager which is com.cooee.phenix

I think I need some recommendations here.

Also, after having finished, I want to save my work on my PC so I can flash that exact state back on the phone at any time as my own personal homemade-reset. Would it even be possible to manipulate the factory reset the device offers itself to make it install only the essentials I left after throwing out all the bloatware? (of course it’s possible, but how? Any experiences?)

Less important but still nice to have would be informations on what I can safely delete, what needs to stay and what of those that needed to stay could also be replaced by some safer variants.

I will edit the packages in, guess it’s them that make this post marked as spam.

At the moment, these are the packages I did not (yet) uninstall.

  • android
  • com.android.appsdataprovider
  • com.android.backupconfirm
  • com.android.bluetooth
  • com.android.browser
  • com.android.captiveportallogin
  • com.android.certinstaller
  • com.android.contacts
  • com.android.defcontainer
  • com.android.deskclock
  • com.android.dialer
  • com.android.documentsui
  • com.android.dreams.basic
  • com.android.dreams.phototable
  • com.android.exchange
  • com.android.externalstorage
  • com.android.facelock
  • com.android.galaxy4
  • com.android.gallery3d
  • com.android.htmlviewer
  • com.android.inputdevices
  • com.android.installer
  • com.android.keychain
  • com.android.location.fused
  • com.android.managedprovisioning
  • com.android.mms
  • com.android.mms.service
  • com.android.music
  • com.android.musicfx
  • com.android.musicvis
  • com.android.noisefield
  • com.android.pacprocessor
  • com.android.phasebeam
  • com.android.phone
  • com.android.printspooler
  • com.android.providers.applications
  • com.android.providers.calendar
  • com.android.providers.contacts
  • com.android.providers.downloads
  • com.android.providers.downloads.ui
  • com.android.providers.media
  • com.android.providers.settings
  • com.android.providers.telephony
  • com.android.providers.userdictionary
  • com.android.provision
  • com.android.proxyhandler
  • com.android.quicksearchbox
  • com.android.server.telecom
  • com.android.settings
  • com.android.sharedstoragebackup
  • com.android.shell
  • com.android.stk
  • com.android.systemui
  • com.android.vending
  • com.android.vpndialogs
  • com.android.wallpaper
  • com.android.wallpaper.holospiral
  • com.android.wallpaper.livepicker
  • com.android.wallpapercropper
  • com.android.webview
  • com.cooee.phenix
  • com.example
  • com.example.switchbootanim
  • com.fw.upgrade
  • com.google.android.androidforwork
  • com.google.android.backuptransport
  • com.google.android.configupdater
  • com.google.android.feedback
  • com.google.android.gms
  • com.google.android.gsf
  • com.google.android.gsf.login
  • com.google.android.inputmethod.latin
  • com.google.android.onetimeinitializer
  • com.google.android.partnersetup
  • com.google.android.syncadapters.calendar
  • com.google.android.syncadapters.contacts
  • com.google.android.webview
  • com.mediatek
  • com.mediatek.apst.target
  • com.mediatek.atci.service
  • com.mediatek.batterywarning
  • com.mediatek.calendarimporter
  • com.mediatek.connectivity
  • com.mediatek.dataprotection
  • com.mediatek.engineermode
  • com.mediatek.factorymode
  • com.mediatek.filemanager
  • com.mediatek.fwk.plugin
  • com.mediatek.lbs.em2.ui
  • com.mediatek.miravision.ui
  • com.mediatek.nlpservice
  • com.mediatek.omacp
  • com.mediatek.ppl
  • com.mediatek.providers.drm
  • com.mediatek.schpwronoff
  • com.mediatek.thermalmanager
  • com.mediatek.voicecommand
  • com.mediatek.voiceunlock
  • com.mediatek.ygps
  • com.mtk.telephony
  • com.svox.pico
  • org.simalliance.openmobileapi.service

Replacing an ssd on notebook

I’m finally running out of space on a 128GB ssd on a notebook (asus N501VW) and am thinking of replacing it with a larger, 500GB, drive.

The setup:

  • 1 notebook (N501VW) running Win 10 (x64)
  • 3 drives (128GB ssd (M2) (C:), 1TB hdd (D:), 500GB ssd (M2))

128GB:

C:\WINDOWS\system32>fsutil fsInfo ntfsInfo C:\ NTFS Volume Serial Number :        0x246467166466ea4e NTFS Version   :                   3.1 LFS Version    :                   2.0 Number Sectors :                   0x000000000ec25e12 Total Clusters :                   0x0000000001d84bc2 Free Clusters  :                   0x000000000012ce83 Total Reserved :                   0x00000000000450b8 Bytes Per Sector  :                512 Bytes Per Physical Sector :        512 Bytes Per Cluster :                4096 Bytes Per FileRecord Segment    :  1024 Clusters Per FileRecord Segment :  0 Mft Valid Data Length :            0x0000000036840000 Mft Start Lcn  :                   0x00000000000c0000 Mft2 Start Lcn :                   0x0000000000000002 Mft Zone Start :                   0x00000000005404a0 Mft Zone End   :                   0x0000000000540760 Max Device Trim Extent Count :     512 Max Device Trim Byte Count :       0xffffffff Max Volume Trim Extent Count :     62 Max Volume Trim Byte Count :       0x40000000 Resource Manager Identifier :      8A0D0FB6-C261-11E6-8455-9CEBE8321CA9 

1TB:

C:\WINDOWS\system32>fsutil fsInfo ntfsInfo D:\ NTFS Volume Serial Number :        0x38f0efcbf0ef8e06 NTFS Version   :                   3.1 LFS Version    :                   2.0 Number Sectors :                   0x0000000074705fff Total Clusters :                   0x000000000e8e0bff Free Clusters  :                   0x000000000497daa5 Total Reserved :                   0x00000000000013ff Bytes Per Sector  :                512 Bytes Per Physical Sector :        4096 Bytes Per Cluster :                4096 Bytes Per FileRecord Segment    :  1024 Clusters Per FileRecord Segment :  0 Mft Valid Data Length :            0x0000000099940000 Mft Start Lcn  :                   0x00000000000c0000 Mft2 Start Lcn :                   0x0000000000000002 Mft Zone Start :                   0x0000000009a85600 Mft Zone End   :                   0x0000000009a8fd40 Max Device Trim Extent Count :     0 Max Device Trim Byte Count :       0x0 Max Volume Trim Extent Count :     62 Max Volume Trim Byte Count :       0x40000000 Resource Manager Identifier :      14ED2385-C262-11E6-A546-9CEBE8321CA9 

500GB:

not purchased as of yet 

The plan:

  1. Boot from a Linux (e.g. ubuntu) usb image
  2. Copy C:\ into D:\ (D:\ still has space)
  3. Shutdown, replace C:\ with larger ssd
  4. Boot (again) from usb
  5. Copy C:\ from D:\ into larger ssd
  6. Shutdown; boot from larger ssd
  7. If all’s well, clear former C:\ from D:\

The bad:

  1. Will a dd format the new ssd entirely upon copy (from D:\ to 500GB)?
  2. If not how much of 500GB will be usable?
  3. Since 128GB is small, there are many simlinks to D:. Will they be affected upon copy?
  4. Is this even the right way of doing this?

AppleScript : add to plist instead of replacing

I have a script which add the current time to a plist. Basically it’s help me taking track of my overtime.

That’s work fine if I run it once but if I run it more than once the primary Plist is replaced by the value of the new one.

Can I add all in the same plist instead of overwriting ? e.g

“Start Time 1 : 06:39” “Start Time 2 : 21:05”

Where is my current script :

set ShortDate to short date string of (current date) set myDate to date string of (current date) set [dayLetter, dayNumber, MonthLetter, yearNumber] to the words of myDate set t to (time string of (current date)) set [hoursInNumber, minutesInNumber, secondInNumber] to the words of t set startTimeValue to (current date) set startTimeClear to dayLetter & " " & dayNumber & " " & MonthLetter & " at " & hoursInNumber & ":" & minutesInNumber set plistR to {startTime:startTimeValue, startTimeClear:startTimeClear} tell application "System Events"     set plistf to make new property list file ¬         with properties {name:"~/Desktop/Time/myTime" & dayNumber & "_" & MonthLetter & ".plist"}     set plistf's value to plistR end tell