How to fix TypeError: jQuery(…).editable is not a function in yii2 kartik editable gridview issue

You could have a problem described below

This has been copied from https://disqus.com/home/discussion/krajee/not_found_404_kartik_439/

I am having a problem with the editable column in a gridview, I was hopingfor a point in the right direction to resolve. When I add a row in a blank grid via ajax, I reload the grid using pjax. On the Pjax reload the editable column comes up as a button and has no events triggered. Firebug reports the following error.

TypeError: jQuery(…).editable is not a function.

On a page reload after adding the first row everything works as expected. Adding a second line to the grid everything works as expected. The problem only occurs when the first row is added and the grid refreshed via pjax.

This can be fixed by loading the assets manually .

Just put this on the top of your view and it will work fine.

use kartik\editable\EditableAsset;

EditableAsset::register($this);

use kartik\editable\EditablePjaxAsset;

EditablePjaxAsset::register($this);

use kartik\popover\PopoverXAsset;

PopoverXAsset::register($this);

I have also reported it kartik here where more info can be found regards this issue.

https://github.com/kartik-v/yii2-dynagrid/issues/97

Have a happy Yii2 programming!

 

How to fix League of Legends LOL game crashed / reconnecting – Collection of fixes / Fix LoL


Cheap SSD Hosting $5 a month Sign UP

First. Please read it careful if something is wrong or you got something else PLEASE SHARE it add comments and I will update the set of fixes so the other gamers can enjoy the game the same as you 🙂

How to fix crashing in League of Legends? Why I am creating it?

The answer is simple I had the same issue and I wonder what I have changed that suddenly the game started crashing every time. Welcome Bans and lost of lost games !

The game should PC proof but it seems it is not :).

In my situation everything was working fine then suddenlyt it started crashing all the time. Lags in game/ Crash PC restarted game re installation nothing helped ;).

I manage to get a list of thing what it might be and after I finish doing everything and restarting my PC at the end it fixed my problem.

If nothing below helped you report your issue to LOL

https://support.leagueoflegends.com/requests/new

0.1 Check your Internet Connection. The below is recommend by LOL

              http://n1.netalyzr.icsi.berkeley.edu

0.2 Check if you meet all the LOL criteria with regards to networking

http://demo1.speedsight.com/quality-detail.html?code=lol

1. Uninstall Pando Booster.

  • This get installed together with game at some point and once you got a game and it’s completely not needed.

2. IP Helper Disabling – Windows Service (This is for proxy, IPv6)

What the IP helper is ?

Windows description: Provides tunnel connectivity using IPv6 transition technologies (6to4, ISATAP, Port Proxy, and Teredo) and IP-HTTPS. If this service is stopped, the computer will not have the enhanced connectivity benefits that these technologies offer. Why this can be disabled: Many organizations haven’t even started testing IPv6, much less fully deployed it. As indicated in the service description, the IP Helper service is leveraged in IPv4-to-IPv6 transitions

Please follow the steps below to disable it. PC restart my be required once you finish for the changes to take affect.

  • Press the keys “Windows” and “R” simultaneously. (Windows normally between Left Alt and Left Ctrl) or click the windows start button bottom left and click the search box
  • Type “services.msc” in the field and hit enter.
  • Scroll down and find “IP Helper” in the list.
  • Right-Click on “IP Helper” and select “Properties.”
  • Change “Startup type” to “Disabled.”
  • Stop the service
  • Click “Ok.”
  • Reboot your machine.

3. Java updater in running processes can also cause the game to drop in champion loading screen disable this if possible show up in process as jusched.exe*32

  • Right click on star bar then click on Task Manager then go to Processes and if its running kill the process by right clicking and pressing End Task
  • Next step is to disable it in Java

4. Switching to the NA (North America) server, grabbing the patch and then switching back to EU. This fix is not for NA users obviously 🙂

5. Use the Logitech G19 keyboard from Logitech can cause issues and the LOL support for Logitech seems to be causing problems.

  •   to disable the support ready Step 8 and Step 13 just in case.

6. Right click your lol.exe and go into properties and run it for 640 x 480 in the settings (the little tick box) the bug splats stop happening and it connects to the game successfully, maybe turning down the resolution in the actual config file / settings may help too.

  • your computer / riot games / league of legends / RADS / solutions / lol_game_client_sln / releases / 0.0.0.236 / deploy – Right click league of legends .exe and tick the box for run in 640 x 480. doesn’t bug splat anymore.
    seems to work for a number of people, doesn’t seem to fix everyone though

7. I have a Microsoft Sidewinder X4 that is changing profile with LoL application.

  • Again disable switching in application or uninstall it.

8.Logitech hardware support

  • can now be disabled by adding “LogitechSupport=0” to the “General” section in your game.cfg Path – >C:\Riot Games\League of Legends\Config\game.cfg (This may be different depend where you have installed your game)

9.  Blocking IP 54.244.21.158 on firewall

  • This fix will block overloaded auth IP so u can connect to sever!!!
  • Also u can block it manually with ur router or firewall – 54.244.21.158
  • Open up Windows Firewall -> Advanced -> Inbound/Outbound Rule and add blocking for a specific IP 54.244.21.158

10.Disabling Logitech program/software can also fix game crashing.

  • This seems to fix the problem if you have a Logitech G35 software. Good advise. Disable it anyway 🙂

 11. ATI Catalyst and Nvidia Control panel may set up profiles which override program settings.

  • Try disabling them to ensure they are not conflicting with the game. Additionally, you could even enable a profile (if it was already disabled) to see if this fixes the problem.

12.After closing down the program “Logitech Gaming Software 8.50”

13. Renaming Logitech DLL files

  • Go to your Riot Games directory and there to: \Riot Games\League of Legends\RADS\solutions\lol_game_client_sln\release s\XXXXX-version(it’s a number)\deploy
  • There are two files: LogitechGkey.dll and LogitechLed.dll
  • Make a copy of each file, just in case. Then delete the two in the \deploy folder. Loading screen should now start without crashing.

14. Unistalled LOLreplay

15. Another reason may be for those who updated to windows 8.1. In this case, RiotRadsIO.dll will make an error.

16. http://forums.euw.leagueoflegends.com/board/showthread.php?t=1633122

17. Run Compatibility troubleshooter

  • On Windows 8 Right click on LOL launcher then click on Properties -> Compatibility and Run compatibility Troubleshooter

18. Disabled LoLRecorder.

19. Uninstall Razor Game Booster.

20.  Install latest drives for Ati and Nvidia graphics card.

21. Don’t buy any hardware 🙂

22. In very hardcore situation Windows Re installation fix it as well.

23. Add lol…..exe files to DAP

Control – Panel – System -> Advance -> Performance then Settings -> Data Execution Prevention and add lol.launcher.exe / lol.launcher.admin then restart your PC.
24. Change DNS to 8.8.8.8 and 8.8.4.4

If would like to gift my a gift to support hosting and this and future development please donate or send a in game gift to aMiPL

Many thanks!

Equipment Recommendation:

Logitech MX 518 High Performance Optical Gaming Mouse (Metal)

Razer DeathAdder Ergonomic PC Gaming Mouse

Logitech G500s Laser Gaming Mouse with Adjustable Weight Tuning

Logitech Wireless Gaming Mouse G700

Razer Naga 2014 MMO Gaming Mouse

beer raf

beer raf

How to Open CSV files using iMacro

1. Let’s make it happened.

The below is just an example which will not work for you as I am using it on bespoke system.

‘open 1 tab only type

TAB T=1
‘ignore errors. this is to allow proceed with macro even if the ip has already been removed
SET !ERRORIGNORE YES
‘wait 2 second instead of default 6s if errors occurs (to speed up the work also sometimes you need to increase because the web page might not appear in the right time and some steps will be missing)
SET !TIMEOUT_PAGE 2
‘set up datasource (this is where the CSV is)
SET !DATASOURCE bulk_reconfiguring.csv
‘ you need to specify the number of rows
SET !DATASOURCE_COLUMNS 2
‘set up loop ( this is what will be repeated from 1 row as the loop is setup as 1 next loop is basically a next row)
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
‘open a device search do some work and repeat with the next row
‘ you can see that the {{!COL1}} is build in variable from iMacro this is where your data from CSV will be.
URL GOTO=http://xx.xx.xx/ABLDevice
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:OSSMeta-filter-form ATTR=ID:edit-Value CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:OSSMeta-filter-form ATTR=ID:edit-submitonce
TAG POS=1 TYPE=A ATTR=TXT:{{!COL1}}

How to use Javascript with iMacro and find out the end of file in CSV file.

1. Once you recorded your Macro using iMacro you need to change to file to (.js) extension. This will enable you to use javascript code inside to macro to give what you need.

Example of use of JavaScript can be found here on my Github account.

https://github.com/ber5ien/imacros_scripts/blob/master/javascript/daily_calls_update_v2.js

This piece of code will be found at the finish of CSV files so you can iterate over rows in cvs files.

This is very useful with imacro otherwise you need to type in manually how many rows you got in to CSV files.

 

datasource – this is path to your datasource C://…

Hylas – this can be ignored 🙂

csv_file_name = your csv name which need to be put into Datasource directory.

function count_rows(datasource,hylas,csv_file_name)
{
 // COUNT THE NUMBERS OF ROWS IN CSV FOR LOOP
 const CRLF = “\r\n”;
 const LF = “\n”;
 
 var lines = new Array();
 
 var file_i = imns.FIO.openNode(datasource+hylas+csv_file_name);
 var text = imns.FIO.readTextFile(file_i); // Read file into one string
 
 // Determine end-of-line marker
 var eol = (text.indexOf(CRLF) == -1) ? LF : CRLF;
 
 // Split into lines (number of lines) NUMBER OF LINES IN CSV
 lines = text.split(eol);
 eol = lines.length;
 //iimDisplay(eol);
 // FINISH COUNTING EOL = NUmber of LInes
 return eol;
}

SSD Hosting for 5 dollars a month https://www.digitalocean.com/?refcode=71a52388956e

Secure Server – Hardening Tips & Tricks. Make your server more secure.

Server Hardening Tips & Tricks:

Found it on the net but let’s make it better. Post your COMMENTS!

 

Is that really all ?

Every server security conscious organization will have their own methods for maintaining adequate system and network security. Often you will find that server hardening consultants can bring your security efforts up a notch with their specialized expertise.

Some common server hardening tips & tricks include:

– Use Data Encryption for your Communications
– Avoid using insecure protocols that send your information or passwords in plain text.
– Minimize unnecessary software on your servers.
– Disable Unwanted SUID and SGID Binaries
– Keep your operating system up to date, especially security patches.
– Using security extensions is a plus.
– When using Linux, SELinux should be considered. Linux server hardening is a primary focus for the web hosting industry, however in web hosting SELinux is probably not a good option as it often causes issues when the server is used for web hosting purposes.
– User Accounts should have very strong passwords
– Change passwords on a regular basis and do not reuse them
– Lock accounts after too many login failures. Often these login failures are illegitimate attempts to gain access to your system.
– Do not permit empty passwords.
– SSH Hardening
— Change the port from default to a non standard one
— Disable direct root logins. Switch to root from a lower level account only when necessary.
– Unnecessary services should be disabled. Disable all instances of IRC – BitchX, bnc, eggdrop, generic-sniffers, guardservices, ircd, psyBNC, ptlink.
– Securing /tmp /var/tmp /dev/shm
– Hide BIND DNS Sever Version and Apache version
– Hardening sysctl.conf
– Server hardenining by installing Root Kit Hunter and ChrootKit hunter.
– Minimize open network ports to be only what is needed for your specific circumstances.
– Configure the system firewall (Iptables) or get a software installed like CSF or APF. Proper setup of a firewall itself can prevent many attacks.
– Consider also using a hardware firewall
– Separate partitions in ways that make your system more secure.
– Disable unwanted binaries
– Maintain server logs; mirror logs to a separate log server
– Install Logwatch and review logwatch emails daily. Investigate any suspicious activity on your server.
– Use brute force and intrusion detection systems
– Install Linux Socket Monitor – Detects/alerts when new sockets are created on your system, often revealing hacker activity
– Install Mod_security as Webserver Hardening
– Hardening the Php installation
– Limit user accounts to accessing only what they need. Increased access should only be on an as-needed basis.
– Maintain proper backups
– Don’t forget about physical server security

yum install error File “/usr/bin/yum”, line 30 except KeyboardInterrupt on Cent OS Ubuntu Linux Mint Redhat

This is a common problem if you updated your python distribution to python 3. Normally installed python from source.

 

Unfortunately yum still depend on the python 2

What you need to do is:

$which python

Then navigate normally to:

$cd /usr/bin/

$ll | grep python

and see what is happening:

lrwxrwxrwx    1 root root           9 Feb 22 17:10 python -> python2.6
lrwxrwxrwx    1 root root           6 Nov  9 12:04 python2 -> python
-rwxr-xr-x    1 root root        9032 Jul 10  2013 python2.6

In my case I have already fixed this problem so you can see that my symlink python -> python2.6

if it point to something else then you need to type in:

ln -s python2.6 python

You can use any other version of python you have got installed as long as it is version 2

 

Why GitHub for Windows could be better?

It’s no surprize that Github and Ruby on Rails are NOT well supported on Windows Platform.
Why? I don’t really know.

 

I have been recently uploading some of my old work to my Github account https://github.com/ber5ien  and found out that my Github on Windows app is doing very well.

I was only committing around 3500 files to it and the memory usage was about 800 Mb of Ram. Really ? What is the reason ? The size of all files is around 30mb.

 

Pretty shocking experience and I do not need to mention that my pc get was slow down as well :).

 

I started uploading it around 2hours ago and I don’t see the end of it or even the progression bar :>.

 

Few word to the owner of this app http://windows.github.com/

I know you can do better guys and Thank you for current work!

 

I have to admin that I am more Linux orientated for Dev work but there are some many people using Windows and would like the nice UI (User Interface).

Do you know something better? Let me know. Post your comments.

 

PS.

Uploading it using my bash line would be some much easier 🙂