I am not getting updated values for strings, Values are being assigned in onResponce() method of Retrofit?

Uncategorized
Question: //Code for Button that sets and gets values of Strings that are declared in Class level private String hostApptSlots1, HApStrtT1,HAptAvgT1; getProfDetails(profname); Toast.makeText(Fix_Appointment.this,getHApStrtT1()+getHostApptSlots1()+getHAptAvg1(), Toast.LENGTH_SHORT).show(); //Code for getProfDetails apiService.ProfDetails is using another Thread than #Main_Thread public void getProfDetails(String Pusrname){ apiService.ProfDetails(Pusrname).enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { try { JSONArray jsonArray= new JSONArray(response.body().toString()); JSONObject jsonObject2 = jsonArray.getJSONObject(0); //Getting Values from JSONARRAY hostApptStartTime=jsonObject2.getString("HP_StartTime"); hostApptAvgTime=jsonObject2.getString("HP_AvgTime"); hostApptSlots=jsonObject2.getString("HP_Slots"); //Setter Method used for Strings setHostApptSlots1( hostApptSlots); setHApStrtT1(hostApptStartTime); setHAptAvgT1(hostApptAvgTime); //Values are being set correctly i have checked this } catch (JSONException e) { e.printStackTrace(); } } @Override public void onFailure(Call call, Throwable throwable) { } }); Answer: Read more
Read More

How to align the value in the DataFrame to the left? Python3

Uncategorized
Question: Initially, the display of the values from the Dataframe was neat. However, after I selected one of the columns to be the new index, some of the values are not in alignment. In the attached picture, you can see that the names of the states are not straight. I would like to make all the values to be aligned to the left. How can I achieve that? This is python 3.0. Answer: Read more
Read More

Google Cloud Platform : Create Virtual Machine from snapshot failed ( Win Server 2012 R2)

Uncategorized
Question: I tried to know how to backup my virtual machine on Google Cloud Platform (GCP), so I did some steps to create and backup the server. However, there were some errors happened, and I couldn't figure out why. Here were the steps:Create an VM instance with Win Server 2012 R2 installed. Create a snapshot from the running instance with Enable VSS option checked. Here is the description of Enable VSS option: Integrate volume shadow copy service You can only use Volume Shadow Copy Service (VSS) on disks attached to Windows instances. Make sure you have the latest Windows image version with the VSS agent installed. Create a new VM instance from using the snapshot. In the VM instance list page, I try to use Set windows password method to…
Read More

Atlas – Personal Portfolio Template

Uncategorized
Atlas is a personal portfolio template with clean and elegant design. It’s highly suitable for Designers, freelancers, marketers. Template build on latest Bootstrap latest version. Atlas template is written in valid and clean HTML & CSS3 code and comes with two color themes. It’s Super easy to customize and also well documented, so it’ll suit your needs.
Read More