Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am a student and working term project in topic "Finding Expert System"
using database from stackoverflow (September,2009) to find the list of experts for each tag.
Please help me to justify the result from my system in these tags: "JAVA","PHP","HTML","groovy" and "XML"
Are these users appropriate to be an expert for these tags or not?
-------------------JAVA--------------------
1 Jon Skeet
2 cletus
3 Tom Hawtin
4 Gumbo
5 Greg
6 Pascal MARTIN
7 karim79
8 VonC
9 Brian Agnew
10 Paolo Bergantino
-------------------PHP--------------------
1 Jon Skeet
2 cletus
3 Gumbo
4 Greg
5 Pascal MARTIN
6 karim79
7 VonC
8 Brian Agnew
9 Paolo Bergantino
10 nickf
-------------------HTML--------------------
1 Jon Skeet
2 cletus
3 Tom Hawtin
4 Gumbo
5 Greg
6 Pascal MARTIN
7 karim79
8 VonC
9 Brian Agnew
10 Paolo Bergantino
-------------------groovy--------------------
1 Jon Skeet
2 cletus
3 Tom Hawtin
4 VonC
5 duffymo
6 Michael Borgwardt
7 dfa
8 mmyers
9 Robert Harvey
10 coobird
-------------------XML--------------------
1 Jon Skeet
2 cletus
3 Tom Hawtin
4 Gumbo
5 Greg
6 Pascal MARTIN
7 karim79
8 VonC
9 Brian Agnew
10 Paolo Bergantino
It looks like you've just pulled the top reputed members who have posted in each tag. Perhaps a better way to do it would be look at the amount of reputation gained in a tag by each member.
In the same way the tag badges are awarded. The results might still end up similar simply because the top ten users have so much more reputation than anyone else, but it might be a more accurate listing.
(Answering on the grounds that hopefully it'll be moved to Meta soon.)
It would be somewhat reasonable to classify me as an expert in Java. Groovy is more debatable - I'm a contributor to Groovy in Action, but don't use Groovy regularly. I'm reasonable on XML handling in .NET but I wouldn't say I'm an expert. Calling me an expert in PHP and HTML is laughable I'm afraid.
Related
This question already has answers here:
What's a Rails plugin, or Ruby gem, to automatically fix English grammar?
(3 answers)
Closed 6 years ago.
Is there any ruby method to convert string into sentence.
Like this is a sentence to This is a sentence.
or
i m happy to I'm happy
a="this is a sentence"
puts a.capitalize
output
This is a sentence
I found gingerice gem that might apt for my question.
BTW thank you all for having time for me.
Its working as expected for me.
Regards,
Sreeraj
This question already has answers here:
What is the standard (or best supported) big number (arbitrary precision) library for Lua?
(6 answers)
Closed 8 years ago.
As an example, I want to convert:
1j16qd5g0lc
To:
5589146303201280
But currently ‘tonumber’ converts it to:
5.5891463032013e+15
I understand that there is a bit.tonumber function that might work better but that function is not available to me. Could someone implement what I need easily? I am not too familiar Lua.
Thank you! :)
Try print(string.format("%.0f",tonumber("1j16qd5g0lc",36))).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am trying to figure out a regex for full name that matches the following conditions:
no number or symbol within this range: !##\$%\^&*+_=
if it is an English-like name, then:
First letter of each word is capital.
There is at least one space
It can't be all capital in one word. i.e. John McDoe can pass, John MCDOE can't.
else (other languages like Shina, Korean, Jap), all pass.
Should Pass:
Ms. Jan Levinson-Gould
Dr. Martin Luther King, Jr.
Brett D'Arras-d'Haudracey
Brüno
John Doe
John McDoe
Mary-Jo Jane Sally Smith
阿阿阿
阿阿 阿阿
Should Fail:
Fatty Mc.Error$
FA!L
#arold Newm#n
N4m3 w1th Numb3r5
john doe
JOHN DOE
John MCDOE
UPDATE
I know we can't get it 100% right. But I am trying to learn from Quora's real full name system. They freak out some people who have put in ridiculous names and increase the likelihood of people giving the real full name at the second time.
Something like this perhaps, will match any number of words:
string.split(/ +/).detect{|s| not (s[0].upcase == s[0] && s[1..-1].downcase == s[1..-1]) }
This solution depends on String#upcase and String#downcase to be able to do their stuff with international characters.
On second thought, any solution to this problem will have real-world drawbacks that are result of funny user input
EDIT, lol upvote #HamZa for http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm looking for an [Pascal/Delphi] algorithm that can solve a 4 or 5 parameter logistics equation. I've been searching the web for quite a while now and have not been successful in finding an algorithm that works.
For example, 4 parameter logstics;
Y = (A-D)/(1+(x/C)^B)+D
Given a set of coordinates (x,y) I'd need to determine A, B, C, D.
(A = max, B = slope, C = inflection point, D = min)
Any help in the right direction? :(
You can use non-linear curve fitting library, e.g. using Levenberg-Marquardt algorithm.
I've already used this C open source library, very easy to interface with Delphi (after compilation with BC++ compiler).
This code is based on standard lmfit well-known implementation of the algorithm, and perfectly resolve 4PL or 5PL equations. I've used this library in high-value biological software, including full validation using NIST reference material. I can not include the Delphi code here (this is copyrighted) but the C source code is ready to be downloaded above, and easy to work with (just one .obj file to include - or make a pure Delphi conversion).
You have several paid libraries around, but I did not find anything better, faster, or more accurate than lmfit.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
The community reviewed whether to reopen this question 6 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I'm trying to display a caret (^) in math mode in LaTeX to represent the exclusive or operation implemented in the "C languages". By default, ^ is for creating a superscript in math mode. The closest I can seem to get is by using \wedge, which isn't the same.
You might want to use the common symbol for exclusive or instead, \oplus (but give it a proper name with something like \newcommand\XOR{\oplus}).
The caret is a bit too small to be noticeable as a binary operator. However, if you do insist using a caret instead, use this:
\newcommand\XOR{\mathbin{\char`\^}}
$x \XOR y$
The \mathbin puts the right spacing around the symbol for a binary operator, and the \char ensures that the glyph is obtained from the roman font.
Use the wedge symbol as a superscript. It has the perfect size.
Something like this:
$ ^\wedge $
How about
\^{}
or
\verb|^|
?
Use \textasciicircum in text mode. If you are in math mode, you need to use something like $\mbox{\textasciicircum}$.
This is what I did:
$2\hat{\text{ }}3$
Within math mode, you can use:
$7 \^{ } 3 = 4$
to do this, as shown from the online LaTeX renderer here.
\^ is an accent character that applies to other characters, \^{4} gives a 4 with a carat on its head. It takes up no horizontal space. If you write $7 \^{} 3 = 4$ you get a 73 with a mark smashed onto both the 7 and the 3. What you need then is to fill out the space a little bit. Through trial and error and a nice application called LatexIt, I found this sequence to work beautifully:
\hspace{1.5} \^{} \hspace{1.5}
This gives a 3 unit width with the carat centered in it. It looks nice.
It is a pointy carat though, and \verb|^| gives a more flattened one that looks more like a monotype font frequently used in programming languages.