Can Python replace PHP?

Short answer: no.

Long answer: nope.

How many applications do you think are written in PHP? How many man hours do you think will cost to replace those applications that millions if not billions of users use? Could you replace them with an exact copy (HTML rendered page that looks exactly like the original) of what they are using?

Realistically speaking, you’re going to waste more money and time to find such a project for switching every single user to a Python based alternative platform. And let’s not forget, those “alternative” platforms might not even work the same way nor work as efficiently as those that are written in PHP.

Not just that, you want to replace PHP? Then you’ll not only have to replace the code base, but also replace every single PHP installation on every single operating system ever created. macOS comes preinstalled with PHP, some Linux distros such as centOS come prepackaged with PHP.

People only usually mention Facebook or WordPress when they talk about PHP, but ever wonder what language PornHub is written in? You might want to double check. Not only that, some bank’s websites are written in PHP. Ever wonder how the game you play everyday has such a really nice and seamless [forum] experience? That’s because majority of them are written in PHP. A lot of popular gaming forums run on either vBulletin (written in PHP) or PHPBB or some other variant of PHP forum software.

obtuse angle

an angle between 90° and 180°अधिक कोण, 90° और 180° के बीच का कोण

What is an example of obtuse angle?

Image result for obtuse angle

Examples of Obtuse Angles

We know that angles measuring greater than 90° and less than 180° are called obtuse angles. Therefore, angles that measure 145°,150°,178°,149°, 91° are considered as obtuse angle examples.

acute angle

Acute angles measure less than 90 degrees. Right angles measure 90 degrees. Obtuse angles measure more than 90 degrees.

What are 3 acute angles?

An acute triangle (or acute-angled triangle) is a triangle with three acute angles (less than 90°). An obtuse triangle (or obtuse-angled triangle) is a triangle with one obtuse angle (greater than 90°) and two acute angles.

What has acute angle?

Image result for acute angle

An acute angle is a type of angle that measures less than 90°. For example, when the time is 11 o’clock, the angle formed between the hour hand and the minute hand is an acute angle. In other words, 30°, 40°, 57°, and so on are all acute angles.

new line whatsapp api

The %0a represents the line break

<?php
$message='*जूम प्रोग्राम*
%0a
%0a
Time: Jan 18, 2020 08:00 PM
%0a
Join Zoom Meeting
%0a
https://us02web.zoom.us/j/455565566644?pwd=qwertyuiopgggg555554433
%0a
Meeting ID: 353545345575675756
%0a
Passcode: 8678768
%0a
%0a
*Note: यह लिंक सिर्फ आपके लिए है कृपया किसी और से शेयर ना करें*';
?>

Just a step away | Add DLT-approved templates in Textlocal to start sending SMS

In line with TCCCPR 2018 implementation, all telecom operators are live with template scrubbing and only messages that match approved templates in DLT and have template ID added are being sent. So, we strongly recommend you to apply all necessary templates in DLT platforms by following steps given here.

We’ve listed below the best practices for creating and using templates to send SMS in Textlocal to avoid any disruption in your SMS traffic:Message content, category and template ID must exactly match the templates approved in DLT platformThe message content you have added in Textlocal should not have extra/missing spaces or new lines.All templates added in Textlocal must be added with message category and template ID.
 DLT variablesThe syntax of variables is different in DLT and Textlocal. Please use the relevant syntax when adding templates in each platform. See how to add templates in Textlocal here.  
Eg: An OTP template will look like “Your OTP is {#var#}” in DLT platforms and “Your OTP is %%|text^{“inputtype” : “text”, “maxlength” : “6”}%%” in Textlocal. The maximum character limit for a DLT variable is 30 (as mandated by operators). If you wish to send Textlocal shortlinks, please use 2 DLT variables ({#var#}{#var#}).
 We recommend testing your added DLT templates with a single send to your mobile number before scheduling a bulk send: Log in to Textlocal > Click Send > Click Send Text Messages > Select the template you want to use from the dropdown > Select the Sender Name you added for this template in DLT > Add your phone number in the Paste List > Send Message.
Video Explainer: Best practices for creating and using DLT templates
Note: The DLT portals are maintained and supported by respective telecom operators. Textlocal staff do not have access to your DLT information like template content, template ID, Registration ID etc.

We recommend you to go through all the links mentioned in the email. If you need any further assistance, please feel free to reach out to us at support@textlocal.in or +91-95021 95021.

send data to modal bootstrap

<p>Link 1</p>
<a data-toggle="modal" data-id="ISBN564541" title="Add this item" class="open-AddBookDialog btn btn-primary" href="#addBookDialog">test</a>

<p>&nbsp;</p>


<p>Link 2</p>
<a data-toggle="modal" data-id="ISBN-001122" title="Add this item" class="open-AddBookDialog btn btn-primary" href="#addBookDialog">test</a>

<div class="modal hide" id="addBookDialog">
 <div class="modal-header">
    <button class="close" data-dismiss="modal">×</button>
    <h3>Modal header</h3>
  </div>
    <div class="modal-body">
        <p>some content</p>
        <input type="text" name="bookId" id="bookId" value=""/>
    </div>
</div>
$(document).on("click", ".open-AddBookDialog", function () {
     var myBookId = $(this).data('id');
     $(".modal-body #bookId").val( myBookId );
     // As pointed out in comments, 
     // it is unnecessary to have to manually call the modal.
     // $('#addBookDialog').modal('show');
});

Covid Medical kit Required at home:

Covid Medical kit Required at home:

  1. Paracetamol
  2. Betadine for mouthwash and gargle
  3. Vitamin C and D3
  4. B complex
  5. Vapour+ capsules for steam
  6. Oximeter
  7. Oxygen cylinder (for emergency only)
  8. Breathing Exercises

Covid Three stages:

  1. Covid only in nose – recovery time is half a day. (Steam inhaling), vitamin C. Usually no fever. Asymptomatic.
  2. Covid in throat – sore throat, recovery time 1 day (hot water gargle, warm water to drink, if temp then paracetamol. Vitamin C, Bcomplex. If severe than antibiotic.
  3. Covid in lungs- coughing and breathlessness 4 to 5 days. (Vitamin C, B complex, hot water gargle, oximeter, paracetamol, cylinder if severe, lot of liquid required, deep breathing exercise.

Stage when to approach hospital:
Monitor the oxygen level. If it goes below 92 (normal 98-100) then you need oxygen cylinder. If available at home, then no hospital else admit.

Stay healthy, Stay Safe!

Please forward to all on your contact list. You never know who it may help.

Advice from inside isolation hospitals, we can do at home

Medicines that are taken in isolation hospitals

  1. Vitamin C-1000
  2. Vitamin E (E)
  3. From (10 to 11) hours, sitting in the sunshine for 15-20 minutes.
  4. Egg meal once ..
  5. We take a rest / sleep a minimum of 7-8 hours
  6. We drink 1.5 liters of water daily
  7. All meals should be warm (not cold). And that’s all we do in the hospital to strengthen the immune system Note that the pH of coronavirus varies from 5.5 to 8.5 Therefore, all we have to do to eliminate the virus is to consume more alkaline foods above the acidity level of the virus. Such as :
    Bananas
    Green lemon – 9.9 pH
    Yellow Lemon – 8.2 pH
    Avocado – 15.6 pH
  • Garlic – 13.2 pH
  • Mango – 8.7 pH
  • Tangerine – 8.5 pH
  • Pineapple – 12.7 pH
  • Watercress – 22.7 pH
  • Oranges – 9.2 pH How to know that you are infected with corona virus?
  1. Itchy throat
  2. Dry throat
  3. Dry cough
  4. High temperature
  5. Shortness of breath
  6. Loss of smell …. And lemon with warm water eliminates the virus at the beginning before reaching the lungs …

whatsapp share link for website

<a class='blantershow-chat' target="_blank" href='https://api.whatsapp.com/send?phone=919555699081&amp;text=Hi&amp;source=HealthyDiet Professional'>
	<i class='fa fa-whatsapp'></i>
</a>
https://api.whatsapp.com/send?text=http://healthydiet.soatechnology.net/bmi_calculator
https://api.whatsapp.com/send?text=http://healthydiet.soatechnology.net/bmi_calculator&phone=123
<a class='blantershow-chat' target="_blank" href='https://api.whatsapp.com/send?text=http://healthydiet.soatechnology.net/{{ current_url }}'>
	<i class='fa fa-whatsapp'></i>
</a>
<a class='blantershow-chat' target="_blank" href="https://api.whatsapp.com/send?text=http://healthydiet.soatechnology.net/<?php echo $_SERVER['REQUEST_URI']; ?>">
	<i class='fa fa-whatsapp'></i>
</a>

how can identify client computer uniquely for website users

Cookies

Set a cookie on the client machine to identify the user.

  • Pros: Definitely unique per session
  • Cons: Easy to remove or prevent (even for people with limited technical knowledge), only apply to one browser, easy for a script to bypass

IP address

Use the user’s IP address to identify the user.

  • Pros: Changes infrequently, works across browsers, requires technical knowledge to spoof or use a proxy server
  • Cons: Not necessarily unique: one IP address can easily apply to entire homes/buildings/offices behind a network, and for some ISPs end user IP addresses might be reassigned

Browser fingerprinting

Use all browser data passed to the server (not just user agent, but also OS, screen resolution, and a number of other things) to generate a unique browser fingerprint.

  • Pros: High probability of being unique, opaque to the end user (changing IP addresses or clearing cookies won’t bypass it)
  • Cons: Probably too unique — any change in browser condition (or browser) will change the fingerprint (though you can choose only a subset of supplied browser information to balance fingerprint volatility and uniqueness), can be bypassed by scripts

You can, of course, also use multiple methods. Which method you use really depends on your specific use case. For many cases, just a simple cookie will do. If you want some defense against scripts or other methods of bypassing, add an IP address rate limit. You can also attempt to gather as much information as possible and use some sort of heuristic algorithm to try to find people that are bypassing the system for uniqueness that you have in place.

auth check with guard

if (Auth::guard('api')->check()) {
        $message='Invitation click successfully.';
        //return redirect()->route('admin.dashboard');
        $user = Auth::guard('api')->user();
        $success['user_id']=$user->id;
        
        $success['invitation_id']=$success['id'];
        $success['click_status']='1';
        $success['target_user_id']= $success['user_id'];

        $data = DB::connection($lang)->table('cal_invitation_click')->where('invitation_id',$success['id'])->where('target_user_id',$success['user_id'])->get();
        $success['count']=count($data);        
        if($success['count'] == '0'){
        $success['click_id']= DB::connection($lang)->table('cal_invitation_click')->insertGetId([
          'invitation_id' =>  $success['id'],
          'source_user_id' =>  $success['source_user_id'],
          'target_url' =>  $success['target_url'],
          'click_status' =>  $success['click_status'],
          'target_user_id' => $success['user_id']
      ]);
       }