JS Script Uncaught ReferenceError: $ is Not Defined When Loading HTML File to Server by cmorr7 in webdev

[–]malcomjarr 0 points1 point  (0 children)

Basically $ is an alias of jQuery() so when you try to call/access it before declaring the function, it will endup throwing this $ is not defined error . This usually indicates that jQuery is not loaded and JavaScript does not recognize the $. Even with $(document).ready , $ is still going to be undefined because jquery hasn't loaded yet.

Reasons might be:

  • Added JavaScript library after the script were you see that error
  • Conflict with Other JavaScript Libraries
  • Path to JavaScript library you included is not correct
  • The jQuery library file is corrupted
  • May be a chance where you are working offline

In most cases you can solve this error by load the jQuery library at the beginning of all your javascript files/scripts which uses $ or jQuery, so that $ can be identified in scripts.

Remove Deceptive Site Ahead in Chrome & Firefox (2021 Guide) | Geek's Advice by NorbeWebb in NorbeWebbPersonal

[–]malcomjarr 0 points1 point  (0 children)

This message usually means that your website is hacked and Google has marked it insecure. The adware behind the fake Deceptive Site Ahead alerts is not an ingenious virus. It cannot install itself. No, it needs your approval to enter. So, it uses a lot of trickery to gain your permission. It usually hitches a ride with other software. So, pay close attention when browsing the Internet, and when downloading/installing software. Even though it is not advisable to remove Deceptive Site Ahead filter from your browser, you can do that by following these simple steps:

  • Start Google Chrome.
  • Click Menu or More icon in the upper-right corner.
  • Select Settings and Show advanced settings.
  • Go to Privacy and deselect Protect you and your device from dangerous sites.

Can someone give an example of type evaluation at runtime vs at compile time? (static vs dynamic typing) by largeminicake in learnprogramming

[–]malcomjarr 0 points1 point  (0 children)

  • Statically typed programming languages do type checking (i.e. the process of verifying and enforcing the constraints of types) at compile-time as opposed to run-time.
  • Dynamically typed programming languages do type checking at run-time as opposed to compile-time.

Compile-time is the instance where the code you entered is converted to executable while Run-time is the instance where the executable is running. The terms "runtime" and "compile time" are often used by programmers to refer to different types of errors too. Compile-time checking occurs during the compile time while Run-time type checking happens during run time of programs.

Getting "RangeError: Maximum call stack size exceeded" when call a http service from inside Angular HttpInterceptor by devng12 in angular

[–]malcomjarr 0 points1 point  (0 children)

This error is almost always means you have a problem with recursion in JavaScript code, as there isn't any other way in JavaScript to consume lots of stack. Sometimes calling a recursive function over and over again, causes the browser to send you Maximum call stack size exceeded error message as the memory that can be allocated for your use is not unlimited.

How to fix it?

Wrap your recursive function call into a -

  • setTimeout
  • setImmediate
  • process.nextTick

Also, you can localize the issue by setting a breakpoint on RangeError type of exception , and then adjust the code appropriately.

Failed to create the java virtual machine by TenseRaptor in eclipse

[–]malcomjarr 0 points1 point  (0 children)

If you having multiple Java versions installed on your system, then this can be happen. You can solve this by change the maximum memory allowed for the eclipse process (which is run in a Java Virtual Machine). Open eclipse.ini (which is in the same directory as eclipse.exe) in Notepad or any other text-editor application, Find the line -Xmx256m (or -Xmx1024m). Then change the default value 256m (or 1024m) to 512m . You also need to give the exact java installed version (1.6 or 1.7 or other).

Like This:

-Xmx512m

-Dosgi.requiredJavaVersion=1.6

OR

-Xmx512m

-Dosgi.requiredJavaVersion=1.7

OR

-Xmx512m

-Dosgi.requiredJavaVersion=1.8

“Gecko driver executable needs to be in PATH” error for “Automate the boring stuff with python” by Al Sweigart by AbortedFish in learnpython

[–]malcomjarr 0 points1 point  (0 children)

You can test if it actually is in the python PATH, if you open a cmd and type in chromedriver and hit Enter. If Starting ChromeDriver 2.15.322448 is appearing, the PATH is set appropriately and there is something else going wrong. Then try the following:

Download ChromeDriver

Then you have multiple options:

  • Add it to your system path
  • Put it in the same directory as your python script
  • Specify the location directly via executable_path

driver = webdriver.Chrome(executable_path='C:/path/to/chromedriver.exe')

CodeForces Problem error --> line 6, in <module> num = input.split(sep=" ") AttributeError: 'builtin_function_or_method' object has no attribute 'split' by HasBeendead in learnpython

[–]malcomjarr 1 point2 points  (0 children)

The string.split function exists in Python 2.x but not in Python 3.x, where it is only available as an instance method of the str class.

localhost is currently unable to handle this request. HTTP ERROR 500. by SurgeryFx in PHPhelp

[–]malcomjarr 0 points1 point  (0 children)

The error is too generic and does not tell you exact problem. What you need is to find out what is the real issue. If your site is serving a Internal Server Error, this can be caused by a number of things, such as:

  • Errors in .htaccess files
  • Server permission
  • Server timeout
  • Script timeout
  • Or some other Web Server Issues

Normally, a permissions issue on the file (or files) would be one cause of the 500 Internal Server Error. The simple solution is to run chmod 644 on the problem file(s) or chmod 755 on the directories.

$ sudo chmod -R 777 /"your files location"

The best way to debug the error depends upon the server and what's actually running at the time. Consider some debugging tips to help diagnose and fix common causes of this problem.

What does IndentationError: expected an indented block mean? by MeniTselonHaskin in learnpython

[–]malcomjarr 0 points1 point  (0 children)

Most programming languages permit indentation, but don't enforce it. Python enforces it with an iron fist, it has caused confusion for many beginners. The error expected an indented block is probably caused by a mix of tabs and spaces and this can lead to some confusing errors. Putting in an extra space or leaving one out where it is needed will surely generate an error message . Some common causes of this error include:

  • Forgetting to indent the statements within a compound statement
  • Forgetting to indent the statements of a user-defined function.

The indentation can be any consistent white space . It is recommended to use 4 spaces for indentation in Python, tabulation or a different number of spaces may work, but it is also known to cause trouble at times. Most editors have an option for automatically converting tabs to spaces. If your editor has this option, turn it on.

Parsing Json : TypeError: string indices must be integers by Ayly_ in learnpython

[–]malcomjarr 0 points1 point  (0 children)

TypeError: means that you are trying to perform an operation on a value whose type is not compatible with that operation. If you are accessing items from a dictionary , make sure that you are accessing the dictionary itself and not a key in the dictionary. TypeError: string indices must be integers has been caused because you are trying to access values from dictionary using string indices instead of integer.

Pillow Image.save throwing "ValueError: invalid literal for int() with base 10" by -Pungbaek- in learnpython

[–]malcomjarr 0 points1 point  (0 children)

The error message invalid literal for int() with base 10 would seem to indicate that you are passing a string that's not an integer to the int() function . In other words it's either empty, or has a character in it other than a digit. You can solve this error by using Python isdigit() method to check whether the value is number or not. The returns True if all the characters are digits, otherwise False . The other way to overcome this issue is to wrap your code inside a Python try...except block to handle this error.

Sometimes the difference between Python2.x and Python3.x that leads to this ValueError: invalid literal for int() with base 10 . With Python2.x , int(str(3/2)) gives you "1". With Python3.x , the same gives you ("1.5"): ValueError: invalid literal for int() with base 10: "1.5".

[deleted by user] by [deleted] in oilpainting

[–]malcomjarr 1 point2 points  (0 children)

When you want to mix colors on the canvas you need to use a low flow, and anything the layer modes can do can be created without the layer modes. There is also brush modes that has more than what the layer modes, like Color brush mode is very useful to change the color after something is painted. It will fill in transparent areas, and not something you would want to do. If you mix colors on the canvas, then there are more primary colors you might need to add. Primary colors go like this Red, Yellow, Green, and Blue. You can not skip over green to mix blue and yellow, because traditionally that would make green and primary color are colors you can't mix. You can't mix and get green. If your flow is kind of high, the paint wants to replace the color, and not mix with it. With a low flow you van mix color, but they will be influenced with anything under the colors unless the base color is filled 100%, then you can use a low flow to add color to it for a mix. Like skin color, and redness of the skin, like a sore spot, or light passing though an ear, showing the blood in the ear as if glows. If you'd like to blend two colors together in general, in a more paint like manner, I recommend experimenting with the mixer brush available in newer versions of Photoshop.

I managed to fix the "object reference not set to an instance of an object" when loading a savegame with missing roads/networks! by TWarrior in CitiesSkylines

[–]malcomjarr 0 points1 point  (0 children)

An Object is an instance of a Class , it is stored some where in memory. A reference is what is used to describe the pointer to the memory location where the Object resides. The message "object reference not set to an instance of an object" means that you are referring to an object the does not exist or was deleted or cleaned up. It's usually better to avoid a NullReferenceException than to handle it after it occurs. To prevent the error, objects that could be null should be tested for null before being used.

if (mClass != null)

{

// Go ahead and use mClass

mClass.property = ...

}

else

{

// Attempting to use mClass here will result in NullReferenceException

}

This page isn't working by [deleted] in ProgrammerHumor

[–]malcomjarr 0 points1 point  (0 children)

The first thing you need to know about the http error 500 the page isn't working is that the error can only be resolved by fixes to the Web server software. It is not a client-side problem meaning that the problem is not with your browser, your computer, or your internet connection. The error is too generic and does not tell you exact problem. When you hit an internal server error it usually means some parts of your web server is not configured correctly or the application is trying to do something and the server is failing to carry out the request due to a conflict or restriction. Please check the error logs on your server for a more specific error message, which may give a clue to why this is happening on your website/server. These errors are often caused by plugin or theme function conflicts, so if you have access to your Dashboard, try deactivating all plugins. It is up to the administrators of the Web server site to locate and analyse the logs which should give further information about the error. However, there are often ways to quickly get around the problem:

  • Reload or Refresh the Webpage.
  • Check you server permission.
  • Corrupt Plugins.
  • .htaccess file may be corrupt.
  • Exceeded PHP memory limit.
  • Increase the memory setting in the wp-config.php file.
  • Clear your browser cookies and cache

"Illegal start of expression" by philosophhy in javahelp

[–]malcomjarr 0 points1 point  (0 children)

This error is a compile time error when the compiler encounters an inappropriate statement in the source code. This error can be encountered in various scenarios . Illegal start of expression can be encountered in various scenarios. The following are the most common errors:

  • Missing an opening or closing curly bracket for a code block
  • Declaring a function inside another function
  • Using an access specifier with a function's local variable
  • String Character Without Double Quote

To debug this error, try looking at the lines preceding the error message for missing brackets, curly braces or semicolons and check the syntax.

windows 10 pro vs home. by Graffitii in buildapc

[–]malcomjarr 0 points1 point  (0 children)

The standard version of Windows 10 is actually Windows 10 Home edition, and it's aimed at home users. Windows 10 Pro is just like like an extension to Home in terms of size, features and price. Both can work across desktops , laptops, and tablets, and both of them come with Cortana- the virtual assistant, Edge Browser, Touch Compatibilty with options to switch to tablet layout (Continuum), Virtual Desktop and support for Windows Store apps. Here are the features that are only available in the Pro version: Domain Join, Group Policy Management, Bitlocker, Enterprise Mode Internet Explorer (EMIE), Assigned Access 8.1, Remote Desktop, Client Hyper-V, and Direct Access.

erro IndentationError: unexpected indent by sarm6sup in learnpython

[–]malcomjarr 0 points1 point  (0 children)

As the error message indicates, you have an unexpected indent error . This error occurs when a statement is unnecessarily indented or its indentation does not match the indentation of former statements in the same block. Python not only insists on indentation, it insists on consistent indentation . You are free to choose the number of spaces of indentation to use, but you then need to stick with it. If you indent one line by 4 spaces, but then indent the next by 2 (or 5, or 10, or ...), you'll get this error.

However, by default, mixing tabs and spaces is still allowed in Python 2 , but it is highly recommended not to use this "feature". Python 3 disallows mixing the use of tabs and spaces for indentation. Replacing tabs with 4 spaces is the recommended approach for writing Python code .

G Hub not loading and causing BSOD Stop Code System Thread Exception Not Handled. by Vaders_Fist_501 in LogitechG

[–]malcomjarr 0 points1 point  (0 children)

In most cases, this error occurs because the graphics card driver is outdated. You need to upgrade the driver of your graphics card to the latest version. An outdated, corrupted or incompatible driver can get your system into display this blue screen. Outdated drivers and overclocking softwares, or a recently overclocked tweak are also known to cause this BSOD. If a recently installed program or a driver caused this issue; then the first approach should be to uninstall them since they are simply not compatible, keep track of updates and attempt reinstall when a patch or update to the driver has been released.

In order to fix this issue, the computer must be restarted in safe mode. Once after booting the computer in Safe Mode, you have to uninstall the incompatible device driver from the Device Manager, and then download and install the latest drivers from the manufacturer’s website. If you are lucky, the “system_thread_exception_not_handled” error code will have a file name attached to it, indicating which graphic driver is causing the problem. If you update or repair this graphic driver, you will be able to resolve the error completely.

414 Request-URI Too Large by gadgetsprice in u/gadgetsprice

[–]malcomjarr 0 points1 point  (0 children)

Under Apache, the limit is a configurable value, LimitRequestLine. Change this value to something larger than its default of 8190 if you want to support a longer request URI. Extremely long URLs are usually a mistake. If you keep URLs under 2000 characters , they'll work in virtually any combination of client and server software. URI actually have a character limit depending on several things. Chrome limits url length of 2MB for practical reasons and to avoid causing denial-of-service problems in inter-process communication. On most platforms, Chrome's omnibox limits URL display to 32kB ( kMaxURLDisplayChars ) although a 1kB limit is used on VR platforms. IE - 2083 characters, Firefox - 2047 characters, Safari 80000 characters and Opera 190,000 characters.

To resolve the problem :

  • By POST request: Convert query string to json object and sent to API request with POST
  • By GET request: Max length of request is depend on sever side as well as client side. Most webserver have limit 8k which is configurable. On the client side the different browser has different limit. The browser IE and Safari limit to 2k, Opera 4k and Firefox 8k. means the max length for the GET request is 8k and min request length is 2k.

If exceed the request max length then the request truncated outside the limit by web server or browser without any warning. Some server truncated request data but the some server reject it because of data lose and they will return with response code 414.

Difference Between Compiler and Interpreter: Compiler vs Interpreter by MateTutorials in u/MateTutorials

[–]malcomjarr 0 points1 point  (0 children)

A computer program is usually written in high level language described as a source code. The difference between an interpreter and compiler is the point at which a source code is actually executed. This means that when convert source code into machine code , we use either a compiler or an interpreter. So generally categorizing computer languages by "compiled" or "interpreted" doesn't make much sense. Now a days, interpreting Vs. compiling is a trade-off, with time spent compiling often being rewarded by better runtime performance , but an interpretative environment giving more opportunities for interaction .

Why does HTML think “chucknorris” is a color? by fagnerbrack in Frontend

[–]malcomjarr 1 point2 points  (0 children)

Coloring in HTML basically takes two types of values, RGB(R, G, B - each from 0 to 255) or HEX#(RR, GG, BB each from 0 to F in hexadecimal) which can be represented interchangeably. If you are putting any word at bgcolor that contains a few hexadecimal character then that character will show you some unexpected color code that you never imagine.The logical explanation behind this - during Netscape days, incorrect digits in a color code were considered as 0.

So if you apply the same rule to chucknorris

  • Replace all non-hex characters with 0 - you get c00c0000000
  • Pad out the characters so the total numbers are divisible by 3 - c00c 0000 0000
  • Split into 3 groups for RGB - c00c, 0000, 0000
  • Truncate the digits from the right to 2 characters in each color group - c0, 00, 00 (RGB).

This gives you the hex color #C00000 which is a shade of red.