Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

DaniWeb's editor now has a fullscreen mode. Click the icon in the editor toolbar (or press F11) to enter fullscreen mode. ESC and F11 will both exit fullscreen.

Reverend Jim commented: Kewl +0
Gribouillis commented: Great idea! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there,

I'm sorry you're having a problem logging into your account.

At the bottom of email you receive from us, it includes both your username as well as the email you can use to log in.

It seems the problem is that the Shark_1 account has a @yahoo.com email and the account you're currently using has a @yahoo.in account. You will want to log into your yahoo.com account.

Santanu.Das commented: lot of thanks +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Jim, I think that cereal is just demonstrating a simple example to show that found_rows() isn't working for him, and his actual use case isn't as simplistic as in the example he demonstrated. The advantage to using found_rows() versus count(*) is that count returns a count of all rows that match the SQL query. found_rows() returns a count of all rows that match the SQL query if a LIMIT were not in place.

We use it here on DaniWeb. So, for example, we have 30 posts per page. So page one the SQL query has LIMIT 0, 30, page 2 has LIMIT 30,30, etc. If I were to just do a COUNT(*) then it would always return 30 because that's a count of how many rows it's returned. However, in order to build out our page navigation, I need to know how many rows would be returned if the LIMIT clause were not in place. Therefore, I can use cereal's method to give me the total number of rows in the database so I can accurately build my page navigation.

Which leads me to my next point. Cereal, since sql_calc_found_rows only makes sense with LIMIT, perhaps it doesn't calculate itself accurately without a LIMIT in place? Try adding LIMIT to your query and see if it returns better results?

cereal commented: thank you! +14
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Pty, if the op is knowledgeable enough in web development to want to build something from scratch, and they are actively working to improve their skills, why point them in the direction of using an out of the box tool like square space? At the end of the day, it's just going to be limiting and then they'll be stuck with it.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I have no idea what Web Plus x8 is but you need to delete that line. Use Dreamweaver, or even Notepad or any plain text editor.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yes you can share the link as long as it's relevant and useful to the discussion. Just as long as it's not a blatant solicitation.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

That's incredibly strange. What page does it revert to? Since you say it's across multiple browsers and platforms, I guess we can rule out browser toolbars and extensions. It is most likely JavaScript causing this. It could be a third party ad, or some type of JavaScript plugin, etc.

What page is this? I might be able to track down the offending JavaScript for you.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Now that you've had a few days to use it, any updated thoughts?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

If you know what SEO is then why do you not know this? Strange. Either way they are bots that crawl the web to index it into search engines.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

At the risk of just parroting what everyone else said, backlinks are a crucial part of SEO, but that doesn't mean you need to pay for them or use shady techniques to acquire them. Anything other than naturally acquiring them by just having quality content that people will naturally want to link to is bad. But natural links are necessary.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yeah, this.image wouldn't work. This has no context. You're just defining a variable. Why not attach an ID to the image and then retrieve the object via jQuery?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

As cereal says, php displays a blank page for fatal errors, if logging is not set to output them to the screen.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

If you want to get into software development, I can't really help you with what employers are looking for. I live in the world of web development. Either way, I would contribute to different Github projects across a variety of popular languages. It will give you something to add to your portfolio, demonstrate community involvement, and help hone your ability to migrate across languages. Plus, by knowing a handful of langages, you'll be able to pick them up quicker and have access to more potential jobs.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I would start by contributing to some open source projects on Github. Also, reply to questions asked here on DaniWeb, on Stack Overflow, and other tech communities. I know in the past people got jobs as a result of putting on their resume that they are a top poster on DaniWeb. Participating in communities gets you real world experience, hones problem solving skills, demonstrates community involvement in your discipline, and is a resume booster.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It turned out that the load balancer was blocking non-GET/POST requests. It wasn't an Nginx problem after all!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This isn't SO. Discussion can only happen if contributors decide to contribute. Thread starters do not "own" a thread - once created, they have a life of their own.

I very much so agree with this.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hehe, z-index, not z order :-P

rproffitt commented: I'll fix that too. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Bug fixed.

rproffitt commented: Z index restored. Thanks. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Good, quality content that people will naturally want to link to. I feel like a broken record here.

happygeek commented: It's not exactly a hard message to understand either... +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I couldn't reproduce it because I always had results.

rproffitt commented: Nice. Works fine now. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Ooh, you meant it only doesn't work when on the error page. Bug on that page fixed.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Nice revamp. But can you save us a click? That is, if I click on Read on the top bar and there are no results, the top bar is gone and I have to click on <DANIWEB>. Call me lazy.

Should be fixed. The top header should not be getting in the way of links anymore either.

rproffitt commented: Thanks. Very nice. Small things matter. +0
gentlemedia commented: Great!!! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Welcome to DaniWeb, Hiiiii!! Please post your question as a new thread instead of hijacking this seven year old discussion. It seems you missed where it said "This question has already been answered. Start a new discussion instead." ... Also, please be sure to show what you've done so far and where you're stuck. We won't just do your homework for you.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yes but stack overflow refuses to help him because of their strict rules against discussions. So why can't we? It's not like he already got an amazing answer elsewhere.

For what it's worth, I apologize but I don't know VB.net, and we ask that you put some effort into your question with a description of where you're stuck and how we can help. We can't just write a whole database driven app for you. Plus you haven't provided any specifics.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Really don't like new design for thread list. No longer clear what I've read and what I've not.

Still a work in progress. I'm pushing changes live every little bit. Expect it to settle in a couple of days.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yup, and that's why I'll work on improving it. Initially I was planning on having the forums shown all the time, but then I decided to hide them when the mouse cursor isn't in the area and you are scrolled further down the page, for the purpose of additional reading space.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I was being facetious in my previous post.

cereal commented: got it ;p +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Im going to have to go against popular opinion and say that it's not always the case that practice makes perfect. I tend to only use half my brain. I'm not very artistic or musical. When I was in elementary school, I practiced the violin for hours and hours every single day, and never got the least bit better. Same with drawing. There was a will. But there was no way. Luckily math, science and programming were all my thing.

When it comes to website user experience and usability, I say the best way is just by checking out lots of other layouts and reading up about the reasons behind why elements were used and why things were done a certain way. Find similarities and patterns. When it comes to graphic design, at least in my case, you either got it or you don't.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm not understanding why you tagged this thread bad-code. Looks perfectly fine and readable to me.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

apocalypse --> zebra

Don't ask me why but it was the first thing that came to mind.

Reverend Jim commented: ? +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You can use PHP to retrieve a user's IP address. And you can use the JavaScript-based HTML5 geo API to retrieve a user's latitude and longitude (coordinates), provided they agree to it.

However, you need a third party service or library or something to actually determine a user's city, state, country, zip code, area code, etc.

I would recommend Geo2IP. That's what I've been using for years and there is a free version that lets you download their database and use it directly, albeit it's a little less accurate. However, what I like about it is that it doesn't depend on any third party API calls, so once you download it you can use it locally without limitation.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hey there!!!!!! Welcome back!! I hope you'll stick around and stay awhile. You were missed.

I have a question for you though cereal. Isn't it optimal to let password_hash() create its own strong salt?

AndreRet commented: I will most definitaly Dani, thank you for the welcome. +13
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Jkon, I do something similar. I have four javascript files:

critical for members only
critical for everyone
deferred for members only
deferred for everyone

Then, we combine, minify, and cache versions for each individual member group (each member group has different permissions). You're served the version for you based on your group (i.e. a moderator, etc.) since some groups have additional functionality that others don't. This way a regular member isn't wasting bandwidth downloading all of the moderation AJAX stuff.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You know that dissolving the programming languages oriented structure was a disaster. We can bring it back.

I already did bring back the old-style navigation menu last night.

jkon commented: I hope to double your efforts again in DaniWeb ... it can be a great community of programmers +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Maybe competitions

I would absolutely loveeeeeeeeee to do a Dazah API competition that tapped into the DaniWeb audience segment accessible from Dazah. However, I don't have the funds right now to offer any really amazing prizes.

re-instating the Geeks Lounge as a standalone forum - easily accessible (not tag driven)

So I think what I'm going to do is put links to the top categories (including Community Center) in the top navigation menu without requiring the blue button dropdown. I want to encourage off-topic stuff across the entire Community Center, including a revival of those posting games, etc.

Merchandise?

I have a lot of leftover tshirts stored away in my mom's basement, but they're mostly obscure sizes that are left, and too expensive to ship. We could do like a Cafepress store I guess, or something that involves dropshipping?

What's happened to the editorial?

Everyone can still contribute news stories / tutorials / interviews / etc. I used to pay Davey to write regular news stories, but they unfortunately became too cost prohibitive. Because news stories are time sensitive, they only lasted in Google for a short time period, which wasn't enough time to recoup more than about 2% of the amount I was paying him. Then we got evicted from Google News, and stopped getting traffic to them. Pretty much the same reason why the New York Times online, etc. are all super struggling and requiring paid subscriptions. Advertising revenue …

diafol commented: Detailed response +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What specifically are you lost with? Is it the syntax that is confusing or are you confused by concepts? Objects? Algorithms?

Do you have experience with any other programming languages or is this your second semester in the world of programming, and its more the concepts that are confusing?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've gotten these calls too and also find them entertaining and let them walk me through the process, up to the part where they connect, of course. Then I just hang up. I'm way not confrontational enough to use any choice words.

One time I got a random spammy cold call. I had some time on my hands so I decided to entertain the call and ended up in a conversation with the guy. He ended up telling me that I made his week because he just had this crappy telemarketing job and everyone constantly hung up on him and I was the nicest person he ever spoke to on the job. He said he couldn't tell me how much he appreciated it, and thanked me, and we ended up becoming Facebook friends.

rubberman commented: You just never know! :-) +14
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm really sorry, I don't know Python. But I just felt compelled to ask ... why choose to learn Python the hard way? What's wrong with the easy way?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've recently become addicted to the Walking Dead. I was sick in bed Two weeks ago and needed something on Netflix I could binge watch.

Now, as we speak, I'm posting here on DaniWeb, trying to come up with some creative stuff to write about, while I watch and try to fall asleep.

My reason for starting this thread is because, back in the day, DaniWeb's community grew out of all of the random stuff people posted. The kinda off topic stuff that got us to form a community and really get to know each other. I really think we lost a lot of that when the Geeks' Lounge forum was turned into a tag underneath the community center category. People immediately stopped participating in the word association game and all of those threads that turned into tens of thousands of posts.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Better late than never. In house search is back.

Reverend Jim commented: Awesome. +0
rproffitt commented: It's a great search, it's absolutely fantastic. It has all the best words. It's going to be great. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Now there is pave ackages like 6 links,25 links package. if two user select 6 link each day and both will have same links[url] .now i when user log in then on adversitment page he visit each link one by one and as same set of link is with another user so i want to show these links to each user such that if particular user visit it then button become disable for it

I'm so sorry, I really want to help you. However, I'm having a really difficult time understanding what you are trying to achive??

As your code stands, you're retrieving data on six links from MySQL. Then, you're looping through each one, storing its values into a bunch of variables. Then, looping through the next one, overwriting those values. You're not doing anything with them.

Then, you seem to be printing just the information about the last link into a table.

shany0786 commented: yeah,exactly what this happening +2
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm not a java developer ... However, if I follow your logic correctly, you're checking to the left side. Then, if it's not 0 itself, then you check from the right side. Well, if it's not a 0 itself, then the closest we can be to it is 1. Therefore, if it's already a 1 from the left side, there should be no need to then check the right side because it can't be anything better.

In fact, taking that a step further, you first count from the left, then you count from the right. Then, you figure out which one is lowest. Well, I think instead maybe you should be counting from the left, as you are, and then store that number. Then, count from the right only up to the number we counted from the left. Once we hit it, we know that the left is closest, and we can just break.

This saves us having to continue looping on the right when it's clear the answer is already the left's result. Plus, we can get rid of the expensive Math.min() function.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The homepage activity stream should be fixed now.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Umm ... what about it would you like to know? It's obviously a very broad topic and the way you use it is very much geared towards each individual use case.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Haha. Glad you got it solved so quickly!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've certainly never heard of it, but I've barely touched anything beyond PHP since starting DaniWeb. That being said, if it interests you, then give it a whirl and see what you think. If it's enjoyable to write in, then delve further. As far as the job market ... I'm not so sure there's a need for half the languages that are out there nowadays, but who am I to say ;)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've changed our search functionality to be controlled in-house again and no longer use the Google search API. Let me know your thoughts.

cereal commented: great, thank you! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Keep in mind, my primary objective right now is to find a way to reinvent DaniWeb for 2017.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It's not going to get you indexed any quicker, but it will help Googlebot to have a deeper understanding of your content. It may result in breadcrumbs and other semantic data being displayed in the search results, which can increase the CTR of your links.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm excited I just discovered a way to remove unused MySQL indexes and I wanted to share it with you guys.

I'm following the tutorial here: https://www.percona.com/blog/2012/06/30/find-unused-indexes/

We happened to have already been using a Percona-fork of MySQL. It just so happens that Percona has been our database consultants for over a decade.

Either way, I've been trying to figure out how to do this for awhile now, and so I'm a bit excited and wanted to share. That, and the fact that I'm working on some backend stuff that required me to start a new article in order to test it out.