Until recently, everything worked, then the website has had the great idea to up the font and therefore part of my program doesn't work now. But let's get to the gist of the problem, I use a code to download the values of a table football scores that are constantly updated.
The code works fine, the only bug currently is in the way the value is captured by my regex.
Especially if the team has a table name like: "Manchester" then the values are downloaded properly, and if it is abbreviated from the site as: "Manchester Uni ...." then the bug appears.
I capture the team name using this code:
.Name = Remove_Tags(Regex.Match(Content, "<td class=""text team large-link"">(.+?)</td>").Groups(1).ToString)
Site link example: itDOTsoccerwayDOTcom
Image Example: http://www.mediafire.com/convkey/d022/ho877h9ahbo6bffzg.jpg
Complete class project: http://pastebin.com/kGxCXyWQ
to be precise, my code works on the table "Classifica" because the name "Manchester United" is full, while on other tables as "Tabelle larghe" values are not captured as the team's name is abbreviated from the site. I ask for help to you to fix this bug, my clients complain to me and I have to find an efficient solution as soon as possible. Sorry if I haven't insert the image here but I doesn't have the necessary reputation.
Related
Im trying to change the content of the notification email sent after a test case has been updated to better clarify what has been changed. As it is, the content is hard to read.
Went through the link below to configure the other notification content:
http://kiwitcms.org/blog/atodorov/2018/08/06/how-to-override-templates-for-kiwi-tcms/
The content of the notification email:
Updated on Tue Aug 20 15:47:18 2019
Updated by Admin
--- notes
+++ notes
## -1 +1 ##
-TestTest
+TestTest123123
--- text
+++ text
## -10,7 +10,7 ##
3. item
*Expected results*:
-
+Test
1. item
2. item
3. item
I managed to replicate the example (from the link) for post_case_delete, post_run_save, and user_registered but the dir(tcms/templates/email/) lacks one for test case updates.
EDIT: It seems that adding dir and txt files for the others will undo the changes made to confirm_registration.
Is there a way to amend how the content is shown in the notification email?
Im trying to change the content of the notification email sent after a test case has been updated to better clarify what has been changed.
The link you've posted shows how to override templates (HTML, email, any kind of templates). However what context (e.g. which variables) get passed down to the template is up to the backend functions rendering that particular template.
As it is, the content is hard to read.
We thought diff is a pretty universal format but if you have other suggestions the best way is to start with opening an issue with examples, maybe a POC pull request.
In this particular example change history is automatically generated so any change will likely affect everything which deals with history but we need to see examples to comment further.
EDIT: It seems that adding dir and txt files for the others will undo the changes made to confirm_registration.
This is unrelated to the original question. Again I will have to see what exactly you are doing to tell you if/where the mistake is. The template engine in Django is trying to use the first template with a given name it finds. The search directory path tells it where to look for these templates. If you are somehow obscuring the files from the blog post then the application will not be able to find them hence you are not seeing the overriden changes you expect to.
Also follow https://github.com/kiwitcms/Kiwi/issues/1076 (not directly related but in the same domain space).
We have restore site from dev machine to staging. We have list in our site with people picker which is working fine on dev, but on staging it is showing message "Sorry, we're having trouble reaching the server.".
I have try to create one more people picker column in list(Stag), but new column also giving same error.
If i create new list on new column to other list(stag), it is working fine.
Can any one please help me in that.
We are facing this issue due to SP.js file is available on NewForm.aspx page with other js files.
There is some discrepancy while loading the page and error occurs. It is working for us when we removed the reference of SP.js file.
This worked for me
https://social.technet.microsoft.com/wiki/contents/articles/36583.sharepoint-2013-people-picker-error-sorry-were-having-trouble-reaching-the-server.aspx
$webApp = Get-SPWebApplication https://<web adderss>
$newdomain = new-object Microsoft.SharePoint.Administration.SPPeoplePickerSearchActiveDirectoryDomain
$newdomain.DomainName ='<Domain Name like domain.com>';
$newdomain.ShortDomainName ='<net bios name (optional)>';
$newdomain.LoginName ='domain\Farm Account'
$newdomain.IsForest='false'
$webapp.PeoplePickerSettings.SearchActiveDirectoryDomains.Add($newdomain)
$webapp.update()
To verify
$webapp.PeoplePickerSettings.SearchActiveDirectoryDomains
Thanks for everyone in advance.
I encountered a problem when using Scrapy on Python 2.7.
The webpage I tried to crawl is a discussion board for Chinese stock market.
When I tried to get the first number "42177" just under the banner of this page (the number you see on that webpage may not be the number you see in the picture shown here, because it represents the number of times this article has been read and is updated realtime...), I always get an empty content. I am aware that this might be the dynamic content issue, but yet don't have a clue how to crawl it properly.
The code I used is:
item["read"] = info.xpath("div[#id='zwmbti']/div[#id='zwmbtilr']/span[#class='tc1']/text()").extract()
I think the xpath is set correctly and I have checked the return value of this response and it indeed told me that there is nothing under this directory. Results shown here:'read': [u'<div id="zwmbtilr"></div>']
If it has something, there should be something between <div id="zwmbtilr"> and </div>.
Really appreciated if you guys share any thoughts on this!
I just opened your link in Firefox with NoScript enabled. There nothing inside the <div #id='zwmbtilr'></div>. If I enable the javascripts, I can see the content you want. So, as you already new, it is a dynamic content issue.
Your first option is try to identify the request generated by javascript. If you can do that, you can send the same request from scrapy. If you can't do it, the next option is usually to use some package with javascript/browser emulation or someting like that. Something like ScrapyJS or Scrapy + Selenium.
What I use:
- Joomla 2.5
- gantry framework
Need:
I must place in my homepage a slideshow module inside the mainbody as a featured article.
What I did:
Installed a slideshow module and placed temporary inside gantry's maintop-a position to see if it worked (it did), then moved in a non-previously-exsisting 'slideshow' position.
Created a new article, with this content: {loadposition slideshow} and set it to featured state.
Result:
the article was published correctly but the introtext char limit trimmed the actual module code to 100 chars making it useless.
What I already tried to fix the issue:
Modified my slideshow article from database adding the loadmodule code in the fulltext field (which was originally empty),
then modified components/com_content/view/featured/tmpl/default_item.php replacing echo $this->item->introtext; with an if to identify my slideshow article id then query the database to find the fulltext field and echo it. this thingy works but the loadmodule function isn't, so it's displayed as simple HTML. I deduce that introtext is treated differently than fulltext since what's inside the brackets is interpreted as code only when echoed as introtext, and I miss that layer.
Modified modules/mod_articles_category/helper.php to break the 100 introtext_limit, sadly finding that's not called for my featured articles (added dump($item, 'some name') which returns only the articles that are inside my news sidebar, even if all my featured articles including slideshow are categorized)
tried a million different combinations of the above (i.e.:{loadmodule slideshow}{module [myslideshow_article_id]} <- a module loader plugin i tried, ...) which are too long to put here.
Searched the whole project folder for files containing 'introtext' inside their code, finding alot, but nothing that actually trims it (except helper.php of course)
Searched the Joomla API
Googled for everything that came into my mind finding no working solutions.
Came Here :)
Thanks
If you want to show a module inside an artice, you can use an component to show them there.
In my experience, this works on normal and featured articles, so this might work for you:
http://www.nonumber.nl/extensions/modulesanywhere
I hope this was helpfull, since this is my first answer here.
Kind Regards,
McBurgerKong
I recent installed an OpenCart on server. I am facing an error (decimal_point) on all prices. Like up where cart shows (0 item(s) - $0decimal_point00) and bottom where product price is shown. I am new to OpenCart.
How can I solve this problem?
today I've solved this problem.
the
$_['decimal_point']= '.';
is displayed in
catalog/language/language_name/language_name.php
and
admin/language/language_name/language_name.php
but you should copy this line to
catalog/language/language_name/product/product.php
and everything will be ok
PS: language_name should be renamed to a correct name because at first I mistaken with french language pack and rename the folder to french but after I change it to frenc my store worked properly
Good Luck
Add the line
$_['decimal_point']= '.';
in catalog/language/language_name/common/cart.php
I solved this by updating language pack to latest version. It solve it completely.
So the reason is somewhere in language pack.
I went into admin --> Home/Languages and changed the directory value to match what was on the server in a case sensitive way.
On Windows it was working since it is case insensitive and Italian was with capital letter but when uploaded on Linux the case sensitiveness kicked in and this was shoung also strange timestamps.
I had this same problem and I solved it in a very simple and silly way, after trying everything I found on each page about it.
I was showing "decimal_point" in the prices, because the language I configured it as es-cr.php, but the file in Spanish is called es-es.php, by not agreeing, I gave that error, so I just changed the name to es-cr.php and everything works correctly.
I know this is an old thread, but if someone comes across it, the solution is to make sure you have the file [language_name]-[country].php in the following folders:
If the issue is in the admin side, the folder is: admin/language/[language_name]-[language_name] // ex.: for english, the folder is admin/language/en-gb, the filename is en-gb.php.
If the issue is in the store front, the folder is: catalog/language/[language_name]-[language_name] // ex.: for english, the folder is catalog/language/en-gb, the filename is en-gb.php.