- save(String) - Method in class ca.ualberta.CMPUT301W15T06.ClaimListManager
-
This method will save the User using a OutputStreamWriter
.
- saveLocal(User) - Method in class ca.ualberta.CMPUT301W15T06.ClaimListManager
-
This method will save the changes of the program locally.
- saveUserListLocal() - Method in class ca.ualberta.CMPUT301W15T06.ClaimListManager
-
Save the list of user locally by calling AppSingleton
class.
- saveUsers(ArrayList<User>) - Method in class ca.ualberta.CMPUT301W15T06.ClaimListManager
-
Save all the users to a ArrayList and syncs it by calling setNeedSynSimple()
- SeeNameForApprover - Static variable in class ca.ualberta.CMPUT301W15T06.R.id
-
- serialize(T, Type, JsonSerializationContext) - Method in class ca.ualberta.CMPUT301W15T06.GsonAdapter
-
- set_home_location - Static variable in class ca.ualberta.CMPUT301W15T06.R.id
-
- set_id(String) - Method in class ca.ualberta.CMPUT301W15T06.Hit
-
- set_index(String) - Method in class ca.ualberta.CMPUT301W15T06.Hit
-
- set_type(String) - Method in class ca.ualberta.CMPUT301W15T06.Hit
-
- set_version(String) - Method in class ca.ualberta.CMPUT301W15T06.Hit
-
- setAmount(Double) - Method in class ca.ualberta.CMPUT301W15T06.Item
-
Set a new amount of the item.
- setAmount(Double) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableItem
-
Set a new amount of the item.
- setAmount(Double) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableItem
-
Set a new amount of the item.
- setBeginDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.Claim
-
Set the begining date of the travel.
- setBeginDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableClaim
-
Set the beginning date of the travel.
- setBeginDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableClaim
-
Set the beginning date of the travel.
- setCategory(String) - Method in class ca.ualberta.CMPUT301W15T06.Item
-
Set a new category of the item.
- setCategory(String) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableItem
-
Set a new category of the item.
- setCategory(String) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableItem
-
Set a new category of the item.
- setcMod(boolean) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
Set a boolean variable to check if the application contains eligible model
- setCurrency(String) - Method in class ca.ualberta.CMPUT301W15T06.Item
-
Set a new currency of the item.
- setCurrency(String) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableItem
-
Set a new currency of the item.
- setCurrency(String) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableItem
-
Set a new currency of the item.
- setCurrentClaim(Claim) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
Set up a new claim along with its status.
- setCurrentDestination(Destination) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
This method will set the current destination of the claim for further use or display
- setCurrentItem(Item) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
Set up a new item.
- setCurrentUser(String) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
This method will set a user who is using the program.
- setDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.Item
-
Set a new date of the item.
- setDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableItem
-
Set a new date of the item.
- setDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableItem
-
Set a new date of the item.
- setDateEditText(EditText) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
Set up a new EditText object date.
- setDescription(String) - Method in class ca.ualberta.CMPUT301W15T06.Item
-
Set a new description of the item.
- setDescription(String) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableItem
-
Set a new description of the item.
- setDescription(String) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableItem
-
Set a new description of the item.
- setEditDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
Set up a new Date object date.
- setEndDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.Claim
-
Set the ending date of the travel.
- setEndDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableClaim
-
Set the ending date of the travel.
- setEndDate(Date) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableClaim
-
Set the ending date of the travel.
- setFilter(boolean) - Method in class ca.ualberta.CMPUT301W15T06.User
-
- setFinish(boolean) - Method in class ca.ualberta.CMPUT301W15T06.Comment
-
Set the Boolean variable finish the application.
- setFlag(boolean) - Method in class ca.ualberta.CMPUT301W15T06.Item
-
Set a new location of the destination.
- setFlag(boolean) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableItem
-
Set a new location of the destination.
- setFlag(boolean) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableItem
-
Set a new location of the destination.
- setFound(boolean) - Method in class ca.ualberta.CMPUT301W15T06.Hit
-
- setHomeLocation(MenuItem) - Method in class ca.ualberta.CMPUT301W15T06.ClaimantClaimListActivity
-
This method will ask user to set a home location by calling MapController()
.
- setHomeLocation(Location) - Method in class ca.ualberta.CMPUT301W15T06.User
-
- setLocation(Location) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
This method will set up a location for the destination in the claim.
- setLocation(Location) - Method in class ca.ualberta.CMPUT301W15T06.Destination
-
Set a new location of the destination.
- setLocation(Location) - Method in class ca.ualberta.CMPUT301W15T06.Item
-
Set a new location of the item.
- setLocation(Location) - Method in interface ca.ualberta.CMPUT301W15T06.MapController
-
Set location to the map.
- setLocation(Location) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableDestination
-
Set a new location of the destination.
- setLocation(Location) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableItem
-
Set a new location of the destination.
- setLocation(Location) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableDestination
-
Set a new location of the destination.
- setLocation(Location) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableItem
-
Set a new location of the destination.
- setMapController(MapController) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
This method will set a MapController object to control the map.
- setName(String) - Method in class ca.ualberta.CMPUT301W15T06.Destination
-
Set a new name of the destination.
- setName(String) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableDestination
-
Set a new name of the destination.
- setName(String) - Method in class ca.ualberta.CMPUT301W15T06.Tag
-
Set a name to the tag.
- setName(String) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableDestination
-
Set a new name of the destination.
- setNeedSyn(boolean) - Method in class ca.ualberta.CMPUT301W15T06.User
-
- setNeedSynList(boolean) - Method in class ca.ualberta.CMPUT301W15T06.UserList
-
- setNeedSynSimple(boolean) - Method in class ca.ualberta.CMPUT301W15T06.User
-
- setPhotoStr(String) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableReceipt
-
This method will set the photo receipt to the item.
- setPhotoStr(String) - Method in class ca.ualberta.CMPUT301W15T06.Receipt
-
This method will set the photo receipt to the item.
- setPhotoStr(String) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableReceipt
-
This method will set the photo receipt to the item.
- setReason(String) - Method in class ca.ualberta.CMPUT301W15T06.Destination
-
Set a new reason of the destination.
- setReason(String) - Method in class ca.ualberta.CMPUT301W15T06.ModifiableDestination
-
Set a new reason of the destination.
- setReason(String) - Method in class ca.ualberta.CMPUT301W15T06.UnmodifiableDestination
-
Set a new reason of the destination.
- setSource(T) - Method in class ca.ualberta.CMPUT301W15T06.Hit
-
- setStatus(String) - Method in class ca.ualberta.CMPUT301W15T06.Claim
-
Set up the status and notify all the Listener in both listeners and
modelListeners ArrayList.
- setStatusSimple(String) - Method in class ca.ualberta.CMPUT301W15T06.Claim
-
Set the status of the claim.
- setSuc(boolean) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
Set a boolean that shows if it is successfully finished the action.
- setUpApprover() - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
Set up the approver who has access to the submitted claims and approve them after review.
- setUserList() - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
This method will set a list of users who is using the program.
- setUserList(UserList) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
Set up the user list to record all the users information and co-responding claims.
- setUserList(ArrayList<String>) - Method in class ca.ualberta.CMPUT301W15T06.UserList
-
- setUserName(String) - Method in class ca.ualberta.CMPUT301W15T06.AppSingleton
-
This method will set the name of the user.
- setUserName(String) - Method in class ca.ualberta.CMPUT301W15T06.User
-
- show_home_location - Static variable in class ca.ualberta.CMPUT301W15T06.R.id
-
- showAll() - Method in class ca.ualberta.CMPUT301W15T06.ClaimantClaimListController
-
Show all the information in claim list by calling setFilter()
.
- showDatePickerDialog(View) - Method in class ca.ualberta.CMPUT301W15T06.ClaimantEditItemActivity
-
This method will display the DatePickerDialog by calling
AppSingleton
and DialogFragment
.
- showDatePickerDialogBegin(View) - Method in class ca.ualberta.CMPUT301W15T06.ClaimantEditClaimActivity
-
Create a DatePickerDialog object to help user(claimant) to enter
the starting date of the travel.
- showDatePickerDialogEnd(View) - Method in class ca.ualberta.CMPUT301W15T06.ClaimantEditClaimActivity
-
Create a DatePickerDialog object to help user(claimant) to enter
the ending date of the travel.
- showHomeLocation(MenuItem) - Method in class ca.ualberta.CMPUT301W15T06.ClaimantClaimListActivity
-
This method will display the home location on the screen.
- showLocation() - Method in class ca.ualberta.CMPUT301W15T06.ApproverClaimDetailListActivity
-
This method will display the location of the destination in the claim.
- ShowLocationActivity - Class in ca.ualberta.CMPUT301W15T06
-
This class will show the location of the item and claim.
- ShowLocationActivity() - Constructor for class ca.ualberta.CMPUT301W15T06.ShowLocationActivity
-
- startApprover(View) - Method in class ca.ualberta.CMPUT301W15T06.MainActivity
-
This method will allows user to start and enter the application
as a approver.
- startClaimant(View) - Method in class ca.ualberta.CMPUT301W15T06.MainActivity
-
This method will allows user to start and enter the application
as a claimant.
- startDateClaimantClaimDetailTextView - Static variable in class ca.ualberta.CMPUT301W15T06.R.id
-
- startDateValueClaimantClaimDetailTextView - Static variable in class ca.ualberta.CMPUT301W15T06.R.id
-
- startDateValueClaimDetailTextView - Static variable in class ca.ualberta.CMPUT301W15T06.R.id
-
- staticTextView - Static variable in class ca.ualberta.CMPUT301W15T06.R.id
-
- StatusException - Exception in ca.ualberta.CMPUT301W15T06
-
The StatusException
class is an sub-class of Exception
.
- StatusException() - Constructor for exception ca.ualberta.CMPUT301W15T06.StatusException
-
- submit - Static variable in class ca.ualberta.CMPUT301W15T06.R.id
-
- submitClaim(MenuItem) - Method in class ca.ualberta.CMPUT301W15T06.ClaimantItemListActivity
-
This method will display the submission screen and print warning message if the information is not complete.
- sumbmit() - Method in class ca.ualberta.CMPUT301W15T06.ClaimantItemListController
-
This method will submit the item along with the claim and notify all the
Listener in the listeners and modelListeners.
- sureSubmit() - Method in class ca.ualberta.CMPUT301W15T06.ClaimantItemListActivity
-
Set the claim as unchangeable after submit and print warning message if the claimant try to modify a submitted claim.
- synByUserList(UserList) - Method in class ca.ualberta.CMPUT301W15T06.ESClient
-


@app.name
Routing Capacity Parameters
Capacities are enforced by the Pathfinder routing engine using transport and commodity metadata. For more information, see the docs.
@helper.form(routes.ApplicationController.setCapacities(), 'id -> "capacitiesform") {
Routing Objective Parameters
Objective parameters are exposed as variables in the Objective Function DSL. For more information, see the docs.
@helper.form(routes.ApplicationController.setObjectives(), 'id -> "objectivesform") {
Routing Objective Function
@helper.form(routes.ApplicationController.setObjectiveFunction) {
}
The objective function is used to determine the best routes for your application. For more information on custom objective functions, see the docs.
Clusters
Pathfinder buckets all transports and commodities into clusters which must be created ahead of time using this dashboard. The top level cluster is always called "/root". For more information, see the docs.
Authentication
To integrate your app with Pathfinder, you will need to set up authentication to use the SDKs. You can either use your own backend to authenticate your users or you can use Pathfinder hosted authentication.
For more information, see the docs.
@helper.form(routes.ApplicationController.setAuthProvider(), 'id -> "authproviderform") {
The auth whitelist will be used if you select Pathfinder hosted auth as your authentication provider.
- Pathfinder hosted auth whitelist @whitelist.map { email =>


{loader} {config}
RUM Unit Test
This page throws a new error with a caught exception before the page loads
Trigger error


Sage uses a number of free and/or open source libraries, which are listed on this page.
-
Apache log4net
The ever-awesome log4net is Sage's logging library of choice.
Find out more at Apache log4net homepage.
-
AForge
"AForge.NET Framework is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence - image processing, neural networks, genetic algorithms, machine learning, robotics, etc.". Sage uses this library for inline image processing.
Find out more at AForge homepage on Google Code.
-
AjaxMin
This awesome open source minifier from Microsoft is used by Kelp, a component of Sage, to compress and minify JavaScript and CSS source code.
Find out more at AjaxMin homepage on CodePlex.
-
SharpZipLib
SharpZipLib, formerly NZipLib) is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. Sage uses this as a library of choice for zipping archives.
Find out more at SharpZipLib homepage on icharpcode.net.
-
SharpZipLib
SharpZipLib, formerly NZipLib) is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. Sage uses this as a library of choice for zipping archives.
Find out more at SharpZipLib homepage on icharpcode.net.


India Archers Denied Permission to Participate in South Asian Games
The Indian archers won't be able to compete in the upcoming South Asian Games (SAG) in Nepal.
The Indian archers won’t be able to compete in the upcoming South Asian Games (SAG) in Nepal due to the suspension of the Archery Association of India (AAI) by the sports global body.
AAI was suspended earlier this year after it failed to follow World Archery’s (WA) guidelines by appointing two parallel bodies.
According to a report in The Times of India, the decision to not allow Indian archers to compete at the SAG 2019 was taken during a meeting of the South Asian Archery Federation (SAAF) in Dhaka.
The reason cited is the Indian federation’s suspension by WA.
“Indian Archery Association has already been suspended by World Archery from participation in all international and regional tournaments,” the report quoted minutes of the SAAF meeting as saying. “The SAAF Board decided to adhere to the directive given by the World Archery in participation of archers of India in any competitions registered under World Archery. The Board has unanimously decided not to permit the archers of AAI in the forthcoming 13th South Asian Games to be held in Nepal as the members of World Archery are compelled to adhere to the guidelines.”
The suspension has wide-ranging repercussions including the fact that Indian archers of the likes of Deepika Kumar, Atanu Das among others will compete at the Asian archery championships, an Olympic qualifier, under world archery’s flag and not AAI. In addition, the medals won by the contingent will not be added as India’s but added to world archery’s tally.
Indian men’s recurve team has already booked their Tokyo 2020 berth but their women counterparts are yet to qualify.
For breaking news and live news updates, like us on Facebook or follow us on Twitter and Instagram. Read more on Sports Latest News on India.com.
Story Timeline
- 20 Nov 2019 India Archers Denied Permission to Participate in South Asian Games
- 12 Nov 2019 There Is No Respite Due To Packed Calendar, Pressure Of Olympic Qualification: Pullela Gopichand...
- 13 Oct 2019 AFI Names Neeraj Chopra, Hima Das In List of National Campers For Period Leading Up To 2020 Tokyo Olympics...
- 12 Oct 2019 National Open Athletics Championships: Shot Putter Tajinder Pal Singh Toor Breaks His Own Record...
Comments - Join the Discussion


|
TouchGFX
v4.13.0
|
The TextProvider is used in drawing basic and wildcard strings. More...
#include <touchgfx/TextProvider.hpp>
Public Member Functions | |
| TextProvider () | |
| Default constructor. More... | |
| void | initialize (const Unicode::UnicodeChar *stringFormat, va_list pArg, const uint16_t *gsubTable=0) |
| Initializes the TextProvider. More... | |
| void | initialize (const Unicode::UnicodeChar *stringFormat, const uint16_t *gsubTable=0,...) |
| Initializes the TextProvider. More... | |
| Unicode::UnicodeChar | getNextChar () |
| Gets the next character. More... | |
| Unicode::UnicodeChar | getNextLigature (TextDirection direction) |
| Gets the next ligature. More... | |
| Unicode::UnicodeChar | getNextLigature (TextDirection direction, const Font *font, const GlyphNode *&glyph) |
| Gets the next ligature. More... | |
| Unicode::UnicodeChar | getNextLigature (TextDirection direction, const Font *font, const GlyphNode *&glyph, const uint8_t *&pixelData, uint8_t &bitsPerPixel) |
| Gets the next ligature. More... | |
Static Public Attributes | |
| static const uint32_t | MAX_32BIT_INTEGER_DIGITS = 33U |
| Max number of digits used for the text representation of a 32 bit integer. | |
The TextProvider is used in drawing basic and wildcard strings. The TextProvider enables wildcard expansion of the string at the time it is written to the LCD.
It provides printf formatted text strings one character at the time, without the need for a user provided buffer to store the text string.


Dear user,
We have received a registration request using this email address. If you meant to login, please follow the Login link below. If you have forgotten your password, please follow the "Password Reset" link.
Regards,
SNOMED International.


"Everything you love about Super Mario Bros, now on the Pebble Watch!"
The application we are showing here is a port of Super Mario Bros made to work on the Pebble Watch.
Using the e-ink screen from the Watch, and the provided buttons, as a team, we have created a working port of our favourite game.
This app was created as part of the 2015 HackBU Hackathon at Binghamton University.
Three people came together, first as individuals, then as a team. We had several ideas, but settled on porting Super Mario Bros over to the Pebble Watch.
After a few hours of video games (hey, you have to test out the game before you port it), we sat down to flesh out the program and code. Drinking a few too many Monster drinks, we finally had our code working and a new UI that would interface with the watch well!
Putting finishing touches on the code, trying all the functions, and making everything perfect!
We rushed to the finish, but made it. It is now time to bring it to the world!
You can see our project on github. Releases can be found in the 'releases' folder.
Coming soon to the Pebble Store!
Visit Download PageFeel free to email us to provide some feedback on our game, give us suggestions for new games for Android, HTML5, or just say hello!


Copy and Paste the token from your browser to the API token box, then press Add.
This feature is not working yet :( .


--- layout: default ---
Showcase for three different sections that load web font families using different JavaScript libraries and polyfills to eliminate FOIT.
Each section will load a font from Google fonts service to test performance and loading times which will be informed.
Scripts and other resources are inlined in the HTML file and only the font and the script will be requested.


mysql_fetch_assoc (PHP 4 >= 4.0.3, PHP 5) mysql_fetch_assoc — 从结果集中取得一行作为关联数组 Warning 本扩展自 PHP 5.5.0 起已废弃，并在将来会被移除。应使用 MySQLi 或 PDO_MySQL 扩展 来替换之。参见 MySQL：选择 API 指南以及相关 FAQ 以获取更多信息。用以替代本函数 的有： • mysqli_fetch_assoc() • PDOStatement::fetch(PDO::FETCH_ASSOC) 说明 array mysql_fetch_assoc ( resource $result ) 返回对应结果集的关联数组，并且继续移动内部数据指针。 mysql_fetch_assoc() 和用 mysql_fetch_array() 加上第二个可选参数 MYSQL_ASSOC 完全相同。它仅仅返回关联数组 。 参数 result resource 型的结果集。此结果集来自对 mysql_query() 的调用。 返回值 返回根据从结果集取得的行生成的关联数组；如果没有更多行则返回 FALSE。 如果结果中的两个或以上的列具有相同字段名，最后一列将优先。要访问同名的其它列， 要么用 mysql_fetch_row() 来取得数字索引或给该列起个别名。参见 mysql_fetch_array () 例子中有关别名说明。 范例 Example #1 扩展的 mysql_fetch_assoc() 例子 注释 Note: 性能 必须指出一个要点： mysql_fetch_assoc() 比 mysql_fetch_row() 并不明显慢，而 且还提供了更多有用的值。 Note: 此函数返回的字段名大小写敏感。 Note: 此函数将 NULL 字段设置为 PHP NULL 值。 参见 • mysql_fetch_row() - 从结果集中取得一行作为枚举数组 • mysql_fetch_array() - 从结果集中取得一行作为关联数组，或数字数组，或二者兼 有 • mysql_data_seek() - 移动内部结果的指针 • mysql_query() - 发送一条 MySQL 查询 • mysql_error() - 返回上一个 MySQL 操作产生的文本错误信息 User Contributed Notes 15 notes =============================================================================== Fetching all the results to array with one liner: =============================================================================== function array2table: small fix to the post below that handles data returned from mysql that is either null or 0... This is a useful script for displaying MySQL results in an HTML table. function array2table($arr,$width) { $count = count($arr); if($count > 0){ reset($arr); $num = count(current($arr)); echo "
| "; echo $key." "; echo " | \n"; } echo "|
|---|---|
| "; echo $curr_field." "; echo " | \n"; next($curr_row); $col++; } while($col <= $num){ echo "\n"; $col++; } echo " |
userid: $row['uID'], orderid: $row['oID']
"; } =============================================================================== Worth pointing out that the internal row pointer is incremented once the data is collected for the current row. This means that multiple calls will iterate through the row data, so you DONT need to mysql_data_seek(..) between calls. This is noted in the mysql_fetch_row() docs, but not here!? =============================================================================== When you have to loop multiple times through the result of a query you can set the result pointer to 0 (zero) with mysql_data_seek () The advantage is that you do not have to query database twice with te same query :) So: =============================================================================== To sum up moverton at northshropshiredc dot gov dot uk and Olivier Fabre: If the query is "SELECT something1, something2, .... FROM tbl WHERE some_condition", the keys in the returned array will be 'something1', 'something2', etc. *even for those "somethings" that are not just field names*. Examples of non-fieldname "somethings" are: NULL NOW MAX(some_fieldname) I haven't tested whether this applies to table.fieldname, but I see no reason why it shouldn't (I'd suspect a typo in my code if I didn't get the expected results; I certainly have had my share of them!) I found it most convenient to check for typos by simply var_dumping the resulting row, like this: Got this row:' var_dump ($row); echo ''; ?> where $row is the result from the last call to mysql_fetch_assoc. =============================================================================== Note that the field names quoted within $row[] are case sensitive whereas many sql commands are case insensitive. =============================================================================== Please be advised that the resource result that you pass to this function can be thought of as being passed by reference because a resource is simply a pointer to a memory location. Because of this, you can not loop through a resource result twice in the same script before resetting the pointer back to the start position. For example: ---------------- ---------------- The only solution to this is to reset the pointer to make it point at the first row again before the second code segment, so now the complete code will look as follows: ---------------- ---------------- Of course you would have to do extra checks to make sure that the number of rows in the result is not 0 or else mysql_data_seek itself will return false and an error will be raised. Also please note that this applies to all functions that fetch result sets, including mysql_fetch_row, mysql_fetch_assos, and mysql_fetch_array. =============================================================================== Actually, Olivier, you're completely wrong about that, because there's a bug in your sample code. It will indeed return $row['MAX(time)'] - you have to pass the MySQL resource to mysql_fetch_assoc() and you're not doing that. This: $row = mysql_fetch_assoc($conn) ...where $conn is your DB connection, would in fact produce a result. The complete example below is taken from my own self-written content management system: $query = 'SELECT MAX(ctRevDate) FROM content group by ctPage'; $querySet = mysql_query($query, $conn); $row = mysql_fetch_assoc($querySet); print_r($row); This produces: Array ( [MAX(ctRevDate)] => 2004-01-15 ) ..on my testbed. So it doesn't in fact need an alias at all. =============================================================================== It probably without saying, but using list() in conjunction with mysql_fetch_assoc() does not work - use mysql_fetch_row() instead. =============================================================================== What if you *want* a two dimensional array? Useful for output as an HTML table, for instance. function mysql_resultTo2DAssocArray ( $result) { $i=0; $ret = array(); while ($row = mysql_fetch_assoc($result)) { foreach ($row as $key => $value) { $ret[$i][$key] = $value; } $i++; } return ($ret); } print_r(mysql_resultTo2DAssocArray(mysql_query("SELECT * FROM something"))); Array ( [0] => Array ( [symbol] => ARNA [datetime] => 2006-02-17 16:00:00 [price] => 16.83 ) [1] => Array ( [symbol] => CALP [datetime] => 2006-02-17 16:00:00 [price] => 6.54 ) [2] => Array ( [symbol] => CROX [datetime] => 2006-02-17 16:00:00 [price] => 27.4 )) =============================================================================== Thanks to to R. Bradley for the implode idea. The following fixes a few bugs and includes quote_smart functionality (and has been tested) $val1, col2=>$val2, col3=> "val3", col4=>720, col5=>834.987)); // // Sends the following query: // INSERT INTO 'tablename' (col1, col2, col3, col4, col5) values ('foobar', 495, 'val3', 720, 834.987) // global $db_link; // Find all the keys (column names) from the array $my_array $columns = array_keys($my_array); // Find all the values from the array $my_array $values = array_values($my_array); // quote_smart the values $values_number = count($values); for ($i = 0; $i < $values_number; $i++) { $value = $values[$i]; if (get_magic_quotes_gpc()) { $value = stripslashes($value); } if (!is_numeric($value)) { $value = "'" . mysql_real_escape_string( $value, $db_link) . "'"; } $values[$i] = $value; } // Compose the query $sql = "INSERT INTO $my_table "; // create comma-separated string of column names, enclosed in parentheses $sql .= "(" . implode(", ", $columns) . ")"; $sql .= " values "; // create comma-separated string of values, enclosed in parentheses $sql .= "(" . implode(", ", $values) . ")"; $result = @mysql_query ($sql) OR die ("


Welcome to More-Recipes API Documentation
Introduction
More-Recipe API contains several API end points that allows users to signup, signin, add, retrieve, edit, and delete recipe. User can also upvote or downvote a recipe, add recipe to his/her favourite or remove from his/her favourite, get recipes with most upvote in ascending order. It also offers a way to ensure that only authorized users can perform certain operations.
Development
The application was developed with
- NodeJs : for creating application server
- Express : for routing
- ReactJs : for front-end rendering
- Postgresql : for application database, used with sequelize as the ORM
Installation
Follow the steps below to setup a local development environment. First ensure you have Postgresql installed, and a version of NodeJs equal or greater than v6.8.0.
- Clone the repository from a terminal
git clone https://github.com/chykehyman/More-Recipes.git
- Move into the project directory
cd More-Recipes
- Add a
.env
file and add any preferred postgresql DB_URL. - Install project dependencies
npm install
- Start the express server
npm start
Json Web Token (JWT) for User Authentication
This application uses username & password
to authenticate users while generating a unique token. To use the token returned after successful signin or signup
:
Save the generated token to the browser local storage or session storage with a property name "jwtToken". This gives users the priviledge to certain parts and aspect of the application they have permission to.
If using Postman to test the routes, copy the token from the login or sign up response to the headers with key name
x-access-token
.
API Overview
User
| EndPoint | Functionality |
|---|---|
| POST /api/v1/users/signup | Creates a new user. |
| POST /api/v1/users/signin | Logs in a user. |
| GET /api/v1/user/profile | Retreives a logged in user's profile based on user decoded id. |
| PUT /api/v1/user/profile | Updates any logged in user's Profile except email based on the users id |
Recipe
| EndPoint | Functionality |
|---|---|
| POST /api/v1/recipes | Creates a new recipe. (available only to authenticated users) |
| GET /api/v1/recipes | Gets all recipes. (available to everyone) |
| GET /api/v1/recipes/:recipeID' | Finds a recipe by id. (available to everyone) |
| GET /api/v1/user/recipes | Gets all recipes belonging to a particular user (available only to authenticated users) |
| GET /api/v1/recipes?sort=upvotes&&order=desc | Gets all recipes with the most up vote (available only to authenticated users) |
| PUT /api/v1/recipes/:recipeID | Updates a recipe. (available only to authenticated & users who added the recipe) |
| DELETE /api/v1/recipes/:recipeID | Deletes a recipe. (available only to the users who added the recipe)' |
Favourite
| EndPoint | Functionality |
|---|---|
| POST /api/v1/recipes/:recipeID/favorites | Adds or removes a recipe to/from user's favourite recipes catalog. (available only to authenticated users) |
| GET /api/v1/user/favorites | Gets all user's favourite recipes. (available only to authenticated users) |
| DELETE /api/user/favorites/:recipeID | Delete a recipe from user's favourite recipes catalog. (available only to authenticated users) |
Voting
| EndPoint | Functionality |
|---|---|
| POST /api/v1/recipes/:recipeID/vote | Upvoting and downvoting a recipe. (available only to authenticated users) |
Reviews
| EndPoint | Functionality |
|---|---|
| POST /api/recipes/:recipeID/reviews | Post review for a recipe. (available only to authenticated users) |
Authentication
Signup User
This response handles user registration
Request
{
"fullName": "John Doe",
"username": "johndoe",
"email"<EMAIL_ADDRESS>"password": "password123",
"repassword": "password123"
}
Response
{
"status": "Success",
"message": "Successfully created account",
"user": {
"id": 1,
"username": "johndoe",
"email"<EMAIL_ADDRESS>},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmdWxsTmFtZSI6IkpvaG4gRG9lIiwidXNlcm5hbWUiOiJqb2huZG9lIiwidXNlcklkIjoxLCJpYXQiOjE1MTA2OTM5ODQsImV4cCI6MTUxMDcyMjc4NH0.V7uV9JrLsQKLXvet46CxpOK_hIDbX9FHBCgFhWAVt98"
}
Request
- Endpoint: POST:
api/v1/users/signup
- Body:
(application/x-www-form-urlencoded)
Response
- Status:
201: CREATED
- Body:
(application/json)
Signin User
This endpoint handles user login to their More-Recipes account
Request
{
"username": "johndoe",
"password": "password123"
}
Response
{
"status": "Success",
"message": "You are now logged In",
"user": {
"id": 1,
"username": "johndoe",
"email"<EMAIL_ADDRESS>},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImpvaG5kb2UiLCJ1c2VySWQiOjEsImlhdCI6MTUxNzg0OTcxMSwiZXhwIjoxNTE3ODc4NTExfQ.Pv3e0r9nKOqwHLI9KzIKA5K7PCOkJr_FLpnLnZY-4QQ"
}
Request
- Endpoint: POST:
api/v1/users/signin
- Body:
(application/x-www-form-urlencoded)
Response
- Status:
200: OK
- Body:
(application/json)
Profile
Get User Profile
This endpoint handles retrieving of logged in user profile
Response
{
"status": "Success",
"message": "User found",
"user": {
"id": 1,
"fullName": "John Doe",
"username": "johndoe",
"email"<EMAIL_ADDRESS>"profileImage": null,
"location": null,
"aboutMe": null
}
}
Request
- Endpoint: GET:
api/v1/user/profile
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
200: OK
- Body:
(application/json)
Update User Profile
This endpoint handles updating of logged in user profile
Request
{
"location": "Lagos",
"aboutMe": "I am feeling ontop of the world",
"profileImage": "profile.jpg"
}
Response
{
"status": "Success",
"message": "Successfully updated profile",
"updatedUser": {
"id": 1,
"fullName": "John Doe",
"username": "johndoe",
"email"<EMAIL_ADDRESS>"profileImage": "profile.jpg",
"location": "Lagos",
"aboutMe": "I am feeling ontop of the world"
}
}
Request
- Endpoint: PUT:
api/v1/user/profile
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
200: OK
- Body:
(application/json)
Recipes
Create a recipe
This endpoint handles creating recipes
Request
{
"title": "Sweet Cake Cup",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga.",
"recipeImage": "recipeOne.jpg"
}
Response
{
"status": "Success",
"message": "Successfully added new recipe",
"recipe": {
"viewsCount": 0,
"upvotes": 0,
"downvotes": 0,
"hasOwnerViewed": false,
"id": 1,
"title": "Sweet Cake Cup",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga.",
"recipeImage": "recipeOne.jpg",
"userId": 1,
"updatedAt": "2018-02-05T17:30:32.619Z",
"createdAt": "2018-02-05T17:30:32.619Z"
}
}
Request
- Endpoint: POST:
api/v1/recipes
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
201: Created
- Body:
(application/json)
Get a recipe
This endpoint handles retrieving a particular recipe
Response
{
"status": "Success",
"message": "Successfully retrieved recipe",
"recipe": {
"id": 1,
"title": "Sweet Cake Cup",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga.",
"recipeImage": "recipeOne.jpg",
"viewsCount": 1,
"upvotes": 0,
"downvotes": 0,
"hasOwnerViewed": true,
"userId": 1,
"createdAt": "2018-02-05T17:30:32.619Z",
"updatedAt": "2018-02-05T17:42:07.942Z",
"User": {
"fullName": "John Doe"
},
"Reviews": []
},
"isFavorited": false,
"vote": ""
}
Request
- Endpoint: GET:
api/v1/recipes/1
- Body:
(application/json)
- Requires: No authentication require. But if provided, a check is done
Response
- Status:
200: OK
- Body:
(application/json)
Get user recipes
This endpoint handles retrieving of all user recipes
Response
{
"status": "Success",
"message": "Successfully retrieved your recipe(s)",
"numberOfRecipes": 2,
"limit": 6,
"totalPages": 1,
"currentPage": 1,
"recipes": [
{
"id": 2,
"title": "Meat Pie",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga.",
"recipeImage": "recipeTwo.jpg",
"viewsCount": 0,
"upvotes": 0,
"downvotes": 0,
"hasOwnerViewed": false,
"userId": 1,
"createdAt": "2018-02-05T18:12:02.955Z",
"updatedAt": "2018-02-05T18:12:02.955Z"
},
{
"id": 1,
"title": "Sweet Cake Cup",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga.",
"recipeImage": "recipeOne.jpg",
"viewsCount": 1,
"upvotes": 0,
"downvotes": 0,
"hasOwnerViewed": true,
"userId": 1,
"createdAt": "2018-02-05T17:30:32.619Z",
"updatedAt": "2018-02-05T17:59:27.533Z"
}
]
}
Request
- Endpoint: GET:
api/v1/user/recipes
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
200: OK
- Body:
(application/json)
Get all recipes
This endpoint handles retrieving of all recipes in the application
Response
{
"status": "Success",
"message": "Successfully retrieved your recipe(s)",
"numberOfRecipes": 2,
"limit": 6,
"totalPages": 1,
"currentPage": 1,
"recipes": [
{
"id": 2,
"title": "Meat Pie",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga.",
"recipeImage": "recipeTwo.jpg",
"viewsCount": 0,
"upvotes": 0,
"downvotes": 0,
"hasOwnerViewed": false,
"userId": 1,
"createdAt": "2018-02-05T18:12:02.955Z",
"updatedAt": "2018-02-05T18:12:02.955Z"
},
{
"id": 1,
"title": "Sweet Cake Cup",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga.",
"recipeImage": "recipeOne.jpg",
"viewsCount": 1,
"upvotes": 0,
"downvotes": 0,
"hasOwnerViewed": true,
"userId": 1,
"createdAt": "2018-02-05T17:30:32.619Z",
"updatedAt": "2018-02-05T17:59:27.533Z"
}
]
}
Request
- Endpoint: GET:
api/v1/recipes
- Body:
(application/json)
- Requires: No authentication required
Response
- Status:
200: OK
- Body:
(application/json)
Update a recipe
This endpoint handles updating a recipe
Request
{
"title": "Bitter Cake Cup",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.more ingredients",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga. added more procedures",
"recipeImage": ""
}
Response
{
"status": "Success",
"message": "Successfully updated recipe",
"recipe": {
"id": 1,
"title": "Bitter Cake Cup",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.more ingredients",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga. added more procedures",
"recipeImage": "recipeOne.jpg",
"viewsCount": 1,
"upvotes": 0,
"downvotes": 0,
"hasOwnerViewed": true,
"userId": 1,
"createdAt": "2018-02-05T17:30:32.619Z",
"updatedAt": "2018-02-05T18:29:48.363Z"
}
}
Request
- Endpoint: PUT:
api/v1/recipes/1
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
200: OK
- Body:
(application/json)
Delete a recipe
This endpoint handles deleting a recipe
Response
{
"status": "Success",
"message": "Successfully delected recipe",
"recipe": {
"id": 1,
"title": "Bitter Cake Cup",
"ingredients": "maggie. gsiisy. hhsbhsh. nhsgs. gagaga.more ingredients",
"procedures": "sssddhhd. bdghdhb. hdbvhbdbjs. jsbdhdhaaga. added more procedures",
"recipeImage": "recipeOne.jpg",
"viewsCount": 1,
"upvotes": 0,
"downvotes": 0,
"hasOwnerViewed": true,
"userId": 1,
"createdAt": "2018-02-05T17:30:32.619Z",
"updatedAt": "2018-02-05T18:29:48.363Z"
}
}
Request
- Endpoint: DELETE:
api/v1/recipes/1
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
200: OK
- Body:
(application/json)
Voting
Upvote a recipe
This endpoint handles upvoting a recipe
Response
{
"status": "Success",
"message": "Thanks for upvoting",
"voteLog": {
"upvotes": 1,
"downvotes": 0
},
"userVote": "upvote"
}
Request
- Endpoint: POST:
api/v1/recipes/2/vote?vote=upvote
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
201: Created
- Body:
(application/json)
Downvote a recipe
This endpoint handles downvoting a recipe
Response
{
"status": "Success",
"message": "Thanks for downvoting",
"voteLog": {
"upvotes": 0,
"downvotes": 1
},
"userVote": "upvote"
}
Request
- Endpoint: POST:
api/v1/recipes/3/vote?vote=downvote
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
201: Created
- Body:
(application/json)
Favorite
Add favorite
This endpoint handles favoriting a recipe
Response
{
"status": "Success",
"message": "Recipe has been favorited",
"favoritedRecipe": {
"id": 1,
"userId": 2,
"recipeId": 2,
"updatedAt": "2018-02-05T19:13:06.177Z",
"createdAt": "2018-02-05T19:13:06.177Z"
}
}
Request
- Endpoint: POST:
api/v1/recipes/:recipeID/favorites
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
201: Created
- Body:
(application/json)
Get favorites
This endpoint handles retrieving of user's favorite recipe
Response
{
"status": "Success",
"message": "Successfully retrieved your favorite Recipe(s)",
"numberOfRecipes": 1,
"limit": 6,
"totalPages": 1,
"currentPage": 1,
"recipes": [
{
"id": 1,
"userId": 2,
"recipeId": 2,
"createdAt": "2018-02-05T19:13:06.177Z",
"updatedAt": "2018-02-05T19:13:06.177Z",
"Recipe": {
"id": 2,
"title": "Meat Pie",
"recipeImage": "recipeTwo.jpg",
"viewsCount": 0,
"userId": 1,
"User": {
"fullName": "John Doe"
}
}
}
]
}
Request
- Endpoint: GET:
api/v1/user/favorites
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
200: OK
- Body:
(application/json)
Delete favorite
This endpoint handles deleting a user favorited recipe
Response
{
"status": "Success",
"message": "Successfully deleted Recipe"
}
Request
- Endpoint: DELETE:
api/v1/user/favorites/:recipeID
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
200: OK
- Body:
(application/json)
Review
Post a review
This endpoint handles review posting for a recipe
Request
{
"reviewBody": "This is good. Nice job"
}
Response
{
"status": "Success",
"message": "Successfully posted review",
"postedReview": {
"id": 1,
"reviewBody": "This is good. Nice job",
"username": "johnwoe",
"profileImage": null,
"userId": 2,
"recipeId": 2,
"updatedAt": "2018-02-05T19:28:36.422Z",
"createdAt": "2018-02-05T19:28:36.422Z"
}
}
Request
- Endpoint: POST:
api/v1/recipes/:recipeID/reviews
- Body:
(application/json)
- Requires: Authentication
Response
- Status:
201: Created
- Body:
(application/json)
Errors
The More-Recipes API uses the following error codes:
| Error Code | Meaning |
|---|---|
| 400 | Bad Request -- Your request sucks. |
| 401 | Unauthorized -- Your API key is wrong. |
| 403 | Forbidden -- The kitten requested is hidden for administrators only. |
| 404 | Not Found -- The specified kitten could not be found. |
| 406 | Not Acceptable -- You requested a format that isn't json. |
| 409 | Conflicts -- Your request already exist. |
| 422 | Unprocessable entity -- Your requested format was undefined. |
| 500 | Internal Server Error -- We had a problem with our server. Try again later. |


Awesome PHP
A curated list of amazingly awesome PHP libraries, resources and shiny things.
依赖管理
Libraries for dependency and package management.
依赖关系管理附加功能
Extras related to dependency management.
- Satis - A static Composer repository generator.
- Composition - A library to check your Composer environment at runtime.
- Poser - A Composer class aliasing library.
- Version - A parsing and comparison library for semantic versioning.
- NameSpacer - A library to convert from underscores to namespaces.
- Patch Installer - A library to install patches using Composer.
- Composer Checker - A tool to validate Composer configurations.
框架
Web development frameworks.
- Symfony2 - A framework comprised of individual components.
- Zend Framework 2 - Another framework comprised of individual components.
- Laravel 4 - A simple PHP framework.
- Aura PHP - A framework of independent components.
- Phalcon - A framework implemented as a C extension.
框架扩展
Extras related to web development frameworks.
- Symfony CMF - A Content Management Framework to create custom CMS.
- Knp RAD Bundle - A Rapid Application Development (RAD) bundle for Symfony 2.
框架组建
Standalone component from web development frameworks.
微框架
Micro frameworks and routers.
- Silex - A micro framework built around Symfony2 components.
- Slim - Another simple micro framework.
- Bullet PHP - A micro framework for building REST APIs.
- Fast Route - A fast routing library.
- Pux - Another fast routing library.
微框架扩展
Extras related to micro frameworks and routers.
模板
Libraries and tools for templating and lexing.
- Twig - A comprehensive templating language.
- Twig Cache Extension - A template fragment cache library for Twig.
- Mustache - A PHP implementation of the Mustache template language.
- Phly Mustache - Another PHP implementation of the Mustache template language.
- MtHaml - A PHP implementation of the HAML template language.
- Plates - A native PHP templating library.
- Lex - A lightweight template parser.
静态网站生成器
Tools for pre-processing content to generate web pages.
- Sculpin - A tool that converts Markdown and Twig into static HTML.
- Phrozn - Another tool that converts Textile, Markdown and Twig into HTML.
HTTP
Libraries for working with HTTP and scraping websites.
- Guzzle - A comprehensive HTTP client.
- Buzz - Another HTTP client.
- Requests - A simple HTTP library.
- HTTPFul - A chainable HTTP client.
- Goutte - A simple web scraper.
- PHP VCR - A library for recording and replaying HTTP requests.
URL
Libraries for parsing URLs.
Email
Libraries for sending and parsing email.
文件
Libraries for file manipulation and MIME type detection.
- Gaufrette - A filesystem abstraction layer.
- Flysystem - Another filesystem abstraction layer.
- Canal - A library to determine internet media types.
- Apache MIME Types - A library that parses Apache MIME types.
- Ferret - A MIME detection library.
- Hoa Mime - Another MIME detection library.
- Lurker - A resource tracking library.
- PHP File Locator - A library for locating files in large projects.
- PHP FFmpeg - A wrapper for the FFmpeg video library.
- CSV - A CSV data manipulation library.
流
Libraries for working with streams.
- Streamer - A simple object-orientated stream wrapper library.
依赖注入
Libraries that implement the dependency injection design pattern.
- Pimple - A tiny dependency injection container.
- Auryn - Another dependency injection container.
- Orno Di - Another flexible dependency injection container.
- PHP DI - A dependency injection implementation using annotations.
- Acclimate - A common interface to dependency injection containers and service locators.
图像
Libraries for manipulating images.
测试
Libraries for testing codebases and generating test data.
- PHPUnit - A unit testing framework.
- DBUnit - A database testing library for PHPUnit.
- ParaTest - A parallel testing library for PHPUnit.
- PHPSpec - A design by specification unit testing library.
- Codeception - A full stack testing framework.
- Atoum - A simple testing library.
- Mockery - A mock object library for testing.
- Phake - Another mock object library for testing.
- Parody - Yet another mock object library for testing.
- Faker - A fake data generator library.
- Samsui - Another fake data generator library.
- Alice - An expressive fixture generation library.
- Behat - A behaviour driven development (BDD) testing framework.
- Pho - Another behaviour driven development testing framework.
- Mink - Web acceptance testing.
- HTTP Mock - A library for mocking HTTP requests in unit tests.
- VFS Stream - A virtual filesystem stream wrapper for testing.
- VFS - Another virtual filesystem for testing.
- Locust - A modern load test library written in Python.
持续集成
Libraries and applications for continuous integration.
- Travis CI - A continuous integration platform.
- PHPCI - An open source continuous integration platform for PHP.
- Sismo - A continuous testing server library.
文档
Libraries for generating project documentation.
- Sami - An API documentation generator.
- APIGen - Another API documentation generator.
- PHP Documentor 2 - A documentation generator.
- phpDox - A documentation generator for PHP projects (that is not limited to API documentation).
安全
Libraries for generating secure random numbers, encrypting data and scanning for vulnerabilities.
- HTML Purifier - A standards compliant HTML filter.
- RandomLib - A library for generating random numbers and strings.
- True Random - A library that generates random numbers using www.random.org.
- SecurityMultiTool - A PHP security library.
- Password Compat - A compatibility library for the new PHP 5.5 password functions.
- PHPAss - A portable password hashing framework.
- PHP Password Lib - A library for generating and validating passwords.
- Password Policy - A password policy library for PHP and JavaScript.
- Password Validator - A library for validating and upgrading password hashes.
- PHPSecLib - A pure PHP secure communications library.
- TCrypto - A simple encrypted key-value storage library.
- PHP IDS - A structured PHP security layer.
- PHP SSH - An experimental object orientated SSH wrapper library.
- IniScan - A tool that scans PHP INI files for security.
- SensioLabs Security Check - A web tool to check your Composer dependencies for security advisories.
- Zed - An integrated penetration testing tool for web applications.
代码分析
Libraries and tools for analysing, parsing and manipulation codebases.
- PHP Parser - A PHP parser written in PHP.
- PHPPHP - A PHP VM implementation in PHP.
- PHPSandbox - A PHP sandbox environment.
- Dissect - A set of tools for lexical and syntactical analysis.
- PHP Mess Detector - A library that scans code for bugs, sub-optimal code, unused parameters and more.
- PHP Code Sniffer - A library that detects PHP, CSS and JS coding standard violations.
- PHPCPD - A library that detects copied and pasted code.
- PHP Analyser - A library for analysing PHP code to find bugs and errors.
- PHP CS Fixer - A coding standard fixer library.
- PHP Manipulator - A library for analysing and modifying PHP Source Code.
- PHP Metrics - A static metric library.
- PHP Refactoring Browser - A command line utility for refactoring PHP code.
- UBench - A simple micro benchmark library.
- Athletic - An annotation based benchmark framework.
- Mondrian - A code analysis tool using Graph Theory.
- PHP Debug Bar - A debugging toolbar.
- PHP Console - A web debugging console.
- Barbushin PHP Console - Another web debugging console using Google Chrome.
- PHPDBG - An interactive PHP debugger.
- Scrutinizer - A web tool to scrutinise PHP code.
- PHPLOC - A tool for quickly measuring the size of a PHP project.
- xDebug - A debug and profile tool for PHP.
- xHprof - Another profiling tool for PHP.
编译工具
Project build and automation tools.
- Go - A simple PHP build tool.
- Bob - A simple project automation tool.
- Phake - A rake PHP clone library.
- Box - A utility to build PHAR files.
- Phing - A PHP project build system inspired by Apache Ant.
Task Runners
Libraries for automating and running tasks.
- Task - A pure PHP task runner inspired by Grunt and Gulp.
- Robo - A PHP Task runner with object-orientated configurations.
- Bldr - A PHP Task runner built on Symfony components.
导航
Tools for building navigation structures.
Asset Management
Tools for managing, compressing and minifying website assets.
- Assetic - An asset manager pipeline library.
- Pipe - Another asset manager pipeline library.
- Munee - An asset optimiser library.
- JShrink - A JavaScript minifier library.
- Puli - A library for determining assets absolute paths.
地理
Libraries for geocoding addresses and working with latitudes and longitudes.
日期和时间
Libraries for working with dates and times.
事件
Libraries that are event-driven or implement non-blocking event loops.
日志
Libraries for generating and working with log files.
- Monolog - A comprehensive logger.
- KLogger - An easy-to-use PSR-3 compliant logging class.
E-commerce
Libraries and applications for taking payments and building online e-commerce stores.
- OmniPay - A framework agnostic multi-gateway payment processing library.
- Payum - A payment abstraction library.
- Sylius - An open source e-commerce solution.
- Thelia - Another open source e-commerce solution.
- Money - A PHP implementation of Fowler's money pattern.
- Sebastian Money - Another library for working with monetary values.
- Swap - An exchange rates library.
PDF
Libraries and software for working with PDF files.
- Snappy - A PDF and image generation library.
- WKHTMLToPDF - A tool to convert HTML to PDF.
ORM and Datamapping
Libraries that implement object-relational mapping or datamapping techniques.
NoSQL
Libraries for working with "NoSQL" backends.
- MongoQB - A MongoDB query builder library.
- Monga - A MongoDB abstraction library.
- Predis - A feature complete Redis library.
队列
Libraries for working with event and task queues.
- Pheanstalk - A Beanstalkd client library.
- PHP AMQP - A pure PHP AMQP library.
- Thumper - A RabbitMQ pattern library.
- Bernard - A multibackend abstraction library.
搜索
Libraries and software for indexing and performing search queries on data.
命令行
Libraries for building command line utilities.
- Boris - A tiny PHP REPL.
- PsySH - Another PHP REPL.
- Pecan - An event-driven, non-blocking shell.
- GetOpt - A command line opt parser.
- OptParse - Another command line opt parser.
- Commando - Another simple command line opt parser.
- GetOptionKit - Another command line opt parser.
- Cron Expression - A library to calculate cron run dates.
- ShellWrap - A simple command line wrapper library.
- Hoa Console - Another command line library.
- Shunt - A library for running commands in parallel on multiple remote machines.
认证
Libraries for implementing authentications schemes.
- Sentry - A framework agnostic authentication & authorisation library.
- Sentry Social - A library for social network authentication.
- Opauth - A multi-provider authentication framework.
- OAuth2 - An OAuth2 authentication server, resource server and client library.
- OAuth2 Server - Another OAuth2 server implementation.
- PHP oAuthLib - Another OAuth library.
- TwitterOAuth - A Twitter OAuth library.
- TwitterSDK - A fully tested Twitter SDK.
- Hawk - A Hawk HTTP authentication library.
- HybridAuth - An open source social sign on library.
Markup
Libraries for working with markup.
文字和数字
Libraries for parsing and manipulating text and numbers.
- ANSI to HTML5 - An ANSI to HTML5 converter library.
- Patchwork UTF-8 - A portable library for working with UTF-8 strings.
- Hoa String - Another UTF-8 string library.
- Stringy - A string manipulation library with multibyte support.
- Numbers PHP - A library for working with numbers.
- Math - A library for working with large numbers.
- Color Jizz - A library for manipulating and converting colours.
- UUID - A library for generating UUIDs.
- Slugify - A library to convert strings to slugs.
- Urlify - A PHP port of Django's URLify.js.
- Text - A text manipulation library.
- PHP Units of Measure - A library for converting between units of measure.
- PHP Conversion - Another library for converting between units of measure.
- SQL Formatter - A library for formatting SQL statements.
- ByteUnits - A library to parse, format and convert byte units in binary and metric systems.
- UA Parser - A library for parsing user agent strings.
- LibPhoneNumber for PHP - A PHP implementation of Google's phone number handling library.
筛选和验证
Libraries for filtering and validating data.
- Filterus - A simple PHP filtering library.
- Respect Validate - A simple validation library.
- Valitron - Another validation library.
- Upload - A library for handling file uploads and validation.
- DMS Filter - An annotation filtering library.
- MetaYaml - A schema validation library that supports YAML, JSON and XML.
- ISO-codes - A library for validating various ISO and ZIP codes (IBAN, SWIFT/BIC, BBAN, VAT, SSN, UKNIN).
REST and API
Libraries and web tools for developing REST-ful APIs.
- Apigility - An API builder built with Zend Framework 2.
- Hateoas - A HATEOAS REST web service library.
- HAL - A Hypertext Application Language (HAL) builder library.
- Negotiation - A content negotiation library.
缓存
Libraries for caching data.
数据结构和存储
Libraries that implement data structure or storage techniques.
通知
Libraries for working with notification software.
- Nod - A notification library (e.g., Growl).
- Notificato - A library for handling push notifications.
- Notification Pusher - A standalone library for device push notifications.
- Notificator - A lightweight notification library.
部署
- Pomander - A deployment tool for PHP applications.
- Rocketeer - A fast and easy deployer for the PHP world.
- Envoy - A tool to run SSH tasks with PHP.
- Plum - A deployer library.
第三方APIs
Libraries for accessing third party APIs.
扩展
Libraries to help build PHP extensions.
- Zephir - A compiled language between PHP and C++ for developing PHP extensions.
- PHP CPP - A C++ library for developing PHP extensions.
Miscellaneous
Useful libraries or tools that don't fit in the categories above.
- Spork - A process forking library.
- JSON Lint - A JSON lint utility.
- JSONPCallbackValidator - A library for validating JSONP callbacks.
- Pagerfanta - A pagination library.
- Ruler - A simple stateless production rules engine.
- LiteCQRS - A CQRS (Command Query Responsibility Separation) library.

- PHP Option An option type library.
- Metrics - A simple metrics API library.
- Sabre VObject - A library for parsing VCard and iCalendar objects.
- Annotations - An annotations library (part of Doctrine).
- Whoops - A pretty error handling library.
- Finite - A simple PHP finite state machine.
- LadyBug - A dumper library.
- Procrastinator - A library for running time consuming tasks.
- Compose - A function composition library.
- SuperClosure - A library that allows Closures to be serialized.
- Jumper - A remote service executor library.
- Underscore - A PHP port of the Underscore JS library.
- PHP PassBook - A PHP library for iOS PassBook.
- PHP Expression - A PHP expression language.
- RMT - A library for versioning and releasing software.
- Wise - A configuration manager.
- Opengraph - An opengraph library.
- Essence - A library for extracting web media.
- Embera - An Oembed consumer library.
- Graphviz - A Graphviz library.
- Monad PHP - A simple Monad library.
- Flux - A regular expression building library.
- Patchwork - A library for redefining userland functions.
- Galapagos - Evolutionary language transformation.
- Design Patterns PHP - A repository of software patterns implemented in PHP.
- PHPCR - A PHP port of the Java Content Repository (JCR).
- Functional PHP - A functional programming library.
- ClassPreloader - A library for optimising autoloading.
- Lib Country - A library for country and subdivision data.
- Lib Accessor - A library for simplifying accessors.
- PHPStack - A TCP/IP stack proof of concept written in PHP.
- Nmap - A PHP wrapper around Nmap.
- Code Mover - A library for moving code.
- Iter - A library that provides iteration primitives using generators.
- Lambda PHP - A Lambda calculus interpreter in PHP.
- Country List - A list of all countries with names and ISO 3166-1 codes.
- PHP-GPIO - A library for playing with the Raspberry PI's GPIO pins.
软件
Software for creating a development environment.
PHP Installation
Tools to help install and manage PHP on your computer.
- HomeBrew - A package manager for OSX.
- HomeBrew PHP - A PHP tap for HomeBrew.
- PHP OSX - A PHP installer for OSX.
- PHP Brew - A PHP version manager and installer.
- PHP Env - Another PHP version manager.
- PHP Switch - Another version manager.
- PHP Build - Another PHP version installer.
- VirtPHP - A tool for creating and managing isolated PHP environments.
开发环境
Software and tools for creating a sandboxed development environment.
- Vagrant - A portable development environment utility.
- Ansible - A radically simple orchestration framework.
- Puppet - A server automation framework and application.
- PuPHPet - A web tool for building PHP development virtual machines.
- Protobox - Another web tool for building PHP development virtual machines.
- Phansible - A web tool for building PHP development virtual machines with Ansible.
虚拟机
Alternative PHP virtual machines.
- HipHop PHP - A Virtual Machine, Runtime and JIT for PHP by Facebook.
- HippyVM - Another PHP virtual machine.
- Hack - A programming language for HHVM that interoperates seamlessly with PHP.
Web应用
Web-based applications and tools.
- 3V4L - An online PHP shell.
- DBV - A database version control application.
- PHP Queue - An application for managing queueing backends.
- Composer as a Service - A tool for downloading Composer packages as a zip file.
- MailCatcher - A web tool for capturing and viewing emails.
资源
Various resources, such as books, websites and articles, for improving your PHP development skills and knowledge.
PHP网站
Useful PHP-related websites.
其他站点
Useful websites related to web development.
PHP 书籍
Fantastic PHP-related books.
其他书籍
Books related to general computing and web development.
PHP 视频
Fantastic PHP-related videos.
PHP 阅读
PHP-releated reading materials.
PHP 内部阅读
Reading materials related to the PHP internals or performance.
贡献
Please see CONTRIBUTING for details.


Visibility with pink ball is easier than red ball, says Sourav Ganguly
Sourav Ganguly, who was the man behind India hosting its maiden Day/Night Test after initial resistance, was delighted with the big turnout at the Eden Gardens.
by PTIVisibility may have been one of the talking points in the run-up to the first Day/Night Test in India but BCCI president Sourav Ganguly feels sighting the pink ball is “easier” than the red cherry.
There had been plenty of talks around the heavily-lacquered ball especially during the twilight hours.
Asked about visibility, the former India captain said: “It’s actually easier than the red ball.”
Ganguly remained non-committal on whether India will play a pink ball Test in Australia next year.
Ganguly, who was the man behind India hosting its maiden Day/Night Test after initial resistance, was delighted with the big turnout at the Eden Gardens.
“So many watched the match that is most important. I was not under any tension but I was busy.”
Ganguly thanked Bangladesh Prime Minister Sheikh Hasina for her presence on Friday, and promised to be present at the two T20Is between Asian all-star XI and World XI next year to celebrate the 100th birth anniversary of the Father of the Nation Bangabandhu Sheikh Mujibur Rahman.
“I will go. I know you have gala plans for the event,” he said.


Write a simple Twitter API client in Python. This client simply has to fetch and display Tweets that a) Have been re-Tweeted at least once b) Contain the hashtag #custserv


---
layout: page
---
Welcom to wxSwift
The wxSwift project implements a binding from the portable GUI library wxWidgets to Swift. Currently wxSwift is being implemented on MinGW-w64 and it is in very early stage.
Download
Download Swift for Windows 1.6 which includes wxSwift alpha version. (http://SwiftForWindows.github.io)
Screenshots
Following GUI were written in Swift using wxSwift.
import wx
var app = wx.App()
_ = wx.MessageDialog(wx.Window(), "Hello Window", "HelloWin", style:wx.OK).showModal()


{% extends 'base.html' %} {% block content %} {% block extended_content %} {# There is no real need for this anymore because the base.html file was updated project-wide.#} {% endblock %} {% endblock %}


public class LIAPIGeoTaxServiceApi
extends java.lang.Object
| Constructor and Description |
|---|
LIAPIGeoTaxServiceApi() |
LIAPIGeoTaxServiceApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
TaxResponses |
getBatchTaxByAddress(java.lang.String taxRateTypeId,
TaxAddressRequest body)
Post Tax By Address
This is a Batch offering for 'Tax By Address' service.
|
com.squareup.okhttp.Call |
getBatchTaxByAddressAsync(java.lang.String taxRateTypeId,
TaxAddressRequest body,
ApiCallback<TaxResponses> callback)
Post Tax By Address (asynchronously)
This is a Batch offering for 'Tax By Address' service.
|
ApiResponse<TaxResponses> |
getBatchTaxByAddressWithHttpInfo(java.lang.String taxRateTypeId,
TaxAddressRequest body)
Post Tax By Address
This is a Batch offering for 'Tax By Address' service.
|
TaxLocationResponses |
getBatchTaxByLocation(java.lang.String taxRateTypeId,
TaxLocationRequest body)
Post Tax By Location
This is a Batch offering for 'Tax By Location' service.
|
com.squareup.okhttp.Call |
getBatchTaxByLocationAsync(java.lang.String taxRateTypeId,
TaxLocationRequest body,
ApiCallback<TaxLocationResponses> callback)
Post Tax By Location (asynchronously)
This is a Batch offering for 'Tax By Location' service.
|
ApiResponse<TaxLocationResponses> |
getBatchTaxByLocationWithHttpInfo(java.lang.String taxRateTypeId,
TaxLocationRequest body)
Post Tax By Location
This is a Batch offering for 'Tax By Location' service.
|
TaxRateResponses |
getBatchTaxRateByAddress(java.lang.String taxRateTypeId,
TaxRateAddressRequest body)
Post Taxrate By Address
This is a Batch offering for 'Taxrate By Address' service.
|
com.squareup.okhttp.Call |
getBatchTaxRateByAddressAsync(java.lang.String taxRateTypeId,
TaxRateAddressRequest body,
ApiCallback<TaxRateResponses> callback)
Post Taxrate By Address (asynchronously)
This is a Batch offering for 'Taxrate By Address' service.
|
ApiResponse<TaxRateResponses> |
getBatchTaxRateByAddressWithHttpInfo(java.lang.String taxRateTypeId,
TaxRateAddressRequest body)
Post Taxrate By Address
This is a Batch offering for 'Taxrate By Address' service.
|
TaxRateLocationResponses |
getBatchTaxRateByLocation(java.lang.String taxRateTypeId,
TaxRateLocationRequest body)
Post Taxrate By Location
This is a Batch offering for 'Taxrate By Location' service.
|
com.squareup.okhttp.Call |
getBatchTaxRateByLocationAsync(java.lang.String taxRateTypeId,
TaxRateLocationRequest body,
ApiCallback<TaxRateLocationResponses> callback)
Post Taxrate By Location (asynchronously)
This is a Batch offering for 'Taxrate By Location' service.
|
ApiResponse<TaxRateLocationResponses> |
getBatchTaxRateByLocationWithHttpInfo(java.lang.String taxRateTypeId,
TaxRateLocationRequest body)
Post Taxrate By Location
This is a Batch offering for 'Taxrate By Location' service.
|
TaxDistrictResponse |
getIPDTaxByAddress(java.lang.String address,
java.lang.String returnLatLongFields,
java.lang.String latLongFormat)
Get IPD Tax by Address
This will accept 'address' as a parameter and will return one or many IPDs details for that region in which address will fall.
|
com.squareup.okhttp.Call |
getIPDTaxByAddressAsync(java.lang.String address,
java.lang.String returnLatLongFields,
java.lang.String latLongFormat,
ApiCallback<TaxDistrictResponse> callback)
Get IPD Tax by Address (asynchronously)
This will accept 'address' as a parameter and will return one or many IPDs details for that region in which address will fall.
|
TaxDistrictResponseList |
getIPDTaxByAddressBatch(IPDTaxByAddressBatchRequest body)
Get IPD Tax for batch requests
Get IPD Tax for batch requests
|
com.squareup.okhttp.Call |
getIPDTaxByAddressBatchAsync(IPDTaxByAddressBatchRequest body,
ApiCallback<TaxDistrictResponseList> callback)
Get IPD Tax for batch requests (asynchronously)
Get IPD Tax for batch requests
|
ApiResponse<TaxDistrictResponseList> |
getIPDTaxByAddressBatchWithHttpInfo(IPDTaxByAddressBatchRequest body)
Get IPD Tax for batch requests
Get IPD Tax for batch requests
|
ApiResponse<TaxDistrictResponse> |
getIPDTaxByAddressWithHttpInfo(java.lang.String address,
java.lang.String returnLatLongFields,
java.lang.String latLongFormat)
Get IPD Tax by Address
This will accept 'address' as a parameter and will return one or many IPDs details for that region in which address will fall.
|
TaxResponse |
getSpecificTaxByAddress(java.lang.String taxRateTypeId,
java.lang.String address,
java.lang.String purchaseAmount)
Get Tax By Address
This service calculates and returns taxes applicable at a specific address.
|
com.squareup.okhttp.Call |
getSpecificTaxByAddressAsync(java.lang.String taxRateTypeId,
java.lang.String address,
java.lang.String purchaseAmount,
ApiCallback<TaxResponse> callback)
Get Tax By Address (asynchronously)
This service calculates and returns taxes applicable at a specific address.
|
ApiResponse<TaxResponse> |
getSpecificTaxByAddressWithHttpInfo(java.lang.String taxRateTypeId,
java.lang.String address,
java.lang.String purchaseAmount)
Get Tax By Address
This service calculates and returns taxes applicable at a specific address.
|
TaxResponse |
getSpecificTaxByLocation(java.lang.String taxRateTypeId,
java.lang.String latitude,
java.lang.String longitude,
java.lang.String purchaseAmount)
Get Tax By Location
This service calculates and returns tax applicable at a specific location.
|
com.squareup.okhttp.Call |
getSpecificTaxByLocationAsync(java.lang.String taxRateTypeId,
java.lang.String latitude,
java.lang.String longitude,
java.lang.String purchaseAmount,
ApiCallback<TaxResponse> callback)
Get Tax By Location (asynchronously)
This service calculates and returns tax applicable at a specific location.
|
ApiResponse<TaxResponse> |
getSpecificTaxByLocationWithHttpInfo(java.lang.String taxRateTypeId,
java.lang.String latitude,
java.lang.String longitude,
java.lang.String purchaseAmount)
Get Tax By Location
This service calculates and returns tax applicable at a specific location.
|
TaxRateResponse |
getSpecificTaxRateByAddress(java.lang.String taxRateTypeId,
java.lang.String address)
Get Taxrate By Address
Retrieves tax rates applicable to a specific address.
|
com.squareup.okhttp.Call |
getSpecificTaxRateByAddressAsync(java.lang.String taxRateTypeId,
java.lang.String address,
ApiCallback<TaxRateResponse> callback)
Get Taxrate By Address (asynchronously)
Retrieves tax rates applicable to a specific address.
|
ApiResponse<TaxRateResponse> |
getSpecificTaxRateByAddressWithHttpInfo(java.lang.String taxRateTypeId,
java.lang.String address)
Get Taxrate By Address
Retrieves tax rates applicable to a specific address.
|
TaxRateResponse |
getSpecificTaxRateByLocation(java.lang.String taxRateTypeId,
java.lang.String latitude,
java.lang.String longitude)
Get Taxrate By Location
Retrieves tax rates applicable to a specific location.
|
com.squareup.okhttp.Call |
getSpecificTaxRateByLocationAsync(java.lang.String taxRateTypeId,
java.lang.String latitude,
java.lang.String longitude,
ApiCallback<TaxRateResponse> callback)
Get Taxrate By Location (asynchronously)
Retrieves tax rates applicable to a specific location.
|
ApiResponse<TaxRateResponse> |
getSpecificTaxRateByLocationWithHttpInfo(java.lang.String taxRateTypeId,
java.lang.String latitude,
java.lang.String longitude)
Get Taxrate By Location
Retrieves tax rates applicable to a specific location.
|
void |
setApiClient(ApiClient apiClient) |
public LIAPIGeoTaxServiceApi()
public LIAPIGeoTaxServiceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public TaxResponses getBatchTaxByAddress(java.lang.String taxRateTypeId, TaxAddressRequest body) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxAddressRequest Class Object having tax request. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxResponses> getBatchTaxByAddressWithHttpInfo(java.lang.String taxRateTypeId, TaxAddressRequest body) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxAddressRequest Class Object having tax request. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getBatchTaxByAddressAsync(java.lang.String taxRateTypeId, TaxAddressRequest body, ApiCallback<TaxResponses> callback) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxAddressRequest Class Object having tax request. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TaxLocationResponses getBatchTaxByLocation(java.lang.String taxRateTypeId, TaxLocationRequest body) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxAddressRequest Class Object having tax request. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxLocationResponses> getBatchTaxByLocationWithHttpInfo(java.lang.String taxRateTypeId, TaxLocationRequest body) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxAddressRequest Class Object having tax request. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getBatchTaxByLocationAsync(java.lang.String taxRateTypeId, TaxLocationRequest body, ApiCallback<TaxLocationResponses> callback) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxAddressRequest Class Object having tax request. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TaxRateResponses getBatchTaxRateByAddress(java.lang.String taxRateTypeId, TaxRateAddressRequest body) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxRateAddressRequest Class Object having tax rate request. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxRateResponses> getBatchTaxRateByAddressWithHttpInfo(java.lang.String taxRateTypeId, TaxRateAddressRequest body) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxRateAddressRequest Class Object having tax rate request. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getBatchTaxRateByAddressAsync(java.lang.String taxRateTypeId, TaxRateAddressRequest body, ApiCallback<TaxRateResponses> callback) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxRateAddressRequest Class Object having tax rate request. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TaxRateLocationResponses getBatchTaxRateByLocation(java.lang.String taxRateTypeId, TaxRateLocationRequest body) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxRateLocationRequest Class Object having tax rate request. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxRateLocationResponses> getBatchTaxRateByLocationWithHttpInfo(java.lang.String taxRateTypeId, TaxRateLocationRequest body) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxRateLocationRequest Class Object having tax rate request. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getBatchTaxRateByLocationAsync(java.lang.String taxRateTypeId, TaxRateLocationRequest body, ApiCallback<TaxRateLocationResponses> callback) throws ApiException
taxRateTypeId
- The tax rate id. (required)body
- TaxRateLocationRequest Class Object having tax rate request. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TaxDistrictResponse getIPDTaxByAddress(java.lang.String address, java.lang.String returnLatLongFields, java.lang.String latLongFormat) throws ApiException
address
- The address to be searched. (required)returnLatLongFields
- Y or N (default is N) - Returns Latitude Longitude Fields (optional)latLongFormat
- (default is Decimal) - Returns Desired Latitude Longitude Format (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxDistrictResponse> getIPDTaxByAddressWithHttpInfo(java.lang.String address, java.lang.String returnLatLongFields, java.lang.String latLongFormat) throws ApiException
address
- The address to be searched. (required)returnLatLongFields
- Y or N (default is N) - Returns Latitude Longitude Fields (optional)latLongFormat
- (default is Decimal) - Returns Desired Latitude Longitude Format (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getIPDTaxByAddressAsync(java.lang.String address, java.lang.String returnLatLongFields, java.lang.String latLongFormat, ApiCallback<TaxDistrictResponse> callback) throws ApiException
address
- The address to be searched. (required)returnLatLongFields
- Y or N (default is N) - Returns Latitude Longitude Fields (optional)latLongFormat
- (default is Decimal) - Returns Desired Latitude Longitude Format (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TaxDistrictResponseList getIPDTaxByAddressBatch(IPDTaxByAddressBatchRequest body) throws ApiException
body
- IPDTaxByAddressBatchRequest Class Object having IPD tax request (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxDistrictResponseList> getIPDTaxByAddressBatchWithHttpInfo(IPDTaxByAddressBatchRequest body) throws ApiException
body
- IPDTaxByAddressBatchRequest Class Object having IPD tax request (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getIPDTaxByAddressBatchAsync(IPDTaxByAddressBatchRequest body, ApiCallback<TaxDistrictResponseList> callback) throws ApiException
body
- IPDTaxByAddressBatchRequest Class Object having IPD tax request (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TaxResponse getSpecificTaxByAddress(java.lang.String taxRateTypeId, java.lang.String address, java.lang.String purchaseAmount) throws ApiException
taxRateTypeId
- The tax rate id. (required)address
- The address to be searched. (required)purchaseAmount
- The amount on which tax to be calculated. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxResponse> getSpecificTaxByAddressWithHttpInfo(java.lang.String taxRateTypeId, java.lang.String address, java.lang.String purchaseAmount) throws ApiException
taxRateTypeId
- The tax rate id. (required)address
- The address to be searched. (required)purchaseAmount
- The amount on which tax to be calculated. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getSpecificTaxByAddressAsync(java.lang.String taxRateTypeId, java.lang.String address, java.lang.String purchaseAmount, ApiCallback<TaxResponse> callback) throws ApiException
taxRateTypeId
- The tax rate id. (required)address
- The address to be searched. (required)purchaseAmount
- The amount on which tax to be calculated. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TaxResponse getSpecificTaxByLocation(java.lang.String taxRateTypeId, java.lang.String latitude, java.lang.String longitude, java.lang.String purchaseAmount) throws ApiException
taxRateTypeId
- The tax rate id. (required)latitude
- Latitude of the location. (required)longitude
- Longitude of the location. (required)purchaseAmount
- The amount on which tax to be calculated. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxResponse> getSpecificTaxByLocationWithHttpInfo(java.lang.String taxRateTypeId, java.lang.String latitude, java.lang.String longitude, java.lang.String purchaseAmount) throws ApiException
taxRateTypeId
- The tax rate id. (required)latitude
- Latitude of the location. (required)longitude
- Longitude of the location. (required)purchaseAmount
- The amount on which tax to be calculated. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getSpecificTaxByLocationAsync(java.lang.String taxRateTypeId, java.lang.String latitude, java.lang.String longitude, java.lang.String purchaseAmount, ApiCallback<TaxResponse> callback) throws ApiException
taxRateTypeId
- The tax rate id. (required)latitude
- Latitude of the location. (required)longitude
- Longitude of the location. (required)purchaseAmount
- The amount on which tax to be calculated. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TaxRateResponse getSpecificTaxRateByAddress(java.lang.String taxRateTypeId, java.lang.String address) throws ApiException
taxRateTypeId
- The tax rate id. (required)address
- The address to be searched. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxRateResponse> getSpecificTaxRateByAddressWithHttpInfo(java.lang.String taxRateTypeId, java.lang.String address) throws ApiException
taxRateTypeId
- The tax rate id. (required)address
- The address to be searched. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getSpecificTaxRateByAddressAsync(java.lang.String taxRateTypeId, java.lang.String address, ApiCallback<TaxRateResponse> callback) throws ApiException
taxRateTypeId
- The tax rate id. (required)address
- The address to be searched. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TaxRateResponse getSpecificTaxRateByLocation(java.lang.String taxRateTypeId, java.lang.String latitude, java.lang.String longitude) throws ApiException
taxRateTypeId
- The tax rate id. (required)latitude
- Latitude of the location. (required)longitude
- Longitude of the location. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TaxRateResponse> getSpecificTaxRateByLocationWithHttpInfo(java.lang.String taxRateTypeId, java.lang.String latitude, java.lang.String longitude) throws ApiException
taxRateTypeId
- The tax rate id. (required)latitude
- Latitude of the location. (required)longitude
- Longitude of the location. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getSpecificTaxRateByLocationAsync(java.lang.String taxRateTypeId, java.lang.String latitude, java.lang.String longitude, ApiCallback<TaxRateResponse> callback) throws ApiException
taxRateTypeId
- The tax rate id. (required)latitude
- Latitude of the location. (required)longitude
- Longitude of the location. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body object


{% extends 'base.html' %} {% load bootstrap3 %} {% block content %}
This object specifies that {{ object.facility.name }} opens at {{ object.when.lower }} and closes at {{ object.when.upper }}.
Really delete it?


[1]
Sense UI, Android, Browser; Battery Life, No Flash
[2]
Excellent feel, superior interface, tons of apps.; No real voice dial.


is_eq(obj1, obj2)
Return true
if obj1
and obj2
are identical,
otherwise return false
.
Two objects are considered identical if they internally reference to the same memory location.
Is_eq
can efficiently check for pointer equivalence of symbols and allocated objects like pairs,
arrays, and record instances.
Is_eq
cannot be used to compare numbers reliably.
Slogan may use different objects internally for representing two big-integers that has the same value.
is_eq('a, 'b)
// false
is_eq('a, 'a)
// true
is_eq(\a, \a)
// true
is_eq(10, 10)
// true
is_eq(38492948403840248034824037496494864917349749247947249749327482479,
38492948403840248034824037496494864917349749247947249749327482479)
// false


Immigrants from Marshall Islands teaching culture in Ohio
by EndPlayCELINA, Ohio (AP) - Immigrants from the Marshall Islands who've settled over the years in a rural Ohio area are sharing their culture and history with their neighbors.
The Marshallese Culture Club plans to meet once a week in Celina, where an estimated 1,500 people from the chain of south Pacific Ocean islands now live.
The leader of the club tells The Daily Standard in Celina that those taking part will learn the language, customs and traditions of the Marshallese.
Carmichael Capelle says he wants to teach the history of the Marshall Islands to the longtime residents of western Ohio and to the Marshallese community in Mercer County, including the children who don't know their history or language.
He says that someday he'd like to have a Marshallese class taught in the area schools.
___
Information from: The Daily Standard, http://www.dailystandard.com


Datanova IT Consulting is a specialist consulting management solution, innovative information technology (IT) services & solutions provider, delivering IT solutions with driven focus on end to end enterprise process solutions. Our entity provides services across different industry sectors in the private and public sector space, with years of proven expertise in professional services, consumer goods retailing, chemical & energy and Automotive organisations operating in South Africa.
The aim is to deliver quality, on time and in scope using the ASAP and activate project management methodology (waterfall & Agile) so that our clients harvest maximum value from their SAP ECC6/ S4HANA and other custom development technological investments.
We specialize in the delivery of business transformation and implementation of projects across industries focusing on the following functional disciplines :


Your privacy is critically important to us. Your data is your own. We make no claims to it and will only use it according to the policies outlined below. If you have questions about deleting or correcting your personal data please contact our support team.
CardioBot allows you to store and measure your heart rate and workouts. This data is only stored locally on your device. It is not transmitted outside of your device.
No Personally-Identifying Information is transmitted to external locations when using CardioBot.
If you choose to have CardioBot integrate with HealthKit then the application will have access only to the health data types you opt-in to access. CardioBot requests permission to write certain data types into your HealthKit data store. These are used to record the duration and quality of your cardio workouts. The data read from HealthKit is used solely within the app. It is not collected or disclosed outside of your local installation of the the app. Only those data types relevant to the app are accessed. The data read is used to analyze and verify the heart rate data saved to the HealthKit store. In no case is your personal data ever transfered to a 3rd party. It is only ever kept within the application container of CardioBot or transfered to your personal HealthKit data store as per your permission choices.


I really cant understand some of the other reports, knowing as I do the neuropharmacology of MDMA fairly well. Our serotonin (5-HT) cells do contain a finite amount of the substance and (unlike dopamine) the cells are fairly slow to regenerate the substance. Therefore munching 20 pills in a session (as I have known some people do) simply cannot continue to give you the 'E-rush' as this is from serotonin. Sure you will get some feeling, but this is a dopamine effect. Why not take something else?
Similarly people who claim that they can take pills every day for days on end and never lose effect are (merrily indeed!) most likely deluding themselves. The human body has incredibly effective control mechanisms to bring everything back toward 'the norm'. It DOESN'T LIKE being too happy! Even if we had limitless supplies of serotonin to dump into our synapses the receptor cells would rapidly downnumber (spontaneously decrease to give reduced effect).
I say all this because E is an incredible psychoactive drug, and I feel has so much to give to mankind. I worry that people who are misinformed or simply unaware of its limitations will trat it without the respect it undoubtably needs. This in turn leads to the tragic cases of death, the grim tales of which are so beloved of our Political masters and the blinkered media.
About my experiences; ceratinly they have changed over time, but I often feel this is very much due to the batch I am using. Although I test them crudely for +ve MDMA, I'm sure a lot of the pills I have had recently have been cut, as I have had some mild hallucinations and weak 'ups'.
Hangovers have never been a problem for me nor my partner. We generally take 2-4 pills in a night in 1/2 pill increments. The next day we generally get up fairly early, and still feel very empathic and cheery. Certainly we feel a bit woozy, and major league chores tend to be put aside in favour of long walks, music or kite flying, but that is the mood we're in! Even the days after tend to be OK, even in my job which is seriously high intensity. Occasionally my temper has been a bit short on the past six months, but this does not seem related to taking a pill and I hope & suspect it is due to a crap 6 months @ work. We shall see.
Also we take 20-40mg of fluoxetine (Prozac) 4 hours after our first pill. Whilst it doesn't seem to have a noticable effect on come-down (especially as we dont really get one), I am convinced of it's neuroprotective effects (along with lots of Ribena & 1000u Vit.E).
I really do feel that E is a force for good in this increasingly black world, but it is up to all of us who use it to do so responsibly and in doing so rob the bastards who survive on the tobacco-alcohol monopoly of the hammer with which to beat us. Also we can all have some truly amazing times while everyone else is stuck on Planet Earth!!
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


Film
Backstage
Reviews
Credits
Film
Backstage
Reviews
Credits
directed by:
Fatema, Long, Aliya, Adina
produced by:
Fatema, Long, Aliya, Adina
played by:
Fatema, Long, Aliya, Adina
soundtrack by:
Young Souls


Directional light.
More...
#include <Light.hpp>
Directional light.
Definition at line 193 of file Light.hpp.
◆ DirectionalLight()
Creates an instance.
- Parameters
-
| color | The light color |
| direction | The direction of the light |
Definition at line 208 of file Light.hpp.
◆ get_direction()
| virtual toolkit::Vector4f Rendering3D::DirectionalLight::get_direction |
( |
toolkit::Point4f |
point | ) |
|
|
inlineoverridevirtual |
Gets the direction vector between the light and giving point. Vector is normalized.
- Parameters
-
| point | The point to illuminate |
- Returns
- The vector between light and point
Implements Rendering3D::Light.
Definition at line 223 of file Light.hpp.
◆ direction
| toolkit::Vector4f Rendering3D::DirectionalLight::direction |
The direction of the light.
Definition at line 201 of file Light.hpp.
The documentation for this class was generated from the following file:
- D:/Repositorios/3DRendering/Rendering/code/headers/Light.hpp


|
Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object brooklyn.event.adapter.SensorRegistry
@Deprecated @SuppressWarnings("deprecation") class SensorRegistry
This class manages the periodic polling of a set of sensors, to update the attribute values of a particular Entity. When a "sensor adapter" is registered, it is immediately activated which will cause it to begin polling. When the registry is closed (e.g. on entity-stop), all registered sensor-adapters will automatically be de-activated. It is strongly recommended to not modify a sensor-adapter while concurrently registering it (e.g. adding additional sensors to it in a separate thread).
| Property Summary | |
|---|---|
boolean |
activated
|
EntityLocal |
entity
|
static Logger |
log
|
java.util.Map |
properties
@deprecated in 0.4. use new SensorAdapter model. |
| Constructor Summary | |
SensorRegistry(EntityLocal entity, java.util.Map properties = [:])
|
| Method Summary | |
|---|---|
void
|
activateAdapters()
@deprecated activated automatically, as soon as constructed. |
void
|
addActivationLifecycleListeners(java.lang.Runnable onUp, java.lang.Runnable onDown)
TODO If called in separate thread concurrently with activateAdapters or deactivateAdapters/close, then listener could be called twice. |
void
|
addSensor(AttributeSensor sensor, ValueProvider provider)
@deprecated in 0.4. use new SensorAdapter model. |
void
|
addSensor(AttributeSensor sensor, ValueProvider provider, long period)
@deprecated in 0.4. use new SensorAdapter model. |
void
|
close()
|
void
|
deactivateAdapters()
|
java.util.concurrent.ScheduledExecutorService
|
getExec()
|
java.lang.Object
|
register(java.lang.Object adapter)
records an adapter that has been created for use with this registry; implementations may return a compatible adapter if one is already registered |
void
|
removeSensor(AttributeSensor sensor)
@deprecated in 0.4. use new SensorAdapter model. |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Property Detail |
|---|
boolean activated
final EntityLocal entity
static final Logger log
@Deprecated final java.util.Map properties
| Constructor Detail |
|---|
SensorRegistry(EntityLocal entity, java.util.Map properties = [:])
| Method Detail |
|---|
@Deprecated void activateAdapters()
void addActivationLifecycleListeners(java.lang.Runnable onUp, java.lang.Runnable onDown)
@Deprecated void addSensor(AttributeSensor sensor, ValueProvider provider)
@Deprecated void addSensor(AttributeSensor sensor, ValueProvider provider, long period)
void close()
void deactivateAdapters()
java.util.concurrent.ScheduledExecutorService getExec()
java.lang.Object register(java.lang.Object adapter)
@Deprecated void removeSensor(AttributeSensor sensor)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.