• Got a Tipila, google, windows live or facebook account ?

Welcome to tipila...

A place to organize & share your programming knowledge...

Tipila is a site for programmers to organize code snippets & how-to's found on the web as Tips. So you can find them easily when needed again.

A Tip is an exact, to the point, instruction of how to do a programming task. No-more no-less.

No more scrolling through long posts and you won't forget how a problem was solved when you need to do it again...

It's totally free.

Newest tips
1
votes
Symbol Matches . (dot) Any single character \d Any single digit [A-Z] Any character between A and Z (uppercase) [a-z] Any character between a and z (lowercase) [A-Za-z] Any character between a and z (case-insensitive) One or more of the previous expression (e.g., \d+ matches one or more digits) [^/]+ One or more charac ...
0
votes
Iam afraid that this calculator don't have any modulo function. However there is quite simple way how to count modulo using display mode ab/c (instead of traditional d/c). How to switch display mode to ab/c: go to settings (Shift + mode) press arrow down (to view more settings) select "ab/c" (number 1). Then do your ca ...
0
votes
20 TOP SONGS In the end Numb 3.What Ive Done 4.New divide 5.iridicent one step closer faint in pieces waiting for the end bleed it out The catalyst lying from you papercut crawling Breaking the habit Leave out all the rest 17.somewhere i blong given up shadow of the day 20 . blackbirds
0
votes
We've covered: The CSS box model Display values, including block, inline-block, inline, and none Margins, borders, and padding Positioning elements with float Giving elements absolute, relative, and fixed positioning
1
votes
db = MySQLdb.connect(user="yourUser",passwd="1337",db="awesomeDB") cursor = db.cursor() resultSet = "SELECT time FROM tableX" cursor.execute(resultSet) for row in cursor #do something here, maybe add to an array if you want arrayList.append(row)
0
votes
Actually under the settings.py, I set HOST to "127.0.0.1" and PORT to 3306, filled out the rest of DATABASE portion and it worked!
2
votes
Discover list comprehensions Discover generators Incorporate map, reduce, filter, iter, range, xrange often into your code Discover Decorators Write recursive functions, a lot Discover itertools and functools Read Real World Haskell (read free online) Rewrite all your old Python code with tons of higher order functions ...
1
votes
Create a temp bitmap from the original and use it instead Bitmap bm = new (Bitmap)Image.FromFile("YourFileName.gif"); Bitmap tmp = new Bitmap(bm.Width,bm.Height); Graphics g = Graphics.FromImage(tmp); More info http://stackoverflow.com/questions/17313285/graphics-on-indexed-image
1
votes
Make sure to specify the type of the file in the save call !!! string originalPath = GetOriginalPath(path); using (Image srcImage = Image.FromFile(originalPath)) { using (Bitmap newBitmap = new Bitmap(w, h)) { using (Graphics gr = Graphics.FromImage(newBitmap)) { gr.SmoothingMode = SmoothingMode.HighQuality; gr.Interpo ...
0
votes
restoring usb drive Open a Command Prompt. Type diskpart. When DISKPART> loads, type list disk. Locate the USB disk number and type select disk #, # being the number of the USB disk. Type clean, this will remove all volumes on the current in-focus disk by zeroing sectors. As such any files you have on their will also b ...

Looking for more tips ? browse all tips here...

Login to Tipila