A platform designed to support both: subscribers and user accounts?

We’ve created a platform where users can subscribe to their favorite organizations’ newsletters (similar to Mailchimp). But we also want to allow subscribers to post content on their organizations’ page (similar to Yelp or Meetup).

We’re afraid that if we were to force everyone to create accounts, it might deter those that are new or just want to receive the weekly newsletter.

We’re in the early stages, and our focus is to expand our user base as much as possible.

Are there any past lessons or existing examples that we can learn from?

Get A Professionally Designed Facebook Cover Or Youtube Banner, Or Ad Header for $5

Design A Facebook Cover Or Youtube Banner, Or Web Ad Banner Are you looking out for the Top Quality Professional Advertisement Designs? You’ve come to the right place an outstanding graphic image that will cause you to feel more proud, make you feel satisfied and make you look better. MY SERVICE INCLUDES: Banner/AdvertisementAd HeaderFacebook Cover, Pro Pic, Timeline PhotoTwitter Background, HeaderYouTube BackgroundGoogle+ CoverPinterestTumblrLinkedin CoverE-commerce bannerWebsite Header, Sidebar

by: expert108
Created: —
Category: Art & Design
Viewed: 134


How would a CPU designed purely for functional programming be different?

CPU’s are to an extent designed with in mind the software that people will write for it, implicitly or explicitly.

It seems to me that if you look at the design of instruction set architectures, they are very “imperative”, in the sense that each instruction encodes an imperative style command. It also seems to me that the current instruction set architectures have evolved partly based on the type of code programmers produce.

If one would design a CPU from scratch, knowing that it would only ever run programs written in a functional programming style, how would that CPU be designed differently from existing CPU’s?

DDD and Infrastructure micro-Services – how should the interface be designed?

We’ve extracted our email sending into an EmailService – this is a microservice that provides resiliency and abstracts the email logic into an Infrastructure service. The question is how the interface to the EmailService should be defined, with respect to the information it requires about the [User] domain

Approach 1:
EmailService exposes an interface that takes all the fields of the [User] domain that it requires.

Approach 2:
The EmailService interface takes only the UserID. The EmailService then queries the UserService using this ID to fetch the fields that it requires

There are some obvious pros/cons with each approach.
Approach1 requires the calling service to know everything about a User that the EmailService requires, even if its not part of the callers Domain representation of a User. On the other hand the contract between the services is explicit and clear.

Approach2 ensures that the [User] fields are fetched as late as possible, minimising consistency problems. However this creates an implicit contract with the UserService (with its own problems)

I’ve been doing a lot of research here and on SO, but I haven’t been able to find anything around this specific interface design problem. Keeping DDD principles in mind, which approach is correct?

Jewels Store – Only Dropshipping – Well Designed – Hot Niche For Summer – make 840$ per week

Seller's Notes

Great opportunity to own an online business. Fully ready & user-friendly shop with high profit margins.

——————————————————————–

No Stock Needed – Supplier directly dropshipping items to your customers.

User-Friendly Website – No maintenance and programming needed.

————————————————————————

This website sells Dog Accessories in the popular niche…

Jewels Store – Only Dropshipping – Well Designed – Hot Niche For Summer – make 840$ per week

Why is my gallery app (designed using Glide) taking nearly 500mb RAM

I made a gallery app which show offline stored images using GLIDE library in recyclerView but when i view the Profiler in android Studio it shows me that the app is taking nearly 500mb memory. Is this normal that my app is taking this much memory.

However my app is not crashing but it hang sometimes while showing images and also images are load all togethor (i can see the size of scrollbar getting smaller)

Also after asking User-permission images are not shown instantly. I have to start the app again to view these images. Those images should have been visible after accepting the permission.

This is the normal look of my app  Sometime when scrolling some white space also come between the images.

1This is the normal look of my app.

2Sometime when scrolling some white space also come between the images (shown in brown shaped oval).

for reducing the memory, I tried to decrease the height of the imageView (thinking that may be now glide had to load less pixels) but didn’t work at all. for user-permission i tried using Android Developers Guide but still no luck.

// this is my main activity     private static final int MY_PERMISSIONS_REQUEST = 100;     private Cursor mCursor=null;      @Override     protected void onCreate(Bundle savedInstanceState) {         // layout initialization code         mCursor = getImageCursor();         requestStoragePermission();          recyclerView = findViewById(R.id.imageRecyclerView);         mAdapter = new mayankImageAdapter(this,mCursor);        //..... (setting the recyclerView)         RecyclerView.LayoutManager mLayoutManager = new StaggeredGridLayoutManager(2,StaggeredGridLayoutManager.VERTICAL);         recyclerView.setLayoutManager(mLayoutManager);         recyclerView.setItemAnimator(new DefaultItemAnimator());         recyclerView.setAdapter(mAdapter);      }      private void requestStoragePermission() {         if (ContextCompat.checkSelfPermission(MainActivity.this,                 Manifest.permission.READ_EXTERNAL_STORAGE)                 != PackageManager.PERMISSION_GRANTED) {             ActivityCompat.requestPermissions(MainActivity.this,                     new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},                     MY_PERMISSIONS_REQUEST);         }     }      @Override     public void onRequestPermissionsResult(int requestCode,                                            String permissions[], int[] grantResults) {         switch (requestCode) {             case MY_PERMISSIONS_REQUEST: {                 // If request is cancelled, the result arrays are empty.                 if (grantResults.length > 0                         && grantResults[0] == PackageManager.PERMISSION_GRANTED) {                      // permission was granted, yay! Do the                     // file-related task you need to do.                  }                 else {                      // permission denied, boo! Disable the                     // functionality that depends on this permission.                 }                 return;             }         }     }       public Cursor getImageCursor(){         try{             Uri externalUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;             String[] projection = new String[]{MediaStore.Images.Media._ID, MediaStore.Images.Media.TITLE,                             MediaStore.Images.Media.SIZE, MediaStore.Images.Media.DATA};             String sortOrder = MediaStore.Images.Media.TITLE+" ASC";              Cursor imageCursor = getContentResolver().query(externalUri,                         projection,null,null,sortOrder);             return imageCursor;         }catch(Exception e){             return null;         }     }     @Override     protected void onDestroy() {         mCursor.close();         super.onDestroy();     } } 

mayankImageAdapter.java

\ onBindViewHolder method     @Override     public void onBindViewHolder(@NonNull MyViewHolder myViewHolder, int position) {         if(imageCursor!=null) {             imageCursor.moveToFirst();             imageCursor.moveToPosition(position);             int strIndex = imageCursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);              String str = imageCursor.getString(strIndex);             File myimageloc = new File(str);             GlideApp.with(callingActivity).load(myimageloc).into(myViewHolder.imgView);          }else{             return;         }     } 

acitivity_main.xml

<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.RecyclerView android:layout_width="match_parent"     android:layout_height="match_parent"     android:scrollbars="vertical"     android:id="@+id/imageRecyclerView"     xmlns:android="http://schemas.android.com/apk/res/android" /> 

I want to know the reason why my app is taking so much memory and what are steps to decrease this memory and how can i show images just after asking permissions from the user.

Thanks

Get Digital Brochure Designed For Your Brand Or Company for $100

Digital Brochure is delivered in PDF format which is compatible with all devices (laptops, mobile, tablets) and it also has interactive CTA like one click call, one click whatsapp, one click map navigation and other clickable options from which your prospects and customers can reach you. Where can I Use or Share my Digital Brochure? You can share it on WhatsApp, SMS, website, emails and other social media platforms. How much Time do you take to Create a Digital Brochure? Generally, it takes 5 to 7 working days. What about Changes ? I will work with you to create a tailor made digital brochure to make sure, your customer understands your business, products, and services better than your competitors. Once the work is completed, I provide 3 more basic edits. However, in the future, if you want to re-structure or have major changes, then it will be chargeable. This happens only when you have major changes in your products or services. Do you provide Refunds ? No. I do not provide any refunds. Is there any Validity or Locking ? Absolutely NO. I provide you digital brochure as an interactive PDF document. You have forever access to your digital brochure. PDF,15 Page Brochure

by: prajwal1989
Created: —
Category: Graphics & Logos
Viewed: 132