Bb6xt's Posts
Nairaland Forum › Bb6xt's Profile › Bb6xt's Posts
What good will it serve if GMB declares that he won't islamize Nigeria? After all, politicians break their words every time. What we should strive for is strengthening of the democratic institutions responsible for acting as checks for the misuse of power such as the upper and lower houses of assembly and the courts. |
Matthew 6v32b |
Please if you have received the email for Abuja kindly share the venue here. Thanks. |
@asalimpo: This topic was not intended as an introduction to Haskell or functional programming in general. I was only looking to find other Haskell enthusiasts like myself and surely anyone in this category would already be familiar with the meaning of functional programming. However, if I could spark your interest enough to make you Google the term then I'd say I have done quite well in the former as well as the latter. |
My Favorite Haskell Libraries: JSON Parsing: Aeson Web framework: scotty, yesod DBAPI: mysql-simple/postgresql-simple, HaSQL ORM: persistent, persistent-esqueleto Html Templating: blaze-html, shakespearean, heist etc... |
Hi peeps, I have been burning my brains learning this new language and I was wondering if there is anyone here doing the same. I would love to share war stories on how the journey has been so far. For those who are not familiar with Haskell, Haskell is a pure functional language that is lazy by default and supports pattern matching and has an excellent type system with type inference. It is a reference implementation for pure functional languages which was created by a committee of academics. Here are a list of resources for learning about Haskell: www.haskell.org http://learnyouahaskell.com/ http://book.realworldhaskell.org/read/ https://www.fpcomplete.com/school PS: If you love abstract algebra you will definitely love Haskell as it is based on math. Let me give you a peak of some mathematical concepts that you find in Haskell: Category Theory, Functors, Monoids, Monads/Kleisli Tripples, Applicatives, Semigroups, Catamorphisms etc. |
As I said in my earlier post I don't use the modem driver provided I simply add a new connection manually. This has always worked for me (I use Ubuntu). I am not sure if it is the same procedure to add a network on Debian but on Ubuntu you just click on the network icon in the notification tray and select "Edit Connections" then you click on add and select "Mobile Broadband" as the connection type. You should do this while the modem is plugged into your laptop. The modem will be auto detected and the rest is straight forward. But make sure you choose the right glo plan (i.e 3G if you use a data plan). If the above doesn't work and you'll like to use the bundled driver/installer I will recommend you use the one that comes with an MTN modem of the same type. I noticed this once when I had problems connecting using the glo driver but could connect seamlessly with the MTN driver and my glo dongle. PS: I haven't used a dongle in a while. These days I just use my Moto G phone as a wireless hotspot and I haven't had any problems. I even gave both my MTN and Glo dongles to friends. |
Believe me if it runs on Ubuntu it will run on Debian (Ubuntu is based on Debian). Have you checked /opt ? Glo and MTN use the same app except for the branding, I once installed the app and it was installed in /opt. In the installation folder you will find an uninstaller which you may use to uninstall it. Alternatively you may just delete the folder. To remove the icon in your menu just look for the .desktop file in $HOME/.local/share/applications or /usr/share/applications and delete it. Finally, when I installed the app it modified /etc/sudoers and disabled password prompt for sudo operations opening the machine wide to malicious attacks, this is a complete no-no for a *nix application so I strongly advice against using it in the first place. However, my experience (*buntu, elementaryOS) has been that the modem just works without installing any third-party software. |
I have observed on this forum that many commentators are wont to invoke religion in replying posts even when the context of such post is not particularly religious. It is also common to find those who point this out being vilified and called all sort of names. This issue has become so endemic that even our<b> commander in chief </b>claims helplessness in solving problems that he was elected to solve and calls for prayers as a way forward. My question is, do we lack the intellectual capacity to carry out intelligent discussions based on facts only without calling up religious sentiments (or any sentiment at all)? |
NPComplete:Same here |
justbazick:I received an invitation email on 29th of sept. Also received 2 additional emails on Tue, the first was a notification of change of time for the test due to monthly sanitation while the second is a fresh iv with the new time of test. I was also called on the same Tue to confirm that I got the 2 emails. |
Production servers are a rather sensitive thing to allow just anyone to manage and this has nothing to do with your skill or lack of it. In most IT shops even the developers are rarely given complete access. As for configuring desktop environments for end users it is mostly Windows at the moment. Do not be discouraged though as there's always someone willing to take some free labor. I wish you luck in finding a suitable opening. |
Rawani: Anyone remember America's desire to site a command centre in Nigeria? CIA 2015 prediction and how it was condemned by all? What a brilliant co-incidence that we are now glad to invite them to launch air strikes on our land from Niger. For all we know Obama might end up being our Jega for 2015. Let's keep these issues in mind while we pray for the annihilation of the stinking jihadists.I was reading this post as a guest but had to login just to like your comment. Nigeria may have had its problems but it always seemed rather suspicious to me that just after US prediction our problems suddenly grew out of proportion. If you look back to the kind of influence Nigeria wielded in Africa, to the extent of leading peace keeping missions to other African nations even without funding from the UN you will understand why America would want to weaken us. Besides it would not be the first time she tried to subjugate another nation for her self interest, take South America for example. Most Nigerians of southern extraction especially my Christian brothers/sisters have this romantic fantasy of America being a holy loving big brother rather than the conniving, plundering bully they really are. Well, if you must know am from the middle belt and a Christian, I have nothing against Americans as a people but I take strong exception to there national politics in relation to other nations. |
dhtml18: Please o, if anyone has found the solution, it will be nice to post it here so that we can all learn. By the way, i just created a php extension with microsoft c++ 6.0 i called it php_hello.dll and it just shows hello world, i am interested in discussing with anyone else knowlegeable in this area. But not on this thread please. DLLs are rather tough areas sometimes.The recommended way to connect your PyQt/Qt application to a database is to use Qt's built-in drivers which is encapsulated in the QtSql module. The built-in drivers support MYQSL, PostgreSQL, MSSQL, Oracle and ODBC. This way you eliminate the external dependency on psycopg2. Packages such as psycopg2 and python-mysql depend on shared objects/DLLs provided by installing the actual database on the machine and may break if your app is deployed on a machine without does extensions installed. Please take a look at QtSql module and you'll see that you really don't need psycopg2. Qt is a very rich framework that has everything built-in. Once when I wrote a Qt app that required consuming an API I used ulrlib/requests for calling the API and python's native threading module but discovered that python threading doesn't play well with Qt so I used QRunnable for threading and QtNetwork and was really impressed. My recommendation is to use Qt components where available as it makes packaging quite a breeze. Personally I found pyinstaller very good for packaging PyQt apps, cx_freeze is a good second choice. |
Seun: I don't know if there are more than 3 or 4 Python programmers in Nigeria. Why Django?If you asked around you'll be surprised at how many good python programmers you'll find. Python is a great language and once you fall in love with it it is quite hard to settle on something less. I use PHP in my day job but python is the go-to language for me for my personal projects (and work projects if I can get away with it). I started out with Django but the modular (as in not a behemoth) nature of Flask has weaned me off of Django. |
. |
I am a very lucky man, my woman has both ![]() |
It's nothing new, 95% of Nigerian girls/women do. If you doubt me ask yourself when was the last time you asked a Nigerian girl/woman out and she didn't ask you if you were going to marry her. The wording may not be exact but it all boils down to "will you marry me?". @ladies: ask yourself how many times you proposed to a man even before you accepted his wooing. Not every man that asks you out wants to marry you, even if they did it is far more interesting if he gets to that decision on his own. |
If you'll ever be interested in functional programming in the future I advice you start with a functional programming language. I will strongly recommend Haskell, it is a general purpose, pure functional language. Scala is another alternative but it is not pure as it supports both functional and imperative paradigms. Scala also has the added advantage of giving you access to most popular java libraries and frameworks. Why I recommend learning a functional language first is because it requires unlearning almost every thing you ever learned in conventional(imperative) languages hence making it somewhat more difficult for experienced programmers to learn and easier for people with a fresh mind uncorrupted by mutable state. I feel like am rambling ![]() |
dhtml: @ is used to protocol email in php e.g. mufu@nairaland.com, when is the tutorial startin nau?I don't think that is what the poster was referring to. I believe it is the use of the '@' symbol before the name of functions that return a file-like object/handle. eg. $file = @file($someFilename); according to this stackoverflow answer it is used to suppress error messages http://stackoverflow.com/questions/1032161/what-is-the-use-of-symbol-in-php |
I've been born again since I was 13. I am a virgin. I have never been with any other man since I met you. I am only 25 years old. |
I haven't used codeigniter or any of the other frameworks proposed above except laravel (just a bit) and yii (more extensively). I have come to respect the maintainers of yii because each day in my work I keep discovering new ways that yii makes my life easier, this is especially true for yii2 which is still in beta. Laravel is equally good, in particular, I love the fluent api of eloquent (the orm). I am in no position to judge any one php framework superior to the rest since I have used only a few but I'll strongly recommend Yii2 perhaps because it's api is almost second nature to me an so I find it easier. PS: Within the context of this discussion and judging strictly by his comments so far I think @mutago is a comedian who should not be taken seriously. @mutago: it's nothing personal and I'll understand if you take this the wrong way but you still have a lot to learn. I apologize in advance though. |
Why do we even care about a law on the matter in the first place if laws can be so easily repealed. Recently (about a week ago) Alan Turin was given a posthumous state pardon by UK govt for homosexuality for which he was jailed. This is possible because it is now legal by today's laws in the UK. We give it more prominence by deigning to legislate it. Am sure as hell that if any gay makes any lewd move with me the as.shole will get a scar to last a lifetime. Now that we have a law we'll soon see Western backed activists and pressure groups spring up to protest against it thereby bringing the eventual repeal even closer like in d UK where it was previously banned. I suggest for everyone that feels strongly about this 2 make it clear in unambiguous terms how they feel. A good example is, well what will u do if u caught a 40yr old man r.aping ur 8yr old daughter or niece? I didn't say anything o! |
Hot Potato: Dear Nairalanders,Just like some bank security used to harass customers for using their phone in the bank. 5yrs ago when other banks will harass u 4 making calls GTBank was actually encouraging their customers to use their phone and had no problems. There is really no connection btw using ur phone at a bank or checkpoint with security, if I were planning a hit on a checkpoint wont I perfect my strategy b4 hand than start whispering on the phone for my co-passengers to hear when already at the checkpoint? |
NEITHER!!! Disclaimer: I no read ya post, e too long. |
Trust Nigerian government to always put the cart before the horse. Fuel subsidy was removed with hope that refineries will automagically spring forth, we are still waiting. Now they want to increase tariffs/excise duty on cars to protect factories that will never materialize in their life time! So laughable. |
Philip Tosin: Are u now wiser than God who says NO to premarital sex? Do u live by the standard of men or by the standard of God?Would u rather discover on ur wedding night that the virgin u married is no virgin at all? If my girlfriend told me she isn't a virgin but she'd prefer we don't have sex till marriage I'll respect that but when some grown up woman is always singing in my ears of how she is a virgin and don't want sex even though I never asked if she were a virgin or not I'll be very suspicious. In that case I'll insist on testing the waters first. |
samffizy: Hy buddies..jst wish knwin if dis is common amongst girls cozI've experienced dis issue wif several girls nd am worried bcoz at d end of It feel quilty lyk I forced her where as it ws a mutual agreement...y is it dat aftr layin wif a girl she cries nd gt upset wif u nd she walks out of on u angrily...nd she wuld b shy lookin at ur face...perhaps at d period dey may evn brkup wif u?...I dnt undrstnd coz dis is weird..plz cn sum1 explain 2 me clearly...ladies y is it so?You forgot to mention that they'll be back for more in less than a week and from there onward its smooth sailing. |
Creatrixity: 1.Instance variables are readily accessible by all objects and methods while class variables are protected.You're WRONG! Both instance and class variables are accessible by ALL methods. Class variables are better known as static attributes, they can be accessed on the class itself rather than from instances. For example: class Car(Object): brand = 'Audi' def __init__(self, color): self.color = color c = Car('red') # c is an instance of Car while Car is a class print(c.brand) # Audi print(c.color) # red print(Car.brand) # Audi print(Car.color) # ERROR Python has no notion of variable hiding and as such does not have scope modifiers like private, protected, friend, public. However, one can implement such by implementing __getattr__ and __setattr__ in a class or by using composition. The Pythonic way is to precede the name of any variable you wish to be private with an underscore, this does not hide it but anyone using the resulting api will know he is OYO when using such variables. Variables defined in a function or method are visible only in such function or method except it is attached to self in the case of a method like self.color above. All module level variables can equally be accessed within a class without using the global keyword but global is required when accessing them in free standing functions in the module. My 2kobo |
Since each user will have a number of images to which s/he alone have access I would suggest storing uploaded images in a location inaccessible to your web server but to which your app has read/write privilege. To bind each image to a particularl user u may prefix d file name with d user's unique ID then save d file full path in db. To display d pix simply read d file as binary using data = open('filename', 'rb') return data as d response body setting d mime type appropriately. I've never used Pyramid but here is how u may do it in Django: #in views.py from django.http import HttpResponse def serve_image(filename): data = open(filename, 'rb') return HttpResponse(data, mimetype ='application/jpeg') |