|
|
Dip it in a bowl of rice and put it in the microwave.
|
|
|
|
|
I havent googled this yet or done any other research, but I will toss it in here because someone may have a quick solution besides LMGTFY.
I have a password reset link which when the user click it will go to Identity server but either to a reset password page, or signal to the login page to render in set password mode. I'm following the published combined quickstart.
The question is, does a feature like that exist or do I need to consider how to craft it myself?
Ger
|
|
|
|
|
"Please make sure that the file is accessible and that it is valid assembly or COM component?".This Error message will happens.What will be do?
|
|
|
|
|
Do what the message tells you.
|
|
|
|
|
Hey,
I want to develop a web application with ASP.net and C# in Visual Studio 2019, but I found I have to use razor pages or MVC. Unfortunately, I am not familiar with both technologies or methods, so can I develop without use them in Visual Studio 2019? Thank you so much :)
|
|
|
|
|
No, it's not mandatory, you can write webapps without them.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Hi! I would like to ask for some directions. First of all - I am not a programmer. So, who am I? An ambitious, probably very unknowing person. And I would like to ask for directions.
My idea: I would like to create a very simple website to display a Player Ranking for our weekly board game group. As far as I know, I would need:
- A website
- A database (list of previous games and results) with an option of updating recent scores every week
- “A program” that will search the database for the specific player (there are around 15 gamers in the group, every week there is a different 5-player squad) and calculate their “rank” according to my directions (it has to take into account the recent 20 games of a player, apply certain score depending on the place taken, adjust weight and calculate the average)
What I can do:
- Set up a simple website on Joomla
- Prepare the algorithm in excel that calculates the player ranking
- Read and watch tutorials, spend a lot of time trying to do the stuff myself
I would like to ask for directions/opinions. What is the easiest way to accomplish the task? Which tools should I use? Which language to learn and what will be the main functions I need to learn/understand for this project? My initial idea, after exploring the topic a little, would be to set up a website, upload my game list with google docs (as my database, which will be easy to edit in the future) and use javascript to transfer it to the website and calculate results. What would you recommend?
|
|
|
|
|
If you choosed Joomla, the language you should choose is the same language used in Joomla... PHP.
Check if you're able to create a Joomla Plugin
|
|
|
|
|
One of my API controllers is hitting two databases each on its own context, and I do not want any tables updated until I am satisfied that it is safe.
With that in mind I wrapped the code in a C# transaction scope but when I reached a point where I had to fire scope.dispose, the API call crashed out with a code 500 and any previously executed inserts were not rolled back.
I have successfully applied entity framework core transaction protection to the code block so it is not an issue, but I am curious to know if anyone has tried and succeeded or failed in the same thing.
A quick look online did not show up anything.
Ger
|
|
|
|
|
Ger Hayden wrote: when I reached a point where I had to fire scope.dispose, the API call crashed out with a code 500 and any previously executed inserts were not rolled back. Dispose throws away the object. If you want to do a rollback, you call DbTransaction.Rollback Method (System.Data.Common) | Microsoft Docs[^], instead of commit.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
That pretty much sums it up. Somehow I got it into my head that if I did not have a scope.complete, then I had to have a scope.dispose to ensure that everything got cleaned up. If I had left it out I would probably have achieved the effect I wanted.
All About Transaction Scope here on CP has both a .Rollback and a .Dispose as capable of rollback in section 20. If I had read this instead of one of the shorter articles I would have seen that I had a choice.
Equally it looks like I would have got an automatic dispose (and rollback) just by throwing an exception as needed.
Good to know.
Ger
|
|
|
|
|
TransactionScope[^] doesn't have a Rollback method.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
True.
TransactionScope makes it possible for plain C# code to be transactional, where DBTransaction is as it says. The factory-method on IDbConnection will return a IDbTransaction, not a TransactionScope.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
But Ger's using TransactionScope and Entity Framework.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
This is the rollback I was referring to (from the CP article):
using (var scope = new TransactionScope())
{
Transaction.Current.Rollback();
scope.Dispose();
}
Ger
|
|
|
|
|
I think it's a limitation of EF Core:
As of version 2.1, the System.Transactions implementation in .NET Core does not include support for distributed transactions, therefore you cannot use TransactionScope or CommittableTransaction to coordinate transactions across multiple resource managers.
It's not clear whether that limitation also applies to EF Core on .NET Framework, but I suspect it would.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
EF Core's own transaction handling looks like it is doing the job in early testing.
Ger
|
|
|
|
|
Hi all. I cam having trouble finding any info on the google workbox project and the specific issue I am having with trying to publish updates.
I started on WorkBox 4 and have recently upgraded to the release candidate of version 5 to see if that helps and it did not.
My route is setup as
workbox.routing.registerRoute(
/.*/,
new workbox.strategies.StaleWhileRevalidate({
plugins: [
new workbox.broadcastUpdate.BroadcastUpdatePlugin({
channelName: 'app-update-reload'
})
]
})
);
and, my index.html is supposed to catch the broadcasts using the following code but it never gets called by workbox:
<script>
const updateChannel = new BroadcastChannel('app-update-reload');
updateChannel.addEventListener('message', async (event) => {
console.log(">>>>>>>>>>>>>>>>>> A new update is available!!!!!!!!!!");
});
</script>
So, my problem is that the message event in my index.html never gets called by workbox when there is an update. I can see that the files are being updated when the manifest changes in the browser but the broadcast never happens.
I can manually broadcast from the service worker to test that the index.html is catching the event and it works. however, no matter what I've tried I can't get the StaleWhileRevalidate strategy to broadcast the update and I am pulling my hair out.
I verified that the caching strategy is indeed working and I can't figure out why it won't broadcast.
Any help would be GREATLY appreciated. Thanks!
|
|
|
|
|
Hello!
I´m creating a WP site. In the homepage, i´m getting an error:
Quote: Warning: Invalid argument supplied for foreach() in /home2/siilverp/public_html/wp-content/themes/mts_steadyincome/page-home.php on line 108
This is the code of page-home.php:
<?php if(!empty($mts_options['mts_featured_posts']) && !empty($mts_options['mts_featured_post_cat'])) { ?>
<div class="home_article">
<?php
foreach ( $mts_options['mts_featured_post_cat'] as $cat_id ) {
$featured_query = new WP_Query( apply_filters( 'steadyincome_featured_posts_query', array(
'cat' => $cat_id,
'posts_per_page' => 1
) ) );
Now, I found that I have to type var_dump. Then, this appears:
Quote: array(84) { ["mts_logo"]=> string(0) "" ["mts_favicon"]=> string(0) "" ["mts_touch_icon"]=> string(0) "" ["mts_metro_icon"]=> string(0) "" ["mts_twitter_username"]=> string(0) "" ["mts_feedburner"]=> string(0) "" ["mts_header_code"]=> string(0) "" ["mts_analytics_code"]=> string(0) "" ["mts_ajax_search"]=> string(1) "0" ["mts_responsive"]=> string(1) "1" ["mts_rtl"]=> string(1) "0" ["mts_shop_products"]=> string(1) "9" ["mts_prefetching"]=> string(1) "0" ["mts_lazy_load"]=> string(1) "0" ["mts_lazy_load_thumbs"]=> string(1) "0" ["mts_lazy_load_content"]=> string(1) "0" ["mts_async_js"]=> string(1) "1" ["mts_remove_ver_params"]=> string(1) "1" ["mts_optimize_wc"]=> string(1) "1" ["mts_color_scheme"]=> string(7) "#3fc5a4" ["mts_layout"]=> string(8) "cslayout" ["mts_background"]=> array(10) { ["color"]=> string(7) "#ffffff" ["use"]=> string(7) "pattern" ["image_pattern"]=> string(4) "nobg" ["image_upload"]=> string(0) "" ["repeat"]=> string(6) "repeat" ["attachment"]=> string(6) "scroll" ["position"]=> string(8) "left top" ["size"]=> string(5) "cover" ["gradient"]=> array(3) { ["from"]=> string(7) "#ffffff" ["to"]=> string(7) "#000000" ["direction"]=> string(10) "horizontal" } ["parallax"]=> string(1) "0" } ["mts_custom_css"]=> string(0) "" ["mts_lightbox"]=> string(1) "0" ["mts_sticky_nav"]=> string(1) "0" ["mts_show_primary_nav"]=> string(1) "1" ["mts_show_footer_nav"]=> string(1) "1" ["mts_header_section2"]=> string(1) "1" ["mts_header_bottom_text"]=> string(17) "Download my Ebook" ["mts_header_bottom_button_text"]=> string(20) "Start Earning Today!" ["mts_header_bottom_button_link"]=> string(1) "#" ["mts_banner_show"]=> string(1) "1" ["mts_banner_image"]=> string(81) "https://seiscifrasonline.com/wp-content/themes/mts_steadyincome/images/header.jpg" ["mts_banner_title"]=> string(34) "Start Earning Steady Income Today!" ["mts_banner_texts"]=> string(156) "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi at nisl lorem, vel porttitor justo. Nunc non mauris elit. Nam enim massa commodo ut placerat." ["mts_button_text"]=> string(16) "Get Started Here" ["mts_banner_button_bg"]=> string(7) "#FF9742" ["mts_arrow_image"]=> string(80) "https://seiscifrasonline.com/wp-content/themes/mts_steadyincome/images/arrow.png" ["mts_form_image"]=> string(80) "https://seiscifrasonline.com/wp-content/themes/mts_steadyincome/images/money.png" ["mts_ribbon_show"]=> string(1) "1" ["mts_banner2_show"]=> string(1) "1" ["mts_social_title"]=> string(66) "Join Over 100,000 People in Our Online Community!" ["mts_banner_social"]=> array(5) { ["facebook"]=> array(5) { ["group_title"]=> string(8) "Facebook" ["group_sort"]=> string(1) "1" ["mts_banner_icon_title"]=> string(8) "Facebook" ["mts_banner_icon"]=> string(8) "facebook" ["mts_banner_icon_link"]=> string(1) "#" } ["twitter"]=> array(5) { ["group_title"]=> string(7) "Twitter" ["group_sort"]=> string(1) "2" ["mts_banner_icon_title"]=> string(7) "Twitter" ["mts_banner_icon"]=> string(7) "twitter" ["mts_banner_icon_link"]=> string(1) "#" } ["gplus"]=> array(5) { ["group_title"]=> string(11) "Google Plus" ["group_sort"]=> string(1) "3" ["mts_banner_icon_title"]=> string(11) "Google Plus" ["mts_banner_icon"]=> string(11) "google-plus" ["mts_banner_icon_link"]=> string(1) "#" } ["youtube"]=> array(5) { ["group_title"]=> string(7) "YouTube" ["group_sort"]=> string(1) "4" ["mts_banner_icon_title"]=> string(7) "YouTube" ["mts_banner_icon"]=> string(12) "youtube-play" ["mts_banner_icon_link"]=> string(1) "#" } ["rss"]=> array(5) { ["group_title"]=> string(3) "RSS" ["group_sort"]=> string(1) "5" ["mts_banner_icon_title"]=> string(3) "RSS" ["mts_banner_icon"]=> string(3) "rss" ["mts_banner_icon_link"]=> string(1) "#" } } ["mts_books_title"]=> string(51) "Recommended readings by John Smith" ["mts_books_image"]=> string(0) "" ["mts_more_book_link"]=> string(1) "#" ["mts_more_book_text"]=> string(10) "More Books" ["mts_featured_posts"]=> string(1) "1" ["mts_featured_post_cat"]=> string(1) "1" ["mts_featured_post_dedup"]=> string(1) "0" ["mts_first_footer"]=> string(1) "0" ["mts_first_footer_num"]=> string(1) "4" ["mts_footer_slider"]=> string(0) "" ["mts_copyrights"]=> string(73) "Theme by MyThemeShop" ["mts_home_post_layout"]=> string(8) "layout-1" ["mts_full_posts"]=> string(1) "0" ["mts_pagenavigation_type"]=> string(1) "1" ["mts_home_headline_meta_info"]=> array(2) { ["enabled"]=> array(3) { ["author"]=> string(11) "Author Name" ["date"]=> string(4) "Date" ["comment"]=> string(13) "Comment Count" } ["disabled"]=> array(0) { } } ["mts_single_post_layout"]=> string(0) "" ["mts_single_headline_meta_info"]=> array(2) { ["enabled"]=> array(4) { ["author"]=> string(11) "Author Name" ["date"]=> string(4) "Date" ["category"]=> string(10) "Categories" ["comment"]=> string(13) "Comment Count" } ["disabled"]=> array(0) { } } ["mts_breadcrumb"]=> string(1) "1" ["mts_author_comment"]=> string(1) "1" ["mts_comment_date"]=> string(1) "1" ["mts_home_social_buttons"]=> string(1) "1" ["mts_social_button_position"]=> string(3) "top" ["mts_social_buttons"]=> array(2) { ["enabled"]=> array(5) { ["facebookshare"]=> string(14) "Facebook Share" ["facebook"]=> string(13) "Facebook Like" ["twitter"]=> string(7) "Twitter" ["gplus"]=> string(11) "Google Plus" ["pinterest"]=> string(9) "Pinterest" } ["disabled"]=> array(2) { ["linkedin"]=> string(8) "LinkedIn" ["stumble"]=> string(11) "StumbleUpon" } } ["mts_posttop_adcode"]=> string(0) "" ["mts_posttop_adcode_time"]=> string(1) "0" ["mts_postend_adcode"]=> string(0) "" ["mts_postend_adcode_time"]=> string(1) "0" ["mts_custom_sidebars"]=> string(0) "" ["mts_sidebar_for_home"]=> string(0) "" ["mts_sidebar_for_post"]=> string(0) "" ["mts_sidebar_for_page"]=> string(0) "" ["mts_sidebar_for_archive"]=> string(0) "" ["mts_sidebar_for_category"]=> string(0) "" ["mts_sidebar_for_tag"]=> string(0) "" ["mts_sidebar_for_date"]=> string(0) "" ["mts_sidebar_for_author"]=> string(0) "" ["mts_sidebar_for_search"]=> string(0) "" ["mts_sidebar_for_notfound"]=> string(0) "" ["mts_sidebar_for_shop"]=> string(12) "shop-sidebar" ["mts_sidebar_for_product"]=> string(15) "product-sidebar" ["last_tab"]=> int(0) } Warning: Invalid argument supplied for foreach() in /home2/siilverp/public_html/wp-content/themes/mts_steadyincome/page-home.php on line 108
And from there, I dont know what to do. Please, note that I dont know anything about programming, and I don't know who to turn to either, so I came to this forum, I hope that you can help me.
Thanks you so much.
|
|
|
|
|
foreach ( $mts_options['mts_featured_post_cat'] as $cat_id ) {
The error message means that the value returned in $mts_options['mts_featured_post_cat'] is not valid for some reason. You need to find out what value(s) is being returned from that reference.
|
|
|
|
|
Member 14647122 wrote: Warning: Invalid argument supplied for foreach() in /home2/siilverp/public_html/wp-content/themes/mts_steadyincome/page-home.php on line 108
Did you alter the code in the code block you posted?
I checked the array and it contains the records being checked first. Not sure which is line 108 however.
["mts_featured_posts"]=> string(1) "1"
["mts_featured_post_cat"]=> string(1) "1"
I'm not a WordPress guy and haven't written a line of PHP in 4 years, but I suspect you altered the code to make it do something else and need to restore the page code from the original. Or the data in the array is corrupt or your missing something in the original setup of the pages.
WordPress was designed for non programmers to be able to setup a fast website blog. There is no need to edit code, except for the initial setup of passwords and crypt pass phrases. You just run the program and use the system to enter your blogs.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
i want to develop final project allocation and management system for computing college of my university and how can i avoid plagiarism of my project based on project documentation or project title
|
|
|
|
|
You can avoid plagiarism by submitting only your own original work, and not copying from other people. However this has nothing to do with software development.
|
|
|
|