#3. when the deletion date comes.. then the site returns a singular page for all links explaining that its deleted
Explore tagged Tumblr posts
browserfreak · 4 months ago
Text
I'd just like to say this is NOT about the President threatening to enact KOSA and delete TikTok. Stop celebrating that. Sure, taking down TikTok may be a "good thing" in your eyes, but as much as we hate it there are friends, communities, creators, on there. Them suddenly losing all their contacts and viewers with NO NOTICE would be very fucking evil. Plus, if they banned TikTok (which is mostly for it's amount of pro-left / queer content, by the way) then that's a gateway for them to ban other sites; tumblr, facebook, instagram, youtube... et cetera. Which would be HORRIBLE. Even if THAT doesn't sound bad, that means that no-one can create other social media sites because they would monitor the entire internet. Do you fucking want that. Do you want every fucking shred of content to be policed and controlled, every sentence, every profile, every word. No, you DON'T. You want free expression. So don't follow the cruelty of the morally immature, and you won't add to the problem.
TikTok isn't bad because it's "cringe" (which usually refers to minorities anyway), it's bad because it's a content-stealing, mind-wrecking, echo chamber that is usually filled to the brim with such pretentious pricks and content farms that when something becomes even slightly mainstream on there, no matter how intrinsically pure, it gets torn limb from limb. It's similar to watching one of those simulation videos where the organisms start fighting each other despite abundant resources due to their short-sighted, tunnel vision mind. Any horrible, discriminative, malicious content you can imagine is increased tenfold on that site. Not to mention the fact that it lowers people's attention spans with addictive short-form content, whittling down their brains until they can't research things for themselves. The nerd emoji, the yapping, the negligence of any sort of solid logic or fact. It's real. It's horrifying. It's a internet-ruining machine, along with the likes of AI and Meta. It's a mind-ruining machine. There have been so, so many counts of people's tarnished mental health improving after leaving that dumpster fire of a "social" "media". There's nothing fucking "social" about it, and there certainly isn't any content on there that I'd give the honourable name of "media".
Delete TikTok. Fucking do it.
6 notes · View notes
siva3155 · 5 years ago
Text
300+ TOP CAKEPHP Interview Questions and Answers
CAKEPHP Interview Questions :-
1. What is Cakephp? CakePHP is a free, open-source, rapid development framework for PHP. it’s a foundational structure for programmers to create web applications. CakePHP goal is to enable developers to work in a structured and rapid manner–without loss of flexibility. CakePHP takes the monotony out of web development. 2. When CakePHP was Developed? CakePHP started in April 2005.When a Polish programmer Michal Tatarynowicz wrote a minimal version of a Rapid Application Framework in PHP, dubbing it Cake.CakePHP version 1.0 released in May 2006. (source:http://en.wikipedia.org/wiki/CakePHP) 3. What is the current stable version of CakePHP? 3.0 (on date 2015-06-12). 4. What is MVC in CakePHP? Model view controller (MVC) is an architectural pattern used in software engineering. Model : Database functions exist in the model View : Design parts written here Controller : Business Logic goes here 5. Server requirements for CakePHP. Here are the requirements for setting up a server to run CakePHP: An HTTP server (like Apache) with the following enabled: sessions, mod_rewrite (not absolutely necessary but preferred) PHP 4.3.2 or greater. Yes, CakePHP works great in either PHP 4 or 5. A database engine (right now, there is support for MySQL 4+, PostgreSQL and a wrapper for ADODB). 6. How to install CakePHP? step1: Go to cakephp.org and download the latest version of cakephp. step2: Cakephp comes in a .zip file,so unzip it. step3: Extract the files in the localhost in the desired folder (for example:cakephp). step4: Open the browser and run the URL localhost/cakephp step5: Just Follow the instructions display on the page. 7. What is the Folder Structure of CakePHP? cakephp/ app/ Config/ Console/ Controller/ Lib/ Locale/ Model/ Plugin/ Test/ tmp/ Vendor/ View/ webroot/ .htaccess index.php lib/ plugins/ vendors/ .htaccess/ index.php/ README.md/ 8. What is the Name of Cakephp Database Configuration File Name and its Location? Default file name is database.php.default. its located at "/app/config/database.php.default".to connect with database it should be renamed to database.php 9. What is the First File That Gets Loaded When you Run A Application Using Cakephp?can you Change That File? bootstrap.php yes it can be changed.Either through index.php , or through .htaccess 10. What is the use of Security.Salt and Security.CipherSeed in Cakephp? How to Change its Default Value? the Security.salt is used for generating hashes.we can change the default Security.salt value in /app/Config/core.php. the Security.cipherseed is used for encrypt/decrypt strings.we can change the default Security.cipherSeed value by editing /app/Config/core.php.
Tumblr media
CAKEPHP Interview Questions 11. What are Controllers? A controller is used to manage the logic for a part of your application. Most commonly, controllers are used to manage the logic for a single model. Controllers can include any number of methods which are usually referred to as actions. Actions are controller methods used to display views. An action is a single method of a controller. 12. What is default function For a Controller? index() function 13. Which function is executed before every action in the controller? function beforeFilter() 14. List some of the features in CakePHP Compatible with versions 4 and 5 of PHP MVC architecture Built-in validations Caching Scaffolding Access Control Lists and Authentication. CSRF protection via Security Component. 15. Using cakephp, what all are drawbacks. it loads full application before it starts your task. it's not recommended for small projects because of its resource-heavy structure. 16. What is the Naming Convention in Cakephp? Table names are plural and lowercased,model names are singular and CamelCased: ModelName, model filenames are singular and underscored: model_name.php, controller names are plural and CamelCased with *Controller* appended: ControllerNamesController, controller filenames are plural and underscored with *controller* appended: controller_names_controller.php, 17. What is scaffolding in Cakephp? Scaffolding is a technique that allows a developer to define and create a basic application that can create, retrieve, update and delete objects. 18. How to add scaffolding in your application? to add scaffolding to your application,just add the $scaffold variable in the controller, Assuming you’ve created Post model class file (in /app/Model/post.php), you’re ready to go. Visit http://example.com/posts to see your new scaffold. 19. What is a Component in Cakephp? Components are packages of logic that are shared between controllers. they are useful when a common logic or code is required between different controllers. 20. What are Commonly used Components of Cakephp? Security Sessions Access control lists Emails Cookies Authentication Request handling Scaffolding 21. What is a Helper? Helpers in CakePHP are associated with Presentation layers of application.Helpers mainly contain presentational logic which is available to share between many views, elements, or layouts 22. What are Commonly used helpers of Cakephp? FormHelper HtmlHelper JsHelper CacheHelper NumberHelper Paginator RSS SessionHelper Texthelper TimeHelper 23. What is A Behavior? Behaviors in CakePHP are associated with Models.Behaviors are used to change the way models behaves and enforcing model to act as something else. 24. What is the Difference Between Component, Helper, Behavior? Component is a Controller extension, Helpers are View extensions, Behavior is a Model Extension. 25. What is a Element? Element in cakephp are smaller and reusable bits of view code. Elements are usually rendered inside views. 26. What is a Layout? Layout in cakephp are used to display the views that contain presentational code. in simple views are rendered inside a layout 27. How to set Layout in the controller? var $layout = ‘layout_name’; to overwrite for a specific action use below code in that action $this->layout =”layout_name”; 28. How to include Helpers in Controller ? public $helpers = array(‘Form’, ‘Html’, ‘Js’, ‘Time’); to in specific action use below code in that action $this->helper =”helper_name”; 29. How to include Components in Controller ? public $components = array(‘Emails’, ‘ImageUploader’, ‘Sms’); 30. How to Write, Read and Delete the Session in Cakephp? $this->Session->write(‘Bird.Color’, ‘Black’); $black = $this->Session->read(‘Bird.Color’); $this->Session->delete(‘Bird’); 31. What is the use of $this->Set(); the set() method is used for creating a variable in the view file.Say for example if we write, $this->set('posts',$posts); in controller fie, then the variable $posts will be available to use in the view template file for that action. 32. What is the use of $this->Set(Compact()); Using $this->set(compact()) , we can pass multiple parameters to access into the view file. For example, $this->set(compact('posts','users','reports')); Now all these variables will be available in respective view file. 33. What are the advantages of each?Which Would you use and Why? An advantage with first case $this->set('posts', $posts); is that it allows two different names for the view file and controller file. For example, you could write something like $this->set('postData', $posts);. Now the variable name in the view file would be $postData. the advantage with the second approach $this->set(compact()); is easier to write, and useful especially when we are setting several variables to the view.No need to add separate line for each variable as we have with $this->set(); For example, $this->set(compact('posts','users','reports')); 34. is it Possible to Have Multiple Validation Rules Per Field in Cakephp? Yes its possible. 35. What is Wrong With the below validation rule? 'email' => array( 'rule' => array( 'rule' => 'notEmpty', 'message' => 'Please Enter Email address.' ), 'rule' => array( 'rule' => 'email', 'message' => 'Entered Email address is invalid.' ) ) the problem is the first rule notEmpty will never be called because email rule will overwrite it.While using multiple validation rules for the same field you must keep the rule key "unique". in this case if we want to use multiple rules then, we can simple change the rule key names like, 'email' => array( 'rule1' => array( 'rule' => 'notEmpty', 'message' => 'Please Enter Email address.' ), 'rule2' => array( 'rule' => 'email', 'message' => 'Entered Email address is invalid.' ) ) 36. What is the Difference Between Required and NotEmpty in Cakephp? Difference between required and notEmpty 37. How to Get Current URL in CakePHP? to get current url in cakephp use, echo Router::url($this->here, true); This will give full URL with hostname.If you want to get relative path instead of full URL,then use the following code: echo $this->here; This will produce absolute URL excluding hostname i.e. /controller/abc/xyz/ 38. How can you Make Urls Search Engine Friendly While Using Cakephp? it's an automatic task that is done by cakephp. 39. can you List Some Database Related Functions in Cakephp? find, findAll , findAllBy , findBy , findNeighbours and query. 40. Which Methods are used to Create and Destroy Model Associations On the Fly? the bindModel() and unbindModel() Model methods are used to create and destroy model associations on the fly. 41. What is the use of RequestAction Method? the method requestAction is used to call a controller’s action from any location and returns data from the action. 42. What is Recursive in Cakephp? to understand this topic follow this post : Recursive in cakephp 43. How can we use Ajax in Cakephp? By calling ajax helper and then using it in controller for rendering. 44. What is Habtm? Has and belongs to many is a kind of associations that can be defined in models for retrieving associated data across different entities. 45. How Cakephp URL Looks in Address Bar? http://example.com/controller/action/param1/param2/param3 46. How can you include A Javascript Menu Throughout the Site. Give Steps. By adding the javascript files in webroot and call them in default views if needed everywhere or just in the related veiws. 47. Why Cakephp Have Two Vendor Folder?What is the Difference Between Two Vendors Folder Available in Cakephp? there will be two vendor folders available in cakephp frame work. one in ” app ” folder and one in root folder the vendor folder in the app folder is used to place the third-party libraries which are application specific. the vendor folder in the root folder is used to place the third-party libraries which are used for multiple applications. 48. What is the Default Extension of View Files in Cakephp?can we Change it?If Yes then How? default extension of view files is '.ctp'. yes we can change it by writing public $ext = '.yourext'; in AppController.If you want to change it for particular controller then add it into that controller only.you can also change it for the specific action of the controller by putting it in that action of controller. public $ext = '.yourext'; in AppController - you can change all the views extentions. public $ext = '.yourext'; in specific controller like, PostsController - you can change all the views extentions of PostsController. public $ext = '.yourext'; in specific controller action like, index() - you can change the view extention of index.ctp Note: you cannot specify multiple extensions, however it seems like there is a fall back to .ctp if no .php file is found. 49. How can you Set Custom Page Title For the Static Page? to set a custom page title, copy-paste following code anywhere in your static page (.ctp) file: $this->set("title_for_layout", "My page title"); 50. How to Display the Schema of the Model? If you want to display the schema of particular model then you just need to add the following single line of code.For example we have “Posts” Controller. pr($this->Post->schema()); CAKEPHP Questions and Answers pdf download Read the full article
0 notes